@botfabrik/engine-webclient 4.76.8 → 4.76.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client/assets/index-JobsCiR7.js +110 -0
- package/dist/client/assets/index-JobsCiR7.js.map +1 -0
- package/dist/client/index.html +1 -1
- package/dist/embed/bundle.js +30 -54
- package/dist/index.js +17 -7
- package/dist/middleware/index.js +5 -3
- package/dist/speechToText.js +1 -3
- package/package.json +9 -9
- package/run-embed-local.ts +1 -1
- package/dist/client/assets/index-CjKsL5v6.js +0 -103
- package/dist/client/assets/index-CjKsL5v6.js.map +0 -1
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
var $_=Object.defineProperty;var q_=(e,n,i)=>n in e?$_(e,n,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[n]=i;var we=(e,n,i)=>q_(e,typeof n!="symbol"?n+"":n,i);(function(){const n=document.createElement("link").relList;if(n&&n.supports&&n.supports("modulepreload"))return;for(const l of document.querySelectorAll('link[rel="modulepreload"]'))s(l);new MutationObserver(l=>{for(const u of l)if(u.type==="childList")for(const d of u.addedNodes)d.tagName==="LINK"&&d.rel==="modulepreload"&&s(d)}).observe(document,{childList:!0,subtree:!0});function i(l){const u={};return l.integrity&&(u.integrity=l.integrity),l.referrerPolicy&&(u.referrerPolicy=l.referrerPolicy),l.crossOrigin==="use-credentials"?u.credentials="include":l.crossOrigin==="anonymous"?u.credentials="omit":u.credentials="same-origin",u}function s(l){if(l.ep)return;l.ep=!0;const u=i(l);fetch(l.href,u)}})();var ds=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Js(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var su={exports:{}},Hi={},au={exports:{}},me={};/**
|
|
2
|
+
* @license React
|
|
3
|
+
* react.production.min.js
|
|
4
|
+
*
|
|
5
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
6
|
+
*
|
|
7
|
+
* This source code is licensed under the MIT license found in the
|
|
8
|
+
* LICENSE file in the root directory of this source tree.
|
|
9
|
+
*/var gp;function V_(){if(gp)return me;gp=1;var e=Symbol.for("react.element"),n=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),l=Symbol.for("react.profiler"),u=Symbol.for("react.provider"),d=Symbol.for("react.context"),h=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),E=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),w=Symbol.iterator;function m(P){return P===null||typeof P!="object"?null:(P=w&&P[w]||P["@@iterator"],typeof P=="function"?P:null)}var _={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},v=Object.assign,k={};function x(P,B,ce){this.props=P,this.context=B,this.refs=k,this.updater=ce||_}x.prototype.isReactComponent={},x.prototype.setState=function(P,B){if(typeof P!="object"&&typeof P!="function"&&P!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,P,B,"setState")},x.prototype.forceUpdate=function(P){this.updater.enqueueForceUpdate(this,P,"forceUpdate")};function N(){}N.prototype=x.prototype;function O(P,B,ce){this.props=P,this.context=B,this.refs=k,this.updater=ce||_}var S=O.prototype=new N;S.constructor=O,v(S,x.prototype),S.isPureReactComponent=!0;var T=Array.isArray,C=Object.prototype.hasOwnProperty,L={current:null},H={key:!0,ref:!0,__self:!0,__source:!0};function W(P,B,ce){var he,ye={},ve=null,ke=null;if(B!=null)for(he in B.ref!==void 0&&(ke=B.ref),B.key!==void 0&&(ve=""+B.key),B)C.call(B,he)&&!H.hasOwnProperty(he)&&(ye[he]=B[he]);var Te=arguments.length-2;if(Te===1)ye.children=ce;else if(1<Te){for(var Re=Array(Te),Je=0;Je<Te;Je++)Re[Je]=arguments[Je+2];ye.children=Re}if(P&&P.defaultProps)for(he in Te=P.defaultProps,Te)ye[he]===void 0&&(ye[he]=Te[he]);return{$$typeof:e,type:P,key:ve,ref:ke,props:ye,_owner:L.current}}function se(P,B){return{$$typeof:e,type:P.type,key:B,ref:P.ref,props:P.props,_owner:P._owner}}function te(P){return typeof P=="object"&&P!==null&&P.$$typeof===e}function fe(P){var B={"=":"=0",":":"=2"};return"$"+P.replace(/[=:]/g,function(ce){return B[ce]})}var de=/\/+/g;function ae(P,B){return typeof P=="object"&&P!==null&&P.key!=null?fe(""+P.key):B.toString(36)}function Fe(P,B,ce,he,ye){var ve=typeof P;(ve==="undefined"||ve==="boolean")&&(P=null);var ke=!1;if(P===null)ke=!0;else switch(ve){case"string":case"number":ke=!0;break;case"object":switch(P.$$typeof){case e:case n:ke=!0}}if(ke)return ke=P,ye=ye(ke),P=he===""?"."+ae(ke,0):he,T(ye)?(ce="",P!=null&&(ce=P.replace(de,"$&/")+"/"),Fe(ye,B,ce,"",function(Je){return Je})):ye!=null&&(te(ye)&&(ye=se(ye,ce+(!ye.key||ke&&ke.key===ye.key?"":(""+ye.key).replace(de,"$&/")+"/")+P)),B.push(ye)),1;if(ke=0,he=he===""?".":he+":",T(P))for(var Te=0;Te<P.length;Te++){ve=P[Te];var Re=he+ae(ve,Te);ke+=Fe(ve,B,ce,Re,ye)}else if(Re=m(P),typeof Re=="function")for(P=Re.call(P),Te=0;!(ve=P.next()).done;)ve=ve.value,Re=he+ae(ve,Te++),ke+=Fe(ve,B,ce,Re,ye);else if(ve==="object")throw B=String(P),Error("Objects are not valid as a React child (found: "+(B==="[object Object]"?"object with keys {"+Object.keys(P).join(", ")+"}":B)+"). If you meant to render a collection of children, use an array instead.");return ke}function Ie(P,B,ce){if(P==null)return P;var he=[],ye=0;return Fe(P,he,"","",function(ve){return B.call(ce,ve,ye++)}),he}function $e(P){if(P._status===-1){var B=P._result;B=B(),B.then(function(ce){(P._status===0||P._status===-1)&&(P._status=1,P._result=ce)},function(ce){(P._status===0||P._status===-1)&&(P._status=2,P._result=ce)}),P._status===-1&&(P._status=0,P._result=B)}if(P._status===1)return P._result.default;throw P._result}var Ne={current:null},V={transition:null},ne={ReactCurrentDispatcher:Ne,ReactCurrentBatchConfig:V,ReactCurrentOwner:L};function Q(){throw Error("act(...) is not supported in production builds of React.")}return me.Children={map:Ie,forEach:function(P,B,ce){Ie(P,function(){B.apply(this,arguments)},ce)},count:function(P){var B=0;return Ie(P,function(){B++}),B},toArray:function(P){return Ie(P,function(B){return B})||[]},only:function(P){if(!te(P))throw Error("React.Children.only expected to receive a single React element child.");return P}},me.Component=x,me.Fragment=i,me.Profiler=l,me.PureComponent=O,me.StrictMode=s,me.Suspense=p,me.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=ne,me.act=Q,me.cloneElement=function(P,B,ce){if(P==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+P+".");var he=v({},P.props),ye=P.key,ve=P.ref,ke=P._owner;if(B!=null){if(B.ref!==void 0&&(ve=B.ref,ke=L.current),B.key!==void 0&&(ye=""+B.key),P.type&&P.type.defaultProps)var Te=P.type.defaultProps;for(Re in B)C.call(B,Re)&&!H.hasOwnProperty(Re)&&(he[Re]=B[Re]===void 0&&Te!==void 0?Te[Re]:B[Re])}var Re=arguments.length-2;if(Re===1)he.children=ce;else if(1<Re){Te=Array(Re);for(var Je=0;Je<Re;Je++)Te[Je]=arguments[Je+2];he.children=Te}return{$$typeof:e,type:P.type,key:ye,ref:ve,props:he,_owner:ke}},me.createContext=function(P){return P={$$typeof:d,_currentValue:P,_currentValue2:P,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},P.Provider={$$typeof:u,_context:P},P.Consumer=P},me.createElement=W,me.createFactory=function(P){var B=W.bind(null,P);return B.type=P,B},me.createRef=function(){return{current:null}},me.forwardRef=function(P){return{$$typeof:h,render:P}},me.isValidElement=te,me.lazy=function(P){return{$$typeof:y,_payload:{_status:-1,_result:P},_init:$e}},me.memo=function(P,B){return{$$typeof:E,type:P,compare:B===void 0?null:B}},me.startTransition=function(P){var B=V.transition;V.transition={};try{P()}finally{V.transition=B}},me.unstable_act=Q,me.useCallback=function(P,B){return Ne.current.useCallback(P,B)},me.useContext=function(P){return Ne.current.useContext(P)},me.useDebugValue=function(){},me.useDeferredValue=function(P){return Ne.current.useDeferredValue(P)},me.useEffect=function(P,B){return Ne.current.useEffect(P,B)},me.useId=function(){return Ne.current.useId()},me.useImperativeHandle=function(P,B,ce){return Ne.current.useImperativeHandle(P,B,ce)},me.useInsertionEffect=function(P,B){return Ne.current.useInsertionEffect(P,B)},me.useLayoutEffect=function(P,B){return Ne.current.useLayoutEffect(P,B)},me.useMemo=function(P,B){return Ne.current.useMemo(P,B)},me.useReducer=function(P,B,ce){return Ne.current.useReducer(P,B,ce)},me.useRef=function(P){return Ne.current.useRef(P)},me.useState=function(P){return Ne.current.useState(P)},me.useSyncExternalStore=function(P,B,ce){return Ne.current.useSyncExternalStore(P,B,ce)},me.useTransition=function(){return Ne.current.useTransition()},me.version="18.3.1",me}var yp;function ei(){return yp||(yp=1,au.exports=V_()),au.exports}/**
|
|
10
|
+
* @license React
|
|
11
|
+
* react-jsx-runtime.production.min.js
|
|
12
|
+
*
|
|
13
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
14
|
+
*
|
|
15
|
+
* This source code is licensed under the MIT license found in the
|
|
16
|
+
* LICENSE file in the root directory of this source tree.
|
|
17
|
+
*/var vp;function W_(){if(vp)return Hi;vp=1;var e=ei(),n=Symbol.for("react.element"),i=Symbol.for("react.fragment"),s=Object.prototype.hasOwnProperty,l=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,u={key:!0,ref:!0,__self:!0,__source:!0};function d(h,p,E){var y,w={},m=null,_=null;E!==void 0&&(m=""+E),p.key!==void 0&&(m=""+p.key),p.ref!==void 0&&(_=p.ref);for(y in p)s.call(p,y)&&!u.hasOwnProperty(y)&&(w[y]=p[y]);if(h&&h.defaultProps)for(y in p=h.defaultProps,p)w[y]===void 0&&(w[y]=p[y]);return{$$typeof:n,type:h,key:m,ref:_,props:w,_owner:l.current}}return Hi.Fragment=i,Hi.jsx=d,Hi.jsxs=d,Hi}var _p;function X_(){return _p||(_p=1,su.exports=W_()),su.exports}var R=X_(),hs={},lu={exports:{}},wt={},uu={exports:{}},cu={};/**
|
|
18
|
+
* @license React
|
|
19
|
+
* scheduler.production.min.js
|
|
20
|
+
*
|
|
21
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
22
|
+
*
|
|
23
|
+
* This source code is licensed under the MIT license found in the
|
|
24
|
+
* LICENSE file in the root directory of this source tree.
|
|
25
|
+
*/var Ep;function Q_(){return Ep||(Ep=1,function(e){function n(V,ne){var Q=V.length;V.push(ne);e:for(;0<Q;){var P=Q-1>>>1,B=V[P];if(0<l(B,ne))V[P]=ne,V[Q]=B,Q=P;else break e}}function i(V){return V.length===0?null:V[0]}function s(V){if(V.length===0)return null;var ne=V[0],Q=V.pop();if(Q!==ne){V[0]=Q;e:for(var P=0,B=V.length,ce=B>>>1;P<ce;){var he=2*(P+1)-1,ye=V[he],ve=he+1,ke=V[ve];if(0>l(ye,Q))ve<B&&0>l(ke,ye)?(V[P]=ke,V[ve]=Q,P=ve):(V[P]=ye,V[he]=Q,P=he);else if(ve<B&&0>l(ke,Q))V[P]=ke,V[ve]=Q,P=ve;else break e}}return ne}function l(V,ne){var Q=V.sortIndex-ne.sortIndex;return Q!==0?Q:V.id-ne.id}if(typeof performance=="object"&&typeof performance.now=="function"){var u=performance;e.unstable_now=function(){return u.now()}}else{var d=Date,h=d.now();e.unstable_now=function(){return d.now()-h}}var p=[],E=[],y=1,w=null,m=3,_=!1,v=!1,k=!1,x=typeof setTimeout=="function"?setTimeout:null,N=typeof clearTimeout=="function"?clearTimeout:null,O=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function S(V){for(var ne=i(E);ne!==null;){if(ne.callback===null)s(E);else if(ne.startTime<=V)s(E),ne.sortIndex=ne.expirationTime,n(p,ne);else break;ne=i(E)}}function T(V){if(k=!1,S(V),!v)if(i(p)!==null)v=!0,$e(C);else{var ne=i(E);ne!==null&&Ne(T,ne.startTime-V)}}function C(V,ne){v=!1,k&&(k=!1,N(W),W=-1),_=!0;var Q=m;try{for(S(ne),w=i(p);w!==null&&(!(w.expirationTime>ne)||V&&!fe());){var P=w.callback;if(typeof P=="function"){w.callback=null,m=w.priorityLevel;var B=P(w.expirationTime<=ne);ne=e.unstable_now(),typeof B=="function"?w.callback=B:w===i(p)&&s(p),S(ne)}else s(p);w=i(p)}if(w!==null)var ce=!0;else{var he=i(E);he!==null&&Ne(T,he.startTime-ne),ce=!1}return ce}finally{w=null,m=Q,_=!1}}var L=!1,H=null,W=-1,se=5,te=-1;function fe(){return!(e.unstable_now()-te<se)}function de(){if(H!==null){var V=e.unstable_now();te=V;var ne=!0;try{ne=H(!0,V)}finally{ne?ae():(L=!1,H=null)}}else L=!1}var ae;if(typeof O=="function")ae=function(){O(de)};else if(typeof MessageChannel<"u"){var Fe=new MessageChannel,Ie=Fe.port2;Fe.port1.onmessage=de,ae=function(){Ie.postMessage(null)}}else ae=function(){x(de,0)};function $e(V){H=V,L||(L=!0,ae())}function Ne(V,ne){W=x(function(){V(e.unstable_now())},ne)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(V){V.callback=null},e.unstable_continueExecution=function(){v||_||(v=!0,$e(C))},e.unstable_forceFrameRate=function(V){0>V||125<V?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):se=0<V?Math.floor(1e3/V):5},e.unstable_getCurrentPriorityLevel=function(){return m},e.unstable_getFirstCallbackNode=function(){return i(p)},e.unstable_next=function(V){switch(m){case 1:case 2:case 3:var ne=3;break;default:ne=m}var Q=m;m=ne;try{return V()}finally{m=Q}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(V,ne){switch(V){case 1:case 2:case 3:case 4:case 5:break;default:V=3}var Q=m;m=V;try{return ne()}finally{m=Q}},e.unstable_scheduleCallback=function(V,ne,Q){var P=e.unstable_now();switch(typeof Q=="object"&&Q!==null?(Q=Q.delay,Q=typeof Q=="number"&&0<Q?P+Q:P):Q=P,V){case 1:var B=-1;break;case 2:B=250;break;case 5:B=1073741823;break;case 4:B=1e4;break;default:B=5e3}return B=Q+B,V={id:y++,callback:ne,priorityLevel:V,startTime:Q,expirationTime:B,sortIndex:-1},Q>P?(V.sortIndex=Q,n(E,V),i(p)===null&&V===i(E)&&(k?(N(W),W=-1):k=!0,Ne(T,Q-P))):(V.sortIndex=B,n(p,V),v||_||(v=!0,$e(C))),V},e.unstable_shouldYield=fe,e.unstable_wrapCallback=function(V){var ne=m;return function(){var Q=m;m=ne;try{return V.apply(this,arguments)}finally{m=Q}}}}(cu)),cu}var Sp;function K_(){return Sp||(Sp=1,uu.exports=Q_()),uu.exports}/**
|
|
26
|
+
* @license React
|
|
27
|
+
* react-dom.production.min.js
|
|
28
|
+
*
|
|
29
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
30
|
+
*
|
|
31
|
+
* This source code is licensed under the MIT license found in the
|
|
32
|
+
* LICENSE file in the root directory of this source tree.
|
|
33
|
+
*/var bp;function Y_(){if(bp)return wt;bp=1;var e=ei(),n=K_();function i(t){for(var r="https://reactjs.org/docs/error-decoder.html?invariant="+t,o=1;o<arguments.length;o++)r+="&args[]="+encodeURIComponent(arguments[o]);return"Minified React error #"+t+"; visit "+r+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var s=new Set,l={};function u(t,r){d(t,r),d(t+"Capture",r)}function d(t,r){for(l[t]=r,t=0;t<r.length;t++)s.add(r[t])}var h=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),p=Object.prototype.hasOwnProperty,E=/^[: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]*$/,y={},w={};function m(t){return p.call(w,t)?!0:p.call(y,t)?!1:E.test(t)?w[t]=!0:(y[t]=!0,!1)}function _(t,r,o,a){if(o!==null&&o.type===0)return!1;switch(typeof r){case"function":case"symbol":return!0;case"boolean":return a?!1:o!==null?!o.acceptsBooleans:(t=t.toLowerCase().slice(0,5),t!=="data-"&&t!=="aria-");default:return!1}}function v(t,r,o,a){if(r===null||typeof r>"u"||_(t,r,o,a))return!0;if(a)return!1;if(o!==null)switch(o.type){case 3:return!r;case 4:return r===!1;case 5:return isNaN(r);case 6:return isNaN(r)||1>r}return!1}function k(t,r,o,a,c,f,g){this.acceptsBooleans=r===2||r===3||r===4,this.attributeName=a,this.attributeNamespace=c,this.mustUseProperty=o,this.propertyName=t,this.type=r,this.sanitizeURL=f,this.removeEmptyString=g}var x={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(t){x[t]=new k(t,0,!1,t,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(t){var r=t[0];x[r]=new k(r,1,!1,t[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(t){x[t]=new k(t,2,!1,t.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(t){x[t]=new k(t,2,!1,t,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(t){x[t]=new k(t,3,!1,t.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(t){x[t]=new k(t,3,!0,t,null,!1,!1)}),["capture","download"].forEach(function(t){x[t]=new k(t,4,!1,t,null,!1,!1)}),["cols","rows","size","span"].forEach(function(t){x[t]=new k(t,6,!1,t,null,!1,!1)}),["rowSpan","start"].forEach(function(t){x[t]=new k(t,5,!1,t.toLowerCase(),null,!1,!1)});var N=/[\-:]([a-z])/g;function O(t){return t[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(t){var r=t.replace(N,O);x[r]=new k(r,1,!1,t,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(t){var r=t.replace(N,O);x[r]=new k(r,1,!1,t,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(t){var r=t.replace(N,O);x[r]=new k(r,1,!1,t,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(t){x[t]=new k(t,1,!1,t.toLowerCase(),null,!1,!1)}),x.xlinkHref=new k("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(t){x[t]=new k(t,1,!1,t.toLowerCase(),null,!0,!0)});function S(t,r,o,a){var c=x.hasOwnProperty(r)?x[r]:null;(c!==null?c.type!==0:a||!(2<r.length)||r[0]!=="o"&&r[0]!=="O"||r[1]!=="n"&&r[1]!=="N")&&(v(r,o,c,a)&&(o=null),a||c===null?m(r)&&(o===null?t.removeAttribute(r):t.setAttribute(r,""+o)):c.mustUseProperty?t[c.propertyName]=o===null?c.type===3?!1:"":o:(r=c.attributeName,a=c.attributeNamespace,o===null?t.removeAttribute(r):(c=c.type,o=c===3||c===4&&o===!0?"":""+o,a?t.setAttributeNS(a,r,o):t.setAttribute(r,o))))}var T=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,C=Symbol.for("react.element"),L=Symbol.for("react.portal"),H=Symbol.for("react.fragment"),W=Symbol.for("react.strict_mode"),se=Symbol.for("react.profiler"),te=Symbol.for("react.provider"),fe=Symbol.for("react.context"),de=Symbol.for("react.forward_ref"),ae=Symbol.for("react.suspense"),Fe=Symbol.for("react.suspense_list"),Ie=Symbol.for("react.memo"),$e=Symbol.for("react.lazy"),Ne=Symbol.for("react.offscreen"),V=Symbol.iterator;function ne(t){return t===null||typeof t!="object"?null:(t=V&&t[V]||t["@@iterator"],typeof t=="function"?t:null)}var Q=Object.assign,P;function B(t){if(P===void 0)try{throw Error()}catch(o){var r=o.stack.trim().match(/\n( *(at )?)/);P=r&&r[1]||""}return`
|
|
34
|
+
`+P+t}var ce=!1;function he(t,r){if(!t||ce)return"";ce=!0;var o=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(r)if(r=function(){throw Error()},Object.defineProperty(r.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(r,[])}catch(F){var a=F}Reflect.construct(t,[],r)}else{try{r.call()}catch(F){a=F}t.call(r.prototype)}else{try{throw Error()}catch(F){a=F}t()}}catch(F){if(F&&a&&typeof F.stack=="string"){for(var c=F.stack.split(`
|
|
35
|
+
`),f=a.stack.split(`
|
|
36
|
+
`),g=c.length-1,b=f.length-1;1<=g&&0<=b&&c[g]!==f[b];)b--;for(;1<=g&&0<=b;g--,b--)if(c[g]!==f[b]){if(g!==1||b!==1)do if(g--,b--,0>b||c[g]!==f[b]){var A=`
|
|
37
|
+
`+c[g].replace(" at new "," at ");return t.displayName&&A.includes("<anonymous>")&&(A=A.replace("<anonymous>",t.displayName)),A}while(1<=g&&0<=b);break}}}finally{ce=!1,Error.prepareStackTrace=o}return(t=t?t.displayName||t.name:"")?B(t):""}function ye(t){switch(t.tag){case 5:return B(t.type);case 16:return B("Lazy");case 13:return B("Suspense");case 19:return B("SuspenseList");case 0:case 2:case 15:return t=he(t.type,!1),t;case 11:return t=he(t.type.render,!1),t;case 1:return t=he(t.type,!0),t;default:return""}}function ve(t){if(t==null)return null;if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case H:return"Fragment";case L:return"Portal";case se:return"Profiler";case W:return"StrictMode";case ae:return"Suspense";case Fe:return"SuspenseList"}if(typeof t=="object")switch(t.$$typeof){case fe:return(t.displayName||"Context")+".Consumer";case te:return(t._context.displayName||"Context")+".Provider";case de:var r=t.render;return t=t.displayName,t||(t=r.displayName||r.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case Ie:return r=t.displayName||null,r!==null?r:ve(t.type)||"Memo";case $e:r=t._payload,t=t._init;try{return ve(t(r))}catch{}}return null}function ke(t){var r=t.type;switch(t.tag){case 24:return"Cache";case 9:return(r.displayName||"Context")+".Consumer";case 10:return(r._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return t=r.render,t=t.displayName||t.name||"",r.displayName||(t!==""?"ForwardRef("+t+")":"ForwardRef");case 7:return"Fragment";case 5:return r;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return ve(r);case 8:return r===W?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof r=="function")return r.displayName||r.name||null;if(typeof r=="string")return r}return null}function Te(t){switch(typeof t){case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function Re(t){var r=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(r==="checkbox"||r==="radio")}function Je(t){var r=Re(t)?"checked":"value",o=Object.getOwnPropertyDescriptor(t.constructor.prototype,r),a=""+t[r];if(!t.hasOwnProperty(r)&&typeof o<"u"&&typeof o.get=="function"&&typeof o.set=="function"){var c=o.get,f=o.set;return Object.defineProperty(t,r,{configurable:!0,get:function(){return c.call(this)},set:function(g){a=""+g,f.call(this,g)}}),Object.defineProperty(t,r,{enumerable:o.enumerable}),{getValue:function(){return a},setValue:function(g){a=""+g},stopTracking:function(){t._valueTracker=null,delete t[r]}}}}function ri(t){t._valueTracker||(t._valueTracker=Je(t))}function ut(t){if(!t)return!1;var r=t._valueTracker;if(!r)return!0;var o=r.getValue(),a="";return t&&(a=Re(t)?t.checked?"true":"false":t.value),t=a,t!==o?(r.setValue(t),!0):!1}function nr(t){if(t=t||(typeof document<"u"?document:void 0),typeof t>"u")return null;try{return t.activeElement||t.body}catch{return t.body}}function ha(t,r){var o=r.checked;return Q({},r,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:o??t._wrapperState.initialChecked})}function wf(t,r){var o=r.defaultValue==null?"":r.defaultValue,a=r.checked!=null?r.checked:r.defaultChecked;o=Te(r.value!=null?r.value:o),t._wrapperState={initialChecked:a,initialValue:o,controlled:r.type==="checkbox"||r.type==="radio"?r.checked!=null:r.value!=null}}function xf(t,r){r=r.checked,r!=null&&S(t,"checked",r,!1)}function pa(t,r){xf(t,r);var o=Te(r.value),a=r.type;if(o!=null)a==="number"?(o===0&&t.value===""||t.value!=o)&&(t.value=""+o):t.value!==""+o&&(t.value=""+o);else if(a==="submit"||a==="reset"){t.removeAttribute("value");return}r.hasOwnProperty("value")?ma(t,r.type,o):r.hasOwnProperty("defaultValue")&&ma(t,r.type,Te(r.defaultValue)),r.checked==null&&r.defaultChecked!=null&&(t.defaultChecked=!!r.defaultChecked)}function Tf(t,r,o){if(r.hasOwnProperty("value")||r.hasOwnProperty("defaultValue")){var a=r.type;if(!(a!=="submit"&&a!=="reset"||r.value!==void 0&&r.value!==null))return;r=""+t._wrapperState.initialValue,o||r===t.value||(t.value=r),t.defaultValue=r}o=t.name,o!==""&&(t.name=""),t.defaultChecked=!!t._wrapperState.initialChecked,o!==""&&(t.name=o)}function ma(t,r,o){(r!=="number"||nr(t.ownerDocument)!==t)&&(o==null?t.defaultValue=""+t._wrapperState.initialValue:t.defaultValue!==""+o&&(t.defaultValue=""+o))}var ni=Array.isArray;function xn(t,r,o,a){if(t=t.options,r){r={};for(var c=0;c<o.length;c++)r["$"+o[c]]=!0;for(o=0;o<t.length;o++)c=r.hasOwnProperty("$"+t[o].value),t[o].selected!==c&&(t[o].selected=c),c&&a&&(t[o].defaultSelected=!0)}else{for(o=""+Te(o),r=null,c=0;c<t.length;c++){if(t[c].value===o){t[c].selected=!0,a&&(t[c].defaultSelected=!0);return}r!==null||t[c].disabled||(r=t[c])}r!==null&&(r.selected=!0)}}function ga(t,r){if(r.dangerouslySetInnerHTML!=null)throw Error(i(91));return Q({},r,{value:void 0,defaultValue:void 0,children:""+t._wrapperState.initialValue})}function Cf(t,r){var o=r.value;if(o==null){if(o=r.children,r=r.defaultValue,o!=null){if(r!=null)throw Error(i(92));if(ni(o)){if(1<o.length)throw Error(i(93));o=o[0]}r=o}r==null&&(r=""),o=r}t._wrapperState={initialValue:Te(o)}}function kf(t,r){var o=Te(r.value),a=Te(r.defaultValue);o!=null&&(o=""+o,o!==t.value&&(t.value=o),r.defaultValue==null&&t.defaultValue!==o&&(t.defaultValue=o)),a!=null&&(t.defaultValue=""+a)}function Rf(t){var r=t.textContent;r===t._wrapperState.initialValue&&r!==""&&r!==null&&(t.value=r)}function Of(t){switch(t){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function ya(t,r){return t==null||t==="http://www.w3.org/1999/xhtml"?Of(r):t==="http://www.w3.org/2000/svg"&&r==="foreignObject"?"http://www.w3.org/1999/xhtml":t}var no,Nf=function(t){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(r,o,a,c){MSApp.execUnsafeLocalFunction(function(){return t(r,o,a,c)})}:t}(function(t,r){if(t.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in t)t.innerHTML=r;else{for(no=no||document.createElement("div"),no.innerHTML="<svg>"+r.valueOf().toString()+"</svg>",r=no.firstChild;t.firstChild;)t.removeChild(t.firstChild);for(;r.firstChild;)t.appendChild(r.firstChild)}});function ii(t,r){if(r){var o=t.firstChild;if(o&&o===t.lastChild&&o.nodeType===3){o.nodeValue=r;return}}t.textContent=r}var oi={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Xv=["Webkit","ms","Moz","O"];Object.keys(oi).forEach(function(t){Xv.forEach(function(r){r=r+t.charAt(0).toUpperCase()+t.substring(1),oi[r]=oi[t]})});function Af(t,r,o){return r==null||typeof r=="boolean"||r===""?"":o||typeof r!="number"||r===0||oi.hasOwnProperty(t)&&oi[t]?(""+r).trim():r+"px"}function If(t,r){t=t.style;for(var o in r)if(r.hasOwnProperty(o)){var a=o.indexOf("--")===0,c=Af(o,r[o],a);o==="float"&&(o="cssFloat"),a?t.setProperty(o,c):t[o]=c}}var Qv=Q({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function va(t,r){if(r){if(Qv[t]&&(r.children!=null||r.dangerouslySetInnerHTML!=null))throw Error(i(137,t));if(r.dangerouslySetInnerHTML!=null){if(r.children!=null)throw Error(i(60));if(typeof r.dangerouslySetInnerHTML!="object"||!("__html"in r.dangerouslySetInnerHTML))throw Error(i(61))}if(r.style!=null&&typeof r.style!="object")throw Error(i(62))}}function _a(t,r){if(t.indexOf("-")===-1)return typeof r.is=="string";switch(t){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Ea=null;function Sa(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var ba=null,Tn=null,Cn=null;function Pf(t){if(t=ki(t)){if(typeof ba!="function")throw Error(i(280));var r=t.stateNode;r&&(r=ko(r),ba(t.stateNode,t.type,r))}}function Df(t){Tn?Cn?Cn.push(t):Cn=[t]:Tn=t}function Mf(){if(Tn){var t=Tn,r=Cn;if(Cn=Tn=null,Pf(t),r)for(t=0;t<r.length;t++)Pf(r[t])}}function Ff(t,r){return t(r)}function Lf(){}var wa=!1;function Bf(t,r,o){if(wa)return t(r,o);wa=!0;try{return Ff(t,r,o)}finally{wa=!1,(Tn!==null||Cn!==null)&&(Lf(),Mf())}}function si(t,r){var o=t.stateNode;if(o===null)return null;var a=ko(o);if(a===null)return null;o=a[r];e:switch(r){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(a=!a.disabled)||(t=t.type,a=!(t==="button"||t==="input"||t==="select"||t==="textarea")),t=!a;break e;default:t=!1}if(t)return null;if(o&&typeof o!="function")throw Error(i(231,r,typeof o));return o}var xa=!1;if(h)try{var ai={};Object.defineProperty(ai,"passive",{get:function(){xa=!0}}),window.addEventListener("test",ai,ai),window.removeEventListener("test",ai,ai)}catch{xa=!1}function Kv(t,r,o,a,c,f,g,b,A){var F=Array.prototype.slice.call(arguments,3);try{r.apply(o,F)}catch(z){this.onError(z)}}var li=!1,io=null,oo=!1,Ta=null,Yv={onError:function(t){li=!0,io=t}};function Zv(t,r,o,a,c,f,g,b,A){li=!1,io=null,Kv.apply(Yv,arguments)}function Jv(t,r,o,a,c,f,g,b,A){if(Zv.apply(this,arguments),li){if(li){var F=io;li=!1,io=null}else throw Error(i(198));oo||(oo=!0,Ta=F)}}function Jr(t){var r=t,o=t;if(t.alternate)for(;r.return;)r=r.return;else{t=r;do r=t,r.flags&4098&&(o=r.return),t=r.return;while(t)}return r.tag===3?o:null}function jf(t){if(t.tag===13){var r=t.memoizedState;if(r===null&&(t=t.alternate,t!==null&&(r=t.memoizedState)),r!==null)return r.dehydrated}return null}function zf(t){if(Jr(t)!==t)throw Error(i(188))}function e0(t){var r=t.alternate;if(!r){if(r=Jr(t),r===null)throw Error(i(188));return r!==t?null:t}for(var o=t,a=r;;){var c=o.return;if(c===null)break;var f=c.alternate;if(f===null){if(a=c.return,a!==null){o=a;continue}break}if(c.child===f.child){for(f=c.child;f;){if(f===o)return zf(c),t;if(f===a)return zf(c),r;f=f.sibling}throw Error(i(188))}if(o.return!==a.return)o=c,a=f;else{for(var g=!1,b=c.child;b;){if(b===o){g=!0,o=c,a=f;break}if(b===a){g=!0,a=c,o=f;break}b=b.sibling}if(!g){for(b=f.child;b;){if(b===o){g=!0,o=f,a=c;break}if(b===a){g=!0,a=f,o=c;break}b=b.sibling}if(!g)throw Error(i(189))}}if(o.alternate!==a)throw Error(i(190))}if(o.tag!==3)throw Error(i(188));return o.stateNode.current===o?t:r}function Uf(t){return t=e0(t),t!==null?Hf(t):null}function Hf(t){if(t.tag===5||t.tag===6)return t;for(t=t.child;t!==null;){var r=Hf(t);if(r!==null)return r;t=t.sibling}return null}var Gf=n.unstable_scheduleCallback,$f=n.unstable_cancelCallback,t0=n.unstable_shouldYield,r0=n.unstable_requestPaint,He=n.unstable_now,n0=n.unstable_getCurrentPriorityLevel,Ca=n.unstable_ImmediatePriority,qf=n.unstable_UserBlockingPriority,so=n.unstable_NormalPriority,i0=n.unstable_LowPriority,Vf=n.unstable_IdlePriority,ao=null,ir=null;function o0(t){if(ir&&typeof ir.onCommitFiberRoot=="function")try{ir.onCommitFiberRoot(ao,t,void 0,(t.current.flags&128)===128)}catch{}}var qt=Math.clz32?Math.clz32:l0,s0=Math.log,a0=Math.LN2;function l0(t){return t>>>=0,t===0?32:31-(s0(t)/a0|0)|0}var lo=64,uo=4194304;function ui(t){switch(t&-t){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return t&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return t}}function co(t,r){var o=t.pendingLanes;if(o===0)return 0;var a=0,c=t.suspendedLanes,f=t.pingedLanes,g=o&268435455;if(g!==0){var b=g&~c;b!==0?a=ui(b):(f&=g,f!==0&&(a=ui(f)))}else g=o&~c,g!==0?a=ui(g):f!==0&&(a=ui(f));if(a===0)return 0;if(r!==0&&r!==a&&!(r&c)&&(c=a&-a,f=r&-r,c>=f||c===16&&(f&4194240)!==0))return r;if(a&4&&(a|=o&16),r=t.entangledLanes,r!==0)for(t=t.entanglements,r&=a;0<r;)o=31-qt(r),c=1<<o,a|=t[o],r&=~c;return a}function u0(t,r){switch(t){case 1:case 2:case 4:return r+250;case 8:case 16:case 32:case 64: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 r+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function c0(t,r){for(var o=t.suspendedLanes,a=t.pingedLanes,c=t.expirationTimes,f=t.pendingLanes;0<f;){var g=31-qt(f),b=1<<g,A=c[g];A===-1?(!(b&o)||b&a)&&(c[g]=u0(b,r)):A<=r&&(t.expiredLanes|=b),f&=~b}}function ka(t){return t=t.pendingLanes&-1073741825,t!==0?t:t&1073741824?1073741824:0}function Wf(){var t=lo;return lo<<=1,!(lo&4194240)&&(lo=64),t}function Ra(t){for(var r=[],o=0;31>o;o++)r.push(t);return r}function ci(t,r,o){t.pendingLanes|=r,r!==536870912&&(t.suspendedLanes=0,t.pingedLanes=0),t=t.eventTimes,r=31-qt(r),t[r]=o}function f0(t,r){var o=t.pendingLanes&~r;t.pendingLanes=r,t.suspendedLanes=0,t.pingedLanes=0,t.expiredLanes&=r,t.mutableReadLanes&=r,t.entangledLanes&=r,r=t.entanglements;var a=t.eventTimes;for(t=t.expirationTimes;0<o;){var c=31-qt(o),f=1<<c;r[c]=0,a[c]=-1,t[c]=-1,o&=~f}}function Oa(t,r){var o=t.entangledLanes|=r;for(t=t.entanglements;o;){var a=31-qt(o),c=1<<a;c&r|t[a]&r&&(t[a]|=r),o&=~c}}var Oe=0;function Xf(t){return t&=-t,1<t?4<t?t&268435455?16:536870912:4:1}var Qf,Na,Kf,Yf,Zf,Aa=!1,fo=[],Rr=null,Or=null,Nr=null,fi=new Map,di=new Map,Ar=[],d0="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 submit".split(" ");function Jf(t,r){switch(t){case"focusin":case"focusout":Rr=null;break;case"dragenter":case"dragleave":Or=null;break;case"mouseover":case"mouseout":Nr=null;break;case"pointerover":case"pointerout":fi.delete(r.pointerId);break;case"gotpointercapture":case"lostpointercapture":di.delete(r.pointerId)}}function hi(t,r,o,a,c,f){return t===null||t.nativeEvent!==f?(t={blockedOn:r,domEventName:o,eventSystemFlags:a,nativeEvent:f,targetContainers:[c]},r!==null&&(r=ki(r),r!==null&&Na(r)),t):(t.eventSystemFlags|=a,r=t.targetContainers,c!==null&&r.indexOf(c)===-1&&r.push(c),t)}function h0(t,r,o,a,c){switch(r){case"focusin":return Rr=hi(Rr,t,r,o,a,c),!0;case"dragenter":return Or=hi(Or,t,r,o,a,c),!0;case"mouseover":return Nr=hi(Nr,t,r,o,a,c),!0;case"pointerover":var f=c.pointerId;return fi.set(f,hi(fi.get(f)||null,t,r,o,a,c)),!0;case"gotpointercapture":return f=c.pointerId,di.set(f,hi(di.get(f)||null,t,r,o,a,c)),!0}return!1}function ed(t){var r=en(t.target);if(r!==null){var o=Jr(r);if(o!==null){if(r=o.tag,r===13){if(r=jf(o),r!==null){t.blockedOn=r,Zf(t.priority,function(){Kf(o)});return}}else if(r===3&&o.stateNode.current.memoizedState.isDehydrated){t.blockedOn=o.tag===3?o.stateNode.containerInfo:null;return}}}t.blockedOn=null}function ho(t){if(t.blockedOn!==null)return!1;for(var r=t.targetContainers;0<r.length;){var o=Pa(t.domEventName,t.eventSystemFlags,r[0],t.nativeEvent);if(o===null){o=t.nativeEvent;var a=new o.constructor(o.type,o);Ea=a,o.target.dispatchEvent(a),Ea=null}else return r=ki(o),r!==null&&Na(r),t.blockedOn=o,!1;r.shift()}return!0}function td(t,r,o){ho(t)&&o.delete(r)}function p0(){Aa=!1,Rr!==null&&ho(Rr)&&(Rr=null),Or!==null&&ho(Or)&&(Or=null),Nr!==null&&ho(Nr)&&(Nr=null),fi.forEach(td),di.forEach(td)}function pi(t,r){t.blockedOn===r&&(t.blockedOn=null,Aa||(Aa=!0,n.unstable_scheduleCallback(n.unstable_NormalPriority,p0)))}function mi(t){function r(c){return pi(c,t)}if(0<fo.length){pi(fo[0],t);for(var o=1;o<fo.length;o++){var a=fo[o];a.blockedOn===t&&(a.blockedOn=null)}}for(Rr!==null&&pi(Rr,t),Or!==null&&pi(Or,t),Nr!==null&&pi(Nr,t),fi.forEach(r),di.forEach(r),o=0;o<Ar.length;o++)a=Ar[o],a.blockedOn===t&&(a.blockedOn=null);for(;0<Ar.length&&(o=Ar[0],o.blockedOn===null);)ed(o),o.blockedOn===null&&Ar.shift()}var kn=T.ReactCurrentBatchConfig,po=!0;function m0(t,r,o,a){var c=Oe,f=kn.transition;kn.transition=null;try{Oe=1,Ia(t,r,o,a)}finally{Oe=c,kn.transition=f}}function g0(t,r,o,a){var c=Oe,f=kn.transition;kn.transition=null;try{Oe=4,Ia(t,r,o,a)}finally{Oe=c,kn.transition=f}}function Ia(t,r,o,a){if(po){var c=Pa(t,r,o,a);if(c===null)Ka(t,r,a,mo,o),Jf(t,a);else if(h0(c,t,r,o,a))a.stopPropagation();else if(Jf(t,a),r&4&&-1<d0.indexOf(t)){for(;c!==null;){var f=ki(c);if(f!==null&&Qf(f),f=Pa(t,r,o,a),f===null&&Ka(t,r,a,mo,o),f===c)break;c=f}c!==null&&a.stopPropagation()}else Ka(t,r,a,null,o)}}var mo=null;function Pa(t,r,o,a){if(mo=null,t=Sa(a),t=en(t),t!==null)if(r=Jr(t),r===null)t=null;else if(o=r.tag,o===13){if(t=jf(r),t!==null)return t;t=null}else if(o===3){if(r.stateNode.current.memoizedState.isDehydrated)return r.tag===3?r.stateNode.containerInfo:null;t=null}else r!==t&&(t=null);return mo=t,null}function rd(t){switch(t){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"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 1;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"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(n0()){case Ca:return 1;case qf:return 4;case so:case i0:return 16;case Vf:return 536870912;default:return 16}default:return 16}}var Ir=null,Da=null,go=null;function nd(){if(go)return go;var t,r=Da,o=r.length,a,c="value"in Ir?Ir.value:Ir.textContent,f=c.length;for(t=0;t<o&&r[t]===c[t];t++);var g=o-t;for(a=1;a<=g&&r[o-a]===c[f-a];a++);return go=c.slice(t,1<a?1-a:void 0)}function yo(t){var r=t.keyCode;return"charCode"in t?(t=t.charCode,t===0&&r===13&&(t=13)):t=r,t===10&&(t=13),32<=t||t===13?t:0}function vo(){return!0}function id(){return!1}function Tt(t){function r(o,a,c,f,g){this._reactName=o,this._targetInst=c,this.type=a,this.nativeEvent=f,this.target=g,this.currentTarget=null;for(var b in t)t.hasOwnProperty(b)&&(o=t[b],this[b]=o?o(f):f[b]);return this.isDefaultPrevented=(f.defaultPrevented!=null?f.defaultPrevented:f.returnValue===!1)?vo:id,this.isPropagationStopped=id,this}return Q(r.prototype,{preventDefault:function(){this.defaultPrevented=!0;var o=this.nativeEvent;o&&(o.preventDefault?o.preventDefault():typeof o.returnValue!="unknown"&&(o.returnValue=!1),this.isDefaultPrevented=vo)},stopPropagation:function(){var o=this.nativeEvent;o&&(o.stopPropagation?o.stopPropagation():typeof o.cancelBubble!="unknown"&&(o.cancelBubble=!0),this.isPropagationStopped=vo)},persist:function(){},isPersistent:vo}),r}var Rn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Ma=Tt(Rn),gi=Q({},Rn,{view:0,detail:0}),y0=Tt(gi),Fa,La,yi,_o=Q({},gi,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:ja,button:0,buttons:0,relatedTarget:function(t){return t.relatedTarget===void 0?t.fromElement===t.srcElement?t.toElement:t.fromElement:t.relatedTarget},movementX:function(t){return"movementX"in t?t.movementX:(t!==yi&&(yi&&t.type==="mousemove"?(Fa=t.screenX-yi.screenX,La=t.screenY-yi.screenY):La=Fa=0,yi=t),Fa)},movementY:function(t){return"movementY"in t?t.movementY:La}}),od=Tt(_o),v0=Q({},_o,{dataTransfer:0}),_0=Tt(v0),E0=Q({},gi,{relatedTarget:0}),Ba=Tt(E0),S0=Q({},Rn,{animationName:0,elapsedTime:0,pseudoElement:0}),b0=Tt(S0),w0=Q({},Rn,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),x0=Tt(w0),T0=Q({},Rn,{data:0}),sd=Tt(T0),C0={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},k0={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"},R0={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function O0(t){var r=this.nativeEvent;return r.getModifierState?r.getModifierState(t):(t=R0[t])?!!r[t]:!1}function ja(){return O0}var N0=Q({},gi,{key:function(t){if(t.key){var r=C0[t.key]||t.key;if(r!=="Unidentified")return r}return t.type==="keypress"?(t=yo(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?k0[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:ja,charCode:function(t){return t.type==="keypress"?yo(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?yo(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),A0=Tt(N0),I0=Q({},_o,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),ad=Tt(I0),P0=Q({},gi,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:ja}),D0=Tt(P0),M0=Q({},Rn,{propertyName:0,elapsedTime:0,pseudoElement:0}),F0=Tt(M0),L0=Q({},_o,{deltaX:function(t){return"deltaX"in t?t.deltaX:"wheelDeltaX"in t?-t.wheelDeltaX:0},deltaY:function(t){return"deltaY"in t?t.deltaY:"wheelDeltaY"in t?-t.wheelDeltaY:"wheelDelta"in t?-t.wheelDelta:0},deltaZ:0,deltaMode:0}),B0=Tt(L0),j0=[9,13,27,32],za=h&&"CompositionEvent"in window,vi=null;h&&"documentMode"in document&&(vi=document.documentMode);var z0=h&&"TextEvent"in window&&!vi,ld=h&&(!za||vi&&8<vi&&11>=vi),ud=" ",cd=!1;function fd(t,r){switch(t){case"keyup":return j0.indexOf(r.keyCode)!==-1;case"keydown":return r.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function dd(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var On=!1;function U0(t,r){switch(t){case"compositionend":return dd(r);case"keypress":return r.which!==32?null:(cd=!0,ud);case"textInput":return t=r.data,t===ud&&cd?null:t;default:return null}}function H0(t,r){if(On)return t==="compositionend"||!za&&fd(t,r)?(t=nd(),go=Da=Ir=null,On=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(r.ctrlKey||r.altKey||r.metaKey)||r.ctrlKey&&r.altKey){if(r.char&&1<r.char.length)return r.char;if(r.which)return String.fromCharCode(r.which)}return null;case"compositionend":return ld&&r.locale!=="ko"?null:r.data;default:return null}}var G0={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 hd(t){var r=t&&t.nodeName&&t.nodeName.toLowerCase();return r==="input"?!!G0[t.type]:r==="textarea"}function pd(t,r,o,a){Df(a),r=xo(r,"onChange"),0<r.length&&(o=new Ma("onChange","change",null,o,a),t.push({event:o,listeners:r}))}var _i=null,Ei=null;function $0(t){Id(t,0)}function Eo(t){var r=Dn(t);if(ut(r))return t}function q0(t,r){if(t==="change")return r}var md=!1;if(h){var Ua;if(h){var Ha="oninput"in document;if(!Ha){var gd=document.createElement("div");gd.setAttribute("oninput","return;"),Ha=typeof gd.oninput=="function"}Ua=Ha}else Ua=!1;md=Ua&&(!document.documentMode||9<document.documentMode)}function yd(){_i&&(_i.detachEvent("onpropertychange",vd),Ei=_i=null)}function vd(t){if(t.propertyName==="value"&&Eo(Ei)){var r=[];pd(r,Ei,t,Sa(t)),Bf($0,r)}}function V0(t,r,o){t==="focusin"?(yd(),_i=r,Ei=o,_i.attachEvent("onpropertychange",vd)):t==="focusout"&&yd()}function W0(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return Eo(Ei)}function X0(t,r){if(t==="click")return Eo(r)}function Q0(t,r){if(t==="input"||t==="change")return Eo(r)}function K0(t,r){return t===r&&(t!==0||1/t===1/r)||t!==t&&r!==r}var Vt=typeof Object.is=="function"?Object.is:K0;function Si(t,r){if(Vt(t,r))return!0;if(typeof t!="object"||t===null||typeof r!="object"||r===null)return!1;var o=Object.keys(t),a=Object.keys(r);if(o.length!==a.length)return!1;for(a=0;a<o.length;a++){var c=o[a];if(!p.call(r,c)||!Vt(t[c],r[c]))return!1}return!0}function _d(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function Ed(t,r){var o=_d(t);t=0;for(var a;o;){if(o.nodeType===3){if(a=t+o.textContent.length,t<=r&&a>=r)return{node:o,offset:r-t};t=a}e:{for(;o;){if(o.nextSibling){o=o.nextSibling;break e}o=o.parentNode}o=void 0}o=_d(o)}}function Sd(t,r){return t&&r?t===r?!0:t&&t.nodeType===3?!1:r&&r.nodeType===3?Sd(t,r.parentNode):"contains"in t?t.contains(r):t.compareDocumentPosition?!!(t.compareDocumentPosition(r)&16):!1:!1}function bd(){for(var t=window,r=nr();r instanceof t.HTMLIFrameElement;){try{var o=typeof r.contentWindow.location.href=="string"}catch{o=!1}if(o)t=r.contentWindow;else break;r=nr(t.document)}return r}function Ga(t){var r=t&&t.nodeName&&t.nodeName.toLowerCase();return r&&(r==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||r==="textarea"||t.contentEditable==="true")}function Y0(t){var r=bd(),o=t.focusedElem,a=t.selectionRange;if(r!==o&&o&&o.ownerDocument&&Sd(o.ownerDocument.documentElement,o)){if(a!==null&&Ga(o)){if(r=a.start,t=a.end,t===void 0&&(t=r),"selectionStart"in o)o.selectionStart=r,o.selectionEnd=Math.min(t,o.value.length);else if(t=(r=o.ownerDocument||document)&&r.defaultView||window,t.getSelection){t=t.getSelection();var c=o.textContent.length,f=Math.min(a.start,c);a=a.end===void 0?f:Math.min(a.end,c),!t.extend&&f>a&&(c=a,a=f,f=c),c=Ed(o,f);var g=Ed(o,a);c&&g&&(t.rangeCount!==1||t.anchorNode!==c.node||t.anchorOffset!==c.offset||t.focusNode!==g.node||t.focusOffset!==g.offset)&&(r=r.createRange(),r.setStart(c.node,c.offset),t.removeAllRanges(),f>a?(t.addRange(r),t.extend(g.node,g.offset)):(r.setEnd(g.node,g.offset),t.addRange(r)))}}for(r=[],t=o;t=t.parentNode;)t.nodeType===1&&r.push({element:t,left:t.scrollLeft,top:t.scrollTop});for(typeof o.focus=="function"&&o.focus(),o=0;o<r.length;o++)t=r[o],t.element.scrollLeft=t.left,t.element.scrollTop=t.top}}var Z0=h&&"documentMode"in document&&11>=document.documentMode,Nn=null,$a=null,bi=null,qa=!1;function wd(t,r,o){var a=o.window===o?o.document:o.nodeType===9?o:o.ownerDocument;qa||Nn==null||Nn!==nr(a)||(a=Nn,"selectionStart"in a&&Ga(a)?a={start:a.selectionStart,end:a.selectionEnd}:(a=(a.ownerDocument&&a.ownerDocument.defaultView||window).getSelection(),a={anchorNode:a.anchorNode,anchorOffset:a.anchorOffset,focusNode:a.focusNode,focusOffset:a.focusOffset}),bi&&Si(bi,a)||(bi=a,a=xo($a,"onSelect"),0<a.length&&(r=new Ma("onSelect","select",null,r,o),t.push({event:r,listeners:a}),r.target=Nn)))}function So(t,r){var o={};return o[t.toLowerCase()]=r.toLowerCase(),o["Webkit"+t]="webkit"+r,o["Moz"+t]="moz"+r,o}var An={animationend:So("Animation","AnimationEnd"),animationiteration:So("Animation","AnimationIteration"),animationstart:So("Animation","AnimationStart"),transitionend:So("Transition","TransitionEnd")},Va={},xd={};h&&(xd=document.createElement("div").style,"AnimationEvent"in window||(delete An.animationend.animation,delete An.animationiteration.animation,delete An.animationstart.animation),"TransitionEvent"in window||delete An.transitionend.transition);function bo(t){if(Va[t])return Va[t];if(!An[t])return t;var r=An[t],o;for(o in r)if(r.hasOwnProperty(o)&&o in xd)return Va[t]=r[o];return t}var Td=bo("animationend"),Cd=bo("animationiteration"),kd=bo("animationstart"),Rd=bo("transitionend"),Od=new Map,Nd="abort auxClick 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(" ");function Pr(t,r){Od.set(t,r),u(r,[t])}for(var Wa=0;Wa<Nd.length;Wa++){var Xa=Nd[Wa],J0=Xa.toLowerCase(),e_=Xa[0].toUpperCase()+Xa.slice(1);Pr(J0,"on"+e_)}Pr(Td,"onAnimationEnd"),Pr(Cd,"onAnimationIteration"),Pr(kd,"onAnimationStart"),Pr("dblclick","onDoubleClick"),Pr("focusin","onFocus"),Pr("focusout","onBlur"),Pr(Rd,"onTransitionEnd"),d("onMouseEnter",["mouseout","mouseover"]),d("onMouseLeave",["mouseout","mouseover"]),d("onPointerEnter",["pointerout","pointerover"]),d("onPointerLeave",["pointerout","pointerover"]),u("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),u("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),u("onBeforeInput",["compositionend","keypress","textInput","paste"]),u("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),u("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),u("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var wi="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),t_=new Set("cancel close invalid load scroll toggle".split(" ").concat(wi));function Ad(t,r,o){var a=t.type||"unknown-event";t.currentTarget=o,Jv(a,r,void 0,t),t.currentTarget=null}function Id(t,r){r=(r&4)!==0;for(var o=0;o<t.length;o++){var a=t[o],c=a.event;a=a.listeners;e:{var f=void 0;if(r)for(var g=a.length-1;0<=g;g--){var b=a[g],A=b.instance,F=b.currentTarget;if(b=b.listener,A!==f&&c.isPropagationStopped())break e;Ad(c,b,F),f=A}else for(g=0;g<a.length;g++){if(b=a[g],A=b.instance,F=b.currentTarget,b=b.listener,A!==f&&c.isPropagationStopped())break e;Ad(c,b,F),f=A}}}if(oo)throw t=Ta,oo=!1,Ta=null,t}function Pe(t,r){var o=r[rl];o===void 0&&(o=r[rl]=new Set);var a=t+"__bubble";o.has(a)||(Pd(r,t,2,!1),o.add(a))}function Qa(t,r,o){var a=0;r&&(a|=4),Pd(o,t,a,r)}var wo="_reactListening"+Math.random().toString(36).slice(2);function xi(t){if(!t[wo]){t[wo]=!0,s.forEach(function(o){o!=="selectionchange"&&(t_.has(o)||Qa(o,!1,t),Qa(o,!0,t))});var r=t.nodeType===9?t:t.ownerDocument;r===null||r[wo]||(r[wo]=!0,Qa("selectionchange",!1,r))}}function Pd(t,r,o,a){switch(rd(r)){case 1:var c=m0;break;case 4:c=g0;break;default:c=Ia}o=c.bind(null,r,o,t),c=void 0,!xa||r!=="touchstart"&&r!=="touchmove"&&r!=="wheel"||(c=!0),a?c!==void 0?t.addEventListener(r,o,{capture:!0,passive:c}):t.addEventListener(r,o,!0):c!==void 0?t.addEventListener(r,o,{passive:c}):t.addEventListener(r,o,!1)}function Ka(t,r,o,a,c){var f=a;if(!(r&1)&&!(r&2)&&a!==null)e:for(;;){if(a===null)return;var g=a.tag;if(g===3||g===4){var b=a.stateNode.containerInfo;if(b===c||b.nodeType===8&&b.parentNode===c)break;if(g===4)for(g=a.return;g!==null;){var A=g.tag;if((A===3||A===4)&&(A=g.stateNode.containerInfo,A===c||A.nodeType===8&&A.parentNode===c))return;g=g.return}for(;b!==null;){if(g=en(b),g===null)return;if(A=g.tag,A===5||A===6){a=f=g;continue e}b=b.parentNode}}a=a.return}Bf(function(){var F=f,z=Sa(o),G=[];e:{var j=Od.get(t);if(j!==void 0){var X=Ma,Y=t;switch(t){case"keypress":if(yo(o)===0)break e;case"keydown":case"keyup":X=A0;break;case"focusin":Y="focus",X=Ba;break;case"focusout":Y="blur",X=Ba;break;case"beforeblur":case"afterblur":X=Ba;break;case"click":if(o.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":X=od;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":X=_0;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":X=D0;break;case Td:case Cd:case kd:X=b0;break;case Rd:X=F0;break;case"scroll":X=y0;break;case"wheel":X=B0;break;case"copy":case"cut":case"paste":X=x0;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":X=ad}var Z=(r&4)!==0,Ge=!Z&&t==="scroll",D=Z?j!==null?j+"Capture":null:j;Z=[];for(var I=F,M;I!==null;){M=I;var $=M.stateNode;if(M.tag===5&&$!==null&&(M=$,D!==null&&($=si(I,D),$!=null&&Z.push(Ti(I,$,M)))),Ge)break;I=I.return}0<Z.length&&(j=new X(j,Y,null,o,z),G.push({event:j,listeners:Z}))}}if(!(r&7)){e:{if(j=t==="mouseover"||t==="pointerover",X=t==="mouseout"||t==="pointerout",j&&o!==Ea&&(Y=o.relatedTarget||o.fromElement)&&(en(Y)||Y[dr]))break e;if((X||j)&&(j=z.window===z?z:(j=z.ownerDocument)?j.defaultView||j.parentWindow:window,X?(Y=o.relatedTarget||o.toElement,X=F,Y=Y?en(Y):null,Y!==null&&(Ge=Jr(Y),Y!==Ge||Y.tag!==5&&Y.tag!==6)&&(Y=null)):(X=null,Y=F),X!==Y)){if(Z=od,$="onMouseLeave",D="onMouseEnter",I="mouse",(t==="pointerout"||t==="pointerover")&&(Z=ad,$="onPointerLeave",D="onPointerEnter",I="pointer"),Ge=X==null?j:Dn(X),M=Y==null?j:Dn(Y),j=new Z($,I+"leave",X,o,z),j.target=Ge,j.relatedTarget=M,$=null,en(z)===F&&(Z=new Z(D,I+"enter",Y,o,z),Z.target=M,Z.relatedTarget=Ge,$=Z),Ge=$,X&&Y)t:{for(Z=X,D=Y,I=0,M=Z;M;M=In(M))I++;for(M=0,$=D;$;$=In($))M++;for(;0<I-M;)Z=In(Z),I--;for(;0<M-I;)D=In(D),M--;for(;I--;){if(Z===D||D!==null&&Z===D.alternate)break t;Z=In(Z),D=In(D)}Z=null}else Z=null;X!==null&&Dd(G,j,X,Z,!1),Y!==null&&Ge!==null&&Dd(G,Ge,Y,Z,!0)}}e:{if(j=F?Dn(F):window,X=j.nodeName&&j.nodeName.toLowerCase(),X==="select"||X==="input"&&j.type==="file")var ee=q0;else if(hd(j))if(md)ee=Q0;else{ee=W0;var ie=V0}else(X=j.nodeName)&&X.toLowerCase()==="input"&&(j.type==="checkbox"||j.type==="radio")&&(ee=X0);if(ee&&(ee=ee(t,F))){pd(G,ee,o,z);break e}ie&&ie(t,j,F),t==="focusout"&&(ie=j._wrapperState)&&ie.controlled&&j.type==="number"&&ma(j,"number",j.value)}switch(ie=F?Dn(F):window,t){case"focusin":(hd(ie)||ie.contentEditable==="true")&&(Nn=ie,$a=F,bi=null);break;case"focusout":bi=$a=Nn=null;break;case"mousedown":qa=!0;break;case"contextmenu":case"mouseup":case"dragend":qa=!1,wd(G,o,z);break;case"selectionchange":if(Z0)break;case"keydown":case"keyup":wd(G,o,z)}var oe;if(za)e:{switch(t){case"compositionstart":var le="onCompositionStart";break e;case"compositionend":le="onCompositionEnd";break e;case"compositionupdate":le="onCompositionUpdate";break e}le=void 0}else On?fd(t,o)&&(le="onCompositionEnd"):t==="keydown"&&o.keyCode===229&&(le="onCompositionStart");le&&(ld&&o.locale!=="ko"&&(On||le!=="onCompositionStart"?le==="onCompositionEnd"&&On&&(oe=nd()):(Ir=z,Da="value"in Ir?Ir.value:Ir.textContent,On=!0)),ie=xo(F,le),0<ie.length&&(le=new sd(le,t,null,o,z),G.push({event:le,listeners:ie}),oe?le.data=oe:(oe=dd(o),oe!==null&&(le.data=oe)))),(oe=z0?U0(t,o):H0(t,o))&&(F=xo(F,"onBeforeInput"),0<F.length&&(z=new sd("onBeforeInput","beforeinput",null,o,z),G.push({event:z,listeners:F}),z.data=oe))}Id(G,r)})}function Ti(t,r,o){return{instance:t,listener:r,currentTarget:o}}function xo(t,r){for(var o=r+"Capture",a=[];t!==null;){var c=t,f=c.stateNode;c.tag===5&&f!==null&&(c=f,f=si(t,o),f!=null&&a.unshift(Ti(t,f,c)),f=si(t,r),f!=null&&a.push(Ti(t,f,c))),t=t.return}return a}function In(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5);return t||null}function Dd(t,r,o,a,c){for(var f=r._reactName,g=[];o!==null&&o!==a;){var b=o,A=b.alternate,F=b.stateNode;if(A!==null&&A===a)break;b.tag===5&&F!==null&&(b=F,c?(A=si(o,f),A!=null&&g.unshift(Ti(o,A,b))):c||(A=si(o,f),A!=null&&g.push(Ti(o,A,b)))),o=o.return}g.length!==0&&t.push({event:r,listeners:g})}var r_=/\r\n?/g,n_=/\u0000|\uFFFD/g;function Md(t){return(typeof t=="string"?t:""+t).replace(r_,`
|
|
38
|
+
`).replace(n_,"")}function To(t,r,o){if(r=Md(r),Md(t)!==r&&o)throw Error(i(425))}function Co(){}var Ya=null,Za=null;function Ja(t,r){return t==="textarea"||t==="noscript"||typeof r.children=="string"||typeof r.children=="number"||typeof r.dangerouslySetInnerHTML=="object"&&r.dangerouslySetInnerHTML!==null&&r.dangerouslySetInnerHTML.__html!=null}var el=typeof setTimeout=="function"?setTimeout:void 0,i_=typeof clearTimeout=="function"?clearTimeout:void 0,Fd=typeof Promise=="function"?Promise:void 0,o_=typeof queueMicrotask=="function"?queueMicrotask:typeof Fd<"u"?function(t){return Fd.resolve(null).then(t).catch(s_)}:el;function s_(t){setTimeout(function(){throw t})}function tl(t,r){var o=r,a=0;do{var c=o.nextSibling;if(t.removeChild(o),c&&c.nodeType===8)if(o=c.data,o==="/$"){if(a===0){t.removeChild(c),mi(r);return}a--}else o!=="$"&&o!=="$?"&&o!=="$!"||a++;o=c}while(o);mi(r)}function Dr(t){for(;t!=null;t=t.nextSibling){var r=t.nodeType;if(r===1||r===3)break;if(r===8){if(r=t.data,r==="$"||r==="$!"||r==="$?")break;if(r==="/$")return null}}return t}function Ld(t){t=t.previousSibling;for(var r=0;t;){if(t.nodeType===8){var o=t.data;if(o==="$"||o==="$!"||o==="$?"){if(r===0)return t;r--}else o==="/$"&&r++}t=t.previousSibling}return null}var Pn=Math.random().toString(36).slice(2),or="__reactFiber$"+Pn,Ci="__reactProps$"+Pn,dr="__reactContainer$"+Pn,rl="__reactEvents$"+Pn,a_="__reactListeners$"+Pn,l_="__reactHandles$"+Pn;function en(t){var r=t[or];if(r)return r;for(var o=t.parentNode;o;){if(r=o[dr]||o[or]){if(o=r.alternate,r.child!==null||o!==null&&o.child!==null)for(t=Ld(t);t!==null;){if(o=t[or])return o;t=Ld(t)}return r}t=o,o=t.parentNode}return null}function ki(t){return t=t[or]||t[dr],!t||t.tag!==5&&t.tag!==6&&t.tag!==13&&t.tag!==3?null:t}function Dn(t){if(t.tag===5||t.tag===6)return t.stateNode;throw Error(i(33))}function ko(t){return t[Ci]||null}var nl=[],Mn=-1;function Mr(t){return{current:t}}function De(t){0>Mn||(t.current=nl[Mn],nl[Mn]=null,Mn--)}function Ae(t,r){Mn++,nl[Mn]=t.current,t.current=r}var Fr={},ot=Mr(Fr),vt=Mr(!1),tn=Fr;function Fn(t,r){var o=t.type.contextTypes;if(!o)return Fr;var a=t.stateNode;if(a&&a.__reactInternalMemoizedUnmaskedChildContext===r)return a.__reactInternalMemoizedMaskedChildContext;var c={},f;for(f in o)c[f]=r[f];return a&&(t=t.stateNode,t.__reactInternalMemoizedUnmaskedChildContext=r,t.__reactInternalMemoizedMaskedChildContext=c),c}function _t(t){return t=t.childContextTypes,t!=null}function Ro(){De(vt),De(ot)}function Bd(t,r,o){if(ot.current!==Fr)throw Error(i(168));Ae(ot,r),Ae(vt,o)}function jd(t,r,o){var a=t.stateNode;if(r=r.childContextTypes,typeof a.getChildContext!="function")return o;a=a.getChildContext();for(var c in a)if(!(c in r))throw Error(i(108,ke(t)||"Unknown",c));return Q({},o,a)}function Oo(t){return t=(t=t.stateNode)&&t.__reactInternalMemoizedMergedChildContext||Fr,tn=ot.current,Ae(ot,t),Ae(vt,vt.current),!0}function zd(t,r,o){var a=t.stateNode;if(!a)throw Error(i(169));o?(t=jd(t,r,tn),a.__reactInternalMemoizedMergedChildContext=t,De(vt),De(ot),Ae(ot,t)):De(vt),Ae(vt,o)}var hr=null,No=!1,il=!1;function Ud(t){hr===null?hr=[t]:hr.push(t)}function u_(t){No=!0,Ud(t)}function Lr(){if(!il&&hr!==null){il=!0;var t=0,r=Oe;try{var o=hr;for(Oe=1;t<o.length;t++){var a=o[t];do a=a(!0);while(a!==null)}hr=null,No=!1}catch(c){throw hr!==null&&(hr=hr.slice(t+1)),Gf(Ca,Lr),c}finally{Oe=r,il=!1}}return null}var Ln=[],Bn=0,Ao=null,Io=0,Mt=[],Ft=0,rn=null,pr=1,mr="";function nn(t,r){Ln[Bn++]=Io,Ln[Bn++]=Ao,Ao=t,Io=r}function Hd(t,r,o){Mt[Ft++]=pr,Mt[Ft++]=mr,Mt[Ft++]=rn,rn=t;var a=pr;t=mr;var c=32-qt(a)-1;a&=~(1<<c),o+=1;var f=32-qt(r)+c;if(30<f){var g=c-c%5;f=(a&(1<<g)-1).toString(32),a>>=g,c-=g,pr=1<<32-qt(r)+c|o<<c|a,mr=f+t}else pr=1<<f|o<<c|a,mr=t}function ol(t){t.return!==null&&(nn(t,1),Hd(t,1,0))}function sl(t){for(;t===Ao;)Ao=Ln[--Bn],Ln[Bn]=null,Io=Ln[--Bn],Ln[Bn]=null;for(;t===rn;)rn=Mt[--Ft],Mt[Ft]=null,mr=Mt[--Ft],Mt[Ft]=null,pr=Mt[--Ft],Mt[Ft]=null}var Ct=null,kt=null,Le=!1,Wt=null;function Gd(t,r){var o=zt(5,null,null,0);o.elementType="DELETED",o.stateNode=r,o.return=t,r=t.deletions,r===null?(t.deletions=[o],t.flags|=16):r.push(o)}function $d(t,r){switch(t.tag){case 5:var o=t.type;return r=r.nodeType!==1||o.toLowerCase()!==r.nodeName.toLowerCase()?null:r,r!==null?(t.stateNode=r,Ct=t,kt=Dr(r.firstChild),!0):!1;case 6:return r=t.pendingProps===""||r.nodeType!==3?null:r,r!==null?(t.stateNode=r,Ct=t,kt=null,!0):!1;case 13:return r=r.nodeType!==8?null:r,r!==null?(o=rn!==null?{id:pr,overflow:mr}:null,t.memoizedState={dehydrated:r,treeContext:o,retryLane:1073741824},o=zt(18,null,null,0),o.stateNode=r,o.return=t,t.child=o,Ct=t,kt=null,!0):!1;default:return!1}}function al(t){return(t.mode&1)!==0&&(t.flags&128)===0}function ll(t){if(Le){var r=kt;if(r){var o=r;if(!$d(t,r)){if(al(t))throw Error(i(418));r=Dr(o.nextSibling);var a=Ct;r&&$d(t,r)?Gd(a,o):(t.flags=t.flags&-4097|2,Le=!1,Ct=t)}}else{if(al(t))throw Error(i(418));t.flags=t.flags&-4097|2,Le=!1,Ct=t}}}function qd(t){for(t=t.return;t!==null&&t.tag!==5&&t.tag!==3&&t.tag!==13;)t=t.return;Ct=t}function Po(t){if(t!==Ct)return!1;if(!Le)return qd(t),Le=!0,!1;var r;if((r=t.tag!==3)&&!(r=t.tag!==5)&&(r=t.type,r=r!=="head"&&r!=="body"&&!Ja(t.type,t.memoizedProps)),r&&(r=kt)){if(al(t))throw Vd(),Error(i(418));for(;r;)Gd(t,r),r=Dr(r.nextSibling)}if(qd(t),t.tag===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(i(317));e:{for(t=t.nextSibling,r=0;t;){if(t.nodeType===8){var o=t.data;if(o==="/$"){if(r===0){kt=Dr(t.nextSibling);break e}r--}else o!=="$"&&o!=="$!"&&o!=="$?"||r++}t=t.nextSibling}kt=null}}else kt=Ct?Dr(t.stateNode.nextSibling):null;return!0}function Vd(){for(var t=kt;t;)t=Dr(t.nextSibling)}function jn(){kt=Ct=null,Le=!1}function ul(t){Wt===null?Wt=[t]:Wt.push(t)}var c_=T.ReactCurrentBatchConfig;function Ri(t,r,o){if(t=o.ref,t!==null&&typeof t!="function"&&typeof t!="object"){if(o._owner){if(o=o._owner,o){if(o.tag!==1)throw Error(i(309));var a=o.stateNode}if(!a)throw Error(i(147,t));var c=a,f=""+t;return r!==null&&r.ref!==null&&typeof r.ref=="function"&&r.ref._stringRef===f?r.ref:(r=function(g){var b=c.refs;g===null?delete b[f]:b[f]=g},r._stringRef=f,r)}if(typeof t!="string")throw Error(i(284));if(!o._owner)throw Error(i(290,t))}return t}function Do(t,r){throw t=Object.prototype.toString.call(r),Error(i(31,t==="[object Object]"?"object with keys {"+Object.keys(r).join(", ")+"}":t))}function Wd(t){var r=t._init;return r(t._payload)}function Xd(t){function r(D,I){if(t){var M=D.deletions;M===null?(D.deletions=[I],D.flags|=16):M.push(I)}}function o(D,I){if(!t)return null;for(;I!==null;)r(D,I),I=I.sibling;return null}function a(D,I){for(D=new Map;I!==null;)I.key!==null?D.set(I.key,I):D.set(I.index,I),I=I.sibling;return D}function c(D,I){return D=qr(D,I),D.index=0,D.sibling=null,D}function f(D,I,M){return D.index=M,t?(M=D.alternate,M!==null?(M=M.index,M<I?(D.flags|=2,I):M):(D.flags|=2,I)):(D.flags|=1048576,I)}function g(D){return t&&D.alternate===null&&(D.flags|=2),D}function b(D,I,M,$){return I===null||I.tag!==6?(I=eu(M,D.mode,$),I.return=D,I):(I=c(I,M),I.return=D,I)}function A(D,I,M,$){var ee=M.type;return ee===H?z(D,I,M.props.children,$,M.key):I!==null&&(I.elementType===ee||typeof ee=="object"&&ee!==null&&ee.$$typeof===$e&&Wd(ee)===I.type)?($=c(I,M.props),$.ref=Ri(D,I,M),$.return=D,$):($=is(M.type,M.key,M.props,null,D.mode,$),$.ref=Ri(D,I,M),$.return=D,$)}function F(D,I,M,$){return I===null||I.tag!==4||I.stateNode.containerInfo!==M.containerInfo||I.stateNode.implementation!==M.implementation?(I=tu(M,D.mode,$),I.return=D,I):(I=c(I,M.children||[]),I.return=D,I)}function z(D,I,M,$,ee){return I===null||I.tag!==7?(I=dn(M,D.mode,$,ee),I.return=D,I):(I=c(I,M),I.return=D,I)}function G(D,I,M){if(typeof I=="string"&&I!==""||typeof I=="number")return I=eu(""+I,D.mode,M),I.return=D,I;if(typeof I=="object"&&I!==null){switch(I.$$typeof){case C:return M=is(I.type,I.key,I.props,null,D.mode,M),M.ref=Ri(D,null,I),M.return=D,M;case L:return I=tu(I,D.mode,M),I.return=D,I;case $e:var $=I._init;return G(D,$(I._payload),M)}if(ni(I)||ne(I))return I=dn(I,D.mode,M,null),I.return=D,I;Do(D,I)}return null}function j(D,I,M,$){var ee=I!==null?I.key:null;if(typeof M=="string"&&M!==""||typeof M=="number")return ee!==null?null:b(D,I,""+M,$);if(typeof M=="object"&&M!==null){switch(M.$$typeof){case C:return M.key===ee?A(D,I,M,$):null;case L:return M.key===ee?F(D,I,M,$):null;case $e:return ee=M._init,j(D,I,ee(M._payload),$)}if(ni(M)||ne(M))return ee!==null?null:z(D,I,M,$,null);Do(D,M)}return null}function X(D,I,M,$,ee){if(typeof $=="string"&&$!==""||typeof $=="number")return D=D.get(M)||null,b(I,D,""+$,ee);if(typeof $=="object"&&$!==null){switch($.$$typeof){case C:return D=D.get($.key===null?M:$.key)||null,A(I,D,$,ee);case L:return D=D.get($.key===null?M:$.key)||null,F(I,D,$,ee);case $e:var ie=$._init;return X(D,I,M,ie($._payload),ee)}if(ni($)||ne($))return D=D.get(M)||null,z(I,D,$,ee,null);Do(I,$)}return null}function Y(D,I,M,$){for(var ee=null,ie=null,oe=I,le=I=0,Ze=null;oe!==null&&le<M.length;le++){oe.index>le?(Ze=oe,oe=null):Ze=oe.sibling;var xe=j(D,oe,M[le],$);if(xe===null){oe===null&&(oe=Ze);break}t&&oe&&xe.alternate===null&&r(D,oe),I=f(xe,I,le),ie===null?ee=xe:ie.sibling=xe,ie=xe,oe=Ze}if(le===M.length)return o(D,oe),Le&&nn(D,le),ee;if(oe===null){for(;le<M.length;le++)oe=G(D,M[le],$),oe!==null&&(I=f(oe,I,le),ie===null?ee=oe:ie.sibling=oe,ie=oe);return Le&&nn(D,le),ee}for(oe=a(D,oe);le<M.length;le++)Ze=X(oe,D,le,M[le],$),Ze!==null&&(t&&Ze.alternate!==null&&oe.delete(Ze.key===null?le:Ze.key),I=f(Ze,I,le),ie===null?ee=Ze:ie.sibling=Ze,ie=Ze);return t&&oe.forEach(function(Vr){return r(D,Vr)}),Le&&nn(D,le),ee}function Z(D,I,M,$){var ee=ne(M);if(typeof ee!="function")throw Error(i(150));if(M=ee.call(M),M==null)throw Error(i(151));for(var ie=ee=null,oe=I,le=I=0,Ze=null,xe=M.next();oe!==null&&!xe.done;le++,xe=M.next()){oe.index>le?(Ze=oe,oe=null):Ze=oe.sibling;var Vr=j(D,oe,xe.value,$);if(Vr===null){oe===null&&(oe=Ze);break}t&&oe&&Vr.alternate===null&&r(D,oe),I=f(Vr,I,le),ie===null?ee=Vr:ie.sibling=Vr,ie=Vr,oe=Ze}if(xe.done)return o(D,oe),Le&&nn(D,le),ee;if(oe===null){for(;!xe.done;le++,xe=M.next())xe=G(D,xe.value,$),xe!==null&&(I=f(xe,I,le),ie===null?ee=xe:ie.sibling=xe,ie=xe);return Le&&nn(D,le),ee}for(oe=a(D,oe);!xe.done;le++,xe=M.next())xe=X(oe,D,le,xe.value,$),xe!==null&&(t&&xe.alternate!==null&&oe.delete(xe.key===null?le:xe.key),I=f(xe,I,le),ie===null?ee=xe:ie.sibling=xe,ie=xe);return t&&oe.forEach(function(G_){return r(D,G_)}),Le&&nn(D,le),ee}function Ge(D,I,M,$){if(typeof M=="object"&&M!==null&&M.type===H&&M.key===null&&(M=M.props.children),typeof M=="object"&&M!==null){switch(M.$$typeof){case C:e:{for(var ee=M.key,ie=I;ie!==null;){if(ie.key===ee){if(ee=M.type,ee===H){if(ie.tag===7){o(D,ie.sibling),I=c(ie,M.props.children),I.return=D,D=I;break e}}else if(ie.elementType===ee||typeof ee=="object"&&ee!==null&&ee.$$typeof===$e&&Wd(ee)===ie.type){o(D,ie.sibling),I=c(ie,M.props),I.ref=Ri(D,ie,M),I.return=D,D=I;break e}o(D,ie);break}else r(D,ie);ie=ie.sibling}M.type===H?(I=dn(M.props.children,D.mode,$,M.key),I.return=D,D=I):($=is(M.type,M.key,M.props,null,D.mode,$),$.ref=Ri(D,I,M),$.return=D,D=$)}return g(D);case L:e:{for(ie=M.key;I!==null;){if(I.key===ie)if(I.tag===4&&I.stateNode.containerInfo===M.containerInfo&&I.stateNode.implementation===M.implementation){o(D,I.sibling),I=c(I,M.children||[]),I.return=D,D=I;break e}else{o(D,I);break}else r(D,I);I=I.sibling}I=tu(M,D.mode,$),I.return=D,D=I}return g(D);case $e:return ie=M._init,Ge(D,I,ie(M._payload),$)}if(ni(M))return Y(D,I,M,$);if(ne(M))return Z(D,I,M,$);Do(D,M)}return typeof M=="string"&&M!==""||typeof M=="number"?(M=""+M,I!==null&&I.tag===6?(o(D,I.sibling),I=c(I,M),I.return=D,D=I):(o(D,I),I=eu(M,D.mode,$),I.return=D,D=I),g(D)):o(D,I)}return Ge}var zn=Xd(!0),Qd=Xd(!1),Mo=Mr(null),Fo=null,Un=null,cl=null;function fl(){cl=Un=Fo=null}function dl(t){var r=Mo.current;De(Mo),t._currentValue=r}function hl(t,r,o){for(;t!==null;){var a=t.alternate;if((t.childLanes&r)!==r?(t.childLanes|=r,a!==null&&(a.childLanes|=r)):a!==null&&(a.childLanes&r)!==r&&(a.childLanes|=r),t===o)break;t=t.return}}function Hn(t,r){Fo=t,cl=Un=null,t=t.dependencies,t!==null&&t.firstContext!==null&&(t.lanes&r&&(Et=!0),t.firstContext=null)}function Lt(t){var r=t._currentValue;if(cl!==t)if(t={context:t,memoizedValue:r,next:null},Un===null){if(Fo===null)throw Error(i(308));Un=t,Fo.dependencies={lanes:0,firstContext:t}}else Un=Un.next=t;return r}var on=null;function pl(t){on===null?on=[t]:on.push(t)}function Kd(t,r,o,a){var c=r.interleaved;return c===null?(o.next=o,pl(r)):(o.next=c.next,c.next=o),r.interleaved=o,gr(t,a)}function gr(t,r){t.lanes|=r;var o=t.alternate;for(o!==null&&(o.lanes|=r),o=t,t=t.return;t!==null;)t.childLanes|=r,o=t.alternate,o!==null&&(o.childLanes|=r),o=t,t=t.return;return o.tag===3?o.stateNode:null}var Br=!1;function ml(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Yd(t,r){t=t.updateQueue,r.updateQueue===t&&(r.updateQueue={baseState:t.baseState,firstBaseUpdate:t.firstBaseUpdate,lastBaseUpdate:t.lastBaseUpdate,shared:t.shared,effects:t.effects})}function yr(t,r){return{eventTime:t,lane:r,tag:0,payload:null,callback:null,next:null}}function jr(t,r,o){var a=t.updateQueue;if(a===null)return null;if(a=a.shared,be&2){var c=a.pending;return c===null?r.next=r:(r.next=c.next,c.next=r),a.pending=r,gr(t,o)}return c=a.interleaved,c===null?(r.next=r,pl(a)):(r.next=c.next,c.next=r),a.interleaved=r,gr(t,o)}function Lo(t,r,o){if(r=r.updateQueue,r!==null&&(r=r.shared,(o&4194240)!==0)){var a=r.lanes;a&=t.pendingLanes,o|=a,r.lanes=o,Oa(t,o)}}function Zd(t,r){var o=t.updateQueue,a=t.alternate;if(a!==null&&(a=a.updateQueue,o===a)){var c=null,f=null;if(o=o.firstBaseUpdate,o!==null){do{var g={eventTime:o.eventTime,lane:o.lane,tag:o.tag,payload:o.payload,callback:o.callback,next:null};f===null?c=f=g:f=f.next=g,o=o.next}while(o!==null);f===null?c=f=r:f=f.next=r}else c=f=r;o={baseState:a.baseState,firstBaseUpdate:c,lastBaseUpdate:f,shared:a.shared,effects:a.effects},t.updateQueue=o;return}t=o.lastBaseUpdate,t===null?o.firstBaseUpdate=r:t.next=r,o.lastBaseUpdate=r}function Bo(t,r,o,a){var c=t.updateQueue;Br=!1;var f=c.firstBaseUpdate,g=c.lastBaseUpdate,b=c.shared.pending;if(b!==null){c.shared.pending=null;var A=b,F=A.next;A.next=null,g===null?f=F:g.next=F,g=A;var z=t.alternate;z!==null&&(z=z.updateQueue,b=z.lastBaseUpdate,b!==g&&(b===null?z.firstBaseUpdate=F:b.next=F,z.lastBaseUpdate=A))}if(f!==null){var G=c.baseState;g=0,z=F=A=null,b=f;do{var j=b.lane,X=b.eventTime;if((a&j)===j){z!==null&&(z=z.next={eventTime:X,lane:0,tag:b.tag,payload:b.payload,callback:b.callback,next:null});e:{var Y=t,Z=b;switch(j=r,X=o,Z.tag){case 1:if(Y=Z.payload,typeof Y=="function"){G=Y.call(X,G,j);break e}G=Y;break e;case 3:Y.flags=Y.flags&-65537|128;case 0:if(Y=Z.payload,j=typeof Y=="function"?Y.call(X,G,j):Y,j==null)break e;G=Q({},G,j);break e;case 2:Br=!0}}b.callback!==null&&b.lane!==0&&(t.flags|=64,j=c.effects,j===null?c.effects=[b]:j.push(b))}else X={eventTime:X,lane:j,tag:b.tag,payload:b.payload,callback:b.callback,next:null},z===null?(F=z=X,A=G):z=z.next=X,g|=j;if(b=b.next,b===null){if(b=c.shared.pending,b===null)break;j=b,b=j.next,j.next=null,c.lastBaseUpdate=j,c.shared.pending=null}}while(!0);if(z===null&&(A=G),c.baseState=A,c.firstBaseUpdate=F,c.lastBaseUpdate=z,r=c.shared.interleaved,r!==null){c=r;do g|=c.lane,c=c.next;while(c!==r)}else f===null&&(c.shared.lanes=0);ln|=g,t.lanes=g,t.memoizedState=G}}function Jd(t,r,o){if(t=r.effects,r.effects=null,t!==null)for(r=0;r<t.length;r++){var a=t[r],c=a.callback;if(c!==null){if(a.callback=null,a=o,typeof c!="function")throw Error(i(191,c));c.call(a)}}}var Oi={},sr=Mr(Oi),Ni=Mr(Oi),Ai=Mr(Oi);function sn(t){if(t===Oi)throw Error(i(174));return t}function gl(t,r){switch(Ae(Ai,r),Ae(Ni,t),Ae(sr,Oi),t=r.nodeType,t){case 9:case 11:r=(r=r.documentElement)?r.namespaceURI:ya(null,"");break;default:t=t===8?r.parentNode:r,r=t.namespaceURI||null,t=t.tagName,r=ya(r,t)}De(sr),Ae(sr,r)}function Gn(){De(sr),De(Ni),De(Ai)}function eh(t){sn(Ai.current);var r=sn(sr.current),o=ya(r,t.type);r!==o&&(Ae(Ni,t),Ae(sr,o))}function yl(t){Ni.current===t&&(De(sr),De(Ni))}var Be=Mr(0);function jo(t){for(var r=t;r!==null;){if(r.tag===13){var o=r.memoizedState;if(o!==null&&(o=o.dehydrated,o===null||o.data==="$?"||o.data==="$!"))return r}else if(r.tag===19&&r.memoizedProps.revealOrder!==void 0){if(r.flags&128)return r}else if(r.child!==null){r.child.return=r,r=r.child;continue}if(r===t)break;for(;r.sibling===null;){if(r.return===null||r.return===t)return null;r=r.return}r.sibling.return=r.return,r=r.sibling}return null}var vl=[];function _l(){for(var t=0;t<vl.length;t++)vl[t]._workInProgressVersionPrimary=null;vl.length=0}var zo=T.ReactCurrentDispatcher,El=T.ReactCurrentBatchConfig,an=0,je=null,Xe=null,Ke=null,Uo=!1,Ii=!1,Pi=0,f_=0;function st(){throw Error(i(321))}function Sl(t,r){if(r===null)return!1;for(var o=0;o<r.length&&o<t.length;o++)if(!Vt(t[o],r[o]))return!1;return!0}function bl(t,r,o,a,c,f){if(an=f,je=r,r.memoizedState=null,r.updateQueue=null,r.lanes=0,zo.current=t===null||t.memoizedState===null?m_:g_,t=o(a,c),Ii){f=0;do{if(Ii=!1,Pi=0,25<=f)throw Error(i(301));f+=1,Ke=Xe=null,r.updateQueue=null,zo.current=y_,t=o(a,c)}while(Ii)}if(zo.current=$o,r=Xe!==null&&Xe.next!==null,an=0,Ke=Xe=je=null,Uo=!1,r)throw Error(i(300));return t}function wl(){var t=Pi!==0;return Pi=0,t}function ar(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Ke===null?je.memoizedState=Ke=t:Ke=Ke.next=t,Ke}function Bt(){if(Xe===null){var t=je.alternate;t=t!==null?t.memoizedState:null}else t=Xe.next;var r=Ke===null?je.memoizedState:Ke.next;if(r!==null)Ke=r,Xe=t;else{if(t===null)throw Error(i(310));Xe=t,t={memoizedState:Xe.memoizedState,baseState:Xe.baseState,baseQueue:Xe.baseQueue,queue:Xe.queue,next:null},Ke===null?je.memoizedState=Ke=t:Ke=Ke.next=t}return Ke}function Di(t,r){return typeof r=="function"?r(t):r}function xl(t){var r=Bt(),o=r.queue;if(o===null)throw Error(i(311));o.lastRenderedReducer=t;var a=Xe,c=a.baseQueue,f=o.pending;if(f!==null){if(c!==null){var g=c.next;c.next=f.next,f.next=g}a.baseQueue=c=f,o.pending=null}if(c!==null){f=c.next,a=a.baseState;var b=g=null,A=null,F=f;do{var z=F.lane;if((an&z)===z)A!==null&&(A=A.next={lane:0,action:F.action,hasEagerState:F.hasEagerState,eagerState:F.eagerState,next:null}),a=F.hasEagerState?F.eagerState:t(a,F.action);else{var G={lane:z,action:F.action,hasEagerState:F.hasEagerState,eagerState:F.eagerState,next:null};A===null?(b=A=G,g=a):A=A.next=G,je.lanes|=z,ln|=z}F=F.next}while(F!==null&&F!==f);A===null?g=a:A.next=b,Vt(a,r.memoizedState)||(Et=!0),r.memoizedState=a,r.baseState=g,r.baseQueue=A,o.lastRenderedState=a}if(t=o.interleaved,t!==null){c=t;do f=c.lane,je.lanes|=f,ln|=f,c=c.next;while(c!==t)}else c===null&&(o.lanes=0);return[r.memoizedState,o.dispatch]}function Tl(t){var r=Bt(),o=r.queue;if(o===null)throw Error(i(311));o.lastRenderedReducer=t;var a=o.dispatch,c=o.pending,f=r.memoizedState;if(c!==null){o.pending=null;var g=c=c.next;do f=t(f,g.action),g=g.next;while(g!==c);Vt(f,r.memoizedState)||(Et=!0),r.memoizedState=f,r.baseQueue===null&&(r.baseState=f),o.lastRenderedState=f}return[f,a]}function th(){}function rh(t,r){var o=je,a=Bt(),c=r(),f=!Vt(a.memoizedState,c);if(f&&(a.memoizedState=c,Et=!0),a=a.queue,Cl(oh.bind(null,o,a,t),[t]),a.getSnapshot!==r||f||Ke!==null&&Ke.memoizedState.tag&1){if(o.flags|=2048,Mi(9,ih.bind(null,o,a,c,r),void 0,null),Ye===null)throw Error(i(349));an&30||nh(o,r,c)}return c}function nh(t,r,o){t.flags|=16384,t={getSnapshot:r,value:o},r=je.updateQueue,r===null?(r={lastEffect:null,stores:null},je.updateQueue=r,r.stores=[t]):(o=r.stores,o===null?r.stores=[t]:o.push(t))}function ih(t,r,o,a){r.value=o,r.getSnapshot=a,sh(r)&&ah(t)}function oh(t,r,o){return o(function(){sh(r)&&ah(t)})}function sh(t){var r=t.getSnapshot;t=t.value;try{var o=r();return!Vt(t,o)}catch{return!0}}function ah(t){var r=gr(t,1);r!==null&&Yt(r,t,1,-1)}function lh(t){var r=ar();return typeof t=="function"&&(t=t()),r.memoizedState=r.baseState=t,t={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Di,lastRenderedState:t},r.queue=t,t=t.dispatch=p_.bind(null,je,t),[r.memoizedState,t]}function Mi(t,r,o,a){return t={tag:t,create:r,destroy:o,deps:a,next:null},r=je.updateQueue,r===null?(r={lastEffect:null,stores:null},je.updateQueue=r,r.lastEffect=t.next=t):(o=r.lastEffect,o===null?r.lastEffect=t.next=t:(a=o.next,o.next=t,t.next=a,r.lastEffect=t)),t}function uh(){return Bt().memoizedState}function Ho(t,r,o,a){var c=ar();je.flags|=t,c.memoizedState=Mi(1|r,o,void 0,a===void 0?null:a)}function Go(t,r,o,a){var c=Bt();a=a===void 0?null:a;var f=void 0;if(Xe!==null){var g=Xe.memoizedState;if(f=g.destroy,a!==null&&Sl(a,g.deps)){c.memoizedState=Mi(r,o,f,a);return}}je.flags|=t,c.memoizedState=Mi(1|r,o,f,a)}function ch(t,r){return Ho(8390656,8,t,r)}function Cl(t,r){return Go(2048,8,t,r)}function fh(t,r){return Go(4,2,t,r)}function dh(t,r){return Go(4,4,t,r)}function hh(t,r){if(typeof r=="function")return t=t(),r(t),function(){r(null)};if(r!=null)return t=t(),r.current=t,function(){r.current=null}}function ph(t,r,o){return o=o!=null?o.concat([t]):null,Go(4,4,hh.bind(null,r,t),o)}function kl(){}function mh(t,r){var o=Bt();r=r===void 0?null:r;var a=o.memoizedState;return a!==null&&r!==null&&Sl(r,a[1])?a[0]:(o.memoizedState=[t,r],t)}function gh(t,r){var o=Bt();r=r===void 0?null:r;var a=o.memoizedState;return a!==null&&r!==null&&Sl(r,a[1])?a[0]:(t=t(),o.memoizedState=[t,r],t)}function yh(t,r,o){return an&21?(Vt(o,r)||(o=Wf(),je.lanes|=o,ln|=o,t.baseState=!0),r):(t.baseState&&(t.baseState=!1,Et=!0),t.memoizedState=o)}function d_(t,r){var o=Oe;Oe=o!==0&&4>o?o:4,t(!0);var a=El.transition;El.transition={};try{t(!1),r()}finally{Oe=o,El.transition=a}}function vh(){return Bt().memoizedState}function h_(t,r,o){var a=Gr(t);if(o={lane:a,action:o,hasEagerState:!1,eagerState:null,next:null},_h(t))Eh(r,o);else if(o=Kd(t,r,o,a),o!==null){var c=ft();Yt(o,t,a,c),Sh(o,r,a)}}function p_(t,r,o){var a=Gr(t),c={lane:a,action:o,hasEagerState:!1,eagerState:null,next:null};if(_h(t))Eh(r,c);else{var f=t.alternate;if(t.lanes===0&&(f===null||f.lanes===0)&&(f=r.lastRenderedReducer,f!==null))try{var g=r.lastRenderedState,b=f(g,o);if(c.hasEagerState=!0,c.eagerState=b,Vt(b,g)){var A=r.interleaved;A===null?(c.next=c,pl(r)):(c.next=A.next,A.next=c),r.interleaved=c;return}}catch{}finally{}o=Kd(t,r,c,a),o!==null&&(c=ft(),Yt(o,t,a,c),Sh(o,r,a))}}function _h(t){var r=t.alternate;return t===je||r!==null&&r===je}function Eh(t,r){Ii=Uo=!0;var o=t.pending;o===null?r.next=r:(r.next=o.next,o.next=r),t.pending=r}function Sh(t,r,o){if(o&4194240){var a=r.lanes;a&=t.pendingLanes,o|=a,r.lanes=o,Oa(t,o)}}var $o={readContext:Lt,useCallback:st,useContext:st,useEffect:st,useImperativeHandle:st,useInsertionEffect:st,useLayoutEffect:st,useMemo:st,useReducer:st,useRef:st,useState:st,useDebugValue:st,useDeferredValue:st,useTransition:st,useMutableSource:st,useSyncExternalStore:st,useId:st,unstable_isNewReconciler:!1},m_={readContext:Lt,useCallback:function(t,r){return ar().memoizedState=[t,r===void 0?null:r],t},useContext:Lt,useEffect:ch,useImperativeHandle:function(t,r,o){return o=o!=null?o.concat([t]):null,Ho(4194308,4,hh.bind(null,r,t),o)},useLayoutEffect:function(t,r){return Ho(4194308,4,t,r)},useInsertionEffect:function(t,r){return Ho(4,2,t,r)},useMemo:function(t,r){var o=ar();return r=r===void 0?null:r,t=t(),o.memoizedState=[t,r],t},useReducer:function(t,r,o){var a=ar();return r=o!==void 0?o(r):r,a.memoizedState=a.baseState=r,t={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:r},a.queue=t,t=t.dispatch=h_.bind(null,je,t),[a.memoizedState,t]},useRef:function(t){var r=ar();return t={current:t},r.memoizedState=t},useState:lh,useDebugValue:kl,useDeferredValue:function(t){return ar().memoizedState=t},useTransition:function(){var t=lh(!1),r=t[0];return t=d_.bind(null,t[1]),ar().memoizedState=t,[r,t]},useMutableSource:function(){},useSyncExternalStore:function(t,r,o){var a=je,c=ar();if(Le){if(o===void 0)throw Error(i(407));o=o()}else{if(o=r(),Ye===null)throw Error(i(349));an&30||nh(a,r,o)}c.memoizedState=o;var f={value:o,getSnapshot:r};return c.queue=f,ch(oh.bind(null,a,f,t),[t]),a.flags|=2048,Mi(9,ih.bind(null,a,f,o,r),void 0,null),o},useId:function(){var t=ar(),r=Ye.identifierPrefix;if(Le){var o=mr,a=pr;o=(a&~(1<<32-qt(a)-1)).toString(32)+o,r=":"+r+"R"+o,o=Pi++,0<o&&(r+="H"+o.toString(32)),r+=":"}else o=f_++,r=":"+r+"r"+o.toString(32)+":";return t.memoizedState=r},unstable_isNewReconciler:!1},g_={readContext:Lt,useCallback:mh,useContext:Lt,useEffect:Cl,useImperativeHandle:ph,useInsertionEffect:fh,useLayoutEffect:dh,useMemo:gh,useReducer:xl,useRef:uh,useState:function(){return xl(Di)},useDebugValue:kl,useDeferredValue:function(t){var r=Bt();return yh(r,Xe.memoizedState,t)},useTransition:function(){var t=xl(Di)[0],r=Bt().memoizedState;return[t,r]},useMutableSource:th,useSyncExternalStore:rh,useId:vh,unstable_isNewReconciler:!1},y_={readContext:Lt,useCallback:mh,useContext:Lt,useEffect:Cl,useImperativeHandle:ph,useInsertionEffect:fh,useLayoutEffect:dh,useMemo:gh,useReducer:Tl,useRef:uh,useState:function(){return Tl(Di)},useDebugValue:kl,useDeferredValue:function(t){var r=Bt();return Xe===null?r.memoizedState=t:yh(r,Xe.memoizedState,t)},useTransition:function(){var t=Tl(Di)[0],r=Bt().memoizedState;return[t,r]},useMutableSource:th,useSyncExternalStore:rh,useId:vh,unstable_isNewReconciler:!1};function Xt(t,r){if(t&&t.defaultProps){r=Q({},r),t=t.defaultProps;for(var o in t)r[o]===void 0&&(r[o]=t[o]);return r}return r}function Rl(t,r,o,a){r=t.memoizedState,o=o(a,r),o=o==null?r:Q({},r,o),t.memoizedState=o,t.lanes===0&&(t.updateQueue.baseState=o)}var qo={isMounted:function(t){return(t=t._reactInternals)?Jr(t)===t:!1},enqueueSetState:function(t,r,o){t=t._reactInternals;var a=ft(),c=Gr(t),f=yr(a,c);f.payload=r,o!=null&&(f.callback=o),r=jr(t,f,c),r!==null&&(Yt(r,t,c,a),Lo(r,t,c))},enqueueReplaceState:function(t,r,o){t=t._reactInternals;var a=ft(),c=Gr(t),f=yr(a,c);f.tag=1,f.payload=r,o!=null&&(f.callback=o),r=jr(t,f,c),r!==null&&(Yt(r,t,c,a),Lo(r,t,c))},enqueueForceUpdate:function(t,r){t=t._reactInternals;var o=ft(),a=Gr(t),c=yr(o,a);c.tag=2,r!=null&&(c.callback=r),r=jr(t,c,a),r!==null&&(Yt(r,t,a,o),Lo(r,t,a))}};function bh(t,r,o,a,c,f,g){return t=t.stateNode,typeof t.shouldComponentUpdate=="function"?t.shouldComponentUpdate(a,f,g):r.prototype&&r.prototype.isPureReactComponent?!Si(o,a)||!Si(c,f):!0}function wh(t,r,o){var a=!1,c=Fr,f=r.contextType;return typeof f=="object"&&f!==null?f=Lt(f):(c=_t(r)?tn:ot.current,a=r.contextTypes,f=(a=a!=null)?Fn(t,c):Fr),r=new r(o,f),t.memoizedState=r.state!==null&&r.state!==void 0?r.state:null,r.updater=qo,t.stateNode=r,r._reactInternals=t,a&&(t=t.stateNode,t.__reactInternalMemoizedUnmaskedChildContext=c,t.__reactInternalMemoizedMaskedChildContext=f),r}function xh(t,r,o,a){t=r.state,typeof r.componentWillReceiveProps=="function"&&r.componentWillReceiveProps(o,a),typeof r.UNSAFE_componentWillReceiveProps=="function"&&r.UNSAFE_componentWillReceiveProps(o,a),r.state!==t&&qo.enqueueReplaceState(r,r.state,null)}function Ol(t,r,o,a){var c=t.stateNode;c.props=o,c.state=t.memoizedState,c.refs={},ml(t);var f=r.contextType;typeof f=="object"&&f!==null?c.context=Lt(f):(f=_t(r)?tn:ot.current,c.context=Fn(t,f)),c.state=t.memoizedState,f=r.getDerivedStateFromProps,typeof f=="function"&&(Rl(t,r,f,o),c.state=t.memoizedState),typeof r.getDerivedStateFromProps=="function"||typeof c.getSnapshotBeforeUpdate=="function"||typeof c.UNSAFE_componentWillMount!="function"&&typeof c.componentWillMount!="function"||(r=c.state,typeof c.componentWillMount=="function"&&c.componentWillMount(),typeof c.UNSAFE_componentWillMount=="function"&&c.UNSAFE_componentWillMount(),r!==c.state&&qo.enqueueReplaceState(c,c.state,null),Bo(t,o,c,a),c.state=t.memoizedState),typeof c.componentDidMount=="function"&&(t.flags|=4194308)}function $n(t,r){try{var o="",a=r;do o+=ye(a),a=a.return;while(a);var c=o}catch(f){c=`
|
|
39
|
+
Error generating stack: `+f.message+`
|
|
40
|
+
`+f.stack}return{value:t,source:r,stack:c,digest:null}}function Nl(t,r,o){return{value:t,source:null,stack:o??null,digest:r??null}}function Al(t,r){try{console.error(r.value)}catch(o){setTimeout(function(){throw o})}}var v_=typeof WeakMap=="function"?WeakMap:Map;function Th(t,r,o){o=yr(-1,o),o.tag=3,o.payload={element:null};var a=r.value;return o.callback=function(){Zo||(Zo=!0,Vl=a),Al(t,r)},o}function Ch(t,r,o){o=yr(-1,o),o.tag=3;var a=t.type.getDerivedStateFromError;if(typeof a=="function"){var c=r.value;o.payload=function(){return a(c)},o.callback=function(){Al(t,r)}}var f=t.stateNode;return f!==null&&typeof f.componentDidCatch=="function"&&(o.callback=function(){Al(t,r),typeof a!="function"&&(Ur===null?Ur=new Set([this]):Ur.add(this));var g=r.stack;this.componentDidCatch(r.value,{componentStack:g!==null?g:""})}),o}function kh(t,r,o){var a=t.pingCache;if(a===null){a=t.pingCache=new v_;var c=new Set;a.set(r,c)}else c=a.get(r),c===void 0&&(c=new Set,a.set(r,c));c.has(o)||(c.add(o),t=I_.bind(null,t,r,o),r.then(t,t))}function Rh(t){do{var r;if((r=t.tag===13)&&(r=t.memoizedState,r=r!==null?r.dehydrated!==null:!0),r)return t;t=t.return}while(t!==null);return null}function Oh(t,r,o,a,c){return t.mode&1?(t.flags|=65536,t.lanes=c,t):(t===r?t.flags|=65536:(t.flags|=128,o.flags|=131072,o.flags&=-52805,o.tag===1&&(o.alternate===null?o.tag=17:(r=yr(-1,1),r.tag=2,jr(o,r,1))),o.lanes|=1),t)}var __=T.ReactCurrentOwner,Et=!1;function ct(t,r,o,a){r.child=t===null?Qd(r,null,o,a):zn(r,t.child,o,a)}function Nh(t,r,o,a,c){o=o.render;var f=r.ref;return Hn(r,c),a=bl(t,r,o,a,f,c),o=wl(),t!==null&&!Et?(r.updateQueue=t.updateQueue,r.flags&=-2053,t.lanes&=~c,vr(t,r,c)):(Le&&o&&ol(r),r.flags|=1,ct(t,r,a,c),r.child)}function Ah(t,r,o,a,c){if(t===null){var f=o.type;return typeof f=="function"&&!Jl(f)&&f.defaultProps===void 0&&o.compare===null&&o.defaultProps===void 0?(r.tag=15,r.type=f,Ih(t,r,f,a,c)):(t=is(o.type,null,a,r,r.mode,c),t.ref=r.ref,t.return=r,r.child=t)}if(f=t.child,!(t.lanes&c)){var g=f.memoizedProps;if(o=o.compare,o=o!==null?o:Si,o(g,a)&&t.ref===r.ref)return vr(t,r,c)}return r.flags|=1,t=qr(f,a),t.ref=r.ref,t.return=r,r.child=t}function Ih(t,r,o,a,c){if(t!==null){var f=t.memoizedProps;if(Si(f,a)&&t.ref===r.ref)if(Et=!1,r.pendingProps=a=f,(t.lanes&c)!==0)t.flags&131072&&(Et=!0);else return r.lanes=t.lanes,vr(t,r,c)}return Il(t,r,o,a,c)}function Ph(t,r,o){var a=r.pendingProps,c=a.children,f=t!==null?t.memoizedState:null;if(a.mode==="hidden")if(!(r.mode&1))r.memoizedState={baseLanes:0,cachePool:null,transitions:null},Ae(Vn,Rt),Rt|=o;else{if(!(o&1073741824))return t=f!==null?f.baseLanes|o:o,r.lanes=r.childLanes=1073741824,r.memoizedState={baseLanes:t,cachePool:null,transitions:null},r.updateQueue=null,Ae(Vn,Rt),Rt|=t,null;r.memoizedState={baseLanes:0,cachePool:null,transitions:null},a=f!==null?f.baseLanes:o,Ae(Vn,Rt),Rt|=a}else f!==null?(a=f.baseLanes|o,r.memoizedState=null):a=o,Ae(Vn,Rt),Rt|=a;return ct(t,r,c,o),r.child}function Dh(t,r){var o=r.ref;(t===null&&o!==null||t!==null&&t.ref!==o)&&(r.flags|=512,r.flags|=2097152)}function Il(t,r,o,a,c){var f=_t(o)?tn:ot.current;return f=Fn(r,f),Hn(r,c),o=bl(t,r,o,a,f,c),a=wl(),t!==null&&!Et?(r.updateQueue=t.updateQueue,r.flags&=-2053,t.lanes&=~c,vr(t,r,c)):(Le&&a&&ol(r),r.flags|=1,ct(t,r,o,c),r.child)}function Mh(t,r,o,a,c){if(_t(o)){var f=!0;Oo(r)}else f=!1;if(Hn(r,c),r.stateNode===null)Wo(t,r),wh(r,o,a),Ol(r,o,a,c),a=!0;else if(t===null){var g=r.stateNode,b=r.memoizedProps;g.props=b;var A=g.context,F=o.contextType;typeof F=="object"&&F!==null?F=Lt(F):(F=_t(o)?tn:ot.current,F=Fn(r,F));var z=o.getDerivedStateFromProps,G=typeof z=="function"||typeof g.getSnapshotBeforeUpdate=="function";G||typeof g.UNSAFE_componentWillReceiveProps!="function"&&typeof g.componentWillReceiveProps!="function"||(b!==a||A!==F)&&xh(r,g,a,F),Br=!1;var j=r.memoizedState;g.state=j,Bo(r,a,g,c),A=r.memoizedState,b!==a||j!==A||vt.current||Br?(typeof z=="function"&&(Rl(r,o,z,a),A=r.memoizedState),(b=Br||bh(r,o,b,a,j,A,F))?(G||typeof g.UNSAFE_componentWillMount!="function"&&typeof g.componentWillMount!="function"||(typeof g.componentWillMount=="function"&&g.componentWillMount(),typeof g.UNSAFE_componentWillMount=="function"&&g.UNSAFE_componentWillMount()),typeof g.componentDidMount=="function"&&(r.flags|=4194308)):(typeof g.componentDidMount=="function"&&(r.flags|=4194308),r.memoizedProps=a,r.memoizedState=A),g.props=a,g.state=A,g.context=F,a=b):(typeof g.componentDidMount=="function"&&(r.flags|=4194308),a=!1)}else{g=r.stateNode,Yd(t,r),b=r.memoizedProps,F=r.type===r.elementType?b:Xt(r.type,b),g.props=F,G=r.pendingProps,j=g.context,A=o.contextType,typeof A=="object"&&A!==null?A=Lt(A):(A=_t(o)?tn:ot.current,A=Fn(r,A));var X=o.getDerivedStateFromProps;(z=typeof X=="function"||typeof g.getSnapshotBeforeUpdate=="function")||typeof g.UNSAFE_componentWillReceiveProps!="function"&&typeof g.componentWillReceiveProps!="function"||(b!==G||j!==A)&&xh(r,g,a,A),Br=!1,j=r.memoizedState,g.state=j,Bo(r,a,g,c);var Y=r.memoizedState;b!==G||j!==Y||vt.current||Br?(typeof X=="function"&&(Rl(r,o,X,a),Y=r.memoizedState),(F=Br||bh(r,o,F,a,j,Y,A)||!1)?(z||typeof g.UNSAFE_componentWillUpdate!="function"&&typeof g.componentWillUpdate!="function"||(typeof g.componentWillUpdate=="function"&&g.componentWillUpdate(a,Y,A),typeof g.UNSAFE_componentWillUpdate=="function"&&g.UNSAFE_componentWillUpdate(a,Y,A)),typeof g.componentDidUpdate=="function"&&(r.flags|=4),typeof g.getSnapshotBeforeUpdate=="function"&&(r.flags|=1024)):(typeof g.componentDidUpdate!="function"||b===t.memoizedProps&&j===t.memoizedState||(r.flags|=4),typeof g.getSnapshotBeforeUpdate!="function"||b===t.memoizedProps&&j===t.memoizedState||(r.flags|=1024),r.memoizedProps=a,r.memoizedState=Y),g.props=a,g.state=Y,g.context=A,a=F):(typeof g.componentDidUpdate!="function"||b===t.memoizedProps&&j===t.memoizedState||(r.flags|=4),typeof g.getSnapshotBeforeUpdate!="function"||b===t.memoizedProps&&j===t.memoizedState||(r.flags|=1024),a=!1)}return Pl(t,r,o,a,f,c)}function Pl(t,r,o,a,c,f){Dh(t,r);var g=(r.flags&128)!==0;if(!a&&!g)return c&&zd(r,o,!1),vr(t,r,f);a=r.stateNode,__.current=r;var b=g&&typeof o.getDerivedStateFromError!="function"?null:a.render();return r.flags|=1,t!==null&&g?(r.child=zn(r,t.child,null,f),r.child=zn(r,null,b,f)):ct(t,r,b,f),r.memoizedState=a.state,c&&zd(r,o,!0),r.child}function Fh(t){var r=t.stateNode;r.pendingContext?Bd(t,r.pendingContext,r.pendingContext!==r.context):r.context&&Bd(t,r.context,!1),gl(t,r.containerInfo)}function Lh(t,r,o,a,c){return jn(),ul(c),r.flags|=256,ct(t,r,o,a),r.child}var Dl={dehydrated:null,treeContext:null,retryLane:0};function Ml(t){return{baseLanes:t,cachePool:null,transitions:null}}function Bh(t,r,o){var a=r.pendingProps,c=Be.current,f=!1,g=(r.flags&128)!==0,b;if((b=g)||(b=t!==null&&t.memoizedState===null?!1:(c&2)!==0),b?(f=!0,r.flags&=-129):(t===null||t.memoizedState!==null)&&(c|=1),Ae(Be,c&1),t===null)return ll(r),t=r.memoizedState,t!==null&&(t=t.dehydrated,t!==null)?(r.mode&1?t.data==="$!"?r.lanes=8:r.lanes=1073741824:r.lanes=1,null):(g=a.children,t=a.fallback,f?(a=r.mode,f=r.child,g={mode:"hidden",children:g},!(a&1)&&f!==null?(f.childLanes=0,f.pendingProps=g):f=os(g,a,0,null),t=dn(t,a,o,null),f.return=r,t.return=r,f.sibling=t,r.child=f,r.child.memoizedState=Ml(o),r.memoizedState=Dl,t):Fl(r,g));if(c=t.memoizedState,c!==null&&(b=c.dehydrated,b!==null))return E_(t,r,g,a,b,c,o);if(f){f=a.fallback,g=r.mode,c=t.child,b=c.sibling;var A={mode:"hidden",children:a.children};return!(g&1)&&r.child!==c?(a=r.child,a.childLanes=0,a.pendingProps=A,r.deletions=null):(a=qr(c,A),a.subtreeFlags=c.subtreeFlags&14680064),b!==null?f=qr(b,f):(f=dn(f,g,o,null),f.flags|=2),f.return=r,a.return=r,a.sibling=f,r.child=a,a=f,f=r.child,g=t.child.memoizedState,g=g===null?Ml(o):{baseLanes:g.baseLanes|o,cachePool:null,transitions:g.transitions},f.memoizedState=g,f.childLanes=t.childLanes&~o,r.memoizedState=Dl,a}return f=t.child,t=f.sibling,a=qr(f,{mode:"visible",children:a.children}),!(r.mode&1)&&(a.lanes=o),a.return=r,a.sibling=null,t!==null&&(o=r.deletions,o===null?(r.deletions=[t],r.flags|=16):o.push(t)),r.child=a,r.memoizedState=null,a}function Fl(t,r){return r=os({mode:"visible",children:r},t.mode,0,null),r.return=t,t.child=r}function Vo(t,r,o,a){return a!==null&&ul(a),zn(r,t.child,null,o),t=Fl(r,r.pendingProps.children),t.flags|=2,r.memoizedState=null,t}function E_(t,r,o,a,c,f,g){if(o)return r.flags&256?(r.flags&=-257,a=Nl(Error(i(422))),Vo(t,r,g,a)):r.memoizedState!==null?(r.child=t.child,r.flags|=128,null):(f=a.fallback,c=r.mode,a=os({mode:"visible",children:a.children},c,0,null),f=dn(f,c,g,null),f.flags|=2,a.return=r,f.return=r,a.sibling=f,r.child=a,r.mode&1&&zn(r,t.child,null,g),r.child.memoizedState=Ml(g),r.memoizedState=Dl,f);if(!(r.mode&1))return Vo(t,r,g,null);if(c.data==="$!"){if(a=c.nextSibling&&c.nextSibling.dataset,a)var b=a.dgst;return a=b,f=Error(i(419)),a=Nl(f,a,void 0),Vo(t,r,g,a)}if(b=(g&t.childLanes)!==0,Et||b){if(a=Ye,a!==null){switch(g&-g){case 4:c=2;break;case 16:c=8;break;case 64: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:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:c=32;break;case 536870912:c=268435456;break;default:c=0}c=c&(a.suspendedLanes|g)?0:c,c!==0&&c!==f.retryLane&&(f.retryLane=c,gr(t,c),Yt(a,t,c,-1))}return Zl(),a=Nl(Error(i(421))),Vo(t,r,g,a)}return c.data==="$?"?(r.flags|=128,r.child=t.child,r=P_.bind(null,t),c._reactRetry=r,null):(t=f.treeContext,kt=Dr(c.nextSibling),Ct=r,Le=!0,Wt=null,t!==null&&(Mt[Ft++]=pr,Mt[Ft++]=mr,Mt[Ft++]=rn,pr=t.id,mr=t.overflow,rn=r),r=Fl(r,a.children),r.flags|=4096,r)}function jh(t,r,o){t.lanes|=r;var a=t.alternate;a!==null&&(a.lanes|=r),hl(t.return,r,o)}function Ll(t,r,o,a,c){var f=t.memoizedState;f===null?t.memoizedState={isBackwards:r,rendering:null,renderingStartTime:0,last:a,tail:o,tailMode:c}:(f.isBackwards=r,f.rendering=null,f.renderingStartTime=0,f.last=a,f.tail=o,f.tailMode=c)}function zh(t,r,o){var a=r.pendingProps,c=a.revealOrder,f=a.tail;if(ct(t,r,a.children,o),a=Be.current,a&2)a=a&1|2,r.flags|=128;else{if(t!==null&&t.flags&128)e:for(t=r.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&jh(t,o,r);else if(t.tag===19)jh(t,o,r);else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===r)break e;for(;t.sibling===null;){if(t.return===null||t.return===r)break e;t=t.return}t.sibling.return=t.return,t=t.sibling}a&=1}if(Ae(Be,a),!(r.mode&1))r.memoizedState=null;else switch(c){case"forwards":for(o=r.child,c=null;o!==null;)t=o.alternate,t!==null&&jo(t)===null&&(c=o),o=o.sibling;o=c,o===null?(c=r.child,r.child=null):(c=o.sibling,o.sibling=null),Ll(r,!1,c,o,f);break;case"backwards":for(o=null,c=r.child,r.child=null;c!==null;){if(t=c.alternate,t!==null&&jo(t)===null){r.child=c;break}t=c.sibling,c.sibling=o,o=c,c=t}Ll(r,!0,o,null,f);break;case"together":Ll(r,!1,null,null,void 0);break;default:r.memoizedState=null}return r.child}function Wo(t,r){!(r.mode&1)&&t!==null&&(t.alternate=null,r.alternate=null,r.flags|=2)}function vr(t,r,o){if(t!==null&&(r.dependencies=t.dependencies),ln|=r.lanes,!(o&r.childLanes))return null;if(t!==null&&r.child!==t.child)throw Error(i(153));if(r.child!==null){for(t=r.child,o=qr(t,t.pendingProps),r.child=o,o.return=r;t.sibling!==null;)t=t.sibling,o=o.sibling=qr(t,t.pendingProps),o.return=r;o.sibling=null}return r.child}function S_(t,r,o){switch(r.tag){case 3:Fh(r),jn();break;case 5:eh(r);break;case 1:_t(r.type)&&Oo(r);break;case 4:gl(r,r.stateNode.containerInfo);break;case 10:var a=r.type._context,c=r.memoizedProps.value;Ae(Mo,a._currentValue),a._currentValue=c;break;case 13:if(a=r.memoizedState,a!==null)return a.dehydrated!==null?(Ae(Be,Be.current&1),r.flags|=128,null):o&r.child.childLanes?Bh(t,r,o):(Ae(Be,Be.current&1),t=vr(t,r,o),t!==null?t.sibling:null);Ae(Be,Be.current&1);break;case 19:if(a=(o&r.childLanes)!==0,t.flags&128){if(a)return zh(t,r,o);r.flags|=128}if(c=r.memoizedState,c!==null&&(c.rendering=null,c.tail=null,c.lastEffect=null),Ae(Be,Be.current),a)break;return null;case 22:case 23:return r.lanes=0,Ph(t,r,o)}return vr(t,r,o)}var Uh,Bl,Hh,Gh;Uh=function(t,r){for(var o=r.child;o!==null;){if(o.tag===5||o.tag===6)t.appendChild(o.stateNode);else if(o.tag!==4&&o.child!==null){o.child.return=o,o=o.child;continue}if(o===r)break;for(;o.sibling===null;){if(o.return===null||o.return===r)return;o=o.return}o.sibling.return=o.return,o=o.sibling}},Bl=function(){},Hh=function(t,r,o,a){var c=t.memoizedProps;if(c!==a){t=r.stateNode,sn(sr.current);var f=null;switch(o){case"input":c=ha(t,c),a=ha(t,a),f=[];break;case"select":c=Q({},c,{value:void 0}),a=Q({},a,{value:void 0}),f=[];break;case"textarea":c=ga(t,c),a=ga(t,a),f=[];break;default:typeof c.onClick!="function"&&typeof a.onClick=="function"&&(t.onclick=Co)}va(o,a);var g;o=null;for(F in c)if(!a.hasOwnProperty(F)&&c.hasOwnProperty(F)&&c[F]!=null)if(F==="style"){var b=c[F];for(g in b)b.hasOwnProperty(g)&&(o||(o={}),o[g]="")}else F!=="dangerouslySetInnerHTML"&&F!=="children"&&F!=="suppressContentEditableWarning"&&F!=="suppressHydrationWarning"&&F!=="autoFocus"&&(l.hasOwnProperty(F)?f||(f=[]):(f=f||[]).push(F,null));for(F in a){var A=a[F];if(b=c!=null?c[F]:void 0,a.hasOwnProperty(F)&&A!==b&&(A!=null||b!=null))if(F==="style")if(b){for(g in b)!b.hasOwnProperty(g)||A&&A.hasOwnProperty(g)||(o||(o={}),o[g]="");for(g in A)A.hasOwnProperty(g)&&b[g]!==A[g]&&(o||(o={}),o[g]=A[g])}else o||(f||(f=[]),f.push(F,o)),o=A;else F==="dangerouslySetInnerHTML"?(A=A?A.__html:void 0,b=b?b.__html:void 0,A!=null&&b!==A&&(f=f||[]).push(F,A)):F==="children"?typeof A!="string"&&typeof A!="number"||(f=f||[]).push(F,""+A):F!=="suppressContentEditableWarning"&&F!=="suppressHydrationWarning"&&(l.hasOwnProperty(F)?(A!=null&&F==="onScroll"&&Pe("scroll",t),f||b===A||(f=[])):(f=f||[]).push(F,A))}o&&(f=f||[]).push("style",o);var F=f;(r.updateQueue=F)&&(r.flags|=4)}},Gh=function(t,r,o,a){o!==a&&(r.flags|=4)};function Fi(t,r){if(!Le)switch(t.tailMode){case"hidden":r=t.tail;for(var o=null;r!==null;)r.alternate!==null&&(o=r),r=r.sibling;o===null?t.tail=null:o.sibling=null;break;case"collapsed":o=t.tail;for(var a=null;o!==null;)o.alternate!==null&&(a=o),o=o.sibling;a===null?r||t.tail===null?t.tail=null:t.tail.sibling=null:a.sibling=null}}function at(t){var r=t.alternate!==null&&t.alternate.child===t.child,o=0,a=0;if(r)for(var c=t.child;c!==null;)o|=c.lanes|c.childLanes,a|=c.subtreeFlags&14680064,a|=c.flags&14680064,c.return=t,c=c.sibling;else for(c=t.child;c!==null;)o|=c.lanes|c.childLanes,a|=c.subtreeFlags,a|=c.flags,c.return=t,c=c.sibling;return t.subtreeFlags|=a,t.childLanes=o,r}function b_(t,r,o){var a=r.pendingProps;switch(sl(r),r.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return at(r),null;case 1:return _t(r.type)&&Ro(),at(r),null;case 3:return a=r.stateNode,Gn(),De(vt),De(ot),_l(),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),(t===null||t.child===null)&&(Po(r)?r.flags|=4:t===null||t.memoizedState.isDehydrated&&!(r.flags&256)||(r.flags|=1024,Wt!==null&&(Ql(Wt),Wt=null))),Bl(t,r),at(r),null;case 5:yl(r);var c=sn(Ai.current);if(o=r.type,t!==null&&r.stateNode!=null)Hh(t,r,o,a,c),t.ref!==r.ref&&(r.flags|=512,r.flags|=2097152);else{if(!a){if(r.stateNode===null)throw Error(i(166));return at(r),null}if(t=sn(sr.current),Po(r)){a=r.stateNode,o=r.type;var f=r.memoizedProps;switch(a[or]=r,a[Ci]=f,t=(r.mode&1)!==0,o){case"dialog":Pe("cancel",a),Pe("close",a);break;case"iframe":case"object":case"embed":Pe("load",a);break;case"video":case"audio":for(c=0;c<wi.length;c++)Pe(wi[c],a);break;case"source":Pe("error",a);break;case"img":case"image":case"link":Pe("error",a),Pe("load",a);break;case"details":Pe("toggle",a);break;case"input":wf(a,f),Pe("invalid",a);break;case"select":a._wrapperState={wasMultiple:!!f.multiple},Pe("invalid",a);break;case"textarea":Cf(a,f),Pe("invalid",a)}va(o,f),c=null;for(var g in f)if(f.hasOwnProperty(g)){var b=f[g];g==="children"?typeof b=="string"?a.textContent!==b&&(f.suppressHydrationWarning!==!0&&To(a.textContent,b,t),c=["children",b]):typeof b=="number"&&a.textContent!==""+b&&(f.suppressHydrationWarning!==!0&&To(a.textContent,b,t),c=["children",""+b]):l.hasOwnProperty(g)&&b!=null&&g==="onScroll"&&Pe("scroll",a)}switch(o){case"input":ri(a),Tf(a,f,!0);break;case"textarea":ri(a),Rf(a);break;case"select":case"option":break;default:typeof f.onClick=="function"&&(a.onclick=Co)}a=c,r.updateQueue=a,a!==null&&(r.flags|=4)}else{g=c.nodeType===9?c:c.ownerDocument,t==="http://www.w3.org/1999/xhtml"&&(t=Of(o)),t==="http://www.w3.org/1999/xhtml"?o==="script"?(t=g.createElement("div"),t.innerHTML="<script><\/script>",t=t.removeChild(t.firstChild)):typeof a.is=="string"?t=g.createElement(o,{is:a.is}):(t=g.createElement(o),o==="select"&&(g=t,a.multiple?g.multiple=!0:a.size&&(g.size=a.size))):t=g.createElementNS(t,o),t[or]=r,t[Ci]=a,Uh(t,r,!1,!1),r.stateNode=t;e:{switch(g=_a(o,a),o){case"dialog":Pe("cancel",t),Pe("close",t),c=a;break;case"iframe":case"object":case"embed":Pe("load",t),c=a;break;case"video":case"audio":for(c=0;c<wi.length;c++)Pe(wi[c],t);c=a;break;case"source":Pe("error",t),c=a;break;case"img":case"image":case"link":Pe("error",t),Pe("load",t),c=a;break;case"details":Pe("toggle",t),c=a;break;case"input":wf(t,a),c=ha(t,a),Pe("invalid",t);break;case"option":c=a;break;case"select":t._wrapperState={wasMultiple:!!a.multiple},c=Q({},a,{value:void 0}),Pe("invalid",t);break;case"textarea":Cf(t,a),c=ga(t,a),Pe("invalid",t);break;default:c=a}va(o,c),b=c;for(f in b)if(b.hasOwnProperty(f)){var A=b[f];f==="style"?If(t,A):f==="dangerouslySetInnerHTML"?(A=A?A.__html:void 0,A!=null&&Nf(t,A)):f==="children"?typeof A=="string"?(o!=="textarea"||A!=="")&&ii(t,A):typeof A=="number"&&ii(t,""+A):f!=="suppressContentEditableWarning"&&f!=="suppressHydrationWarning"&&f!=="autoFocus"&&(l.hasOwnProperty(f)?A!=null&&f==="onScroll"&&Pe("scroll",t):A!=null&&S(t,f,A,g))}switch(o){case"input":ri(t),Tf(t,a,!1);break;case"textarea":ri(t),Rf(t);break;case"option":a.value!=null&&t.setAttribute("value",""+Te(a.value));break;case"select":t.multiple=!!a.multiple,f=a.value,f!=null?xn(t,!!a.multiple,f,!1):a.defaultValue!=null&&xn(t,!!a.multiple,a.defaultValue,!0);break;default:typeof c.onClick=="function"&&(t.onclick=Co)}switch(o){case"button":case"input":case"select":case"textarea":a=!!a.autoFocus;break e;case"img":a=!0;break e;default:a=!1}}a&&(r.flags|=4)}r.ref!==null&&(r.flags|=512,r.flags|=2097152)}return at(r),null;case 6:if(t&&r.stateNode!=null)Gh(t,r,t.memoizedProps,a);else{if(typeof a!="string"&&r.stateNode===null)throw Error(i(166));if(o=sn(Ai.current),sn(sr.current),Po(r)){if(a=r.stateNode,o=r.memoizedProps,a[or]=r,(f=a.nodeValue!==o)&&(t=Ct,t!==null))switch(t.tag){case 3:To(a.nodeValue,o,(t.mode&1)!==0);break;case 5:t.memoizedProps.suppressHydrationWarning!==!0&&To(a.nodeValue,o,(t.mode&1)!==0)}f&&(r.flags|=4)}else a=(o.nodeType===9?o:o.ownerDocument).createTextNode(a),a[or]=r,r.stateNode=a}return at(r),null;case 13:if(De(Be),a=r.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(Le&&kt!==null&&r.mode&1&&!(r.flags&128))Vd(),jn(),r.flags|=98560,f=!1;else if(f=Po(r),a!==null&&a.dehydrated!==null){if(t===null){if(!f)throw Error(i(318));if(f=r.memoizedState,f=f!==null?f.dehydrated:null,!f)throw Error(i(317));f[or]=r}else jn(),!(r.flags&128)&&(r.memoizedState=null),r.flags|=4;at(r),f=!1}else Wt!==null&&(Ql(Wt),Wt=null),f=!0;if(!f)return r.flags&65536?r:null}return r.flags&128?(r.lanes=o,r):(a=a!==null,a!==(t!==null&&t.memoizedState!==null)&&a&&(r.child.flags|=8192,r.mode&1&&(t===null||Be.current&1?Qe===0&&(Qe=3):Zl())),r.updateQueue!==null&&(r.flags|=4),at(r),null);case 4:return Gn(),Bl(t,r),t===null&&xi(r.stateNode.containerInfo),at(r),null;case 10:return dl(r.type._context),at(r),null;case 17:return _t(r.type)&&Ro(),at(r),null;case 19:if(De(Be),f=r.memoizedState,f===null)return at(r),null;if(a=(r.flags&128)!==0,g=f.rendering,g===null)if(a)Fi(f,!1);else{if(Qe!==0||t!==null&&t.flags&128)for(t=r.child;t!==null;){if(g=jo(t),g!==null){for(r.flags|=128,Fi(f,!1),a=g.updateQueue,a!==null&&(r.updateQueue=a,r.flags|=4),r.subtreeFlags=0,a=o,o=r.child;o!==null;)f=o,t=a,f.flags&=14680066,g=f.alternate,g===null?(f.childLanes=0,f.lanes=t,f.child=null,f.subtreeFlags=0,f.memoizedProps=null,f.memoizedState=null,f.updateQueue=null,f.dependencies=null,f.stateNode=null):(f.childLanes=g.childLanes,f.lanes=g.lanes,f.child=g.child,f.subtreeFlags=0,f.deletions=null,f.memoizedProps=g.memoizedProps,f.memoizedState=g.memoizedState,f.updateQueue=g.updateQueue,f.type=g.type,t=g.dependencies,f.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),o=o.sibling;return Ae(Be,Be.current&1|2),r.child}t=t.sibling}f.tail!==null&&He()>Wn&&(r.flags|=128,a=!0,Fi(f,!1),r.lanes=4194304)}else{if(!a)if(t=jo(g),t!==null){if(r.flags|=128,a=!0,o=t.updateQueue,o!==null&&(r.updateQueue=o,r.flags|=4),Fi(f,!0),f.tail===null&&f.tailMode==="hidden"&&!g.alternate&&!Le)return at(r),null}else 2*He()-f.renderingStartTime>Wn&&o!==1073741824&&(r.flags|=128,a=!0,Fi(f,!1),r.lanes=4194304);f.isBackwards?(g.sibling=r.child,r.child=g):(o=f.last,o!==null?o.sibling=g:r.child=g,f.last=g)}return f.tail!==null?(r=f.tail,f.rendering=r,f.tail=r.sibling,f.renderingStartTime=He(),r.sibling=null,o=Be.current,Ae(Be,a?o&1|2:o&1),r):(at(r),null);case 22:case 23:return Yl(),a=r.memoizedState!==null,t!==null&&t.memoizedState!==null!==a&&(r.flags|=8192),a&&r.mode&1?Rt&1073741824&&(at(r),r.subtreeFlags&6&&(r.flags|=8192)):at(r),null;case 24:return null;case 25:return null}throw Error(i(156,r.tag))}function w_(t,r){switch(sl(r),r.tag){case 1:return _t(r.type)&&Ro(),t=r.flags,t&65536?(r.flags=t&-65537|128,r):null;case 3:return Gn(),De(vt),De(ot),_l(),t=r.flags,t&65536&&!(t&128)?(r.flags=t&-65537|128,r):null;case 5:return yl(r),null;case 13:if(De(Be),t=r.memoizedState,t!==null&&t.dehydrated!==null){if(r.alternate===null)throw Error(i(340));jn()}return t=r.flags,t&65536?(r.flags=t&-65537|128,r):null;case 19:return De(Be),null;case 4:return Gn(),null;case 10:return dl(r.type._context),null;case 22:case 23:return Yl(),null;case 24:return null;default:return null}}var Xo=!1,lt=!1,x_=typeof WeakSet=="function"?WeakSet:Set,K=null;function qn(t,r){var o=t.ref;if(o!==null)if(typeof o=="function")try{o(null)}catch(a){Ue(t,r,a)}else o.current=null}function jl(t,r,o){try{o()}catch(a){Ue(t,r,a)}}var $h=!1;function T_(t,r){if(Ya=po,t=bd(),Ga(t)){if("selectionStart"in t)var o={start:t.selectionStart,end:t.selectionEnd};else e:{o=(o=t.ownerDocument)&&o.defaultView||window;var a=o.getSelection&&o.getSelection();if(a&&a.rangeCount!==0){o=a.anchorNode;var c=a.anchorOffset,f=a.focusNode;a=a.focusOffset;try{o.nodeType,f.nodeType}catch{o=null;break e}var g=0,b=-1,A=-1,F=0,z=0,G=t,j=null;t:for(;;){for(var X;G!==o||c!==0&&G.nodeType!==3||(b=g+c),G!==f||a!==0&&G.nodeType!==3||(A=g+a),G.nodeType===3&&(g+=G.nodeValue.length),(X=G.firstChild)!==null;)j=G,G=X;for(;;){if(G===t)break t;if(j===o&&++F===c&&(b=g),j===f&&++z===a&&(A=g),(X=G.nextSibling)!==null)break;G=j,j=G.parentNode}G=X}o=b===-1||A===-1?null:{start:b,end:A}}else o=null}o=o||{start:0,end:0}}else o=null;for(Za={focusedElem:t,selectionRange:o},po=!1,K=r;K!==null;)if(r=K,t=r.child,(r.subtreeFlags&1028)!==0&&t!==null)t.return=r,K=t;else for(;K!==null;){r=K;try{var Y=r.alternate;if(r.flags&1024)switch(r.tag){case 0:case 11:case 15:break;case 1:if(Y!==null){var Z=Y.memoizedProps,Ge=Y.memoizedState,D=r.stateNode,I=D.getSnapshotBeforeUpdate(r.elementType===r.type?Z:Xt(r.type,Z),Ge);D.__reactInternalSnapshotBeforeUpdate=I}break;case 3:var M=r.stateNode.containerInfo;M.nodeType===1?M.textContent="":M.nodeType===9&&M.documentElement&&M.removeChild(M.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(i(163))}}catch($){Ue(r,r.return,$)}if(t=r.sibling,t!==null){t.return=r.return,K=t;break}K=r.return}return Y=$h,$h=!1,Y}function Li(t,r,o){var a=r.updateQueue;if(a=a!==null?a.lastEffect:null,a!==null){var c=a=a.next;do{if((c.tag&t)===t){var f=c.destroy;c.destroy=void 0,f!==void 0&&jl(r,o,f)}c=c.next}while(c!==a)}}function Qo(t,r){if(r=r.updateQueue,r=r!==null?r.lastEffect:null,r!==null){var o=r=r.next;do{if((o.tag&t)===t){var a=o.create;o.destroy=a()}o=o.next}while(o!==r)}}function zl(t){var r=t.ref;if(r!==null){var o=t.stateNode;switch(t.tag){case 5:t=o;break;default:t=o}typeof r=="function"?r(t):r.current=t}}function qh(t){var r=t.alternate;r!==null&&(t.alternate=null,qh(r)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(r=t.stateNode,r!==null&&(delete r[or],delete r[Ci],delete r[rl],delete r[a_],delete r[l_])),t.stateNode=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}function Vh(t){return t.tag===5||t.tag===3||t.tag===4}function Wh(t){e:for(;;){for(;t.sibling===null;){if(t.return===null||Vh(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==5&&t.tag!==6&&t.tag!==18;){if(t.flags&2||t.child===null||t.tag===4)continue e;t.child.return=t,t=t.child}if(!(t.flags&2))return t.stateNode}}function Ul(t,r,o){var a=t.tag;if(a===5||a===6)t=t.stateNode,r?o.nodeType===8?o.parentNode.insertBefore(t,r):o.insertBefore(t,r):(o.nodeType===8?(r=o.parentNode,r.insertBefore(t,o)):(r=o,r.appendChild(t)),o=o._reactRootContainer,o!=null||r.onclick!==null||(r.onclick=Co));else if(a!==4&&(t=t.child,t!==null))for(Ul(t,r,o),t=t.sibling;t!==null;)Ul(t,r,o),t=t.sibling}function Hl(t,r,o){var a=t.tag;if(a===5||a===6)t=t.stateNode,r?o.insertBefore(t,r):o.appendChild(t);else if(a!==4&&(t=t.child,t!==null))for(Hl(t,r,o),t=t.sibling;t!==null;)Hl(t,r,o),t=t.sibling}var et=null,Qt=!1;function zr(t,r,o){for(o=o.child;o!==null;)Xh(t,r,o),o=o.sibling}function Xh(t,r,o){if(ir&&typeof ir.onCommitFiberUnmount=="function")try{ir.onCommitFiberUnmount(ao,o)}catch{}switch(o.tag){case 5:lt||qn(o,r);case 6:var a=et,c=Qt;et=null,zr(t,r,o),et=a,Qt=c,et!==null&&(Qt?(t=et,o=o.stateNode,t.nodeType===8?t.parentNode.removeChild(o):t.removeChild(o)):et.removeChild(o.stateNode));break;case 18:et!==null&&(Qt?(t=et,o=o.stateNode,t.nodeType===8?tl(t.parentNode,o):t.nodeType===1&&tl(t,o),mi(t)):tl(et,o.stateNode));break;case 4:a=et,c=Qt,et=o.stateNode.containerInfo,Qt=!0,zr(t,r,o),et=a,Qt=c;break;case 0:case 11:case 14:case 15:if(!lt&&(a=o.updateQueue,a!==null&&(a=a.lastEffect,a!==null))){c=a=a.next;do{var f=c,g=f.destroy;f=f.tag,g!==void 0&&(f&2||f&4)&&jl(o,r,g),c=c.next}while(c!==a)}zr(t,r,o);break;case 1:if(!lt&&(qn(o,r),a=o.stateNode,typeof a.componentWillUnmount=="function"))try{a.props=o.memoizedProps,a.state=o.memoizedState,a.componentWillUnmount()}catch(b){Ue(o,r,b)}zr(t,r,o);break;case 21:zr(t,r,o);break;case 22:o.mode&1?(lt=(a=lt)||o.memoizedState!==null,zr(t,r,o),lt=a):zr(t,r,o);break;default:zr(t,r,o)}}function Qh(t){var r=t.updateQueue;if(r!==null){t.updateQueue=null;var o=t.stateNode;o===null&&(o=t.stateNode=new x_),r.forEach(function(a){var c=D_.bind(null,t,a);o.has(a)||(o.add(a),a.then(c,c))})}}function Kt(t,r){var o=r.deletions;if(o!==null)for(var a=0;a<o.length;a++){var c=o[a];try{var f=t,g=r,b=g;e:for(;b!==null;){switch(b.tag){case 5:et=b.stateNode,Qt=!1;break e;case 3:et=b.stateNode.containerInfo,Qt=!0;break e;case 4:et=b.stateNode.containerInfo,Qt=!0;break e}b=b.return}if(et===null)throw Error(i(160));Xh(f,g,c),et=null,Qt=!1;var A=c.alternate;A!==null&&(A.return=null),c.return=null}catch(F){Ue(c,r,F)}}if(r.subtreeFlags&12854)for(r=r.child;r!==null;)Kh(r,t),r=r.sibling}function Kh(t,r){var o=t.alternate,a=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:if(Kt(r,t),lr(t),a&4){try{Li(3,t,t.return),Qo(3,t)}catch(Z){Ue(t,t.return,Z)}try{Li(5,t,t.return)}catch(Z){Ue(t,t.return,Z)}}break;case 1:Kt(r,t),lr(t),a&512&&o!==null&&qn(o,o.return);break;case 5:if(Kt(r,t),lr(t),a&512&&o!==null&&qn(o,o.return),t.flags&32){var c=t.stateNode;try{ii(c,"")}catch(Z){Ue(t,t.return,Z)}}if(a&4&&(c=t.stateNode,c!=null)){var f=t.memoizedProps,g=o!==null?o.memoizedProps:f,b=t.type,A=t.updateQueue;if(t.updateQueue=null,A!==null)try{b==="input"&&f.type==="radio"&&f.name!=null&&xf(c,f),_a(b,g);var F=_a(b,f);for(g=0;g<A.length;g+=2){var z=A[g],G=A[g+1];z==="style"?If(c,G):z==="dangerouslySetInnerHTML"?Nf(c,G):z==="children"?ii(c,G):S(c,z,G,F)}switch(b){case"input":pa(c,f);break;case"textarea":kf(c,f);break;case"select":var j=c._wrapperState.wasMultiple;c._wrapperState.wasMultiple=!!f.multiple;var X=f.value;X!=null?xn(c,!!f.multiple,X,!1):j!==!!f.multiple&&(f.defaultValue!=null?xn(c,!!f.multiple,f.defaultValue,!0):xn(c,!!f.multiple,f.multiple?[]:"",!1))}c[Ci]=f}catch(Z){Ue(t,t.return,Z)}}break;case 6:if(Kt(r,t),lr(t),a&4){if(t.stateNode===null)throw Error(i(162));c=t.stateNode,f=t.memoizedProps;try{c.nodeValue=f}catch(Z){Ue(t,t.return,Z)}}break;case 3:if(Kt(r,t),lr(t),a&4&&o!==null&&o.memoizedState.isDehydrated)try{mi(r.containerInfo)}catch(Z){Ue(t,t.return,Z)}break;case 4:Kt(r,t),lr(t);break;case 13:Kt(r,t),lr(t),c=t.child,c.flags&8192&&(f=c.memoizedState!==null,c.stateNode.isHidden=f,!f||c.alternate!==null&&c.alternate.memoizedState!==null||(ql=He())),a&4&&Qh(t);break;case 22:if(z=o!==null&&o.memoizedState!==null,t.mode&1?(lt=(F=lt)||z,Kt(r,t),lt=F):Kt(r,t),lr(t),a&8192){if(F=t.memoizedState!==null,(t.stateNode.isHidden=F)&&!z&&t.mode&1)for(K=t,z=t.child;z!==null;){for(G=K=z;K!==null;){switch(j=K,X=j.child,j.tag){case 0:case 11:case 14:case 15:Li(4,j,j.return);break;case 1:qn(j,j.return);var Y=j.stateNode;if(typeof Y.componentWillUnmount=="function"){a=j,o=j.return;try{r=a,Y.props=r.memoizedProps,Y.state=r.memoizedState,Y.componentWillUnmount()}catch(Z){Ue(a,o,Z)}}break;case 5:qn(j,j.return);break;case 22:if(j.memoizedState!==null){Jh(G);continue}}X!==null?(X.return=j,K=X):Jh(G)}z=z.sibling}e:for(z=null,G=t;;){if(G.tag===5){if(z===null){z=G;try{c=G.stateNode,F?(f=c.style,typeof f.setProperty=="function"?f.setProperty("display","none","important"):f.display="none"):(b=G.stateNode,A=G.memoizedProps.style,g=A!=null&&A.hasOwnProperty("display")?A.display:null,b.style.display=Af("display",g))}catch(Z){Ue(t,t.return,Z)}}}else if(G.tag===6){if(z===null)try{G.stateNode.nodeValue=F?"":G.memoizedProps}catch(Z){Ue(t,t.return,Z)}}else if((G.tag!==22&&G.tag!==23||G.memoizedState===null||G===t)&&G.child!==null){G.child.return=G,G=G.child;continue}if(G===t)break e;for(;G.sibling===null;){if(G.return===null||G.return===t)break e;z===G&&(z=null),G=G.return}z===G&&(z=null),G.sibling.return=G.return,G=G.sibling}}break;case 19:Kt(r,t),lr(t),a&4&&Qh(t);break;case 21:break;default:Kt(r,t),lr(t)}}function lr(t){var r=t.flags;if(r&2){try{e:{for(var o=t.return;o!==null;){if(Vh(o)){var a=o;break e}o=o.return}throw Error(i(160))}switch(a.tag){case 5:var c=a.stateNode;a.flags&32&&(ii(c,""),a.flags&=-33);var f=Wh(t);Hl(t,f,c);break;case 3:case 4:var g=a.stateNode.containerInfo,b=Wh(t);Ul(t,b,g);break;default:throw Error(i(161))}}catch(A){Ue(t,t.return,A)}t.flags&=-3}r&4096&&(t.flags&=-4097)}function C_(t,r,o){K=t,Yh(t)}function Yh(t,r,o){for(var a=(t.mode&1)!==0;K!==null;){var c=K,f=c.child;if(c.tag===22&&a){var g=c.memoizedState!==null||Xo;if(!g){var b=c.alternate,A=b!==null&&b.memoizedState!==null||lt;b=Xo;var F=lt;if(Xo=g,(lt=A)&&!F)for(K=c;K!==null;)g=K,A=g.child,g.tag===22&&g.memoizedState!==null?ep(c):A!==null?(A.return=g,K=A):ep(c);for(;f!==null;)K=f,Yh(f),f=f.sibling;K=c,Xo=b,lt=F}Zh(t)}else c.subtreeFlags&8772&&f!==null?(f.return=c,K=f):Zh(t)}}function Zh(t){for(;K!==null;){var r=K;if(r.flags&8772){var o=r.alternate;try{if(r.flags&8772)switch(r.tag){case 0:case 11:case 15:lt||Qo(5,r);break;case 1:var a=r.stateNode;if(r.flags&4&&!lt)if(o===null)a.componentDidMount();else{var c=r.elementType===r.type?o.memoizedProps:Xt(r.type,o.memoizedProps);a.componentDidUpdate(c,o.memoizedState,a.__reactInternalSnapshotBeforeUpdate)}var f=r.updateQueue;f!==null&&Jd(r,f,a);break;case 3:var g=r.updateQueue;if(g!==null){if(o=null,r.child!==null)switch(r.child.tag){case 5:o=r.child.stateNode;break;case 1:o=r.child.stateNode}Jd(r,g,o)}break;case 5:var b=r.stateNode;if(o===null&&r.flags&4){o=b;var A=r.memoizedProps;switch(r.type){case"button":case"input":case"select":case"textarea":A.autoFocus&&o.focus();break;case"img":A.src&&(o.src=A.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(r.memoizedState===null){var F=r.alternate;if(F!==null){var z=F.memoizedState;if(z!==null){var G=z.dehydrated;G!==null&&mi(G)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(i(163))}lt||r.flags&512&&zl(r)}catch(j){Ue(r,r.return,j)}}if(r===t){K=null;break}if(o=r.sibling,o!==null){o.return=r.return,K=o;break}K=r.return}}function Jh(t){for(;K!==null;){var r=K;if(r===t){K=null;break}var o=r.sibling;if(o!==null){o.return=r.return,K=o;break}K=r.return}}function ep(t){for(;K!==null;){var r=K;try{switch(r.tag){case 0:case 11:case 15:var o=r.return;try{Qo(4,r)}catch(A){Ue(r,o,A)}break;case 1:var a=r.stateNode;if(typeof a.componentDidMount=="function"){var c=r.return;try{a.componentDidMount()}catch(A){Ue(r,c,A)}}var f=r.return;try{zl(r)}catch(A){Ue(r,f,A)}break;case 5:var g=r.return;try{zl(r)}catch(A){Ue(r,g,A)}}}catch(A){Ue(r,r.return,A)}if(r===t){K=null;break}var b=r.sibling;if(b!==null){b.return=r.return,K=b;break}K=r.return}}var k_=Math.ceil,Ko=T.ReactCurrentDispatcher,Gl=T.ReactCurrentOwner,jt=T.ReactCurrentBatchConfig,be=0,Ye=null,qe=null,tt=0,Rt=0,Vn=Mr(0),Qe=0,Bi=null,ln=0,Yo=0,$l=0,ji=null,St=null,ql=0,Wn=1/0,_r=null,Zo=!1,Vl=null,Ur=null,Jo=!1,Hr=null,es=0,zi=0,Wl=null,ts=-1,rs=0;function ft(){return be&6?He():ts!==-1?ts:ts=He()}function Gr(t){return t.mode&1?be&2&&tt!==0?tt&-tt:c_.transition!==null?(rs===0&&(rs=Wf()),rs):(t=Oe,t!==0||(t=window.event,t=t===void 0?16:rd(t.type)),t):1}function Yt(t,r,o,a){if(50<zi)throw zi=0,Wl=null,Error(i(185));ci(t,o,a),(!(be&2)||t!==Ye)&&(t===Ye&&(!(be&2)&&(Yo|=o),Qe===4&&$r(t,tt)),bt(t,a),o===1&&be===0&&!(r.mode&1)&&(Wn=He()+500,No&&Lr()))}function bt(t,r){var o=t.callbackNode;c0(t,r);var a=co(t,t===Ye?tt:0);if(a===0)o!==null&&$f(o),t.callbackNode=null,t.callbackPriority=0;else if(r=a&-a,t.callbackPriority!==r){if(o!=null&&$f(o),r===1)t.tag===0?u_(rp.bind(null,t)):Ud(rp.bind(null,t)),o_(function(){!(be&6)&&Lr()}),o=null;else{switch(Xf(a)){case 1:o=Ca;break;case 4:o=qf;break;case 16:o=so;break;case 536870912:o=Vf;break;default:o=so}o=cp(o,tp.bind(null,t))}t.callbackPriority=r,t.callbackNode=o}}function tp(t,r){if(ts=-1,rs=0,be&6)throw Error(i(327));var o=t.callbackNode;if(Xn()&&t.callbackNode!==o)return null;var a=co(t,t===Ye?tt:0);if(a===0)return null;if(a&30||a&t.expiredLanes||r)r=ns(t,a);else{r=a;var c=be;be|=2;var f=ip();(Ye!==t||tt!==r)&&(_r=null,Wn=He()+500,cn(t,r));do try{N_();break}catch(b){np(t,b)}while(!0);fl(),Ko.current=f,be=c,qe!==null?r=0:(Ye=null,tt=0,r=Qe)}if(r!==0){if(r===2&&(c=ka(t),c!==0&&(a=c,r=Xl(t,c))),r===1)throw o=Bi,cn(t,0),$r(t,a),bt(t,He()),o;if(r===6)$r(t,a);else{if(c=t.current.alternate,!(a&30)&&!R_(c)&&(r=ns(t,a),r===2&&(f=ka(t),f!==0&&(a=f,r=Xl(t,f))),r===1))throw o=Bi,cn(t,0),$r(t,a),bt(t,He()),o;switch(t.finishedWork=c,t.finishedLanes=a,r){case 0:case 1:throw Error(i(345));case 2:fn(t,St,_r);break;case 3:if($r(t,a),(a&130023424)===a&&(r=ql+500-He(),10<r)){if(co(t,0)!==0)break;if(c=t.suspendedLanes,(c&a)!==a){ft(),t.pingedLanes|=t.suspendedLanes&c;break}t.timeoutHandle=el(fn.bind(null,t,St,_r),r);break}fn(t,St,_r);break;case 4:if($r(t,a),(a&4194240)===a)break;for(r=t.eventTimes,c=-1;0<a;){var g=31-qt(a);f=1<<g,g=r[g],g>c&&(c=g),a&=~f}if(a=c,a=He()-a,a=(120>a?120:480>a?480:1080>a?1080:1920>a?1920:3e3>a?3e3:4320>a?4320:1960*k_(a/1960))-a,10<a){t.timeoutHandle=el(fn.bind(null,t,St,_r),a);break}fn(t,St,_r);break;case 5:fn(t,St,_r);break;default:throw Error(i(329))}}}return bt(t,He()),t.callbackNode===o?tp.bind(null,t):null}function Xl(t,r){var o=ji;return t.current.memoizedState.isDehydrated&&(cn(t,r).flags|=256),t=ns(t,r),t!==2&&(r=St,St=o,r!==null&&Ql(r)),t}function Ql(t){St===null?St=t:St.push.apply(St,t)}function R_(t){for(var r=t;;){if(r.flags&16384){var o=r.updateQueue;if(o!==null&&(o=o.stores,o!==null))for(var a=0;a<o.length;a++){var c=o[a],f=c.getSnapshot;c=c.value;try{if(!Vt(f(),c))return!1}catch{return!1}}}if(o=r.child,r.subtreeFlags&16384&&o!==null)o.return=r,r=o;else{if(r===t)break;for(;r.sibling===null;){if(r.return===null||r.return===t)return!0;r=r.return}r.sibling.return=r.return,r=r.sibling}}return!0}function $r(t,r){for(r&=~$l,r&=~Yo,t.suspendedLanes|=r,t.pingedLanes&=~r,t=t.expirationTimes;0<r;){var o=31-qt(r),a=1<<o;t[o]=-1,r&=~a}}function rp(t){if(be&6)throw Error(i(327));Xn();var r=co(t,0);if(!(r&1))return bt(t,He()),null;var o=ns(t,r);if(t.tag!==0&&o===2){var a=ka(t);a!==0&&(r=a,o=Xl(t,a))}if(o===1)throw o=Bi,cn(t,0),$r(t,r),bt(t,He()),o;if(o===6)throw Error(i(345));return t.finishedWork=t.current.alternate,t.finishedLanes=r,fn(t,St,_r),bt(t,He()),null}function Kl(t,r){var o=be;be|=1;try{return t(r)}finally{be=o,be===0&&(Wn=He()+500,No&&Lr())}}function un(t){Hr!==null&&Hr.tag===0&&!(be&6)&&Xn();var r=be;be|=1;var o=jt.transition,a=Oe;try{if(jt.transition=null,Oe=1,t)return t()}finally{Oe=a,jt.transition=o,be=r,!(be&6)&&Lr()}}function Yl(){Rt=Vn.current,De(Vn)}function cn(t,r){t.finishedWork=null,t.finishedLanes=0;var o=t.timeoutHandle;if(o!==-1&&(t.timeoutHandle=-1,i_(o)),qe!==null)for(o=qe.return;o!==null;){var a=o;switch(sl(a),a.tag){case 1:a=a.type.childContextTypes,a!=null&&Ro();break;case 3:Gn(),De(vt),De(ot),_l();break;case 5:yl(a);break;case 4:Gn();break;case 13:De(Be);break;case 19:De(Be);break;case 10:dl(a.type._context);break;case 22:case 23:Yl()}o=o.return}if(Ye=t,qe=t=qr(t.current,null),tt=Rt=r,Qe=0,Bi=null,$l=Yo=ln=0,St=ji=null,on!==null){for(r=0;r<on.length;r++)if(o=on[r],a=o.interleaved,a!==null){o.interleaved=null;var c=a.next,f=o.pending;if(f!==null){var g=f.next;f.next=c,a.next=g}o.pending=a}on=null}return t}function np(t,r){do{var o=qe;try{if(fl(),zo.current=$o,Uo){for(var a=je.memoizedState;a!==null;){var c=a.queue;c!==null&&(c.pending=null),a=a.next}Uo=!1}if(an=0,Ke=Xe=je=null,Ii=!1,Pi=0,Gl.current=null,o===null||o.return===null){Qe=1,Bi=r,qe=null;break}e:{var f=t,g=o.return,b=o,A=r;if(r=tt,b.flags|=32768,A!==null&&typeof A=="object"&&typeof A.then=="function"){var F=A,z=b,G=z.tag;if(!(z.mode&1)&&(G===0||G===11||G===15)){var j=z.alternate;j?(z.updateQueue=j.updateQueue,z.memoizedState=j.memoizedState,z.lanes=j.lanes):(z.updateQueue=null,z.memoizedState=null)}var X=Rh(g);if(X!==null){X.flags&=-257,Oh(X,g,b,f,r),X.mode&1&&kh(f,F,r),r=X,A=F;var Y=r.updateQueue;if(Y===null){var Z=new Set;Z.add(A),r.updateQueue=Z}else Y.add(A);break e}else{if(!(r&1)){kh(f,F,r),Zl();break e}A=Error(i(426))}}else if(Le&&b.mode&1){var Ge=Rh(g);if(Ge!==null){!(Ge.flags&65536)&&(Ge.flags|=256),Oh(Ge,g,b,f,r),ul($n(A,b));break e}}f=A=$n(A,b),Qe!==4&&(Qe=2),ji===null?ji=[f]:ji.push(f),f=g;do{switch(f.tag){case 3:f.flags|=65536,r&=-r,f.lanes|=r;var D=Th(f,A,r);Zd(f,D);break e;case 1:b=A;var I=f.type,M=f.stateNode;if(!(f.flags&128)&&(typeof I.getDerivedStateFromError=="function"||M!==null&&typeof M.componentDidCatch=="function"&&(Ur===null||!Ur.has(M)))){f.flags|=65536,r&=-r,f.lanes|=r;var $=Ch(f,b,r);Zd(f,$);break e}}f=f.return}while(f!==null)}sp(o)}catch(ee){r=ee,qe===o&&o!==null&&(qe=o=o.return);continue}break}while(!0)}function ip(){var t=Ko.current;return Ko.current=$o,t===null?$o:t}function Zl(){(Qe===0||Qe===3||Qe===2)&&(Qe=4),Ye===null||!(ln&268435455)&&!(Yo&268435455)||$r(Ye,tt)}function ns(t,r){var o=be;be|=2;var a=ip();(Ye!==t||tt!==r)&&(_r=null,cn(t,r));do try{O_();break}catch(c){np(t,c)}while(!0);if(fl(),be=o,Ko.current=a,qe!==null)throw Error(i(261));return Ye=null,tt=0,Qe}function O_(){for(;qe!==null;)op(qe)}function N_(){for(;qe!==null&&!t0();)op(qe)}function op(t){var r=up(t.alternate,t,Rt);t.memoizedProps=t.pendingProps,r===null?sp(t):qe=r,Gl.current=null}function sp(t){var r=t;do{var o=r.alternate;if(t=r.return,r.flags&32768){if(o=w_(o,r),o!==null){o.flags&=32767,qe=o;return}if(t!==null)t.flags|=32768,t.subtreeFlags=0,t.deletions=null;else{Qe=6,qe=null;return}}else if(o=b_(o,r,Rt),o!==null){qe=o;return}if(r=r.sibling,r!==null){qe=r;return}qe=r=t}while(r!==null);Qe===0&&(Qe=5)}function fn(t,r,o){var a=Oe,c=jt.transition;try{jt.transition=null,Oe=1,A_(t,r,o,a)}finally{jt.transition=c,Oe=a}return null}function A_(t,r,o,a){do Xn();while(Hr!==null);if(be&6)throw Error(i(327));o=t.finishedWork;var c=t.finishedLanes;if(o===null)return null;if(t.finishedWork=null,t.finishedLanes=0,o===t.current)throw Error(i(177));t.callbackNode=null,t.callbackPriority=0;var f=o.lanes|o.childLanes;if(f0(t,f),t===Ye&&(qe=Ye=null,tt=0),!(o.subtreeFlags&2064)&&!(o.flags&2064)||Jo||(Jo=!0,cp(so,function(){return Xn(),null})),f=(o.flags&15990)!==0,o.subtreeFlags&15990||f){f=jt.transition,jt.transition=null;var g=Oe;Oe=1;var b=be;be|=4,Gl.current=null,T_(t,o),Kh(o,t),Y0(Za),po=!!Ya,Za=Ya=null,t.current=o,C_(o),r0(),be=b,Oe=g,jt.transition=f}else t.current=o;if(Jo&&(Jo=!1,Hr=t,es=c),f=t.pendingLanes,f===0&&(Ur=null),o0(o.stateNode),bt(t,He()),r!==null)for(a=t.onRecoverableError,o=0;o<r.length;o++)c=r[o],a(c.value,{componentStack:c.stack,digest:c.digest});if(Zo)throw Zo=!1,t=Vl,Vl=null,t;return es&1&&t.tag!==0&&Xn(),f=t.pendingLanes,f&1?t===Wl?zi++:(zi=0,Wl=t):zi=0,Lr(),null}function Xn(){if(Hr!==null){var t=Xf(es),r=jt.transition,o=Oe;try{if(jt.transition=null,Oe=16>t?16:t,Hr===null)var a=!1;else{if(t=Hr,Hr=null,es=0,be&6)throw Error(i(331));var c=be;for(be|=4,K=t.current;K!==null;){var f=K,g=f.child;if(K.flags&16){var b=f.deletions;if(b!==null){for(var A=0;A<b.length;A++){var F=b[A];for(K=F;K!==null;){var z=K;switch(z.tag){case 0:case 11:case 15:Li(8,z,f)}var G=z.child;if(G!==null)G.return=z,K=G;else for(;K!==null;){z=K;var j=z.sibling,X=z.return;if(qh(z),z===F){K=null;break}if(j!==null){j.return=X,K=j;break}K=X}}}var Y=f.alternate;if(Y!==null){var Z=Y.child;if(Z!==null){Y.child=null;do{var Ge=Z.sibling;Z.sibling=null,Z=Ge}while(Z!==null)}}K=f}}if(f.subtreeFlags&2064&&g!==null)g.return=f,K=g;else e:for(;K!==null;){if(f=K,f.flags&2048)switch(f.tag){case 0:case 11:case 15:Li(9,f,f.return)}var D=f.sibling;if(D!==null){D.return=f.return,K=D;break e}K=f.return}}var I=t.current;for(K=I;K!==null;){g=K;var M=g.child;if(g.subtreeFlags&2064&&M!==null)M.return=g,K=M;else e:for(g=I;K!==null;){if(b=K,b.flags&2048)try{switch(b.tag){case 0:case 11:case 15:Qo(9,b)}}catch(ee){Ue(b,b.return,ee)}if(b===g){K=null;break e}var $=b.sibling;if($!==null){$.return=b.return,K=$;break e}K=b.return}}if(be=c,Lr(),ir&&typeof ir.onPostCommitFiberRoot=="function")try{ir.onPostCommitFiberRoot(ao,t)}catch{}a=!0}return a}finally{Oe=o,jt.transition=r}}return!1}function ap(t,r,o){r=$n(o,r),r=Th(t,r,1),t=jr(t,r,1),r=ft(),t!==null&&(ci(t,1,r),bt(t,r))}function Ue(t,r,o){if(t.tag===3)ap(t,t,o);else for(;r!==null;){if(r.tag===3){ap(r,t,o);break}else if(r.tag===1){var a=r.stateNode;if(typeof r.type.getDerivedStateFromError=="function"||typeof a.componentDidCatch=="function"&&(Ur===null||!Ur.has(a))){t=$n(o,t),t=Ch(r,t,1),r=jr(r,t,1),t=ft(),r!==null&&(ci(r,1,t),bt(r,t));break}}r=r.return}}function I_(t,r,o){var a=t.pingCache;a!==null&&a.delete(r),r=ft(),t.pingedLanes|=t.suspendedLanes&o,Ye===t&&(tt&o)===o&&(Qe===4||Qe===3&&(tt&130023424)===tt&&500>He()-ql?cn(t,0):$l|=o),bt(t,r)}function lp(t,r){r===0&&(t.mode&1?(r=uo,uo<<=1,!(uo&130023424)&&(uo=4194304)):r=1);var o=ft();t=gr(t,r),t!==null&&(ci(t,r,o),bt(t,o))}function P_(t){var r=t.memoizedState,o=0;r!==null&&(o=r.retryLane),lp(t,o)}function D_(t,r){var o=0;switch(t.tag){case 13:var a=t.stateNode,c=t.memoizedState;c!==null&&(o=c.retryLane);break;case 19:a=t.stateNode;break;default:throw Error(i(314))}a!==null&&a.delete(r),lp(t,o)}var up;up=function(t,r,o){if(t!==null)if(t.memoizedProps!==r.pendingProps||vt.current)Et=!0;else{if(!(t.lanes&o)&&!(r.flags&128))return Et=!1,S_(t,r,o);Et=!!(t.flags&131072)}else Et=!1,Le&&r.flags&1048576&&Hd(r,Io,r.index);switch(r.lanes=0,r.tag){case 2:var a=r.type;Wo(t,r),t=r.pendingProps;var c=Fn(r,ot.current);Hn(r,o),c=bl(null,r,a,t,c,o);var f=wl();return r.flags|=1,typeof c=="object"&&c!==null&&typeof c.render=="function"&&c.$$typeof===void 0?(r.tag=1,r.memoizedState=null,r.updateQueue=null,_t(a)?(f=!0,Oo(r)):f=!1,r.memoizedState=c.state!==null&&c.state!==void 0?c.state:null,ml(r),c.updater=qo,r.stateNode=c,c._reactInternals=r,Ol(r,a,t,o),r=Pl(null,r,a,!0,f,o)):(r.tag=0,Le&&f&&ol(r),ct(null,r,c,o),r=r.child),r;case 16:a=r.elementType;e:{switch(Wo(t,r),t=r.pendingProps,c=a._init,a=c(a._payload),r.type=a,c=r.tag=F_(a),t=Xt(a,t),c){case 0:r=Il(null,r,a,t,o);break e;case 1:r=Mh(null,r,a,t,o);break e;case 11:r=Nh(null,r,a,t,o);break e;case 14:r=Ah(null,r,a,Xt(a.type,t),o);break e}throw Error(i(306,a,""))}return r;case 0:return a=r.type,c=r.pendingProps,c=r.elementType===a?c:Xt(a,c),Il(t,r,a,c,o);case 1:return a=r.type,c=r.pendingProps,c=r.elementType===a?c:Xt(a,c),Mh(t,r,a,c,o);case 3:e:{if(Fh(r),t===null)throw Error(i(387));a=r.pendingProps,f=r.memoizedState,c=f.element,Yd(t,r),Bo(r,a,null,o);var g=r.memoizedState;if(a=g.element,f.isDehydrated)if(f={element:a,isDehydrated:!1,cache:g.cache,pendingSuspenseBoundaries:g.pendingSuspenseBoundaries,transitions:g.transitions},r.updateQueue.baseState=f,r.memoizedState=f,r.flags&256){c=$n(Error(i(423)),r),r=Lh(t,r,a,o,c);break e}else if(a!==c){c=$n(Error(i(424)),r),r=Lh(t,r,a,o,c);break e}else for(kt=Dr(r.stateNode.containerInfo.firstChild),Ct=r,Le=!0,Wt=null,o=Qd(r,null,a,o),r.child=o;o;)o.flags=o.flags&-3|4096,o=o.sibling;else{if(jn(),a===c){r=vr(t,r,o);break e}ct(t,r,a,o)}r=r.child}return r;case 5:return eh(r),t===null&&ll(r),a=r.type,c=r.pendingProps,f=t!==null?t.memoizedProps:null,g=c.children,Ja(a,c)?g=null:f!==null&&Ja(a,f)&&(r.flags|=32),Dh(t,r),ct(t,r,g,o),r.child;case 6:return t===null&&ll(r),null;case 13:return Bh(t,r,o);case 4:return gl(r,r.stateNode.containerInfo),a=r.pendingProps,t===null?r.child=zn(r,null,a,o):ct(t,r,a,o),r.child;case 11:return a=r.type,c=r.pendingProps,c=r.elementType===a?c:Xt(a,c),Nh(t,r,a,c,o);case 7:return ct(t,r,r.pendingProps,o),r.child;case 8:return ct(t,r,r.pendingProps.children,o),r.child;case 12:return ct(t,r,r.pendingProps.children,o),r.child;case 10:e:{if(a=r.type._context,c=r.pendingProps,f=r.memoizedProps,g=c.value,Ae(Mo,a._currentValue),a._currentValue=g,f!==null)if(Vt(f.value,g)){if(f.children===c.children&&!vt.current){r=vr(t,r,o);break e}}else for(f=r.child,f!==null&&(f.return=r);f!==null;){var b=f.dependencies;if(b!==null){g=f.child;for(var A=b.firstContext;A!==null;){if(A.context===a){if(f.tag===1){A=yr(-1,o&-o),A.tag=2;var F=f.updateQueue;if(F!==null){F=F.shared;var z=F.pending;z===null?A.next=A:(A.next=z.next,z.next=A),F.pending=A}}f.lanes|=o,A=f.alternate,A!==null&&(A.lanes|=o),hl(f.return,o,r),b.lanes|=o;break}A=A.next}}else if(f.tag===10)g=f.type===r.type?null:f.child;else if(f.tag===18){if(g=f.return,g===null)throw Error(i(341));g.lanes|=o,b=g.alternate,b!==null&&(b.lanes|=o),hl(g,o,r),g=f.sibling}else g=f.child;if(g!==null)g.return=f;else for(g=f;g!==null;){if(g===r){g=null;break}if(f=g.sibling,f!==null){f.return=g.return,g=f;break}g=g.return}f=g}ct(t,r,c.children,o),r=r.child}return r;case 9:return c=r.type,a=r.pendingProps.children,Hn(r,o),c=Lt(c),a=a(c),r.flags|=1,ct(t,r,a,o),r.child;case 14:return a=r.type,c=Xt(a,r.pendingProps),c=Xt(a.type,c),Ah(t,r,a,c,o);case 15:return Ih(t,r,r.type,r.pendingProps,o);case 17:return a=r.type,c=r.pendingProps,c=r.elementType===a?c:Xt(a,c),Wo(t,r),r.tag=1,_t(a)?(t=!0,Oo(r)):t=!1,Hn(r,o),wh(r,a,c),Ol(r,a,c,o),Pl(null,r,a,!0,t,o);case 19:return zh(t,r,o);case 22:return Ph(t,r,o)}throw Error(i(156,r.tag))};function cp(t,r){return Gf(t,r)}function M_(t,r,o,a){this.tag=t,this.key=o,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=r,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=a,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function zt(t,r,o,a){return new M_(t,r,o,a)}function Jl(t){return t=t.prototype,!(!t||!t.isReactComponent)}function F_(t){if(typeof t=="function")return Jl(t)?1:0;if(t!=null){if(t=t.$$typeof,t===de)return 11;if(t===Ie)return 14}return 2}function qr(t,r){var o=t.alternate;return o===null?(o=zt(t.tag,r,t.key,t.mode),o.elementType=t.elementType,o.type=t.type,o.stateNode=t.stateNode,o.alternate=t,t.alternate=o):(o.pendingProps=r,o.type=t.type,o.flags=0,o.subtreeFlags=0,o.deletions=null),o.flags=t.flags&14680064,o.childLanes=t.childLanes,o.lanes=t.lanes,o.child=t.child,o.memoizedProps=t.memoizedProps,o.memoizedState=t.memoizedState,o.updateQueue=t.updateQueue,r=t.dependencies,o.dependencies=r===null?null:{lanes:r.lanes,firstContext:r.firstContext},o.sibling=t.sibling,o.index=t.index,o.ref=t.ref,o}function is(t,r,o,a,c,f){var g=2;if(a=t,typeof t=="function")Jl(t)&&(g=1);else if(typeof t=="string")g=5;else e:switch(t){case H:return dn(o.children,c,f,r);case W:g=8,c|=8;break;case se:return t=zt(12,o,r,c|2),t.elementType=se,t.lanes=f,t;case ae:return t=zt(13,o,r,c),t.elementType=ae,t.lanes=f,t;case Fe:return t=zt(19,o,r,c),t.elementType=Fe,t.lanes=f,t;case Ne:return os(o,c,f,r);default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case te:g=10;break e;case fe:g=9;break e;case de:g=11;break e;case Ie:g=14;break e;case $e:g=16,a=null;break e}throw Error(i(130,t==null?t:typeof t,""))}return r=zt(g,o,r,c),r.elementType=t,r.type=a,r.lanes=f,r}function dn(t,r,o,a){return t=zt(7,t,a,r),t.lanes=o,t}function os(t,r,o,a){return t=zt(22,t,a,r),t.elementType=Ne,t.lanes=o,t.stateNode={isHidden:!1},t}function eu(t,r,o){return t=zt(6,t,null,r),t.lanes=o,t}function tu(t,r,o){return r=zt(4,t.children!==null?t.children:[],t.key,r),r.lanes=o,r.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},r}function L_(t,r,o,a,c){this.tag=r,this.containerInfo=t,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Ra(0),this.expirationTimes=Ra(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ra(0),this.identifierPrefix=a,this.onRecoverableError=c,this.mutableSourceEagerHydrationData=null}function ru(t,r,o,a,c,f,g,b,A){return t=new L_(t,r,o,b,A),r===1?(r=1,f===!0&&(r|=8)):r=0,f=zt(3,null,null,r),t.current=f,f.stateNode=t,f.memoizedState={element:a,isDehydrated:o,cache:null,transitions:null,pendingSuspenseBoundaries:null},ml(f),t}function B_(t,r,o){var a=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:L,key:a==null?null:""+a,children:t,containerInfo:r,implementation:o}}function fp(t){if(!t)return Fr;t=t._reactInternals;e:{if(Jr(t)!==t||t.tag!==1)throw Error(i(170));var r=t;do{switch(r.tag){case 3:r=r.stateNode.context;break e;case 1:if(_t(r.type)){r=r.stateNode.__reactInternalMemoizedMergedChildContext;break e}}r=r.return}while(r!==null);throw Error(i(171))}if(t.tag===1){var o=t.type;if(_t(o))return jd(t,o,r)}return r}function dp(t,r,o,a,c,f,g,b,A){return t=ru(o,a,!0,t,c,f,g,b,A),t.context=fp(null),o=t.current,a=ft(),c=Gr(o),f=yr(a,c),f.callback=r??null,jr(o,f,c),t.current.lanes=c,ci(t,c,a),bt(t,a),t}function ss(t,r,o,a){var c=r.current,f=ft(),g=Gr(c);return o=fp(o),r.context===null?r.context=o:r.pendingContext=o,r=yr(f,g),r.payload={element:t},a=a===void 0?null:a,a!==null&&(r.callback=a),t=jr(c,r,g),t!==null&&(Yt(t,c,g,f),Lo(t,c,g)),g}function as(t){if(t=t.current,!t.child)return null;switch(t.child.tag){case 5:return t.child.stateNode;default:return t.child.stateNode}}function hp(t,r){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var o=t.retryLane;t.retryLane=o!==0&&o<r?o:r}}function nu(t,r){hp(t,r),(t=t.alternate)&&hp(t,r)}function j_(){return null}var pp=typeof reportError=="function"?reportError:function(t){console.error(t)};function iu(t){this._internalRoot=t}ls.prototype.render=iu.prototype.render=function(t){var r=this._internalRoot;if(r===null)throw Error(i(409));ss(t,r,null,null)},ls.prototype.unmount=iu.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var r=t.containerInfo;un(function(){ss(null,t,null,null)}),r[dr]=null}};function ls(t){this._internalRoot=t}ls.prototype.unstable_scheduleHydration=function(t){if(t){var r=Yf();t={blockedOn:null,target:t,priority:r};for(var o=0;o<Ar.length&&r!==0&&r<Ar[o].priority;o++);Ar.splice(o,0,t),o===0&&ed(t)}};function ou(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)}function us(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11&&(t.nodeType!==8||t.nodeValue!==" react-mount-point-unstable "))}function mp(){}function z_(t,r,o,a,c){if(c){if(typeof a=="function"){var f=a;a=function(){var F=as(g);f.call(F)}}var g=dp(r,a,t,0,null,!1,!1,"",mp);return t._reactRootContainer=g,t[dr]=g.current,xi(t.nodeType===8?t.parentNode:t),un(),g}for(;c=t.lastChild;)t.removeChild(c);if(typeof a=="function"){var b=a;a=function(){var F=as(A);b.call(F)}}var A=ru(t,0,!1,null,null,!1,!1,"",mp);return t._reactRootContainer=A,t[dr]=A.current,xi(t.nodeType===8?t.parentNode:t),un(function(){ss(r,A,o,a)}),A}function cs(t,r,o,a,c){var f=o._reactRootContainer;if(f){var g=f;if(typeof c=="function"){var b=c;c=function(){var A=as(g);b.call(A)}}ss(r,g,t,c)}else g=z_(o,r,t,c,a);return as(g)}Qf=function(t){switch(t.tag){case 3:var r=t.stateNode;if(r.current.memoizedState.isDehydrated){var o=ui(r.pendingLanes);o!==0&&(Oa(r,o|1),bt(r,He()),!(be&6)&&(Wn=He()+500,Lr()))}break;case 13:un(function(){var a=gr(t,1);if(a!==null){var c=ft();Yt(a,t,1,c)}}),nu(t,1)}},Na=function(t){if(t.tag===13){var r=gr(t,134217728);if(r!==null){var o=ft();Yt(r,t,134217728,o)}nu(t,134217728)}},Kf=function(t){if(t.tag===13){var r=Gr(t),o=gr(t,r);if(o!==null){var a=ft();Yt(o,t,r,a)}nu(t,r)}},Yf=function(){return Oe},Zf=function(t,r){var o=Oe;try{return Oe=t,r()}finally{Oe=o}},ba=function(t,r,o){switch(r){case"input":if(pa(t,o),r=o.name,o.type==="radio"&&r!=null){for(o=t;o.parentNode;)o=o.parentNode;for(o=o.querySelectorAll("input[name="+JSON.stringify(""+r)+'][type="radio"]'),r=0;r<o.length;r++){var a=o[r];if(a!==t&&a.form===t.form){var c=ko(a);if(!c)throw Error(i(90));ut(a),pa(a,c)}}}break;case"textarea":kf(t,o);break;case"select":r=o.value,r!=null&&xn(t,!!o.multiple,r,!1)}},Ff=Kl,Lf=un;var U_={usingClientEntryPoint:!1,Events:[ki,Dn,ko,Df,Mf,Kl]},Ui={findFiberByHostInstance:en,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},H_={bundleType:Ui.bundleType,version:Ui.version,rendererPackageName:Ui.rendererPackageName,rendererConfig:Ui.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:T.ReactCurrentDispatcher,findHostInstanceByFiber:function(t){return t=Uf(t),t===null?null:t.stateNode},findFiberByHostInstance:Ui.findFiberByHostInstance||j_,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var fs=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!fs.isDisabled&&fs.supportsFiber)try{ao=fs.inject(H_),ir=fs}catch{}}return wt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=U_,wt.createPortal=function(t,r){var o=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!ou(r))throw Error(i(200));return B_(t,r,null,o)},wt.createRoot=function(t,r){if(!ou(t))throw Error(i(299));var o=!1,a="",c=pp;return r!=null&&(r.unstable_strictMode===!0&&(o=!0),r.identifierPrefix!==void 0&&(a=r.identifierPrefix),r.onRecoverableError!==void 0&&(c=r.onRecoverableError)),r=ru(t,1,!1,null,null,o,!1,a,c),t[dr]=r.current,xi(t.nodeType===8?t.parentNode:t),new iu(r)},wt.findDOMNode=function(t){if(t==null)return null;if(t.nodeType===1)return t;var r=t._reactInternals;if(r===void 0)throw typeof t.render=="function"?Error(i(188)):(t=Object.keys(t).join(","),Error(i(268,t)));return t=Uf(r),t=t===null?null:t.stateNode,t},wt.flushSync=function(t){return un(t)},wt.hydrate=function(t,r,o){if(!us(r))throw Error(i(200));return cs(null,t,r,!0,o)},wt.hydrateRoot=function(t,r,o){if(!ou(t))throw Error(i(405));var a=o!=null&&o.hydratedSources||null,c=!1,f="",g=pp;if(o!=null&&(o.unstable_strictMode===!0&&(c=!0),o.identifierPrefix!==void 0&&(f=o.identifierPrefix),o.onRecoverableError!==void 0&&(g=o.onRecoverableError)),r=dp(r,null,t,1,o??null,c,!1,f,g),t[dr]=r.current,xi(t),a)for(t=0;t<a.length;t++)o=a[t],c=o._getVersion,c=c(o._source),r.mutableSourceEagerHydrationData==null?r.mutableSourceEagerHydrationData=[o,c]:r.mutableSourceEagerHydrationData.push(o,c);return new ls(r)},wt.render=function(t,r,o){if(!us(r))throw Error(i(200));return cs(null,t,r,!1,o)},wt.unmountComponentAtNode=function(t){if(!us(t))throw Error(i(40));return t._reactRootContainer?(un(function(){cs(null,null,t,!1,function(){t._reactRootContainer=null,t[dr]=null})}),!0):!1},wt.unstable_batchedUpdates=Kl,wt.unstable_renderSubtreeIntoContainer=function(t,r,o,a){if(!us(o))throw Error(i(200));if(t==null||t._reactInternals===void 0)throw Error(i(38));return cs(t,r,o,!1,a)},wt.version="18.3.1-next-f1338f8080-20240426",wt}var wp;function Z_(){if(wp)return lu.exports;wp=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(n){console.error(n)}}return e(),lu.exports=Y_(),lu.exports}var xp;function J_(){if(xp)return hs;xp=1;var e=Z_();return hs.createRoot=e.createRoot,hs.hydrateRoot=e.hydrateRoot,hs}var e1=J_(),U=ei();const wr=Js(U);var fu={exports:{}},du={};/**
|
|
41
|
+
* @license React
|
|
42
|
+
* use-sync-external-store-with-selector.production.js
|
|
43
|
+
*
|
|
44
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
45
|
+
*
|
|
46
|
+
* This source code is licensed under the MIT license found in the
|
|
47
|
+
* LICENSE file in the root directory of this source tree.
|
|
48
|
+
*/var Tp;function t1(){if(Tp)return du;Tp=1;var e=ei();function n(p,E){return p===E&&(p!==0||1/p===1/E)||p!==p&&E!==E}var i=typeof Object.is=="function"?Object.is:n,s=e.useSyncExternalStore,l=e.useRef,u=e.useEffect,d=e.useMemo,h=e.useDebugValue;return du.useSyncExternalStoreWithSelector=function(p,E,y,w,m){var _=l(null);if(_.current===null){var v={hasValue:!1,value:null};_.current=v}else v=_.current;_=d(function(){function x(C){if(!N){if(N=!0,O=C,C=w(C),m!==void 0&&v.hasValue){var L=v.value;if(m(L,C))return S=L}return S=C}if(L=S,i(O,C))return L;var H=w(C);return m!==void 0&&m(L,H)?(O=C,L):(O=C,S=H)}var N=!1,O,S,T=y===void 0?null:y;return[function(){return x(E())},T===null?void 0:function(){return x(T())}]},[E,y,w,m]);var k=s(p,_[0],_[1]);return u(function(){v.hasValue=!0,v.value=k},[k]),h(k),k},du}var Cp;function r1(){return Cp||(Cp=1,fu.exports=t1()),fu.exports}var n1=r1(),i1=U.version.startsWith("19"),o1=Symbol.for(i1?"react.transitional.element":"react.element"),s1=Symbol.for("react.portal"),a1=Symbol.for("react.fragment"),l1=Symbol.for("react.strict_mode"),u1=Symbol.for("react.profiler"),c1=Symbol.for("react.consumer"),f1=Symbol.for("react.context"),Hg=Symbol.for("react.forward_ref"),d1=Symbol.for("react.suspense"),h1=Symbol.for("react.suspense_list"),Bc=Symbol.for("react.memo"),p1=Symbol.for("react.lazy"),m1=Hg,g1=Bc;function y1(e){if(typeof e=="object"&&e!==null){const{$$typeof:n}=e;switch(n){case o1:switch(e=e.type,e){case a1:case u1:case l1:case d1:case h1:return e;default:switch(e=e&&e.$$typeof,e){case f1:case Hg:case p1:case Bc:return e;case c1:return e;default:return n}}case s1:return n}}}function v1(e){return y1(e)===Bc}function _1(e,n,i,s,{areStatesEqual:l,areOwnPropsEqual:u,areStatePropsEqual:d}){let h=!1,p,E,y,w,m;function _(O,S){return p=O,E=S,y=e(p,E),w=n(s,E),m=i(y,w,E),h=!0,m}function v(){return y=e(p,E),n.dependsOnOwnProps&&(w=n(s,E)),m=i(y,w,E),m}function k(){return e.dependsOnOwnProps&&(y=e(p,E)),n.dependsOnOwnProps&&(w=n(s,E)),m=i(y,w,E),m}function x(){const O=e(p,E),S=!d(O,y);return y=O,S&&(m=i(y,w,E)),m}function N(O,S){const T=!u(S,E),C=!l(O,p,S,E);return p=O,E=S,T&&C?v():T?k():C?x():m}return function(S,T){return h?N(S,T):_(S,T)}}function E1(e,{initMapStateToProps:n,initMapDispatchToProps:i,initMergeProps:s,...l}){const u=n(e,l),d=i(e,l),h=s(e,l);return _1(u,d,h,e,l)}function S1(e,n){const i={};for(const s in e){const l=e[s];typeof l=="function"&&(i[s]=(...u)=>n(l(...u)))}return i}function ac(e){return function(i){const s=e(i);function l(){return s}return l.dependsOnOwnProps=!1,l}}function kp(e){return e.dependsOnOwnProps?!!e.dependsOnOwnProps:e.length!==1}function Gg(e,n){return function(s,{displayName:l}){const u=function(h,p){return u.dependsOnOwnProps?u.mapToProps(h,p):u.mapToProps(h,void 0)};return u.dependsOnOwnProps=!0,u.mapToProps=function(h,p){u.mapToProps=e,u.dependsOnOwnProps=kp(e);let E=u(h,p);return typeof E=="function"&&(u.mapToProps=E,u.dependsOnOwnProps=kp(E),E=u(h,p)),E},u}}function jc(e,n){return(i,s)=>{throw new Error(`Invalid value of type ${typeof e} for ${n} argument when connecting component ${s.wrappedComponentName}.`)}}function b1(e){return e&&typeof e=="object"?ac(n=>S1(e,n)):e?typeof e=="function"?Gg(e):jc(e,"mapDispatchToProps"):ac(n=>({dispatch:n}))}function w1(e){return e?typeof e=="function"?Gg(e):jc(e,"mapStateToProps"):ac(()=>({}))}function x1(e,n,i){return{...i,...e,...n}}function T1(e){return function(i,{displayName:s,areMergedPropsEqual:l}){let u=!1,d;return function(p,E,y){const w=e(p,E,y);return u?l(w,d)||(d=w):(u=!0,d=w),d}}}function C1(e){return e?typeof e=="function"?T1(e):jc(e,"mergeProps"):()=>x1}function k1(e){e()}function R1(){let e=null,n=null;return{clear(){e=null,n=null},notify(){k1(()=>{let i=e;for(;i;)i.callback(),i=i.next})},get(){const i=[];let s=e;for(;s;)i.push(s),s=s.next;return i},subscribe(i){let s=!0;const l=n={callback:i,next:null,prev:n};return l.prev?l.prev.next=l:e=l,function(){!s||e===null||(s=!1,l.next?l.next.prev=l.prev:n=l.prev,l.prev?l.prev.next=l.next:e=l.next)}}}}var Rp={notify(){},get:()=>[]};function $g(e,n){let i,s=Rp,l=0,u=!1;function d(k){y();const x=s.subscribe(k);let N=!1;return()=>{N||(N=!0,x(),w())}}function h(){s.notify()}function p(){v.onStateChange&&v.onStateChange()}function E(){return u}function y(){l++,i||(i=n?n.addNestedSub(p):e.subscribe(p),s=R1())}function w(){l--,i&&l===0&&(i(),i=void 0,s.clear(),s=Rp)}function m(){u||(u=!0,y())}function _(){u&&(u=!1,w())}const v={addNestedSub:d,notifyNestedSubs:h,handleChangeWrapper:p,isSubscribed:E,trySubscribe:m,tryUnsubscribe:_,getListeners:()=>s};return v}var O1=()=>typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",N1=O1(),A1=()=>typeof navigator<"u"&&navigator.product==="ReactNative",I1=A1(),P1=()=>N1||I1?U.useLayoutEffect:U.useEffect,qs=P1();function Op(e,n){return e===n?e!==0||n!==0||1/e===1/n:e!==e&&n!==n}function hu(e,n){if(Op(e,n))return!0;if(typeof e!="object"||e===null||typeof n!="object"||n===null)return!1;const i=Object.keys(e),s=Object.keys(n);if(i.length!==s.length)return!1;for(let l=0;l<i.length;l++)if(!Object.prototype.hasOwnProperty.call(n,i[l])||!Op(e[i[l]],n[i[l]]))return!1;return!0}var D1={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},M1={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},F1={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},qg={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},L1={[m1]:F1,[g1]:qg};function Np(e){return v1(e)?qg:L1[e.$$typeof]||D1}var B1=Object.defineProperty,j1=Object.getOwnPropertyNames,Ap=Object.getOwnPropertySymbols,z1=Object.getOwnPropertyDescriptor,U1=Object.getPrototypeOf,Ip=Object.prototype;function lc(e,n){if(typeof n!="string"){if(Ip){const u=U1(n);u&&u!==Ip&&lc(e,u)}let i=j1(n);Ap&&(i=i.concat(Ap(n)));const s=Np(e),l=Np(n);for(let u=0;u<i.length;++u){const d=i[u];if(!M1[d]&&!(l&&l[d])&&!(s&&s[d])){const h=z1(n,d);try{B1(e,d,h)}catch{}}}}return e}var pu=Symbol.for("react-redux-context"),mu=typeof globalThis<"u"?globalThis:{};function H1(){if(!U.createContext)return{};const e=mu[pu]??(mu[pu]=new Map);let n=e.get(U.createContext);return n||(n=U.createContext(null),e.set(U.createContext,n)),n}var Cr=H1(),G1=[null,null];function $1(e,n,i){qs(()=>e(...n),i)}function q1(e,n,i,s,l,u){e.current=s,i.current=!1,l.current&&(l.current=null,u())}function V1(e,n,i,s,l,u,d,h,p,E,y){if(!e)return()=>{};let w=!1,m=null;const _=()=>{if(w||!h.current)return;const k=n.getState();let x,N;try{x=s(k,l.current)}catch(O){N=O,m=O}N||(m=null),x===u.current?d.current||E():(u.current=x,p.current=x,d.current=!0,y())};return i.onStateChange=_,i.trySubscribe(),_(),()=>{if(w=!0,i.tryUnsubscribe(),i.onStateChange=null,m)throw m}}function W1(e,n){return e===n}function X1(e,n,i,{pure:s,areStatesEqual:l=W1,areOwnPropsEqual:u=hu,areStatePropsEqual:d=hu,areMergedPropsEqual:h=hu,forwardRef:p=!1,context:E=Cr}={}){const y=E,w=w1(e),m=b1(n),_=C1(i),v=!!e;return x=>{const N=x.displayName||x.name||"Component",O=`Connect(${N})`,S={shouldHandleStateChanges:v,displayName:O,wrappedComponentName:N,WrappedComponent:x,initMapStateToProps:w,initMapDispatchToProps:m,initMergeProps:_,areStatesEqual:l,areStatePropsEqual:d,areOwnPropsEqual:u,areMergedPropsEqual:h};function T(H){const[W,se,te]=U.useMemo(()=>{const{reactReduxForwardedRef:ut,...nr}=H;return[H.context,ut,nr]},[H]),fe=U.useMemo(()=>{let ut=y;return W!=null&&W.Consumer,ut},[W,y]),de=U.useContext(fe),ae=!!H.store&&!!H.store.getState&&!!H.store.dispatch,Fe=!!de&&!!de.store,Ie=ae?H.store:de.store,$e=Fe?de.getServerState:Ie.getState,Ne=U.useMemo(()=>E1(Ie.dispatch,S),[Ie]),[V,ne]=U.useMemo(()=>{if(!v)return G1;const ut=$g(Ie,ae?void 0:de.subscription),nr=ut.notifyNestedSubs.bind(ut);return[ut,nr]},[Ie,ae,de]),Q=U.useMemo(()=>ae?de:{...de,subscription:V},[ae,de,V]),P=U.useRef(void 0),B=U.useRef(te),ce=U.useRef(void 0),he=U.useRef(!1),ye=U.useRef(!1),ve=U.useRef(void 0);qs(()=>(ye.current=!0,()=>{ye.current=!1}),[]);const ke=U.useMemo(()=>()=>ce.current&&te===B.current?ce.current:Ne(Ie.getState(),te),[Ie,te]),Te=U.useMemo(()=>nr=>V?V1(v,Ie,V,Ne,B,P,he,ye,ce,ne,nr):()=>{},[V]);$1(q1,[B,P,he,te,ce,ne]);let Re;try{Re=U.useSyncExternalStore(Te,ke,$e?()=>Ne($e(),te):ke)}catch(ut){throw ve.current&&(ut.message+=`
|
|
49
|
+
The error may be correlated with this previous error:
|
|
50
|
+
${ve.current.stack}
|
|
51
|
+
|
|
52
|
+
`),ut}qs(()=>{ve.current=void 0,ce.current=void 0,P.current=Re});const Je=U.useMemo(()=>U.createElement(x,{...Re,ref:se}),[se,x,Re]);return U.useMemo(()=>v?U.createElement(fe.Provider,{value:Q},Je):Je,[fe,Je,Q])}const L=U.memo(T);if(L.WrappedComponent=x,L.displayName=T.displayName=O,p){const W=U.forwardRef(function(te,fe){return U.createElement(L,{...te,reactReduxForwardedRef:fe})});return W.displayName=O,W.WrappedComponent=x,lc(W,x)}return lc(L,x)}}var Q1=X1;function K1(e){const{children:n,context:i,serverState:s,store:l}=e,u=U.useMemo(()=>{const p=$g(l);return{store:l,subscription:p,getServerState:s?()=>s:void 0}},[l,s]),d=U.useMemo(()=>l.getState(),[l]);qs(()=>{const{subscription:p}=u;return p.onStateChange=p.notifyNestedSubs,p.trySubscribe(),d!==l.getState()&&p.notifyNestedSubs(),()=>{p.tryUnsubscribe(),p.onStateChange=void 0}},[u,d]);const h=i||Cr;return U.createElement(h.Provider,{value:u},n)}var Y1=K1;function zc(e=Cr){return function(){return U.useContext(e)}}var Vg=zc();function Wg(e=Cr){const n=e===Cr?Vg:zc(e),i=()=>{const{store:s}=n();return s};return Object.assign(i,{withTypes:()=>i}),i}var Z1=Wg();function J1(e=Cr){const n=e===Cr?Z1:Wg(e),i=()=>n().dispatch;return Object.assign(i,{withTypes:()=>i}),i}var eE=J1(),tE=(e,n)=>e===n;function rE(e=Cr){const n=e===Cr?Vg:zc(e),i=(s,l={})=>{const{equalityFn:u=tE}=typeof l=="function"?{equalityFn:l}:l,d=n(),{store:h,subscription:p,getServerState:E}=d;U.useRef(!0);const y=U.useCallback({[s.name](m){return s(m)}}[s.name],[s]),w=n1.useSyncExternalStoreWithSelector(p.addNestedSub,h.getState,E||h.getState,y,u);return U.useDebugValue(w),w};return Object.assign(i,{withTypes:()=>i}),i}var nE=rE(),uc=function(e,n){return uc=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,s){i.__proto__=s}||function(i,s){for(var l in s)Object.prototype.hasOwnProperty.call(s,l)&&(i[l]=s[l])},uc(e,n)};function Ht(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");uc(e,n);function i(){this.constructor=e}e.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)}var J=function(){return J=Object.assign||function(n){for(var i,s=1,l=arguments.length;s<l;s++){i=arguments[s];for(var u in i)Object.prototype.hasOwnProperty.call(i,u)&&(n[u]=i[u])}return n},J.apply(this,arguments)};function ea(e,n){var i={};for(var s in e)Object.prototype.hasOwnProperty.call(e,s)&&n.indexOf(s)<0&&(i[s]=e[s]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var l=0,s=Object.getOwnPropertySymbols(e);l<s.length;l++)n.indexOf(s[l])<0&&Object.prototype.propertyIsEnumerable.call(e,s[l])&&(i[s[l]]=e[s[l]]);return i}function yt(e,n,i){if(i||arguments.length===2)for(var s=0,l=n.length,u;s<l;s++)(u||!(s in n))&&(u||(u=Array.prototype.slice.call(n,0,s)),u[s]=n[s]);return e.concat(u||Array.prototype.slice.call(n))}function ht(e,n){var i=n&&n.cache?n.cache:uE,s=n&&n.serializer?n.serializer:lE,l=n&&n.strategy?n.strategy:oE;return l(e,{cache:i,serializer:s})}function iE(e){return e==null||typeof e=="number"||typeof e=="boolean"}function Xg(e,n,i,s){var l=iE(s)?s:i(s),u=n.get(l);return typeof u>"u"&&(u=e.call(this,s),n.set(l,u)),u}function Qg(e,n,i){var s=Array.prototype.slice.call(arguments,3),l=i(s),u=n.get(l);return typeof u>"u"&&(u=e.apply(this,s),n.set(l,u)),u}function Uc(e,n,i,s,l){return i.bind(n,e,s,l)}function oE(e,n){var i=e.length===1?Xg:Qg;return Uc(e,this,i,n.cache.create(),n.serializer)}function sE(e,n){return Uc(e,this,Qg,n.cache.create(),n.serializer)}function aE(e,n){return Uc(e,this,Xg,n.cache.create(),n.serializer)}var lE=function(){return JSON.stringify(arguments)};function Hc(){this.cache=Object.create(null)}Hc.prototype.get=function(e){return this.cache[e]};Hc.prototype.set=function(e,n){this.cache[e]=n};var uE={create:function(){return new Hc}},pt={variadic:sE,monadic:aE};function Kg(e,n,i){if(i===void 0&&(i=Error),!e)throw new i(n)}ht(function(){for(var e,n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];return new((e=Intl.NumberFormat).bind.apply(e,yt([void 0],n,!1)))},{strategy:pt.variadic});ht(function(){for(var e,n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];return new((e=Intl.DateTimeFormat).bind.apply(e,yt([void 0],n,!1)))},{strategy:pt.variadic});ht(function(){for(var e,n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];return new((e=Intl.PluralRules).bind.apply(e,yt([void 0],n,!1)))},{strategy:pt.variadic});ht(function(){for(var e,n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];return new((e=Intl.Locale).bind.apply(e,yt([void 0],n,!1)))},{strategy:pt.variadic});ht(function(){for(var e,n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];return new((e=Intl.ListFormat).bind.apply(e,yt([void 0],n,!1)))},{strategy:pt.variadic});var _e;(function(e){e[e.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",e[e.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",e[e.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",e[e.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",e[e.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",e[e.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",e[e.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",e[e.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",e[e.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",e[e.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",e[e.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",e[e.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",e[e.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",e[e.INVALID_TAG=23]="INVALID_TAG",e[e.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",e[e.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",e[e.UNCLOSED_TAG=27]="UNCLOSED_TAG"})(_e||(_e={}));var Me;(function(e){e[e.literal=0]="literal",e[e.argument=1]="argument",e[e.number=2]="number",e[e.date=3]="date",e[e.time=4]="time",e[e.select=5]="select",e[e.plural=6]="plural",e[e.pound=7]="pound",e[e.tag=8]="tag"})(Me||(Me={}));var Zn;(function(e){e[e.number=0]="number",e[e.dateTime=1]="dateTime"})(Zn||(Zn={}));function Pp(e){return e.type===Me.literal}function cE(e){return e.type===Me.argument}function Yg(e){return e.type===Me.number}function Zg(e){return e.type===Me.date}function Jg(e){return e.type===Me.time}function ey(e){return e.type===Me.select}function ty(e){return e.type===Me.plural}function fE(e){return e.type===Me.pound}function ry(e){return e.type===Me.tag}function ny(e){return!!(e&&typeof e=="object"&&e.type===Zn.number)}function cc(e){return!!(e&&typeof e=="object"&&e.type===Zn.dateTime)}var iy=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,dE=/(?:[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 hE(e){var n={};return e.replace(dE,function(i){var s=i.length;switch(i[0]){case"G":n.era=s===4?"long":s===5?"narrow":"short";break;case"y":n.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":n.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":n.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":n.weekday=s===4?"long":s===5?"narrow":"short";break;case"e":if(s<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");n.weekday=["short","long","narrow","short"][s-4];break;case"c":if(s<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");n.weekday=["short","long","narrow","short"][s-4];break;case"a":n.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":n.hourCycle="h12",n.hour=["numeric","2-digit"][s-1];break;case"H":n.hourCycle="h23",n.hour=["numeric","2-digit"][s-1];break;case"K":n.hourCycle="h11",n.hour=["numeric","2-digit"][s-1];break;case"k":n.hourCycle="h24",n.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":n.minute=["numeric","2-digit"][s-1];break;case"s":n.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":n.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""}),n}var pE=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function mE(e){if(e.length===0)throw new Error("Number skeleton cannot be empty");for(var n=e.split(pE).filter(function(m){return m.length>0}),i=[],s=0,l=n;s<l.length;s++){var u=l[s],d=u.split("/");if(d.length===0)throw new Error("Invalid number skeleton");for(var h=d[0],p=d.slice(1),E=0,y=p;E<y.length;E++){var w=y[E];if(w.length===0)throw new Error("Invalid number skeleton")}i.push({stem:h,options:p})}return i}function gE(e){return e.replace(/^(.*?)-/,"")}var Dp=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,oy=/^(@+)?(\+|#+)?[rs]?$/g,yE=/(\*)(0+)|(#+)(0+)|(0+)/g,sy=/^(0+)$/;function Mp(e){var n={};return e[e.length-1]==="r"?n.roundingPriority="morePrecision":e[e.length-1]==="s"&&(n.roundingPriority="lessPrecision"),e.replace(oy,function(i,s,l){return typeof l!="string"?(n.minimumSignificantDigits=s.length,n.maximumSignificantDigits=s.length):l==="+"?n.minimumSignificantDigits=s.length:s[0]==="#"?n.maximumSignificantDigits=s.length:(n.minimumSignificantDigits=s.length,n.maximumSignificantDigits=s.length+(typeof l=="string"?l.length:0)),""}),n}function ay(e){switch(e){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 vE(e){var n;if(e[0]==="E"&&e[1]==="E"?(n={notation:"engineering"},e=e.slice(2)):e[0]==="E"&&(n={notation:"scientific"},e=e.slice(1)),n){var i=e.slice(0,2);if(i==="+!"?(n.signDisplay="always",e=e.slice(2)):i==="+?"&&(n.signDisplay="exceptZero",e=e.slice(2)),!sy.test(e))throw new Error("Malformed concise eng/scientific notation");n.minimumIntegerDigits=e.length}return n}function Fp(e){var n={},i=ay(e);return i||n}function _E(e){for(var n={},i=0,s=e;i<s.length;i++){var l=s[i];switch(l.stem){case"percent":case"%":n.style="percent";continue;case"%x100":n.style="percent",n.scale=100;continue;case"currency":n.style="currency",n.currency=l.options[0];continue;case"group-off":case",_":n.useGrouping=!1;continue;case"precision-integer":case".":n.maximumFractionDigits=0;continue;case"measure-unit":case"unit":n.style="unit",n.unit=gE(l.options[0]);continue;case"compact-short":case"K":n.notation="compact",n.compactDisplay="short";continue;case"compact-long":case"KK":n.notation="compact",n.compactDisplay="long";continue;case"scientific":n=J(J(J({},n),{notation:"scientific"}),l.options.reduce(function(p,E){return J(J({},p),Fp(E))},{}));continue;case"engineering":n=J(J(J({},n),{notation:"engineering"}),l.options.reduce(function(p,E){return J(J({},p),Fp(E))},{}));continue;case"notation-simple":n.notation="standard";continue;case"unit-width-narrow":n.currencyDisplay="narrowSymbol",n.unitDisplay="narrow";continue;case"unit-width-short":n.currencyDisplay="code",n.unitDisplay="short";continue;case"unit-width-full-name":n.currencyDisplay="name",n.unitDisplay="long";continue;case"unit-width-iso-code":n.currencyDisplay="symbol";continue;case"scale":n.scale=parseFloat(l.options[0]);continue;case"rounding-mode-floor":n.roundingMode="floor";continue;case"rounding-mode-ceiling":n.roundingMode="ceil";continue;case"rounding-mode-down":n.roundingMode="trunc";continue;case"rounding-mode-up":n.roundingMode="expand";continue;case"rounding-mode-half-even":n.roundingMode="halfEven";continue;case"rounding-mode-half-down":n.roundingMode="halfTrunc";continue;case"rounding-mode-half-up":n.roundingMode="halfExpand";continue;case"integer-width":if(l.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");l.options[0].replace(yE,function(p,E,y,w,m,_){if(E)n.minimumIntegerDigits=y.length;else{if(w&&m)throw new Error("We currently do not support maximum integer digits");if(_)throw new Error("We currently do not support exact integer digits")}return""});continue}if(sy.test(l.stem)){n.minimumIntegerDigits=l.stem.length;continue}if(Dp.test(l.stem)){if(l.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");l.stem.replace(Dp,function(p,E,y,w,m,_){return y==="*"?n.minimumFractionDigits=E.length:w&&w[0]==="#"?n.maximumFractionDigits=w.length:m&&_?(n.minimumFractionDigits=m.length,n.maximumFractionDigits=m.length+_.length):(n.minimumFractionDigits=E.length,n.maximumFractionDigits=E.length),""});var u=l.options[0];u==="w"?n=J(J({},n),{trailingZeroDisplay:"stripIfInteger"}):u&&(n=J(J({},n),Mp(u)));continue}if(oy.test(l.stem)){n=J(J({},n),Mp(l.stem));continue}var d=ay(l.stem);d&&(n=J(J({},n),d));var h=vE(l.stem);h&&(n=J(J({},n),h))}return n}var ps={"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 EE(e,n){for(var i="",s=0;s<e.length;s++){var l=e.charAt(s);if(l==="j"){for(var u=0;s+1<e.length&&e.charAt(s+1)===l;)u++,s++;var d=1+(u&1),h=u<2?1:3+(u>>1),p="a",E=SE(n);for((E=="H"||E=="k")&&(h=0);h-- >0;)i+=p;for(;d-- >0;)i=E+i}else l==="J"?i+="H":i+=l}return i}function SE(e){var n=e.hourCycle;if(n===void 0&&e.hourCycles&&e.hourCycles.length&&(n=e.hourCycles[0]),n)switch(n){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}var i=e.language,s;i!=="root"&&(s=e.maximize().region);var l=ps[s||""]||ps[i||""]||ps["".concat(i,"-001")]||ps["001"];return l[0]}var gu,bE=new RegExp("^".concat(iy.source,"*")),wE=new RegExp("".concat(iy.source,"*$"));function Se(e,n){return{start:e,end:n}}var xE=!!String.prototype.startsWith&&"_a".startsWith("a",1),TE=!!String.fromCodePoint,CE=!!Object.fromEntries,kE=!!String.prototype.codePointAt,RE=!!String.prototype.trimStart,OE=!!String.prototype.trimEnd,NE=!!Number.isSafeInteger,AE=NE?Number.isSafeInteger:function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},fc=!0;try{var IE=uy("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");fc=((gu=IE.exec("a"))===null||gu===void 0?void 0:gu[0])==="a"}catch{fc=!1}var Lp=xE?function(n,i,s){return n.startsWith(i,s)}:function(n,i,s){return n.slice(s,s+i.length)===i},dc=TE?String.fromCodePoint:function(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];for(var s="",l=n.length,u=0,d;l>u;){if(d=n[u++],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},Bp=CE?Object.fromEntries:function(n){for(var i={},s=0,l=n;s<l.length;s++){var u=l[s],d=u[0],h=u[1];i[d]=h}return i},ly=kE?function(n,i){return n.codePointAt(i)}:function(n,i){var s=n.length;if(!(i<0||i>=s)){var l=n.charCodeAt(i),u;return l<55296||l>56319||i+1===s||(u=n.charCodeAt(i+1))<56320||u>57343?l:(l-55296<<10)+(u-56320)+65536}},PE=RE?function(n){return n.trimStart()}:function(n){return n.replace(bE,"")},DE=OE?function(n){return n.trimEnd()}:function(n){return n.replace(wE,"")};function uy(e,n){return new RegExp(e,n)}var hc;if(fc){var jp=uy("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");hc=function(n,i){var s;jp.lastIndex=i;var l=jp.exec(n);return(s=l[1])!==null&&s!==void 0?s:""}}else hc=function(n,i){for(var s=[];;){var l=ly(n,i);if(l===void 0||cy(l)||BE(l))break;s.push(l),i+=l>=65536?2:1}return dc.apply(void 0,s)};var ME=function(){function e(n,i){i===void 0&&(i={}),this.message=n,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 e.prototype.parse=function(){if(this.offset()!==0)throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},e.prototype.parseMessage=function(n,i,s){for(var l=[];!this.isEOF();){var u=this.char();if(u===123){var d=this.parseArgument(n,s);if(d.err)return d;l.push(d.val)}else{if(u===125&&n>0)break;if(u===35&&(i==="plural"||i==="selectordinal")){var h=this.clonePosition();this.bump(),l.push({type:Me.pound,location:Se(h,this.clonePosition())})}else if(u===60&&!this.ignoreTag&&this.peek()===47){if(s)break;return this.error(_e.UNMATCHED_CLOSING_TAG,Se(this.clonePosition(),this.clonePosition()))}else if(u===60&&!this.ignoreTag&&pc(this.peek()||0)){var d=this.parseTag(n,i);if(d.err)return d;l.push(d.val)}else{var d=this.parseLiteral(n,i);if(d.err)return d;l.push(d.val)}}}return{val:l,err:null}},e.prototype.parseTag=function(n,i){var s=this.clonePosition();this.bump();var l=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:Me.literal,value:"<".concat(l,"/>"),location:Se(s,this.clonePosition())},err:null};if(this.bumpIf(">")){var u=this.parseMessage(n+1,i,!0);if(u.err)return u;var d=u.val,h=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!pc(this.char()))return this.error(_e.INVALID_TAG,Se(h,this.clonePosition()));var p=this.clonePosition(),E=this.parseTagName();return l!==E?this.error(_e.UNMATCHED_CLOSING_TAG,Se(p,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:Me.tag,value:l,children:d,location:Se(s,this.clonePosition())},err:null}:this.error(_e.INVALID_TAG,Se(h,this.clonePosition())))}else return this.error(_e.UNCLOSED_TAG,Se(s,this.clonePosition()))}else return this.error(_e.INVALID_TAG,Se(s,this.clonePosition()))},e.prototype.parseTagName=function(){var n=this.offset();for(this.bump();!this.isEOF()&&LE(this.char());)this.bump();return this.message.slice(n,this.offset())},e.prototype.parseLiteral=function(n,i){for(var s=this.clonePosition(),l="";;){var u=this.tryParseQuote(i);if(u){l+=u;continue}var d=this.tryParseUnquoted(n,i);if(d){l+=d;continue}var h=this.tryParseLeftAngleBracket();if(h){l+=h;continue}break}var p=Se(s,this.clonePosition());return{val:{type:Me.literal,value:l,location:p},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!FE(this.peek()||0))?(this.bump(),"<"):null},e.prototype.tryParseQuote=function(n){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(n==="plural"||n==="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 dc.apply(void 0,i)},e.prototype.tryParseUnquoted=function(n,i){if(this.isEOF())return null;var s=this.char();return s===60||s===123||s===35&&(i==="plural"||i==="selectordinal")||s===125&&n>0?null:(this.bump(),dc(s))},e.prototype.parseArgument=function(n,i){var s=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(_e.EXPECT_ARGUMENT_CLOSING_BRACE,Se(s,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(_e.EMPTY_ARGUMENT,Se(s,this.clonePosition()));var l=this.parseIdentifierIfPossible().value;if(!l)return this.error(_e.MALFORMED_ARGUMENT,Se(s,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(_e.EXPECT_ARGUMENT_CLOSING_BRACE,Se(s,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:Me.argument,value:l,location:Se(s,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(_e.EXPECT_ARGUMENT_CLOSING_BRACE,Se(s,this.clonePosition())):this.parseArgumentOptions(n,i,l,s);default:return this.error(_e.MALFORMED_ARGUMENT,Se(s,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var n=this.clonePosition(),i=this.offset(),s=hc(this.message,i),l=i+s.length;this.bumpTo(l);var u=this.clonePosition(),d=Se(n,u);return{value:s,location:d}},e.prototype.parseArgumentOptions=function(n,i,s,l){var u,d=this.clonePosition(),h=this.parseIdentifierIfPossible().value,p=this.clonePosition();switch(h){case"":return this.error(_e.EXPECT_ARGUMENT_TYPE,Se(d,p));case"number":case"date":case"time":{this.bumpSpace();var E=null;if(this.bumpIf(",")){this.bumpSpace();var y=this.clonePosition(),w=this.parseSimpleArgStyleIfPossible();if(w.err)return w;var m=DE(w.val);if(m.length===0)return this.error(_e.EXPECT_ARGUMENT_STYLE,Se(this.clonePosition(),this.clonePosition()));var _=Se(y,this.clonePosition());E={style:m,styleLocation:_}}var v=this.tryParseArgumentClose(l);if(v.err)return v;var k=Se(l,this.clonePosition());if(E&&Lp(E==null?void 0:E.style,"::",0)){var x=PE(E.style.slice(2));if(h==="number"){var w=this.parseNumberSkeletonFromString(x,E.styleLocation);return w.err?w:{val:{type:Me.number,value:s,location:k,style:w.val},err:null}}else{if(x.length===0)return this.error(_e.EXPECT_DATE_TIME_SKELETON,k);var N=x;this.locale&&(N=EE(x,this.locale));var m={type:Zn.dateTime,pattern:N,location:E.styleLocation,parsedOptions:this.shouldParseSkeletons?hE(N):{}},O=h==="date"?Me.date:Me.time;return{val:{type:O,value:s,location:k,style:m},err:null}}}return{val:{type:h==="number"?Me.number:h==="date"?Me.date:Me.time,value:s,location:k,style:(u=E==null?void 0:E.style)!==null&&u!==void 0?u:null},err:null}}case"plural":case"selectordinal":case"select":{var S=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(_e.EXPECT_SELECT_ARGUMENT_OPTIONS,Se(S,J({},S)));this.bumpSpace();var T=this.parseIdentifierIfPossible(),C=0;if(h!=="select"&&T.value==="offset"){if(!this.bumpIf(":"))return this.error(_e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,Se(this.clonePosition(),this.clonePosition()));this.bumpSpace();var w=this.tryParseDecimalInteger(_e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,_e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(w.err)return w;this.bumpSpace(),T=this.parseIdentifierIfPossible(),C=w.val}var L=this.tryParsePluralOrSelectOptions(n,h,i,T);if(L.err)return L;var v=this.tryParseArgumentClose(l);if(v.err)return v;var H=Se(l,this.clonePosition());return h==="select"?{val:{type:Me.select,value:s,options:Bp(L.val),location:H},err:null}:{val:{type:Me.plural,value:s,options:Bp(L.val),offset:C,pluralType:h==="plural"?"cardinal":"ordinal",location:H},err:null}}default:return this.error(_e.INVALID_ARGUMENT_TYPE,Se(d,p))}},e.prototype.tryParseArgumentClose=function(n){return this.isEOF()||this.char()!==125?this.error(_e.EXPECT_ARGUMENT_CLOSING_BRACE,Se(n,this.clonePosition())):(this.bump(),{val:!0,err:null})},e.prototype.parseSimpleArgStyleIfPossible=function(){for(var n=0,i=this.clonePosition();!this.isEOF();){var s=this.char();switch(s){case 39:{this.bump();var l=this.clonePosition();if(!this.bumpUntil("'"))return this.error(_e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,Se(l,this.clonePosition()));this.bump();break}case 123:{n+=1,this.bump();break}case 125:{if(n>0)n-=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}},e.prototype.parseNumberSkeletonFromString=function(n,i){var s=[];try{s=mE(n)}catch{return this.error(_e.INVALID_NUMBER_SKELETON,i)}return{val:{type:Zn.number,tokens:s,location:i,parsedOptions:this.shouldParseSkeletons?_E(s):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(n,i,s,l){for(var u,d=!1,h=[],p=new Set,E=l.value,y=l.location;;){if(E.length===0){var w=this.clonePosition();if(i!=="select"&&this.bumpIf("=")){var m=this.tryParseDecimalInteger(_e.EXPECT_PLURAL_ARGUMENT_SELECTOR,_e.INVALID_PLURAL_ARGUMENT_SELECTOR);if(m.err)return m;y=Se(w,this.clonePosition()),E=this.message.slice(w.offset,this.offset())}else break}if(p.has(E))return this.error(i==="select"?_e.DUPLICATE_SELECT_ARGUMENT_SELECTOR:_e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,y);E==="other"&&(d=!0),this.bumpSpace();var _=this.clonePosition();if(!this.bumpIf("{"))return this.error(i==="select"?_e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:_e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,Se(this.clonePosition(),this.clonePosition()));var v=this.parseMessage(n+1,i,s);if(v.err)return v;var k=this.tryParseArgumentClose(_);if(k.err)return k;h.push([E,{value:v.val,location:Se(_,this.clonePosition())}]),p.add(E),this.bumpSpace(),u=this.parseIdentifierIfPossible(),E=u.value,y=u.location}return h.length===0?this.error(i==="select"?_e.EXPECT_SELECT_ARGUMENT_SELECTOR:_e.EXPECT_PLURAL_ARGUMENT_SELECTOR,Se(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!d?this.error(_e.MISSING_OTHER_CLAUSE,Se(this.clonePosition(),this.clonePosition())):{val:h,err:null}},e.prototype.tryParseDecimalInteger=function(n,i){var s=1,l=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(s=-1);for(var u=!1,d=0;!this.isEOF();){var h=this.char();if(h>=48&&h<=57)u=!0,d=d*10+(h-48),this.bump();else break}var p=Se(l,this.clonePosition());return u?(d*=s,AE(d)?{val:d,err:null}:this.error(i,p)):this.error(n,p)},e.prototype.offset=function(){return this.position.offset},e.prototype.isEOF=function(){return this.offset()===this.message.length},e.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},e.prototype.char=function(){var n=this.position.offset;if(n>=this.message.length)throw Error("out of bound");var i=ly(this.message,n);if(i===void 0)throw Error("Offset ".concat(n," is at invalid UTF-16 code unit boundary"));return i},e.prototype.error=function(n,i){return{val:null,err:{kind:n,message:this.message,location:i}}},e.prototype.bump=function(){if(!this.isEOF()){var n=this.char();n===10?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=n<65536?1:2)}},e.prototype.bumpIf=function(n){if(Lp(this.message,n,this.offset())){for(var i=0;i<n.length;i++)this.bump();return!0}return!1},e.prototype.bumpUntil=function(n){var i=this.offset(),s=this.message.indexOf(n,i);return s>=0?(this.bumpTo(s),!0):(this.bumpTo(this.message.length),!1)},e.prototype.bumpTo=function(n){if(this.offset()>n)throw Error("targetOffset ".concat(n," must be greater than or equal to the current offset ").concat(this.offset()));for(n=Math.min(n,this.message.length);;){var i=this.offset();if(i===n)break;if(i>n)throw Error("targetOffset ".concat(n," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},e.prototype.bumpSpace=function(){for(;!this.isEOF()&&cy(this.char());)this.bump()},e.prototype.peek=function(){if(this.isEOF())return null;var n=this.char(),i=this.offset(),s=this.message.charCodeAt(i+(n>=65536?2:1));return s??null},e}();function pc(e){return e>=97&&e<=122||e>=65&&e<=90}function FE(e){return pc(e)||e===47}function LE(e){return e===45||e===46||e>=48&&e<=57||e===95||e>=97&&e<=122||e>=65&&e<=90||e==183||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=893||e>=895&&e<=8191||e>=8204&&e<=8205||e>=8255&&e<=8256||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039}function cy(e){return e>=9&&e<=13||e===32||e===133||e>=8206&&e<=8207||e===8232||e===8233}function BE(e){return e>=33&&e<=35||e===36||e>=37&&e<=39||e===40||e===41||e===42||e===43||e===44||e===45||e>=46&&e<=47||e>=58&&e<=59||e>=60&&e<=62||e>=63&&e<=64||e===91||e===92||e===93||e===94||e===96||e===123||e===124||e===125||e===126||e===161||e>=162&&e<=165||e===166||e===167||e===169||e===171||e===172||e===174||e===176||e===177||e===182||e===187||e===191||e===215||e===247||e>=8208&&e<=8213||e>=8214&&e<=8215||e===8216||e===8217||e===8218||e>=8219&&e<=8220||e===8221||e===8222||e===8223||e>=8224&&e<=8231||e>=8240&&e<=8248||e===8249||e===8250||e>=8251&&e<=8254||e>=8257&&e<=8259||e===8260||e===8261||e===8262||e>=8263&&e<=8273||e===8274||e===8275||e>=8277&&e<=8286||e>=8592&&e<=8596||e>=8597&&e<=8601||e>=8602&&e<=8603||e>=8604&&e<=8607||e===8608||e>=8609&&e<=8610||e===8611||e>=8612&&e<=8613||e===8614||e>=8615&&e<=8621||e===8622||e>=8623&&e<=8653||e>=8654&&e<=8655||e>=8656&&e<=8657||e===8658||e===8659||e===8660||e>=8661&&e<=8691||e>=8692&&e<=8959||e>=8960&&e<=8967||e===8968||e===8969||e===8970||e===8971||e>=8972&&e<=8991||e>=8992&&e<=8993||e>=8994&&e<=9e3||e===9001||e===9002||e>=9003&&e<=9083||e===9084||e>=9085&&e<=9114||e>=9115&&e<=9139||e>=9140&&e<=9179||e>=9180&&e<=9185||e>=9186&&e<=9254||e>=9255&&e<=9279||e>=9280&&e<=9290||e>=9291&&e<=9311||e>=9472&&e<=9654||e===9655||e>=9656&&e<=9664||e===9665||e>=9666&&e<=9719||e>=9720&&e<=9727||e>=9728&&e<=9838||e===9839||e>=9840&&e<=10087||e===10088||e===10089||e===10090||e===10091||e===10092||e===10093||e===10094||e===10095||e===10096||e===10097||e===10098||e===10099||e===10100||e===10101||e>=10132&&e<=10175||e>=10176&&e<=10180||e===10181||e===10182||e>=10183&&e<=10213||e===10214||e===10215||e===10216||e===10217||e===10218||e===10219||e===10220||e===10221||e===10222||e===10223||e>=10224&&e<=10239||e>=10240&&e<=10495||e>=10496&&e<=10626||e===10627||e===10628||e===10629||e===10630||e===10631||e===10632||e===10633||e===10634||e===10635||e===10636||e===10637||e===10638||e===10639||e===10640||e===10641||e===10642||e===10643||e===10644||e===10645||e===10646||e===10647||e===10648||e>=10649&&e<=10711||e===10712||e===10713||e===10714||e===10715||e>=10716&&e<=10747||e===10748||e===10749||e>=10750&&e<=11007||e>=11008&&e<=11055||e>=11056&&e<=11076||e>=11077&&e<=11078||e>=11079&&e<=11084||e>=11085&&e<=11123||e>=11124&&e<=11125||e>=11126&&e<=11157||e===11158||e>=11159&&e<=11263||e>=11776&&e<=11777||e===11778||e===11779||e===11780||e===11781||e>=11782&&e<=11784||e===11785||e===11786||e===11787||e===11788||e===11789||e>=11790&&e<=11798||e===11799||e>=11800&&e<=11801||e===11802||e===11803||e===11804||e===11805||e>=11806&&e<=11807||e===11808||e===11809||e===11810||e===11811||e===11812||e===11813||e===11814||e===11815||e===11816||e===11817||e>=11818&&e<=11822||e===11823||e>=11824&&e<=11833||e>=11834&&e<=11835||e>=11836&&e<=11839||e===11840||e===11841||e===11842||e>=11843&&e<=11855||e>=11856&&e<=11857||e===11858||e>=11859&&e<=11903||e>=12289&&e<=12291||e===12296||e===12297||e===12298||e===12299||e===12300||e===12301||e===12302||e===12303||e===12304||e===12305||e>=12306&&e<=12307||e===12308||e===12309||e===12310||e===12311||e===12312||e===12313||e===12314||e===12315||e===12316||e===12317||e>=12318&&e<=12319||e===12320||e===12336||e===64830||e===64831||e>=65093&&e<=65094}function mc(e){e.forEach(function(n){if(delete n.location,ey(n)||ty(n))for(var i in n.options)delete n.options[i].location,mc(n.options[i].value);else Yg(n)&&ny(n.style)||(Zg(n)||Jg(n))&&cc(n.style)?delete n.style.location:ry(n)&&mc(n.children)})}function jE(e,n){n===void 0&&(n={}),n=J({shouldParseSkeletons:!0,requiresOtherClause:!0},n);var i=new ME(e,n).parse();if(i.err){var s=SyntaxError(_e[i.err.kind]);throw s.location=i.err.location,s.originalMessage=i.err.message,s}return n!=null&&n.captureLocation||mc(i.val),i.val}var cr;(function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API"})(cr||(cr={}));var Zr=function(e){Ht(n,e);function n(i,s,l){var u=e.call(this,i)||this;return u.code=s,u.originalMessage=l,u}return n.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},n}(Error),zp=function(e){Ht(n,e);function n(i,s,l,u){return e.call(this,'Invalid values for "'.concat(i,'": "').concat(s,'". Options are "').concat(Object.keys(l).join('", "'),'"'),cr.INVALID_VALUE,u)||this}return n}(Zr),zE=function(e){Ht(n,e);function n(i,s,l){return e.call(this,'Value for "'.concat(i,'" must be of type ').concat(s),cr.INVALID_VALUE,l)||this}return n}(Zr),UE=function(e){Ht(n,e);function n(i,s){return e.call(this,'The intl string context variable "'.concat(i,'" was not provided to the string "').concat(s,'"'),cr.MISSING_VALUE,s)||this}return n}(Zr),dt;(function(e){e[e.literal=0]="literal",e[e.object=1]="object"})(dt||(dt={}));function HE(e){return e.length<2?e:e.reduce(function(n,i){var s=n[n.length-1];return!s||s.type!==dt.literal||i.type!==dt.literal?n.push(i):s.value+=i.value,n},[])}function fy(e){return typeof e=="function"}function js(e,n,i,s,l,u,d){if(e.length===1&&Pp(e[0]))return[{type:dt.literal,value:e[0].value}];for(var h=[],p=0,E=e;p<E.length;p++){var y=E[p];if(Pp(y)){h.push({type:dt.literal,value:y.value});continue}if(fE(y)){typeof u=="number"&&h.push({type:dt.literal,value:i.getNumberFormat(n).format(u)});continue}var w=y.value;if(!(l&&w in l))throw new UE(w,d);var m=l[w];if(cE(y)){(!m||typeof m=="string"||typeof m=="number")&&(m=typeof m=="string"||typeof m=="number"?String(m):""),h.push({type:typeof m=="string"?dt.literal:dt.object,value:m});continue}if(Zg(y)){var _=typeof y.style=="string"?s.date[y.style]:cc(y.style)?y.style.parsedOptions:void 0;h.push({type:dt.literal,value:i.getDateTimeFormat(n,_).format(m)});continue}if(Jg(y)){var _=typeof y.style=="string"?s.time[y.style]:cc(y.style)?y.style.parsedOptions:s.time.medium;h.push({type:dt.literal,value:i.getDateTimeFormat(n,_).format(m)});continue}if(Yg(y)){var _=typeof y.style=="string"?s.number[y.style]:ny(y.style)?y.style.parsedOptions:void 0;_&&_.scale&&(m=m*(_.scale||1)),h.push({type:dt.literal,value:i.getNumberFormat(n,_).format(m)});continue}if(ry(y)){var v=y.children,k=y.value,x=l[k];if(!fy(x))throw new zE(k,"function",d);var N=js(v,n,i,s,l,u),O=x(N.map(function(C){return C.value}));Array.isArray(O)||(O=[O]),h.push.apply(h,O.map(function(C){return{type:typeof C=="string"?dt.literal:dt.object,value:C}}))}if(ey(y)){var S=y.options[m]||y.options.other;if(!S)throw new zp(y.value,m,Object.keys(y.options),d);h.push.apply(h,js(S.value,n,i,s,l));continue}if(ty(y)){var S=y.options["=".concat(m)];if(!S){if(!Intl.PluralRules)throw new Zr(`Intl.PluralRules is not available in this environment.
|
|
53
|
+
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
54
|
+
`,cr.MISSING_INTL_API,d);var T=i.getPluralRules(n,{type:y.pluralType}).select(m-(y.offset||0));S=y.options[T]||y.options.other}if(!S)throw new zp(y.value,m,Object.keys(y.options),d);h.push.apply(h,js(S.value,n,i,s,l,m-(y.offset||0)));continue}}return HE(h)}function GE(e,n){return n?J(J(J({},e||{}),n||{}),Object.keys(e).reduce(function(i,s){return i[s]=J(J({},e[s]),n[s]||{}),i},{})):e}function $E(e,n){return n?Object.keys(e).reduce(function(i,s){return i[s]=GE(e[s],n[s]),i},J({},e)):e}function yu(e){return{create:function(){return{get:function(n){return e[n]},set:function(n,i){e[n]=i}}}}}function qE(e){return e===void 0&&(e={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:ht(function(){for(var n,i=[],s=0;s<arguments.length;s++)i[s]=arguments[s];return new((n=Intl.NumberFormat).bind.apply(n,yt([void 0],i,!1)))},{cache:yu(e.number),strategy:pt.variadic}),getDateTimeFormat:ht(function(){for(var n,i=[],s=0;s<arguments.length;s++)i[s]=arguments[s];return new((n=Intl.DateTimeFormat).bind.apply(n,yt([void 0],i,!1)))},{cache:yu(e.dateTime),strategy:pt.variadic}),getPluralRules:ht(function(){for(var n,i=[],s=0;s<arguments.length;s++)i[s]=arguments[s];return new((n=Intl.PluralRules).bind.apply(n,yt([void 0],i,!1)))},{cache:yu(e.pluralRules),strategy:pt.variadic})}}var dy=function(){function e(n,i,s,l){i===void 0&&(i=e.defaultLocale);var u=this;if(this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(p){var E=u.formatToParts(p);if(E.length===1)return E[0].value;var y=E.reduce(function(w,m){return!w.length||m.type!==dt.literal||typeof w[w.length-1]!="string"?w.push(m.value):w[w.length-1]+=m.value,w},[]);return y.length<=1?y[0]||"":y},this.formatToParts=function(p){return js(u.ast,u.locales,u.formatters,u.formats,p,void 0,u.message)},this.resolvedOptions=function(){var p;return{locale:((p=u.resolvedLocale)===null||p===void 0?void 0:p.toString())||Intl.NumberFormat.supportedLocalesOf(u.locales)[0]}},this.getAst=function(){return u.ast},this.locales=i,this.resolvedLocale=e.resolveLocale(i),typeof n=="string"){if(this.message=n,!e.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");var d=l||{};d.formatters;var h=ea(d,["formatters"]);this.ast=e.__parse(n,J(J({},h),{locale:this.resolvedLocale}))}else this.ast=n;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=$E(e.formats,s),this.formatters=l&&l.formatters||qE(this.formatterCache)}return Object.defineProperty(e,"defaultLocale",{get:function(){return e.memoizedDefaultLocale||(e.memoizedDefaultLocale=new Intl.NumberFormat().resolvedOptions().locale),e.memoizedDefaultLocale},enumerable:!1,configurable:!0}),e.memoizedDefaultLocale=null,e.resolveLocale=function(n){if(!(typeof Intl.Locale>"u")){var i=Intl.NumberFormat.supportedLocalesOf(n);return i.length>0?new Intl.Locale(i[0]):new Intl.Locale(typeof n=="string"?n:n[0])}},e.__parse=jE,e.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"}}},e}(),En;(function(e){e.FORMAT_ERROR="FORMAT_ERROR",e.UNSUPPORTED_FORMATTER="UNSUPPORTED_FORMATTER",e.INVALID_CONFIG="INVALID_CONFIG",e.MISSING_DATA="MISSING_DATA",e.MISSING_TRANSLATION="MISSING_TRANSLATION"})(En||(En={}));var to=function(e){Ht(n,e);function n(i,s,l){var u=this,d=l?l instanceof Error?l:new Error(String(l)):void 0;return u=e.call(this,"[@formatjs/intl Error ".concat(i,"] ").concat(s,`
|
|
55
|
+
`).concat(d?`
|
|
56
|
+
`.concat(d.message,`
|
|
57
|
+
`).concat(d.stack):""))||this,u.code=i,typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(u,n),u}return n}(Error),VE=function(e){Ht(n,e);function n(i,s){return e.call(this,En.UNSUPPORTED_FORMATTER,i,s)||this}return n}(to),WE=function(e){Ht(n,e);function n(i,s){return e.call(this,En.INVALID_CONFIG,i,s)||this}return n}(to),Up=function(e){Ht(n,e);function n(i,s){return e.call(this,En.MISSING_DATA,i,s)||this}return n}(to),Gt=function(e){Ht(n,e);function n(i,s,l){var u=e.call(this,En.FORMAT_ERROR,"".concat(i,`
|
|
58
|
+
Locale: `).concat(s,`
|
|
59
|
+
`),l)||this;return u.locale=s,u}return n}(to),vu=function(e){Ht(n,e);function n(i,s,l,u){var d=e.call(this,"".concat(i,`
|
|
60
|
+
MessageID: `).concat(l==null?void 0:l.id,`
|
|
61
|
+
Default Message: `).concat(l==null?void 0:l.defaultMessage,`
|
|
62
|
+
Description: `).concat(l==null?void 0:l.description,`
|
|
63
|
+
`),s,u)||this;return d.descriptor=l,d.locale=s,d}return n}(Gt),XE=function(e){Ht(n,e);function n(i,s){var l=e.call(this,En.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(u){var d;return(d=u.value)!==null&&d!==void 0?d:JSON.stringify(u)}).join(),")"):"id"," as fallback."))||this;return l.descriptor=i,l}return n}(to);function wn(e,n,i){return i===void 0&&(i={}),n.reduce(function(s,l){return l in e?s[l]=e[l]:l in i&&(s[l]=i[l]),s},{})}var QE=function(e){},KE=function(e){},hy={formats:{},messages:{},timeZone:void 0,defaultLocale:"en",defaultFormats:{},fallbackOnEmptyString:!0,onError:QE,onWarn:KE};function py(){return{dateTime:{},number:{},message:{},relativeTime:{},pluralRules:{},list:{},displayNames:{}}}function hn(e){return{create:function(){return{get:function(n){return e[n]},set:function(n,i){e[n]=i}}}}}function YE(e){e===void 0&&(e=py());var n=Intl.RelativeTimeFormat,i=Intl.ListFormat,s=Intl.DisplayNames,l=ht(function(){for(var h,p=[],E=0;E<arguments.length;E++)p[E]=arguments[E];return new((h=Intl.DateTimeFormat).bind.apply(h,yt([void 0],p,!1)))},{cache:hn(e.dateTime),strategy:pt.variadic}),u=ht(function(){for(var h,p=[],E=0;E<arguments.length;E++)p[E]=arguments[E];return new((h=Intl.NumberFormat).bind.apply(h,yt([void 0],p,!1)))},{cache:hn(e.number),strategy:pt.variadic}),d=ht(function(){for(var h,p=[],E=0;E<arguments.length;E++)p[E]=arguments[E];return new((h=Intl.PluralRules).bind.apply(h,yt([void 0],p,!1)))},{cache:hn(e.pluralRules),strategy:pt.variadic});return{getDateTimeFormat:l,getNumberFormat:u,getMessageFormat:ht(function(h,p,E,y){return new dy(h,p,E,J({formatters:{getNumberFormat:u,getDateTimeFormat:l,getPluralRules:d}},y||{}))},{cache:hn(e.message),strategy:pt.variadic}),getRelativeTimeFormat:ht(function(){for(var h=[],p=0;p<arguments.length;p++)h[p]=arguments[p];return new(n.bind.apply(n,yt([void 0],h,!1)))},{cache:hn(e.relativeTime),strategy:pt.variadic}),getPluralRules:d,getListFormat:ht(function(){for(var h=[],p=0;p<arguments.length;p++)h[p]=arguments[p];return new(i.bind.apply(i,yt([void 0],h,!1)))},{cache:hn(e.list),strategy:pt.variadic}),getDisplayNames:ht(function(){for(var h=[],p=0;p<arguments.length;p++)h[p]=arguments[p];return new(s.bind.apply(s,yt([void 0],h,!1)))},{cache:hn(e.displayNames),strategy:pt.variadic})}}function Gc(e,n,i,s){var l=e&&e[n],u;if(l&&(u=l[i]),u)return u;s(new VE("No ".concat(n," format named: ").concat(i)))}function ms(e,n){return Object.keys(e).reduce(function(i,s){return i[s]=J({timeZone:n},e[s]),i},{})}function Hp(e,n){var i=Object.keys(J(J({},e),n));return i.reduce(function(s,l){return s[l]=J(J({},e[l]||{}),n[l]||{}),s},{})}function Gp(e,n){if(!n)return e;var i=dy.formats;return J(J(J({},i),e),{date:Hp(ms(i.date,n),ms(e.date||{},n)),time:Hp(ms(i.time,n),ms(e.time||{},n))})}var gc=function(e,n,i,s,l){var u=e.locale,d=e.formats,h=e.messages,p=e.defaultLocale,E=e.defaultFormats,y=e.fallbackOnEmptyString,w=e.onError,m=e.timeZone,_=e.defaultRichTextElements;i===void 0&&(i={id:""});var v=i.id,k=i.defaultMessage;Kg(!!v,"[@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.io/docs/tooling/babel-plugin)\nor [@formatjs/ts-transformer](https://formatjs.io/docs/tooling/ts-transformer) OR\n2. Configure your `eslint` config to include [eslint-plugin-formatjs](https://formatjs.io/docs/tooling/linter#enforce-id)\nto autofix this issue");var x=String(v),N=h&&Object.prototype.hasOwnProperty.call(h,x)&&h[x];if(Array.isArray(N)&&N.length===1&&N[0].type===Me.literal)return N[0].value;if(!s&&N&&typeof N=="string"&&!_)return N.replace(/'\{(.*?)\}'/gi,"{$1}");if(s=J(J({},_),s||{}),d=Gp(d,m),E=Gp(E,m),!N){if(y===!1&&N==="")return N;if((!k||u&&u.toLowerCase()!==p.toLowerCase())&&w(new XE(i,u)),k)try{var O=n.getMessageFormat(k,p,E,l);return O.format(s)}catch(S){return w(new vu('Error formatting default message for: "'.concat(x,'", rendering default message verbatim'),u,i,S)),typeof k=="string"?k:x}return x}try{var O=n.getMessageFormat(N,u,d,J({formatters:n},l||{}));return O.format(s)}catch(S){w(new vu('Error formatting message: "'.concat(x,'", using ').concat(k?"default message":"id"," as fallback."),u,i,S))}if(k)try{var O=n.getMessageFormat(k,p,E,l);return O.format(s)}catch(S){w(new vu('Error formatting the default message for: "'.concat(x,'", rendering message verbatim'),u,i,S))}return typeof N=="string"?N:typeof k=="string"?k:x},my=["formatMatcher","timeZone","hour12","weekday","era","year","month","day","hour","minute","second","timeZoneName","hourCycle","dateStyle","timeStyle","calendar","numberingSystem","fractionalSecondDigits"];function ta(e,n,i,s){var l=e.locale,u=e.formats,d=e.onError,h=e.timeZone;s===void 0&&(s={});var p=s.format,E=J(J({},h&&{timeZone:h}),p&&Gc(u,n,p,d)),y=wn(s,my,E);return n==="time"&&!y.hour&&!y.minute&&!y.second&&!y.timeStyle&&!y.dateStyle&&(y=J(J({},y),{hour:"numeric",minute:"numeric"})),i(l,y)}function ZE(e,n){for(var i=[],s=2;s<arguments.length;s++)i[s-2]=arguments[s];var l=i[0],u=i[1],d=u===void 0?{}:u,h=typeof l=="string"?new Date(l||0):l;try{return ta(e,"date",n,d).format(h)}catch(p){e.onError(new Gt("Error formatting date.",e.locale,p))}return String(h)}function JE(e,n){for(var i=[],s=2;s<arguments.length;s++)i[s-2]=arguments[s];var l=i[0],u=i[1],d=u===void 0?{}:u,h=typeof l=="string"?new Date(l||0):l;try{return ta(e,"time",n,d).format(h)}catch(p){e.onError(new Gt("Error formatting time.",e.locale,p))}return String(h)}function eS(e,n){for(var i=[],s=2;s<arguments.length;s++)i[s-2]=arguments[s];var l=i[0],u=i[1],d=i[2],h=d===void 0?{}:d,p=e.timeZone,E=e.locale,y=e.onError,w=wn(h,my,p?{timeZone:p}:{});try{return n(E,w).formatRange(l,u)}catch(m){y(new Gt("Error formatting date time range.",e.locale,m))}return String(l)}function tS(e,n){for(var i=[],s=2;s<arguments.length;s++)i[s-2]=arguments[s];var l=i[0],u=i[1],d=u===void 0?{}:u,h=typeof l=="string"?new Date(l||0):l;try{return ta(e,"date",n,d).formatToParts(h)}catch(p){e.onError(new Gt("Error formatting date.",e.locale,p))}return[]}function rS(e,n){for(var i=[],s=2;s<arguments.length;s++)i[s-2]=arguments[s];var l=i[0],u=i[1],d=u===void 0?{}:u,h=typeof l=="string"?new Date(l||0):l;try{return ta(e,"time",n,d).formatToParts(h)}catch(p){e.onError(new Gt("Error formatting time.",e.locale,p))}return[]}var nS=["style","type","fallback","languageDisplay"];function iS(e,n,i,s){var l=e.locale,u=e.onError,d=Intl.DisplayNames;d||u(new Zr(`Intl.DisplayNames is not available in this environment.
|
|
64
|
+
Try polyfilling it using "@formatjs/intl-displaynames"
|
|
65
|
+
`,cr.MISSING_INTL_API));var h=wn(s,nS);try{return n(l,h).of(i)}catch(p){u(new Gt("Error formatting display name.",l,p))}}var oS=["type","style"],$p=Date.now();function sS(e){return"".concat($p,"_").concat(e,"_").concat($p)}function aS(e,n,i,s){s===void 0&&(s={});var l=gy(e,n,i,s).reduce(function(u,d){var h=d.value;return typeof h!="string"?u.push(h):typeof u[u.length-1]=="string"?u[u.length-1]+=h:u.push(h),u},[]);return l.length===1?l[0]:l.length===0?"":l}function gy(e,n,i,s){var l=e.locale,u=e.onError;s===void 0&&(s={});var d=Intl.ListFormat;d||u(new Zr(`Intl.ListFormat is not available in this environment.
|
|
66
|
+
Try polyfilling it using "@formatjs/intl-listformat"
|
|
67
|
+
`,cr.MISSING_INTL_API));var h=wn(s,oS);try{var p={},E=i.map(function(y,w){if(typeof y=="object"){var m=sS(w);return p[m]=y,m}return String(y)});return n(l,h).formatToParts(E).map(function(y){return y.type==="literal"?y:J(J({},y),{value:p[y.value]||y.value})})}catch(y){u(new Gt("Error formatting list.",l,y))}return i}var lS=["type"];function uS(e,n,i,s){var l=e.locale,u=e.onError;s===void 0&&(s={}),Intl.PluralRules||u(new Zr(`Intl.PluralRules is not available in this environment.
|
|
68
|
+
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
69
|
+
`,cr.MISSING_INTL_API));var d=wn(s,lS);try{return n(l,d).select(i)}catch(h){u(new Gt("Error formatting plural.",l,h))}return"other"}var cS=["numeric","style"];function fS(e,n,i){var s=e.locale,l=e.formats,u=e.onError;i===void 0&&(i={});var d=i.format,h=!!d&&Gc(l,"relative",d,u)||{},p=wn(i,cS,h);return n(s,p)}function dS(e,n,i,s,l){l===void 0&&(l={}),s||(s="second");var u=Intl.RelativeTimeFormat;u||e.onError(new Zr(`Intl.RelativeTimeFormat is not available in this environment.
|
|
70
|
+
Try polyfilling it using "@formatjs/intl-relativetimeformat"
|
|
71
|
+
`,cr.MISSING_INTL_API));try{return fS(e,n,l).format(i,s)}catch(d){e.onError(new Gt("Error formatting relative time.",e.locale,d))}return String(i)}var hS=["style","currency","unit","unitDisplay","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","currencyDisplay","currencySign","notation","signDisplay","unit","unitDisplay","numberingSystem","trailingZeroDisplay","roundingPriority","roundingIncrement","roundingMode"];function yy(e,n,i){var s=e.locale,l=e.formats,u=e.onError;i===void 0&&(i={});var d=i.format,h=d&&Gc(l,"number",d,u)||{},p=wn(i,hS,h);return n(s,p)}function pS(e,n,i,s){s===void 0&&(s={});try{return yy(e,n,s).format(i)}catch(l){e.onError(new Gt("Error formatting number.",e.locale,l))}return String(i)}function mS(e,n,i,s){s===void 0&&(s={});try{return yy(e,n,s).formatToParts(i)}catch(l){e.onError(new Gt("Error formatting number.",e.locale,l))}return[]}function gS(e){var n=e?e[Object.keys(e)[0]]:void 0;return typeof n=="string"}function yS(e){e.onWarn&&e.defaultRichTextElements&&gS(e.messages||{})&&e.onWarn(`[@formatjs/intl] "defaultRichTextElements" was specified but "message" was not pre-compiled.
|
|
72
|
+
Please consider using "@formatjs/cli" to pre-compile your messages for performance.
|
|
73
|
+
For more details see https://formatjs.io/docs/getting-started/message-distribution`)}function vS(e,n){var i=YE(n),s=J(J({},hy),e),l=s.locale,u=s.defaultLocale,d=s.onError;return l?!Intl.NumberFormat.supportedLocalesOf(l).length&&d?d(new Up('Missing locale data for locale: "'.concat(l,'" in Intl.NumberFormat. Using default locale: "').concat(u,'" as fallback. See https://formatjs.io/docs/react-intl#runtime-requirements for more details'))):!Intl.DateTimeFormat.supportedLocalesOf(l).length&&d&&d(new Up('Missing locale data for locale: "'.concat(l,'" in Intl.DateTimeFormat. Using default locale: "').concat(u,'" as fallback. See https://formatjs.io/docs/react-intl#runtime-requirements for more details'))):(d&&d(new WE('"locale" was not configured, using "'.concat(u,'" as fallback. See https://formatjs.io/docs/react-intl/api#intlshape for more details'))),s.locale=s.defaultLocale||"en"),yS(s),J(J({},s),{formatters:i,formatNumber:pS.bind(null,s,i.getNumberFormat),formatNumberToParts:mS.bind(null,s,i.getNumberFormat),formatRelativeTime:dS.bind(null,s,i.getRelativeTimeFormat),formatDate:ZE.bind(null,s,i.getDateTimeFormat),formatDateToParts:tS.bind(null,s,i.getDateTimeFormat),formatTime:JE.bind(null,s,i.getDateTimeFormat),formatDateTimeRange:eS.bind(null,s,i.getDateTimeFormat),formatTimeToParts:rS.bind(null,s,i.getDateTimeFormat),formatPlural:uS.bind(null,s,i.getPluralRules),formatMessage:gc.bind(null,s,i),$t:gc.bind(null,s,i),formatList:aS.bind(null,s,i.getListFormat),formatListToParts:gy.bind(null,s,i.getListFormat),formatDisplayName:iS.bind(null,s,i.getDisplayNames)})}function vy(e){Kg(e,"[React Intl] Could not find required `intl` object. <IntlProvider> needs to exist in the component ancestry.")}var _y=J(J({},hy),{textComponent:U.Fragment});function _S(e){return function(n){return e(U.Children.toArray(n))}}function ES(e,n){if(e===n)return!0;if(!e||!n)return!1;var i=Object.keys(e),s=Object.keys(n),l=i.length;if(s.length!==l)return!1;for(var u=0;u<l;u++){var d=i[u];if(e[d]!==n[d]||!Object.prototype.hasOwnProperty.call(n,d))return!1}return!0}var _u={exports:{}},Ce={};/** @license React v16.13.1
|
|
74
|
+
* react-is.production.min.js
|
|
75
|
+
*
|
|
76
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
77
|
+
*
|
|
78
|
+
* This source code is licensed under the MIT license found in the
|
|
79
|
+
* LICENSE file in the root directory of this source tree.
|
|
80
|
+
*/var qp;function SS(){if(qp)return Ce;qp=1;var e=typeof Symbol=="function"&&Symbol.for,n=e?Symbol.for("react.element"):60103,i=e?Symbol.for("react.portal"):60106,s=e?Symbol.for("react.fragment"):60107,l=e?Symbol.for("react.strict_mode"):60108,u=e?Symbol.for("react.profiler"):60114,d=e?Symbol.for("react.provider"):60109,h=e?Symbol.for("react.context"):60110,p=e?Symbol.for("react.async_mode"):60111,E=e?Symbol.for("react.concurrent_mode"):60111,y=e?Symbol.for("react.forward_ref"):60112,w=e?Symbol.for("react.suspense"):60113,m=e?Symbol.for("react.suspense_list"):60120,_=e?Symbol.for("react.memo"):60115,v=e?Symbol.for("react.lazy"):60116,k=e?Symbol.for("react.block"):60121,x=e?Symbol.for("react.fundamental"):60117,N=e?Symbol.for("react.responder"):60118,O=e?Symbol.for("react.scope"):60119;function S(C){if(typeof C=="object"&&C!==null){var L=C.$$typeof;switch(L){case n:switch(C=C.type,C){case p:case E:case s:case u:case l:case w:return C;default:switch(C=C&&C.$$typeof,C){case h:case y:case v:case _:case d:return C;default:return L}}case i:return L}}}function T(C){return S(C)===E}return Ce.AsyncMode=p,Ce.ConcurrentMode=E,Ce.ContextConsumer=h,Ce.ContextProvider=d,Ce.Element=n,Ce.ForwardRef=y,Ce.Fragment=s,Ce.Lazy=v,Ce.Memo=_,Ce.Portal=i,Ce.Profiler=u,Ce.StrictMode=l,Ce.Suspense=w,Ce.isAsyncMode=function(C){return T(C)||S(C)===p},Ce.isConcurrentMode=T,Ce.isContextConsumer=function(C){return S(C)===h},Ce.isContextProvider=function(C){return S(C)===d},Ce.isElement=function(C){return typeof C=="object"&&C!==null&&C.$$typeof===n},Ce.isForwardRef=function(C){return S(C)===y},Ce.isFragment=function(C){return S(C)===s},Ce.isLazy=function(C){return S(C)===v},Ce.isMemo=function(C){return S(C)===_},Ce.isPortal=function(C){return S(C)===i},Ce.isProfiler=function(C){return S(C)===u},Ce.isStrictMode=function(C){return S(C)===l},Ce.isSuspense=function(C){return S(C)===w},Ce.isValidElementType=function(C){return typeof C=="string"||typeof C=="function"||C===s||C===E||C===u||C===l||C===w||C===m||typeof C=="object"&&C!==null&&(C.$$typeof===v||C.$$typeof===_||C.$$typeof===d||C.$$typeof===h||C.$$typeof===y||C.$$typeof===x||C.$$typeof===N||C.$$typeof===O||C.$$typeof===k)},Ce.typeOf=S,Ce}var Vp;function bS(){return Vp||(Vp=1,_u.exports=SS()),_u.exports}var Eu,Wp;function wS(){if(Wp)return Eu;Wp=1;var e=bS(),n={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},l={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},u={};u[e.ForwardRef]=s,u[e.Memo]=l;function d(v){return e.isMemo(v)?l:u[v.$$typeof]||n}var h=Object.defineProperty,p=Object.getOwnPropertyNames,E=Object.getOwnPropertySymbols,y=Object.getOwnPropertyDescriptor,w=Object.getPrototypeOf,m=Object.prototype;function _(v,k,x){if(typeof k!="string"){if(m){var N=w(k);N&&N!==m&&_(v,N,x)}var O=p(k);E&&(O=O.concat(E(k)));for(var S=d(v),T=d(k),C=0;C<O.length;++C){var L=O[C];if(!i[L]&&!(x&&x[L])&&!(T&&T[L])&&!(S&&S[L])){var H=y(k,L);try{h(v,L,H)}catch{}}}}return v}return Eu=_,Eu}wS();var $c=typeof window<"u"&&!window.__REACT_INTL_BYPASS_GLOBAL_CONTEXT__?window.__REACT_INTL_CONTEXT__||(window.__REACT_INTL_CONTEXT__=U.createContext(null)):U.createContext(null);$c.Consumer;var xS=$c.Provider,TS=xS,CS=$c;function ra(){var e=U.useContext(CS);return vy(e),e}var yc;(function(e){e.formatDate="FormattedDate",e.formatTime="FormattedTime",e.formatNumber="FormattedNumber",e.formatList="FormattedList",e.formatDisplayName="FormattedDisplayName"})(yc||(yc={}));var vc;(function(e){e.formatDate="FormattedDateParts",e.formatTime="FormattedTimeParts",e.formatNumber="FormattedNumberParts",e.formatList="FormattedListParts"})(vc||(vc={}));function Ey(e){var n=function(i){var s=ra(),l=i.value,u=i.children,d=ea(i,["value","children"]),h=typeof l=="string"?new Date(l||0):l,p=e==="formatDate"?s.formatDateToParts(h,d):s.formatTimeToParts(h,d);return u(p)};return n.displayName=vc[e],n}function ro(e){var n=function(i){var s=ra(),l=i.value,u=i.children,d=ea(i,["value","children"]),h=s[e](l,d);if(typeof u=="function")return u(h);var p=s.textComponent||U.Fragment;return U.createElement(p,null,h)};return n.displayName=yc[e],n}function Sy(e){return e&&Object.keys(e).reduce(function(n,i){var s=e[i];return n[i]=fy(s)?_S(s):s,n},{})}var Xp=function(e,n,i,s){for(var l=[],u=4;u<arguments.length;u++)l[u-4]=arguments[u];var d=Sy(s),h=gc.apply(void 0,yt([e,n,i,d],l,!1));return Array.isArray(h)?U.Children.toArray(h):h},Qp=function(e,n){var i=e.defaultRichTextElements,s=ea(e,["defaultRichTextElements"]),l=Sy(i),u=vS(J(J(J({},_y),s),{defaultRichTextElements:l}),n),d={locale:u.locale,timeZone:u.timeZone,fallbackOnEmptyString:u.fallbackOnEmptyString,formats:u.formats,defaultLocale:u.defaultLocale,defaultFormats:u.defaultFormats,messages:u.messages,onError:u.onError,defaultRichTextElements:l};return J(J({},u),{formatMessage:Xp.bind(null,d,u.formatters),$t:Xp.bind(null,d,u.formatters)})};function Su(e){return{locale:e.locale,timeZone:e.timeZone,fallbackOnEmptyString:e.fallbackOnEmptyString,formats:e.formats,textComponent:e.textComponent,messages:e.messages,defaultLocale:e.defaultLocale,defaultFormats:e.defaultFormats,onError:e.onError,onWarn:e.onWarn,wrapRichTextChunksInFragment:e.wrapRichTextChunksInFragment,defaultRichTextElements:e.defaultRichTextElements}}var kS=function(e){Ht(n,e);function n(){var i=e!==null&&e.apply(this,arguments)||this;return i.cache=py(),i.state={cache:i.cache,intl:Qp(Su(i.props),i.cache),prevConfig:Su(i.props)},i}return n.getDerivedStateFromProps=function(i,s){var l=s.prevConfig,u=s.cache,d=Su(i);return ES(l,d)?null:{intl:Qp(d,u),prevConfig:d}},n.prototype.render=function(){return vy(this.state.intl),U.createElement(TS,{value:this.state.intl},this.props.children)},n.displayName="IntlProvider",n.defaultProps=_y,n}(U.PureComponent);ro("formatDate");ro("formatTime");ro("formatNumber");ro("formatList");ro("formatDisplayName");Ey("formatDate");Ey("formatTime");const RS="_app_wkun7_5",OS={app:RS},by=()=>NS(window.location.pathname),NS=e=>{const n=e.split("/"),i=e.endsWith("/");return n[n.length-(i?2:1)]},qc=eE,_n=nE;var bu={exports:{}};/*!
|
|
81
|
+
Copyright (c) 2018 Jed Watson.
|
|
82
|
+
Licensed under the MIT License (MIT), see
|
|
83
|
+
http://jedwatson.github.io/classnames
|
|
84
|
+
*/var Kp;function AS(){return Kp||(Kp=1,function(e){(function(){var n={}.hasOwnProperty;function i(){for(var u="",d=0;d<arguments.length;d++){var h=arguments[d];h&&(u=l(u,s(h)))}return u}function s(u){if(typeof u=="string"||typeof u=="number")return u;if(typeof u!="object")return"";if(Array.isArray(u))return i.apply(null,u);if(u.toString!==Object.prototype.toString&&!u.toString.toString().includes("[native code]"))return u.toString();var d="";for(var h in u)n.call(u,h)&&u[h]&&(d=l(d,h));return d}function l(u,d){return d?u?u+" "+d:u+d:u}e.exports?(i.default=i,e.exports=i):window.classNames=i})()}(bu)),bu.exports}var IS=AS();const q=Js(IS),wy="%[a-f0-9]{2}",Yp=new RegExp("("+wy+")|([^%]+?)","gi"),Zp=new RegExp("("+wy+")+","gi");function _c(e,n){try{return[decodeURIComponent(e.join(""))]}catch{}if(e.length===1)return e;n=n||1;const i=e.slice(0,n),s=e.slice(n);return Array.prototype.concat.call([],_c(i),_c(s))}function PS(e){try{return decodeURIComponent(e)}catch{let n=e.match(Yp)||[];for(let i=1;i<n.length;i++)e=_c(n,i).join(""),n=e.match(Yp)||[];return e}}function DS(e){const n={"%FE%FF":"��","%FF%FE":"��"};let i=Zp.exec(e);for(;i;){try{n[i[0]]=decodeURIComponent(i[0])}catch{const l=PS(i[0]);l!==i[0]&&(n[i[0]]=l)}i=Zp.exec(e)}n["%C2"]="�";const s=Object.keys(n);for(const l of s)e=e.replace(new RegExp(l,"g"),n[l]);return e}function MS(e){if(typeof e!="string")throw new TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof e+"`");try{return decodeURIComponent(e)}catch{return DS(e)}}function FS(e,n){const i={};if(Array.isArray(n))for(const s of n){const l=Object.getOwnPropertyDescriptor(e,s);l!=null&&l.enumerable&&Object.defineProperty(i,s,l)}else for(const s of Reflect.ownKeys(e)){const l=Object.getOwnPropertyDescriptor(e,s);if(l.enumerable){const u=e[s];n(s,u,e)&&Object.defineProperty(i,s,l)}}return i}function xy(e,n){if(!(typeof e=="string"&&typeof n=="string"))throw new TypeError("Expected the arguments to be of type `string`");if(e===""||n==="")return[];const i=e.indexOf(n);return i===-1?[]:[e.slice(0,i),e.slice(i+n.length)]}const LS=e=>e==null,BS=e=>encodeURIComponent(e).replaceAll(/[!'()*]/g,n=>`%${n.charCodeAt(0).toString(16).toUpperCase()}`),Ec=Symbol("encodeFragmentIdentifier");function jS(e){switch(e.arrayFormat){case"index":return n=>(i,s)=>{const l=i.length;return s===void 0||e.skipNull&&s===null||e.skipEmptyString&&s===""?i:s===null?[...i,[Ve(n,e),"[",l,"]"].join("")]:[...i,[Ve(n,e),"[",Ve(l,e),"]=",Ve(s,e)].join("")]};case"bracket":return n=>(i,s)=>s===void 0||e.skipNull&&s===null||e.skipEmptyString&&s===""?i:s===null?[...i,[Ve(n,e),"[]"].join("")]:[...i,[Ve(n,e),"[]=",Ve(s,e)].join("")];case"colon-list-separator":return n=>(i,s)=>s===void 0||e.skipNull&&s===null||e.skipEmptyString&&s===""?i:s===null?[...i,[Ve(n,e),":list="].join("")]:[...i,[Ve(n,e),":list=",Ve(s,e)].join("")];case"comma":case"separator":case"bracket-separator":{const n=e.arrayFormat==="bracket-separator"?"[]=":"=";return i=>(s,l)=>l===void 0||e.skipNull&&l===null||e.skipEmptyString&&l===""?s:(l=l===null?"":l,s.length===0?[[Ve(i,e),n,Ve(l,e)].join("")]:[[s,Ve(l,e)].join(e.arrayFormatSeparator)])}default:return n=>(i,s)=>s===void 0||e.skipNull&&s===null||e.skipEmptyString&&s===""?i:s===null?[...i,Ve(n,e)]:[...i,[Ve(n,e),"=",Ve(s,e)].join("")]}}function zS(e){let n;switch(e.arrayFormat){case"index":return(i,s,l)=>{if(n=/\[(\d*)]$/.exec(i),i=i.replace(/\[\d*]$/,""),!n){l[i]=s;return}l[i]===void 0&&(l[i]={}),l[i][n[1]]=s};case"bracket":return(i,s,l)=>{if(n=/(\[])$/.exec(i),i=i.replace(/\[]$/,""),!n){l[i]=s;return}if(l[i]===void 0){l[i]=[s];return}l[i]=[...l[i],s]};case"colon-list-separator":return(i,s,l)=>{if(n=/(:list)$/.exec(i),i=i.replace(/:list$/,""),!n){l[i]=s;return}if(l[i]===void 0){l[i]=[s];return}l[i]=[...l[i],s]};case"comma":case"separator":return(i,s,l)=>{const u=typeof s=="string"&&s.includes(e.arrayFormatSeparator),d=typeof s=="string"&&!u&&br(s,e).includes(e.arrayFormatSeparator);s=d?br(s,e):s;const h=u||d?s.split(e.arrayFormatSeparator).map(p=>br(p,e)):s===null?s:br(s,e);l[i]=h};case"bracket-separator":return(i,s,l)=>{const u=/(\[])$/.test(i);if(i=i.replace(/\[]$/,""),!u){l[i]=s&&br(s,e);return}const d=s===null?[]:br(s,e).split(e.arrayFormatSeparator);if(l[i]===void 0){l[i]=d;return}l[i]=[...l[i],...d]};default:return(i,s,l)=>{if(l[i]===void 0){l[i]=s;return}l[i]=[...[l[i]].flat(),s]}}}function Ty(e){if(typeof e!="string"||e.length!==1)throw new TypeError("arrayFormatSeparator must be single character string")}function Ve(e,n){return n.encode?n.strict?BS(e):encodeURIComponent(e):e}function br(e,n){return n.decode?MS(e):e}function Cy(e){return Array.isArray(e)?e.sort():typeof e=="object"?Cy(Object.keys(e)).sort((n,i)=>Number(n)-Number(i)).map(n=>e[n]):e}function ky(e){const n=e.indexOf("#");return n!==-1&&(e=e.slice(0,n)),e}function US(e){let n="";const i=e.indexOf("#");return i!==-1&&(n=e.slice(i)),n}function Jp(e,n,i){return i==="string"&&typeof e=="string"?e:typeof i=="function"&&typeof e=="string"?i(e):n.parseBooleans&&e!==null&&(e.toLowerCase()==="true"||e.toLowerCase()==="false")?e.toLowerCase()==="true":i==="number"&&!Number.isNaN(Number(e))&&typeof e=="string"&&e.trim()!==""||n.parseNumbers&&!Number.isNaN(Number(e))&&typeof e=="string"&&e.trim()!==""?Number(e):e}function Vc(e){e=ky(e);const n=e.indexOf("?");return n===-1?"":e.slice(n+1)}function Wc(e,n){n={decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1,types:Object.create(null),...n},Ty(n.arrayFormatSeparator);const i=zS(n),s=Object.create(null);if(typeof e!="string"||(e=e.trim().replace(/^[?#&]/,""),!e))return s;for(const l of e.split("&")){if(l==="")continue;const u=n.decode?l.replaceAll("+"," "):l;let[d,h]=xy(u,"=");d===void 0&&(d=u),h=h===void 0?null:["comma","separator","bracket-separator"].includes(n.arrayFormat)?h:br(h,n),i(br(d,n),h,s)}for(const[l,u]of Object.entries(s))if(typeof u=="object"&&u!==null&&n.types[l]!=="string")for(const[d,h]of Object.entries(u)){const p=n.types[l]?n.types[l].replace("[]",""):void 0;u[d]=Jp(h,n,p)}else typeof u=="object"&&u!==null&&n.types[l]==="string"?s[l]=Object.values(u).join(n.arrayFormatSeparator):s[l]=Jp(u,n,n.types[l]);return n.sort===!1?s:(n.sort===!0?Object.keys(s).sort():Object.keys(s).sort(n.sort)).reduce((l,u)=>{const d=s[u];return l[u]=d&&typeof d=="object"&&!Array.isArray(d)?Cy(d):d,l},Object.create(null))}function Ry(e,n){if(!e)return"";n={encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:",",...n},Ty(n.arrayFormatSeparator);const i=d=>n.skipNull&&LS(e[d])||n.skipEmptyString&&e[d]==="",s=jS(n),l={};for(const[d,h]of Object.entries(e))i(d)||(l[d]=h);const u=Object.keys(l);return n.sort!==!1&&u.sort(n.sort),u.map(d=>{const h=e[d];return h===void 0?"":h===null?Ve(d,n):Array.isArray(h)?h.length===0&&n.arrayFormat==="bracket-separator"?Ve(d,n)+"[]":h.reduce(s(d),[]).join("&"):Ve(d,n)+"="+Ve(h,n)}).filter(d=>d.length>0).join("&")}function Oy(e,n){var l;n={decode:!0,...n};let[i,s]=xy(e,"#");return i===void 0&&(i=e),{url:((l=i==null?void 0:i.split("?"))==null?void 0:l[0])??"",query:Wc(Vc(e),n),...n&&n.parseFragmentIdentifier&&s?{fragmentIdentifier:br(s,n)}:{}}}function Ny(e,n){n={encode:!0,strict:!0,[Ec]:!0,...n};const i=ky(e.url).split("?")[0]||"",s=Vc(e.url),l={...Wc(s,{sort:!1}),...e.query};let u=Ry(l,n);u&&(u=`?${u}`);let d=US(e.url);if(typeof e.fragmentIdentifier=="string"){const h=new URL(i);h.hash=e.fragmentIdentifier,d=n[Ec]?h.hash:`#${e.fragmentIdentifier}`}return`${i}${u}${d}`}function Ay(e,n,i){i={parseFragmentIdentifier:!0,[Ec]:!1,...i};const{url:s,query:l,fragmentIdentifier:u}=Oy(e,i);return Ny({url:s,query:FS(l,n),fragmentIdentifier:u},i)}function HS(e,n,i){const s=Array.isArray(n)?l=>!n.includes(l):(l,u)=>!n(l,u);return Ay(e,s,i)}const Xc=Object.freeze(Object.defineProperty({__proto__:null,exclude:HS,extract:Vc,parse:Wc,parseUrl:Oy,pick:Ay,stringify:Ry,stringifyUrl:Ny},Symbol.toStringTag,{value:"Module"}));var Zt={},Ot={},ue={},em;function Dt(){return em||(em=1,Object.defineProperty(ue,"__esModule",{value:!0}),ue.GUEST_LOCALE_CHANGED=ue.DRAWER_CLOSE=ue.DRAWER_OPEN=ue.CONVERSATION_RATING_FROM_GUEST=ue.TRANSCRIPT_ITEM_GUEST_REACTION=ue.TRANSCRIPT_MAIL_REQUEST=ue.INBOX_CONNECT_REQUEST=ue.RESTART_CHAT_REQUEST=ue.EVENT_TO_GUEST=ue.NLU_REQUEST_EVENT=ue.EXPERTS_DISCONNECTED=ue.EXPERTS_DISCONNECT_REQUEST=ue.EXPERTS_CONNECTED=ue.EXPERTS_CONNECT_REQUEST=ue.MESSAGE_TO_GUEST=ue.MESSAGE_WITHOUT_ANALYSIS_FROM_GUEST=ue.MESSAGE_FROM_GUEST=ue.GUEST_FEEDBACK_RESPONSE=ue.GUEST_DISCONNECTED=ue.GUEST_CONNECTED=ue.TYPING_OFF=ue.TYPING_ON=void 0,ue.TYPING_ON="core.typing.on",ue.TYPING_OFF="core.typing.off",ue.GUEST_CONNECTED="core.guest.connected",ue.GUEST_DISCONNECTED="core.guest.disconnected",ue.GUEST_FEEDBACK_RESPONSE="core.guest.feedback.response",ue.MESSAGE_FROM_GUEST="core.message.from.guest",ue.MESSAGE_WITHOUT_ANALYSIS_FROM_GUEST="core.message.without.analysis.from.guest",ue.MESSAGE_TO_GUEST="core.message.to.guest",ue.EXPERTS_CONNECT_REQUEST="core.experts.connect.request",ue.EXPERTS_CONNECTED="core.experts.connected",ue.EXPERTS_DISCONNECT_REQUEST="core.experts.disconnect.request",ue.EXPERTS_DISCONNECTED="core.experts.disconnected",ue.NLU_REQUEST_EVENT="core.nlu.request.event",ue.EVENT_TO_GUEST="core.event.to.guest",ue.RESTART_CHAT_REQUEST="core.chat.restart.request",ue.INBOX_CONNECT_REQUEST="core.inbox.connect.request",ue.TRANSCRIPT_MAIL_REQUEST="core.transcript.mail.request",ue.TRANSCRIPT_ITEM_GUEST_REACTION="core.transcript.item.guest.reaction",ue.CONVERSATION_RATING_FROM_GUEST="core.conversation.rating.from.guest",ue.DRAWER_OPEN="core.drawer.open",ue.DRAWER_CLOSE="core.drawer.close",ue.GUEST_LOCALE_CHANGED="core.guest.locale.changed"),ue}var wu={},tm;function GS(){return tm||(tm=1,Object.defineProperty(wu,"__esModule",{value:!0})),wu}var gs={},rm;function $S(){if(rm)return gs;rm=1,Object.defineProperty(gs,"__esModule",{value:!0});const e=Dt(),n=()=>({type:e.DRAWER_CLOSE});return gs.default=n,gs}var ys={},nm;function qS(){if(nm)return ys;nm=1,Object.defineProperty(ys,"__esModule",{value:!0});const e=Dt(),n=(i,s)=>({type:e.GUEST_FEEDBACK_RESPONSE,payload:{satisfaction:i,intent:s}});return ys.default=n,ys}var vs={},im;function VS(){if(im)return vs;im=1,Object.defineProperty(vs,"__esModule",{value:!0});const e=Dt(),n=i=>({type:e.GUEST_CONNECTED,payload:{sessionId:i}});return vs.default=n,vs}var _s={},om;function WS(){if(om)return _s;om=1,Object.defineProperty(_s,"__esModule",{value:!0});const e=Dt(),n=i=>({type:e.GUEST_DISCONNECTED,payload:{sessionId:i}});return _s.default=n,_s}var Es={},sm;function XS(){if(sm)return Es;sm=1,Object.defineProperty(Es,"__esModule",{value:!0});const e=Dt(),n=(i,s)=>({type:e.GUEST_LOCALE_CHANGED,payload:{previousLocale:i,newLocale:s}});return Es.default=n,Es}var Ss={},am;function QS(){if(am)return Ss;am=1,Object.defineProperty(Ss,"__esModule",{value:!0});const e=Dt(),n=i=>({type:e.DRAWER_OPEN,payload:{parameters:{contentUrl:i}}});return Ss.default=n,Ss}var bs={},ze={},lm;function Qc(){if(lm)return ze;lm=1,Object.defineProperty(ze,"__esModule",{value:!0}),ze.getStringRepresentationFromMessage=ze.MessageTypeEnum=ze.AudioMessage=ze.FileMessage=ze.ImageMessage=ze.VideoMessage=ze.MarkdownMessage=ze.DetailMessage=ze.TextMessage=ze.Message=void 0;class e{constructor(w,m){we(this,"type");we(this,"sender");we(this,"quickReplies");this.type=w,this.sender=m,this.quickReplies=[]}addQuickReply(w,m){this.quickReplies.push({label:w,payload:m})}}ze.Message=e;class n extends e{constructor(m,_){super(p.TEXT,_);we(this,"text");this.text=m}}ze.TextMessage=n;class i extends e{constructor(m,_){super(p.DETAIL,_);we(this,"title");we(this,"subtitle");we(this,"text");we(this,"imageUrl");we(this,"itemUrl");we(this,"buttons");this.title=m,this.text="",this.subtitle="",this.imageUrl="",this.itemUrl="",this.buttons=[]}setImageUrl(m){this.imageUrl=m}setItemUrl(m){this.itemUrl=m}setSubtitle(m){this.subtitle=m}setText(m){this.text=m}addButton(m){this.buttons.push(m)}}ze.DetailMessage=i;class s extends e{constructor(m,_,v){super(p.MARKDOWN,v);we(this,"markdown");we(this,"excerpt");we(this,"className");this.markdown=m,this.excerpt=_,this.className=""}setClassName(m){this.className=m}}ze.MarkdownMessage=s;class l extends e{constructor(m,_){super(p.VIDEO,_);we(this,"url");this.url=m}}ze.VideoMessage=l;class u extends e{constructor(m,_){super(p.IMAGE,_);we(this,"url");this.url=m}}ze.ImageMessage=u;class d extends e{constructor(m,_){super(p.FILE,_);we(this,"url");this.url=m}}ze.FileMessage=d;class h extends e{constructor(m,_){super(p.AUDIO,_);we(this,"url");this.url=m}}ze.AudioMessage=h;var p;(function(y){y.TEXT="TEXT",y.DETAIL="DETAIL",y.MARKDOWN="MARKDOWN",y.VIDEO="VIDEO",y.IMAGE="IMAGE",y.FILE="FILE",y.AUDIO="AUDIO"})(p||(ze.MessageTypeEnum=p={}));const E=y=>{switch(y.type){case p.TEXT:return y.text;case p.DETAIL:const m=y;return`${m.title} // ${m.subtitle}`;case p.MARKDOWN:return y.excerpt;case p.VIDEO:return`Video Url: ${y.url}`;case p.IMAGE:return`Image Url: ${y.url}`;case p.FILE:return`File Url: ${y.url}`;case p.AUDIO:return`Audio Url: ${y.url}`;default:throw new Error("Unknown message type "+y.type)}};return ze.getStringRepresentationFromMessage=E,ze}var Nt={},um;function Kc(){if(um)return Nt;um=1,Object.defineProperty(Nt,"__esModule",{value:!0}),Nt.UserType=Nt.PersonUser=Nt.GuestUser=Nt.BotUser=Nt.User=void 0;class e{constructor(d,h,p,E){we(this,"type");we(this,"id");we(this,"name");we(this,"avatar");this.type=d,this.id=h,this.name=p,this.avatar=E}}Nt.User=e;class n extends e{constructor(){super(l.BOT,null,"Chatbot","bot.svg")}}Nt.BotUser=n;class i extends e{constructor(){super(l.GUEST,null,"Guest","visitor.svg")}}Nt.GuestUser=i;class s extends e{constructor(d,h,p){super(l.PERSON,d,h,p)}}Nt.PersonUser=s;var l;return function(u){u.GUEST="GUEST",u.BOT="BOT",u.PERSON="PERSON"}(l||(Nt.UserType=l={})),Nt}var cm;function KS(){if(cm)return bs;cm=1,Object.defineProperty(bs,"__esModule",{value:!0});const e=Qc(),n=Kc(),i=Dt(),s=l=>{const u=new e.TextMessage(l,new n.GuestUser);return{type:i.MESSAGE_FROM_GUEST,message:u}};return bs.default=s,bs}var ws={},fm;function YS(){if(fm)return ws;fm=1,Object.defineProperty(ws,"__esModule",{value:!0});const e=Qc(),n=Kc(),i=Dt(),s=(l,u={})=>{const d=new e.TextMessage(l,new n.GuestUser);return{type:i.MESSAGE_WITHOUT_ANALYSIS_FROM_GUEST,message:d,payload:u}};return ws.default=s,ws}var xs={},dm;function ZS(){if(dm)return xs;dm=1,Object.defineProperty(xs,"__esModule",{value:!0});const e=Dt(),n=i=>({type:e.NLU_REQUEST_EVENT,event:i});return xs.default=n,xs}var Ts={},hm;function JS(){if(hm)return Ts;hm=1,Object.defineProperty(Ts,"__esModule",{value:!0});const e=Dt(),n=()=>({type:e.RESTART_CHAT_REQUEST});return Ts.default=n,Ts}var Cs={},pm;function eb(){if(pm)return Cs;pm=1,Object.defineProperty(Cs,"__esModule",{value:!0});const e=Dt(),n=i=>({type:e.MESSAGE_TO_GUEST,message:i});return Cs.default=n,Cs}var ks={},mm;function tb(){if(mm)return ks;mm=1,Object.defineProperty(ks,"__esModule",{value:!0});const e=Dt(),n=(i,s)=>({type:e.TRANSCRIPT_ITEM_GUEST_REACTION,payload:{actionId:i,reaction:s}});return ks.default=n,ks}var gm;function ym(){return gm||(gm=1,function(e){var n=Ot&&Ot.__createBinding||(Object.create?function(O,S,T,C){C===void 0&&(C=T);var L=Object.getOwnPropertyDescriptor(S,T);(!L||("get"in L?!S.__esModule:L.writable||L.configurable))&&(L={enumerable:!0,get:function(){return S[T]}}),Object.defineProperty(O,C,L)}:function(O,S,T,C){C===void 0&&(C=T),O[C]=S[T]}),i=Ot&&Ot.__setModuleDefault||(Object.create?function(O,S){Object.defineProperty(O,"default",{enumerable:!0,value:S})}:function(O,S){O.default=S}),s=Ot&&Ot.__importStar||function(O){if(O&&O.__esModule)return O;var S={};if(O!=null)for(var T in O)T!=="default"&&Object.prototype.hasOwnProperty.call(O,T)&&n(S,O,T);return i(S,O),S},l=Ot&&Ot.__exportStar||function(O,S){for(var T in O)T!=="default"&&!Object.prototype.hasOwnProperty.call(S,T)&&n(S,O,T)},u=Ot&&Ot.__importDefault||function(O){return O&&O.__esModule?O:{default:O}};Object.defineProperty(e,"__esModule",{value:!0}),e.transcriptItemGuestReaction=e.sendMessageToGuest=e.restartChatRequest=e.requestNLUEvent=e.receiveTextMessageWithoutAnalysisFromGuest=e.receiveTextMessageFromGuest=e.openDrawer=e.guestLocaleChanged=e.guestDisconnected=e.guestConnected=e.feedbackFromGuestResponse=e.closeDrawer=e.ActionTypes=void 0,e.ActionTypes=s(Dt()),l(GS(),e);const d=u($S());e.closeDrawer=d.default;const h=u(qS());e.feedbackFromGuestResponse=h.default;const p=u(VS());e.guestConnected=p.default;const E=u(WS());e.guestDisconnected=E.default;const y=u(XS());e.guestLocaleChanged=y.default;const w=u(QS());e.openDrawer=w.default;const m=u(KS());e.receiveTextMessageFromGuest=m.default;const _=u(YS());e.receiveTextMessageWithoutAnalysisFromGuest=_.default;const v=u(ZS());e.requestNLUEvent=v.default;const k=u(JS());e.restartChatRequest=k.default;const x=u(eb());e.sendMessageToGuest=x.default;const N=u(tb());e.transcriptItemGuestReaction=N.default}(Ot)),Ot}var At={},xu={},vm;function rb(){return vm||(vm=1,Object.defineProperty(xu,"__esModule",{value:!0})),xu}var Gi={},_m;function nb(){if(_m)return Gi;_m=1,Object.defineProperty(Gi,"__esModule",{value:!0}),Gi.NullableKnowledgeBaseAdapter=void 0;class e{async upsertApiKnowledgeBase(i){throw new Error("Method not implemented.")}async findApiKnowledgeBaseByName(i){throw new Error("Method not implemented.")}async deleteApiKnowledgeBaseByName(i){throw new Error("Method not implemented.")}async setIndexingStatus(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 deleteKnowledgeBaseEntriesIndexedBeforeDate(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.")}}return Gi.NullableKnowledgeBaseAdapter=e,Gi}var Em;function ib(){if(Em)return At;Em=1;var e=At&&At.__createBinding||(Object.create?function(l,u,d,h){h===void 0&&(h=d);var p=Object.getOwnPropertyDescriptor(u,d);(!p||("get"in p?!u.__esModule:p.writable||p.configurable))&&(p={enumerable:!0,get:function(){return u[d]}}),Object.defineProperty(l,h,p)}:function(l,u,d,h){h===void 0&&(h=d),l[h]=u[d]}),n=At&&At.__setModuleDefault||(Object.create?function(l,u){Object.defineProperty(l,"default",{enumerable:!0,value:u})}:function(l,u){l.default=u}),i=At&&At.__importStar||function(l){if(l&&l.__esModule)return l;var u={};if(l!=null)for(var d in l)d!=="default"&&Object.prototype.hasOwnProperty.call(l,d)&&e(u,l,d);return n(u,l),u};Object.defineProperty(At,"__esModule",{value:!0}),At.NullableCmsAdapter=At.KnowledgeBase=void 0,At.KnowledgeBase=i(rb());const s=nb();return At.NullableCmsAdapter={knowledgeBase:new s.NullableKnowledgeBaseAdapter},At}var pn={},Tu={},Sm;function ob(){return Sm||(Sm=1,Object.defineProperty(Tu,"__esModule",{value:!0})),Tu}var Jt={},bm;function sb(){if(bm)return Jt;bm=1,Object.defineProperty(Jt,"__esModule",{value:!0}),Jt.ButtonTypeEnum=Jt.PostbackButton=Jt.UrlButton=Jt.Button=void 0;class e{constructor(u,d){we(this,"title");we(this,"type");this.title=u,this.type=d}}Jt.Button=e;class n extends e{constructor(d,h){super(d,s.WEB_URL);we(this,"url");this.url=h}}Jt.UrlButton=n;class i extends e{constructor(d,h){super(d,s.POSTBACK);we(this,"payload");this.payload=h}}Jt.PostbackButton=i;var s;return function(l){l.WEB_URL="web_url",l.POSTBACK="postback"}(s||(Jt.ButtonTypeEnum=s={})),Jt}var Cu={},wm;function ab(){return wm||(wm=1,Object.defineProperty(Cu,"__esModule",{value:!0})),Cu}var $i={},xm;function lb(){if(xm)return $i;xm=1,Object.defineProperty($i,"__esModule",{value:!0}),$i.SatisfactionEnum=void 0;var e;return function(n){n.GOOD="GOOD",n.BAD="BAD"}(e||($i.SatisfactionEnum=e={})),$i}var Tm;function Cm(){return Tm||(Tm=1,function(e){var n=pn&&pn.__createBinding||(Object.create?function(s,l,u,d){d===void 0&&(d=u);var h=Object.getOwnPropertyDescriptor(l,u);(!h||("get"in h?!l.__esModule:h.writable||h.configurable))&&(h={enumerable:!0,get:function(){return l[u]}}),Object.defineProperty(s,d,h)}:function(s,l,u,d){d===void 0&&(d=u),s[d]=l[u]}),i=pn&&pn.__exportStar||function(s,l){for(var u in s)u!=="default"&&!Object.prototype.hasOwnProperty.call(l,u)&&n(l,s,u)};Object.defineProperty(e,"__esModule",{value:!0}),i(ob(),e),i(sb(),e),i(ab(),e),i(lb(),e),i(Qc(),e),i(Kc(),e)}(pn)),pn}var km;function ub(){return km||(km=1,function(e){var n=Zt&&Zt.__createBinding||(Object.create?function(u,d,h,p){p===void 0&&(p=h);var E=Object.getOwnPropertyDescriptor(d,h);(!E||("get"in E?!d.__esModule:E.writable||E.configurable))&&(E={enumerable:!0,get:function(){return d[h]}}),Object.defineProperty(u,p,E)}:function(u,d,h,p){p===void 0&&(p=h),u[p]=d[h]}),i=Zt&&Zt.__setModuleDefault||(Object.create?function(u,d){Object.defineProperty(u,"default",{enumerable:!0,value:d})}:function(u,d){u.default=d}),s=Zt&&Zt.__exportStar||function(u,d){for(var h in u)h!=="default"&&!Object.prototype.hasOwnProperty.call(d,h)&&n(d,u,h)},l=Zt&&Zt.__importStar||function(u){if(u&&u.__esModule)return u;var d={};if(u!=null)for(var h in u)h!=="default"&&Object.prototype.hasOwnProperty.call(u,h)&&n(d,u,h);return i(d,u),d};Object.defineProperty(e,"__esModule",{value:!0}),e.Model=e.CMS=e.Actions=void 0,s(ym(),e),e.Actions=l(ym()),e.CMS=l(ib()),s(Cm(),e),e.Model=l(Cm())}(Zt)),Zt}var ge=ub();const Iy=e=>n=>(e.payload.type!==ge.ActionTypes.MESSAGE_FROM_GUEST&&n(ge.receiveTextMessageWithoutAnalysisFromGuest(e.label,e.payload)),n(e.payload)),Py=e=>(n,i)=>{const{quickReplies:s}=i().chat,l=s.find(u=>e.toLocaleLowerCase().indexOf(u.label.toLocaleLowerCase())>-1);return n(l?Iy({...l,label:e}):ge.receiveTextMessageFromGuest(e))},na="MESSAGE_TO_PARENT_PAGE",Yc="RESTORE_PREVIOUS_CHAT_MESSAGES",Zc="AUDIO_MESSAGE_FROM_USER",Jc="ENABLE_SPEECH_SUPPORT",ef="ENABLE_TRANSCRIPT_EXPORT",cb="EXPORT_TRANSCRIPT",tf="RECEIVE_SPEECH_TRANSCRIPTION",rf="SHOW_GENERAL_CONDITIONS",nf="ENABLE_CONVERSATION_RATING",fb="webclient.get.started",Dy="webclient.expand.window",My="webclient.transcript.pdf.download",db=[na,Yc,Zc,Jc,ef,cb,tf,rf,nf],hb=e=>({type:Zc,buffer:e}),pb=()=>({type:Jc}),mb=e=>({type:tf,transcription:e}),gb=e=>({type:ef,methods:e}),yb=e=>({type:ge.ActionTypes.TRANSCRIPT_MAIL_REQUEST,payload:{parameters:{mailTo:e}}}),vb=()=>({type:rf}),_b=()=>({type:My}),Eb=({rating:e})=>({type:nf,payload:{rating:e}}),Sb=(e,n)=>({type:ge.ActionTypes.CONVERSATION_RATING_FROM_GUEST,payload:{value:e,feedback:n}}),Fy=e=>ge.requestNLUEvent(e),bb=e=>({type:Yc,messages:e}),wb=e=>{switch(e.type){case ge.ButtonTypeEnum.WEB_URL:return Ly(e.url);case ge.ButtonTypeEnum.POSTBACK:return e.payload;default:throw new Error(`unknown button type ${e.type}`)}},xb=e=>Ly(e),Ly=e=>({type:na,message:{type:"webclient.change.url",url:e}}),Tb=e=>({type:na,message:{type:"webclient.change.translations",payload:{translations:e}}});/*! js-cookie v3.0.5 | MIT */function Rs(e){for(var n=1;n<arguments.length;n++){var i=arguments[n];for(var s in i)e[s]=i[s]}return e}var Cb={read:function(e){return e[0]==='"'&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}};function Sc(e,n){function i(l,u,d){if(!(typeof document>"u")){d=Rs({},n,d),typeof d.expires=="number"&&(d.expires=new Date(Date.now()+d.expires*864e5)),d.expires&&(d.expires=d.expires.toUTCString()),l=encodeURIComponent(l).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var h="";for(var p in d)d[p]&&(h+="; "+p,d[p]!==!0&&(h+="="+d[p].split(";")[0]));return document.cookie=l+"="+e.write(u,l)+h}}function s(l){if(!(typeof document>"u"||arguments.length&&!l)){for(var u=document.cookie?document.cookie.split("; "):[],d={},h=0;h<u.length;h++){var p=u[h].split("="),E=p.slice(1).join("=");try{var y=decodeURIComponent(p[0]);if(d[y]=e.read(E,y),l===y)break}catch{}}return l?d[l]:d}}return Object.create({set:i,get:s,remove:function(l,u){i(l,"",Rs({},u,{expires:-1}))},withAttributes:function(l){return Sc(this.converter,Rs({},this.attributes,l))},withConverter:function(l){return Sc(Rs({},this.converter,l),this.attributes)}},{attributes:{value:Object.freeze(n)},converter:{value:Object.freeze(e)}})}var ku=Sc(Cb,{path:"/"});function nt(e){return`Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var kb=typeof Symbol=="function"&&Symbol.observable||"@@observable",Rm=kb,Ru=()=>Math.random().toString(36).substring(7).split("").join("."),Rb={INIT:`@@redux/INIT${Ru()}`,REPLACE:`@@redux/REPLACE${Ru()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${Ru()}`},Vs=Rb;function of(e){if(typeof e!="object"||e===null)return!1;let n=e;for(;Object.getPrototypeOf(n)!==null;)n=Object.getPrototypeOf(n);return Object.getPrototypeOf(e)===n||Object.getPrototypeOf(e)===null}function By(e,n,i){if(typeof e!="function")throw new Error(nt(2));if(typeof n=="function"&&typeof i=="function"||typeof i=="function"&&typeof arguments[3]=="function")throw new Error(nt(0));if(typeof n=="function"&&typeof i>"u"&&(i=n,n=void 0),typeof i<"u"){if(typeof i!="function")throw new Error(nt(1));return i(By)(e,n)}let s=e,l=n,u=new Map,d=u,h=0,p=!1;function E(){d===u&&(d=new Map,u.forEach((x,N)=>{d.set(N,x)}))}function y(){if(p)throw new Error(nt(3));return l}function w(x){if(typeof x!="function")throw new Error(nt(4));if(p)throw new Error(nt(5));let N=!0;E();const O=h++;return d.set(O,x),function(){if(N){if(p)throw new Error(nt(6));N=!1,E(),d.delete(O),u=null}}}function m(x){if(!of(x))throw new Error(nt(7));if(typeof x.type>"u")throw new Error(nt(8));if(typeof x.type!="string")throw new Error(nt(17));if(p)throw new Error(nt(9));try{p=!0,l=s(l,x)}finally{p=!1}return(u=d).forEach(O=>{O()}),x}function _(x){if(typeof x!="function")throw new Error(nt(10));s=x,m({type:Vs.REPLACE})}function v(){const x=w;return{subscribe(N){if(typeof N!="object"||N===null)throw new Error(nt(11));function O(){const T=N;T.next&&T.next(y())}return O(),{unsubscribe:x(O)}},[Rm](){return this}}}return m({type:Vs.INIT}),{dispatch:m,subscribe:w,getState:y,replaceReducer:_,[Rm]:v}}function Ob(e){Object.keys(e).forEach(n=>{const i=e[n];if(typeof i(void 0,{type:Vs.INIT})>"u")throw new Error(nt(12));if(typeof i(void 0,{type:Vs.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(nt(13))})}function jy(e){const n=Object.keys(e),i={};for(let u=0;u<n.length;u++){const d=n[u];typeof e[d]=="function"&&(i[d]=e[d])}const s=Object.keys(i);let l;try{Ob(i)}catch(u){l=u}return function(d={},h){if(l)throw l;let p=!1;const E={};for(let y=0;y<s.length;y++){const w=s[y],m=i[w],_=d[w],v=m(_,h);if(typeof v>"u")throw h&&h.type,new Error(nt(14));E[w]=v,p=p||v!==_}return p=p||s.length!==Object.keys(d).length,p?E:d}}function Ws(...e){return e.length===0?n=>n:e.length===1?e[0]:e.reduce((n,i)=>(...s)=>n(i(...s)))}function Nb(...e){return n=>(i,s)=>{const l=n(i,s);let u=()=>{throw new Error(nt(15))};const d={getState:l.getState,dispatch:(p,...E)=>u(p,...E)},h=e.map(p=>p(d));return u=Ws(...h)(l.dispatch),{...l,dispatch:u}}}function Ab(e){return of(e)&&"type"in e&&typeof e.type=="string"}var zy=Symbol.for("immer-nothing"),Om=Symbol.for("immer-draftable"),It=Symbol.for("immer-state");function rr(e,...n){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var Jn=Object.getPrototypeOf;function Sn(e){return!!e&&!!e[It]}function kr(e){var n;return e?Uy(e)||Array.isArray(e)||!!e[Om]||!!((n=e.constructor)!=null&&n[Om])||oa(e)||sa(e):!1}var Ib=Object.prototype.constructor.toString();function Uy(e){if(!e||typeof e!="object")return!1;const n=Jn(e);if(n===null)return!0;const i=Object.hasOwnProperty.call(n,"constructor")&&n.constructor;return i===Object?!0:typeof i=="function"&&Function.toString.call(i)===Ib}function Zi(e,n){ia(e)===0?Object.entries(e).forEach(([i,s])=>{n(i,s,e)}):e.forEach((i,s)=>n(s,i,e))}function ia(e){const n=e[It];return n?n.type_:Array.isArray(e)?1:oa(e)?2:sa(e)?3:0}function bc(e,n){return ia(e)===2?e.has(n):Object.prototype.hasOwnProperty.call(e,n)}function Hy(e,n,i){const s=ia(e);s===2?e.set(n,i):s===3?e.add(i):e[n]=i}function Pb(e,n){return e===n?e!==0||1/e===1/n:e!==e&&n!==n}function oa(e){return e instanceof Map}function sa(e){return e instanceof Set}function gn(e){return e.copy_||e.base_}function wc(e,n){if(oa(e))return new Map(e);if(sa(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);if(!n&&Uy(e))return Jn(e)?{...e}:Object.assign(Object.create(null),e);const i=Object.getOwnPropertyDescriptors(e);delete i[It];let s=Reflect.ownKeys(i);for(let l=0;l<s.length;l++){const u=s[l],d=i[u];d.writable===!1&&(d.writable=!0,d.configurable=!0),(d.get||d.set)&&(i[u]={configurable:!0,writable:!0,enumerable:d.enumerable,value:e[u]})}return Object.create(Jn(e),i)}function sf(e,n=!1){return aa(e)||Sn(e)||!kr(e)||(ia(e)>1&&(e.set=e.add=e.clear=e.delete=Db),Object.freeze(e),n&&Zi(e,(i,s)=>sf(s,!0))),e}function Db(){rr(2)}function aa(e){return Object.isFrozen(e)}var Mb={};function bn(e){const n=Mb[e];return n||rr(0,e),n}var Ji;function Gy(){return Ji}function Fb(e,n){return{drafts_:[],parent_:e,immer_:n,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function Nm(e,n){n&&(bn("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=n)}function xc(e){Tc(e),e.drafts_.forEach(Lb),e.drafts_=null}function Tc(e){e===Ji&&(Ji=e.parent_)}function Am(e){return Ji=Fb(Ji,e)}function Lb(e){const n=e[It];n.type_===0||n.type_===1?n.revoke_():n.revoked_=!0}function Im(e,n){n.unfinalizedDrafts_=n.drafts_.length;const i=n.drafts_[0];return e!==void 0&&e!==i?(i[It].modified_&&(xc(n),rr(4)),kr(e)&&(e=Xs(n,e),n.parent_||Qs(n,e)),n.patches_&&bn("Patches").generateReplacementPatches_(i[It].base_,e,n.patches_,n.inversePatches_)):e=Xs(n,i,[]),xc(n),n.patches_&&n.patchListener_(n.patches_,n.inversePatches_),e!==zy?e:void 0}function Xs(e,n,i){if(aa(n))return n;const s=n[It];if(!s)return Zi(n,(l,u)=>Pm(e,s,n,l,u,i)),n;if(s.scope_!==e)return n;if(!s.modified_)return Qs(e,s.base_,!0),s.base_;if(!s.finalized_){s.finalized_=!0,s.scope_.unfinalizedDrafts_--;const l=s.copy_;let u=l,d=!1;s.type_===3&&(u=new Set(l),l.clear(),d=!0),Zi(u,(h,p)=>Pm(e,s,l,h,p,i,d)),Qs(e,l,!1),i&&e.patches_&&bn("Patches").generatePatches_(s,i,e.patches_,e.inversePatches_)}return s.copy_}function Pm(e,n,i,s,l,u,d){if(Sn(l)){const h=u&&n&&n.type_!==3&&!bc(n.assigned_,s)?u.concat(s):void 0,p=Xs(e,l,h);if(Hy(i,s,p),Sn(p))e.canAutoFreeze_=!1;else return}else d&&i.add(l);if(kr(l)&&!aa(l)){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;Xs(e,l),(!n||!n.scope_.parent_)&&Qs(e,l)}}function Qs(e,n,i=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&sf(n,i)}function Bb(e,n){const i=Array.isArray(e),s={type_:i?1:0,scope_:n?n.scope_:Gy(),modified_:!1,finalized_:!1,assigned_:{},parent_:n,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let l=s,u=af;i&&(l=[s],u=eo);const{revoke:d,proxy:h}=Proxy.revocable(l,u);return s.draft_=h,s.revoke_=d,h}var af={get(e,n){if(n===It)return e;const i=gn(e);if(!bc(i,n))return jb(e,i,n);const s=i[n];return e.finalized_||!kr(s)?s:s===Ou(e.base_,n)?(Nu(e),e.copy_[n]=kc(s,e)):s},has(e,n){return n in gn(e)},ownKeys(e){return Reflect.ownKeys(gn(e))},set(e,n,i){const s=$y(gn(e),n);if(s!=null&&s.set)return s.set.call(e.draft_,i),!0;if(!e.modified_){const l=Ou(gn(e),n),u=l==null?void 0:l[It];if(u&&u.base_===i)return e.copy_[n]=i,e.assigned_[n]=!1,!0;if(Pb(i,l)&&(i!==void 0||bc(e.base_,n)))return!0;Nu(e),Cc(e)}return e.copy_[n]===i&&(i!==void 0||n in e.copy_)||Number.isNaN(i)&&Number.isNaN(e.copy_[n])||(e.copy_[n]=i,e.assigned_[n]=!0),!0},deleteProperty(e,n){return Ou(e.base_,n)!==void 0||n in e.base_?(e.assigned_[n]=!1,Nu(e),Cc(e)):delete e.assigned_[n],e.copy_&&delete e.copy_[n],!0},getOwnPropertyDescriptor(e,n){const i=gn(e),s=Reflect.getOwnPropertyDescriptor(i,n);return s&&{writable:!0,configurable:e.type_!==1||n!=="length",enumerable:s.enumerable,value:i[n]}},defineProperty(){rr(11)},getPrototypeOf(e){return Jn(e.base_)},setPrototypeOf(){rr(12)}},eo={};Zi(af,(e,n)=>{eo[e]=function(){return arguments[0]=arguments[0][0],n.apply(this,arguments)}});eo.deleteProperty=function(e,n){return eo.set.call(this,e,n,void 0)};eo.set=function(e,n,i){return af.set.call(this,e[0],n,i,e[0])};function Ou(e,n){const i=e[It];return(i?gn(i):e)[n]}function jb(e,n,i){var l;const s=$y(n,i);return s?"value"in s?s.value:(l=s.get)==null?void 0:l.call(e.draft_):void 0}function $y(e,n){if(!(n in e))return;let i=Jn(e);for(;i;){const s=Object.getOwnPropertyDescriptor(i,n);if(s)return s;i=Jn(i)}}function Cc(e){e.modified_||(e.modified_=!0,e.parent_&&Cc(e.parent_))}function Nu(e){e.copy_||(e.copy_=wc(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var zb=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(n,i,s)=>{if(typeof n=="function"&&typeof i!="function"){const u=i;i=n;const d=this;return function(p=u,...E){return d.produce(p,y=>i.call(this,y,...E))}}typeof i!="function"&&rr(6),s!==void 0&&typeof s!="function"&&rr(7);let l;if(kr(n)){const u=Am(this),d=kc(n,void 0);let h=!0;try{l=i(d),h=!1}finally{h?xc(u):Tc(u)}return Nm(u,s),Im(l,u)}else if(!n||typeof n!="object"){if(l=i(n),l===void 0&&(l=n),l===zy&&(l=void 0),this.autoFreeze_&&sf(l,!0),s){const u=[],d=[];bn("Patches").generateReplacementPatches_(n,l,u,d),s(u,d)}return l}else rr(1,n)},this.produceWithPatches=(n,i)=>{if(typeof n=="function")return(d,...h)=>this.produceWithPatches(d,p=>n(p,...h));let s,l;return[this.produce(n,i,(d,h)=>{s=d,l=h}),s,l]},typeof(e==null?void 0:e.autoFreeze)=="boolean"&&this.setAutoFreeze(e.autoFreeze),typeof(e==null?void 0:e.useStrictShallowCopy)=="boolean"&&this.setUseStrictShallowCopy(e.useStrictShallowCopy)}createDraft(e){kr(e)||rr(8),Sn(e)&&(e=Ub(e));const n=Am(this),i=kc(e,void 0);return i[It].isManual_=!0,Tc(n),i}finishDraft(e,n){const i=e&&e[It];(!i||!i.isManual_)&&rr(9);const{scope_:s}=i;return Nm(s,n),Im(void 0,s)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}applyPatches(e,n){let i;for(i=n.length-1;i>=0;i--){const l=n[i];if(l.path.length===0&&l.op==="replace"){e=l.value;break}}i>-1&&(n=n.slice(i+1));const s=bn("Patches").applyPatches_;return Sn(e)?s(e,n):this.produce(e,l=>s(l,n))}};function kc(e,n){const i=oa(e)?bn("MapSet").proxyMap_(e,n):sa(e)?bn("MapSet").proxySet_(e,n):Bb(e,n);return(n?n.scope_:Gy()).drafts_.push(i),i}function Ub(e){return Sn(e)||rr(10,e),qy(e)}function qy(e){if(!kr(e)||aa(e))return e;const n=e[It];let i;if(n){if(!n.modified_)return n.base_;n.finalized_=!0,i=wc(e,n.scope_.immer_.useStrictShallowCopy_)}else i=wc(e,!0);return Zi(i,(s,l)=>{Hy(i,s,qy(l))}),n&&(n.finalized_=!1),i}var Pt=new zb,Vy=Pt.produce;Pt.produceWithPatches.bind(Pt);Pt.setAutoFreeze.bind(Pt);Pt.setUseStrictShallowCopy.bind(Pt);Pt.applyPatches.bind(Pt);Pt.createDraft.bind(Pt);Pt.finishDraft.bind(Pt);function Wy(e){return({dispatch:i,getState:s})=>l=>u=>typeof u=="function"?u(i,s,e):l(u)}var Hb=Wy(),Gb=Wy,$b=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?Ws:Ws.apply(null,arguments)};function Dm(e,n){function i(...s){if(n){let l=n(...s);if(!l)throw new Error(xr(0));return{type:e,payload:l.payload,..."meta"in l&&{meta:l.meta},..."error"in l&&{error:l.error}}}return{type:e,payload:s[0]}}return i.toString=()=>`${e}`,i.type=e,i.match=s=>Ab(s)&&s.type===e,i}var Xy=class Ki extends Array{constructor(...n){super(...n),Object.setPrototypeOf(this,Ki.prototype)}static get[Symbol.species](){return Ki}concat(...n){return super.concat.apply(this,n)}prepend(...n){return n.length===1&&Array.isArray(n[0])?new Ki(...n[0].concat(this)):new Ki(...n.concat(this))}};function Mm(e){return kr(e)?Vy(e,()=>{}):e}function Fm(e,n,i){return e.has(n)?e.get(n):e.set(n,i(n)).get(n)}function qb(e){return typeof e=="boolean"}var Vb=()=>function(n){const{thunk:i=!0,immutableCheck:s=!0,serializableCheck:l=!0,actionCreatorCheck:u=!0}=n??{};let d=new Xy;return i&&(qb(i)?d.push(Hb):d.push(Gb(i.extraArgument))),d},Wb="RTK_autoBatch",Lm=e=>n=>{setTimeout(n,e)},Xb=(e={type:"raf"})=>n=>(...i)=>{const s=n(...i);let l=!0,u=!1,d=!1;const h=new Set,p=e.type==="tick"?queueMicrotask:e.type==="raf"?typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:Lm(10):e.type==="callback"?e.queueNotification:Lm(e.timeout),E=()=>{d=!1,u&&(u=!1,h.forEach(y=>y()))};return Object.assign({},s,{subscribe(y){const w=()=>l&&y(),m=s.subscribe(w);return h.add(y),()=>{m(),h.delete(y)}},dispatch(y){var w;try{return l=!((w=y==null?void 0:y.meta)!=null&&w[Wb]),u=!l,u&&(d||(d=!0,p(E))),s.dispatch(y)}finally{l=!0}}})},Qb=e=>function(i){const{autoBatch:s=!0}=i??{};let l=new Xy(e);return s&&l.push(Xb(typeof s=="object"?s:void 0)),l};function Kb(e){const n=Vb(),{reducer:i=void 0,middleware:s,devTools:l=!0,preloadedState:u=void 0,enhancers:d=void 0}=e||{};let h;if(typeof i=="function")h=i;else if(of(i))h=jy(i);else throw new Error(xr(1));let p;typeof s=="function"?p=s(n):p=n();let E=Ws;l&&(E=$b({trace:!1,...typeof l=="object"&&l}));const y=Nb(...p),w=Qb(y);let m=typeof d=="function"?d(w):w();const _=E(...m);return By(h,u,_)}function Qy(e){const n={},i=[];let s;const l={addCase(u,d){const h=typeof u=="string"?u:u.type;if(!h)throw new Error(xr(28));if(h in n)throw new Error(xr(29));return n[h]=d,l},addMatcher(u,d){return i.push({matcher:u,reducer:d}),l},addDefaultCase(u){return s=u,l}};return e(l),[n,i,s]}function Yb(e){return typeof e=="function"}function Zb(e,n){let[i,s,l]=Qy(n),u;if(Yb(e))u=()=>Mm(e());else{const h=Mm(e);u=()=>h}function d(h=u(),p){let E=[i[p.type],...s.filter(({matcher:y})=>y(p)).map(({reducer:y})=>y)];return E.filter(y=>!!y).length===0&&(E=[l]),E.reduce((y,w)=>{if(w)if(Sn(y)){const _=w(y,p);return _===void 0?y:_}else{if(kr(y))return Vy(y,m=>w(m,p));{const m=w(y,p);if(m===void 0){if(y===null)return y;throw Error("A case reducer on a non-draftable value must not return undefined")}return m}}return y},h)}return d.getInitialState=u,d}var Jb=Symbol.for("rtk-slice-createasyncthunk");function ew(e,n){return`${e}/${n}`}function tw({creators:e}={}){var i;const n=(i=e==null?void 0:e.asyncThunk)==null?void 0:i[Jb];return function(l){const{name:u,reducerPath:d=u}=l;if(!u)throw new Error(xr(11));typeof process<"u";const h=(typeof l.reducers=="function"?l.reducers(nw()):l.reducers)||{},p=Object.keys(h),E={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},y={addCase(S,T){const C=typeof S=="string"?S:S.type;if(!C)throw new Error(xr(12));if(C in E.sliceCaseReducersByType)throw new Error(xr(13));return E.sliceCaseReducersByType[C]=T,y},addMatcher(S,T){return E.sliceMatchers.push({matcher:S,reducer:T}),y},exposeAction(S,T){return E.actionCreators[S]=T,y},exposeCaseReducer(S,T){return E.sliceCaseReducersByName[S]=T,y}};p.forEach(S=>{const T=h[S],C={reducerName:S,type:ew(u,S),createNotation:typeof l.reducers=="function"};ow(T)?aw(C,T,y,n):iw(C,T,y)});function w(){const[S={},T=[],C=void 0]=typeof l.extraReducers=="function"?Qy(l.extraReducers):[l.extraReducers],L={...S,...E.sliceCaseReducersByType};return Zb(l.initialState,H=>{for(let W in L)H.addCase(W,L[W]);for(let W of E.sliceMatchers)H.addMatcher(W.matcher,W.reducer);for(let W of T)H.addMatcher(W.matcher,W.reducer);C&&H.addDefaultCase(C)})}const m=S=>S,_=new Map;let v;function k(S,T){return v||(v=w()),v(S,T)}function x(){return v||(v=w()),v.getInitialState()}function N(S,T=!1){function C(H){let W=H[S];return typeof W>"u"&&T&&(W=x()),W}function L(H=m){const W=Fm(_,T,()=>new WeakMap);return Fm(W,H,()=>{const se={};for(const[te,fe]of Object.entries(l.selectors??{}))se[te]=rw(fe,H,x,T);return se})}return{reducerPath:S,getSelectors:L,get selectors(){return L(C)},selectSlice:C}}const O={name:u,reducer:k,actions:E.actionCreators,caseReducers:E.sliceCaseReducersByName,getInitialState:x,...N(d),injectInto(S,{reducerPath:T,...C}={}){const L=T??d;return S.inject({reducerPath:L,reducer:k},C),{...O,...N(L,!0)}}};return O}}function rw(e,n,i,s){function l(u,...d){let h=n(u);return typeof h>"u"&&s&&(h=i()),e(h,...d)}return l.unwrapped=e,l}var Ky=tw();function nw(){function e(n,i){return{_reducerDefinitionType:"asyncThunk",payloadCreator:n,...i}}return e.withTypes=()=>e,{reducer(n){return Object.assign({[n.name](...i){return n(...i)}}[n.name],{_reducerDefinitionType:"reducer"})},preparedReducer(n,i){return{_reducerDefinitionType:"reducerWithPrepare",prepare:n,reducer:i}},asyncThunk:e}}function iw({type:e,reducerName:n,createNotation:i},s,l){let u,d;if("reducer"in s){if(i&&!sw(s))throw new Error(xr(17));u=s.reducer,d=s.prepare}else u=s;l.addCase(e,u).exposeCaseReducer(n,u).exposeAction(n,d?Dm(e,d):Dm(e))}function ow(e){return e._reducerDefinitionType==="asyncThunk"}function sw(e){return e._reducerDefinitionType==="reducerWithPrepare"}function aw({type:e,reducerName:n},i,s,l){if(!l)throw new Error(xr(18));const{payloadCreator:u,fulfilled:d,pending:h,rejected:p,settled:E,options:y}=i,w=l(e,u,y);s.exposeAction(n,w),d&&s.addCase(w.fulfilled,d),h&&s.addCase(w.pending,h),p&&s.addCase(w.rejected,p),E&&s.addMatcher(w.settled,E),s.exposeCaseReducer(n,{fulfilled:d||Os,pending:h||Os,rejected:p||Os,settled:E||Os})}function Os(){}function xr(e){return`Minified Redux Toolkit error #${e}; visit https://redux-toolkit.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}const lw={useStartScreen:void 0,formValues:{}},Yy=Ky({name:"start-screen",initialState:lw,reducers:{enableStartScreen(e){e.useStartScreen=!0},disableStartScreen(e){e.useStartScreen=!1},showStartScreen(e){e.startScreenStatus="VISIBLE",e.formValues={}},startChat(e,n){e.startScreenStatus="HIDDEN",e.formValues=n.payload}}}),{enableStartScreen:uw,disableStartScreen:cw,startChat:fw,showStartScreen:dw}=Yy.actions,hw=Yy.reducer,Zy="RESET_CHAT_STATE",pw=()=>({type:Zy}),rt=[];for(let e=0;e<256;++e)rt.push((e+256).toString(16).slice(1));function mw(e,n=0){return(rt[e[n+0]]+rt[e[n+1]]+rt[e[n+2]]+rt[e[n+3]]+"-"+rt[e[n+4]]+rt[e[n+5]]+"-"+rt[e[n+6]]+rt[e[n+7]]+"-"+rt[e[n+8]]+rt[e[n+9]]+"-"+rt[e[n+10]]+rt[e[n+11]]+rt[e[n+12]]+rt[e[n+13]]+rt[e[n+14]]+rt[e[n+15]]).toLowerCase()}let Au;const gw=new Uint8Array(16);function yw(){if(!Au){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");Au=crypto.getRandomValues.bind(crypto)}return Au(gw)}const vw=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),Bm={randomUUID:vw};function Rc(e,n,i){if(Bm.randomUUID&&!n&&!e)return Bm.randomUUID();e=e||{};const s=e.random||(e.rng||yw)();return s[6]=s[6]&15|64,s[8]=s[8]&63|128,mw(s)}const lf="CONNECT",uf="CONNECTING",cf="CONNECTED",ff="DISCONNECTED",df="RECONNECTED",hf="RESTORE_SESSION_ID",la="START",ua="CLEAR_SESSION_ID",_w=[lf,uf,cf,ff,df,hf],Ew=(e,n)=>({type:lf,clientName:e,querystrings:n}),Sw=e=>({type:hf,sessionId:e}),bw=()=>({type:uf}),ww=()=>({type:cf}),xw=()=>({type:ff}),Tw=()=>({type:df}),Jy=(e,n)=>(i,s)=>{const l=s().connection,u=s().startScreen.formValues;let d=l.sessionId;d===void 0&&(d=Rc());let h=l.userId;if(h===void 0){const p=ku.get("bubble-chat-userId")||ku.get("bf-webclient-userId");h=p||Rc(),ku.set("bubble-chat-userId",h)}i({type:la,payload:{sessionId:d,userId:h,clientName:e,querystrings:{...n,...u}}})},pf=(e,n)=>(i,s)=>{const l=s().connection.sessionId||"";if(i(Cw(l)),i(pw()),s().startScreen.useStartScreen)i(dw());else return i(Jy(e,n))},Cw=e=>({type:ua,payload:{sessionId:e}}),$t=()=>{const e=ra();return i=>{const s=e.formatMessage({id:i});return s===i?void 0:s}};var vn=(e=>(e[e.CONNECTING=0]="CONNECTING",e[e.CONNECTED=1]="CONNECTED",e[e.RECONNECTED=2]="RECONNECTED",e[e.DISCONNECTED=3]="DISCONNECTED",e))(vn||{}),ev=(e=>(e.GUEST="GUEST",e.BOT="BOT",e.PERSON="PERSON",e))(ev||{});const kw="_button_bc9qm_54",Rw="_buttonDefault_bc9qm_66",Ow="_buttonPrimary_bc9qm_80",Nw="_accessabilityHidden_bc9qm_132",it={button:kw,buttonDefault:Rw,buttonPrimary:Ow,accessabilityHidden:Nw},Aw="_chatwindow_phukm_1",Iw="_chatcontent_phukm_13",Pw={chatwindow:Aw,chatcontent:Iw},Dw="_messageContainer_1wdci_1",Mw="_messages_1wdci_10",jm={messageContainer:Dw,messages:Mw};function yn(){return yn=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var i=arguments[n];for(var s in i)Object.prototype.hasOwnProperty.call(i,s)&&(e[s]=i[s])}return e},yn.apply(this,arguments)}const Fw=["children","options"],re={blockQuote:"0",breakLine:"1",breakThematic:"2",codeBlock:"3",codeFenced:"4",codeInline:"5",footnote:"6",footnoteReference:"7",gfmTask:"8",heading:"9",headingSetext:"10",htmlBlock:"11",htmlComment:"12",htmlSelfClosing:"13",image:"14",link:"15",linkAngleBraceStyleDetector:"16",linkBareUrlDetector:"17",linkMailtoDetector:"18",newlineCoalescer:"19",orderedList:"20",paragraph:"21",ref:"22",refImage:"23",refLink:"24",table:"25",tableSeparator:"26",text:"27",textBolded:"28",textEmphasized:"29",textEscaped:"30",textMarked:"31",textStrikethroughed:"32",unorderedList:"33"};var zm;(function(e){e[e.MAX=0]="MAX",e[e.HIGH=1]="HIGH",e[e.MED=2]="MED",e[e.LOW=3]="LOW",e[e.MIN=4]="MIN"})(zm||(zm={}));const Um=["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((e,n)=>(e[n.toLowerCase()]=n,e),{class:"className",for:"htmlFor"}),Hm={amp:"&",apos:"'",gt:">",lt:"<",nbsp:" ",quot:"“"},Lw=["style","script"],Bw=/([-A-Z0-9_:]+)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|(?:\{((?:\\.|{[^}]*?}|[^}])*)\})))?/gi,jw=/mailto:/i,zw=/\n{2,}$/,tv=/^(\s*>[\s\S]*?)(?=\n\n|$)/,Uw=/^ *> ?/gm,Hw=/^(?:\[!([^\]]*)\]\n)?([\s\S]*)/,Gw=/^ {2,}\n/,$w=/^(?:( *[-*_])){3,} *(?:\n *)+\n/,rv=/^(?: {1,3})?(`{3,}|~{3,}) *(\S+)? *([^\n]*?)?\n([\s\S]*?)(?:\1\n?|$)/,nv=/^(?: {4}[^\n]+\n*)+(?:\n *)+\n?/,qw=/^(`+)\s*([\s\S]*?[^`])\s*\1(?!`)/,Vw=/^(?:\n *)*\n/,Ww=/\r\n?/g,Xw=/^\[\^([^\]]+)](:(.*)((\n+ {4,}.*)|(\n(?!\[\^).+))*)/,Qw=/^\[\^([^\]]+)]/,Kw=/\f/g,Yw=/^---[ \t]*\n(.|\n)*\n---[ \t]*\n/,Zw=/^\s*?\[(x|\s)\]/,iv=/^ *(#{1,6}) *([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,ov=/^ *(#{1,6}) +([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,sv=/^([^\n]+)\n *(=|-){3,} *(?:\n *)+\n/,Oc=/^ *(?!<[a-z][^ >/]* ?\/>)<([a-z][^ >/]*) ?((?:[^>]*[^/])?)>\n?(\s*(?:<\1[^>]*?>[\s\S]*?<\/\1>|(?!<\1\b)[\s\S])*?)<\/\1>(?!<\/\1>)\n*/i,Jw=/&([a-z0-9]+|#[0-9]{1,6}|#x[0-9a-fA-F]{1,6});/gi,av=/^<!--[\s\S]*?(?:-->)/,ex=/^(data|aria|x)-[a-z_][a-z\d_.-]*$/,Nc=/^ *<([a-z][a-z0-9:]*)(?:\s+((?:<.*?>|[^>])*))?\/?>(?!<\/\1>)(\s*\n)?/i,tx=/^\{.*\}$/,rx=/^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/,nx=/^<([^ >]+@[^ >]+)>/,ix=/^<([^ >]+:\/[^ >]+)>/,ox=/-([a-z])?/gi,lv=/^(\|.*)\n(?: *(\|? *[-:]+ *\|[-| :]*)\n((?:.*\|.*\n)*))?\n?/,sx=/^\[([^\]]*)\]:\s+<?([^\s>]+)>?\s*("([^"]*)")?/,ax=/^!\[([^\]]*)\] ?\[([^\]]*)\]/,lx=/^\[([^\]]*)\] ?\[([^\]]*)\]/,ux=/(\n|^[-*]\s|^#|^ {2,}|^-{2,}|^>\s)/,cx=/\t/g,fx=/(^ *\||\| *$)/g,dx=/^ *:-+: *$/,hx=/^ *:-+ *$/,px=/^ *-+: *$/,ca="((?:\\[.*?\\][([].*?[)\\]]|<.*?>(?:.*?<.*?>)?|`.*?`|~~.*?~~|==.*?==|.|\\n)*?)",mx=new RegExp(`^([*_])\\1${ca}\\1\\1(?!\\1)`),gx=new RegExp(`^([*_])${ca}\\1(?!\\1|\\w)`),yx=new RegExp(`^==${ca}==`),vx=new RegExp(`^~~${ca}~~`),_x=/^\\([^0-9A-Za-z\s])/,Ex=/^[\s\S]+?(?=[^0-9A-Z\s\u00c0-\uffff&#;.()'"]|\d+\.|\n\n| {2,}\n|\w+:\S|$)/i,Sx=/^\n+/,bx=/^([ \t]*)/,wx=/\\([^\\])/g,Gm=/ *\n+$/,xx=/(?:^|\n)( *)$/,mf="(?:\\d+\\.)",gf="(?:[*+-])";function uv(e){return"( *)("+(e===1?mf:gf)+") +"}const cv=uv(1),fv=uv(2);function dv(e){return new RegExp("^"+(e===1?cv:fv))}const Tx=dv(1),Cx=dv(2);function hv(e){return new RegExp("^"+(e===1?cv:fv)+"[^\\n]*(?:\\n(?!\\1"+(e===1?mf:gf)+" )[^\\n]*)*(\\n|$)","gm")}const pv=hv(1),mv=hv(2);function gv(e){const n=e===1?mf:gf;return new RegExp("^( *)("+n+") [\\s\\S]+?(?:\\n{2,}(?! )(?!\\1"+n+" (?!"+n+" ))\\n*|\\s*\\n*$)")}const yv=gv(1),vv=gv(2);function $m(e,n){const i=n===1,s=i?yv:vv,l=i?pv:mv,u=i?Tx:Cx;return{match(d,h){const p=xx.exec(h.prevCapture);return p&&(h.list||!h.inline&&!h.simple)?s.exec(d=p[1]+d):null},order:1,parse(d,h,p){const E=i?+d[2]:void 0,y=d[0].replace(zw,`
|
|
85
|
+
`).match(l);let w=!1;return{items:y.map(function(m,_){const v=u.exec(m)[0].length,k=new RegExp("^ {1,"+v+"}","gm"),x=m.replace(k,"").replace(u,""),N=_===y.length-1,O=x.indexOf(`
|
|
86
|
+
|
|
87
|
+
`)!==-1||N&&w;w=O;const S=p.inline,T=p.list;let C;p.list=!0,O?(p.inline=!1,C=x.replace(Gm,`
|
|
88
|
+
|
|
89
|
+
`)):(p.inline=!0,C=x.replace(Gm,""));const L=h(C,p);return p.inline=S,p.list=T,L}),ordered:i,start:E}},render:(d,h,p)=>e(d.ordered?"ol":"ul",{key:p.key,start:d.type===re.orderedList?d.start:void 0},d.items.map(function(E,y){return e("li",{key:y},h(E,p))}))}}const kx=new RegExp(`^\\[((?:\\[[^\\]]*\\]|[^\\[\\]]|\\](?=[^\\[]*\\]))*)\\]\\(\\s*<?((?:\\([^)]*\\)|[^\\s\\\\]|\\\\.)*?)>?(?:\\s+['"]([\\s\\S]*?)['"])?\\s*\\)`),Rx=/^!\[(.*?)\]\( *((?:\([^)]*\)|[^() ])*) *"?([^)"]*)?"?\)/,_v=[tv,rv,nv,iv,sv,ov,av,lv,pv,yv,mv,vv],Ox=[..._v,/^[^\n]+(?: \n|\n{2,})/,Oc,Nc];function qi(e){return e.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 Nx(e){return px.test(e)?"right":dx.test(e)?"center":hx.test(e)?"left":null}function qm(e,n,i,s){const l=i.inTable;i.inTable=!0;let u=e.trim().split(/( *(?:`[^`]*`|\\\||\|) *)/).reduce((h,p)=>(p.trim()==="|"?h.push(s?{type:re.tableSeparator}:{type:re.text,text:p}):p!==""&&h.push.apply(h,n(p,i)),h),[]);i.inTable=l;let d=[[]];return u.forEach(function(h,p){h.type===re.tableSeparator?p!==0&&p!==u.length-1&&d.push([]):(h.type!==re.text||u[p+1]!=null&&u[p+1].type!==re.tableSeparator||(h.text=h.text.trimEnd()),d[d.length-1].push(h))}),d}function Ax(e,n,i){i.inline=!0;const s=e[2]?e[2].replace(fx,"").split("|").map(Nx):[],l=e[3]?function(d,h,p){return d.trim().split(`
|
|
90
|
+
`).map(function(E){return qm(E,h,p,!0)})}(e[3],n,i):[],u=qm(e[1],n,i,!!l.length);return i.inline=!1,l.length?{align:s,cells:l,header:u,type:re.table}:{children:u,type:re.paragraph}}function Vm(e,n){return e.align[n]==null?{}:{textAlign:e.align[n]}}function Wr(e){return function(n,i){return i.inline?e.exec(n):null}}function Xr(e){return function(n,i){return i.inline||i.simple?e.exec(n):null}}function Er(e){return function(n,i){return i.inline||i.simple?null:e.exec(n)}}function Vi(e){return function(n){return e.exec(n)}}function Ix(e,n){if(n.inline||n.simple)return null;let i="";e.split(`
|
|
91
|
+
`).every(l=>!_v.some(u=>u.test(l))&&(i+=l+`
|
|
92
|
+
`,l.trim()));const s=i.trimEnd();return s==""?null:[i,s]}function Px(e){try{if(decodeURIComponent(e).replace(/[^A-Za-z0-9/:]/g,"").match(/^\s*(javascript|vbscript|data(?!:image)):/i))return null}catch{return null}return e}function Wm(e){return e.replace(wx,"$1")}function zs(e,n,i){const s=i.inline||!1,l=i.simple||!1;i.inline=!0,i.simple=!0;const u=e(n,i);return i.inline=s,i.simple=l,u}function Dx(e,n,i){const s=i.inline||!1,l=i.simple||!1;i.inline=!1,i.simple=!0;const u=e(n,i);return i.inline=s,i.simple=l,u}function Mx(e,n,i){const s=i.inline||!1;i.inline=!1;const l=e(n,i);return i.inline=s,l}const Iu=(e,n,i)=>({children:zs(n,e[1],i)});function Pu(){return{}}function Du(){return null}function Fx(...e){return e.filter(Boolean).join(" ")}function Mu(e,n,i){let s=e;const l=n.split(".");for(;l.length&&(s=s[l[0]],s!==void 0);)l.shift();return s||i}function Lx(e="",n={}){function i(m,_,...v){const k=Mu(n.overrides,`${m}.props`,{});return n.createElement(function(x,N){const O=Mu(N,x);return O?typeof O=="function"||typeof O=="object"&&"render"in O?O:Mu(N,`${x}.component`,x):x}(m,n.overrides),yn({},_,k,{className:Fx(_==null?void 0:_.className,k.className)||void 0}),...v)}function s(m){m=m.replace(Yw,"");let _=!1;n.forceInline?_=!0:n.forceBlock||(_=ux.test(m)===!1);const v=E(p(_?m:`${m.trimEnd().replace(Sx,"")}
|
|
93
|
+
|
|
94
|
+
`,{inline:_}));for(;typeof v[v.length-1]=="string"&&!v[v.length-1].trim();)v.pop();if(n.wrapper===null)return v;const k=n.wrapper||(_?"span":"div");let x;if(v.length>1||n.forceWrapper)x=v;else{if(v.length===1)return x=v[0],typeof x=="string"?i("span",{key:"outer"},x):x;x=null}return n.createElement(k,{key:"outer"},x)}function l(m,_){const v=_.match(Bw);return v?v.reduce(function(k,x,N){const O=x.indexOf("=");if(O!==-1){const S=function(H){return H.indexOf("-")!==-1&&H.match(ex)===null&&(H=H.replace(ox,function(W,se){return se.toUpperCase()})),H}(x.slice(0,O)).trim(),T=function(H){const W=H[0];return(W==='"'||W==="'")&&H.length>=2&&H[H.length-1]===W?H.slice(1,-1):H}(x.slice(O+1).trim()),C=Um[S]||S;if(C==="ref")return k;const L=k[C]=function(H,W,se,te){return W==="style"?se.split(/;\s?/).reduce(function(fe,de){const ae=de.slice(0,de.indexOf(":"));return fe[ae.trim().replace(/(-[a-z])/g,Fe=>Fe[1].toUpperCase())]=de.slice(ae.length+1).trim(),fe},{}):W==="href"||W==="src"?te(se,H,W):(se.match(tx)&&(se=se.slice(1,se.length-1)),se==="true"||se!=="false"&&se)}(m,S,T,n.sanitizer);typeof L=="string"&&(Oc.test(L)||Nc.test(L))&&(k[C]=s(L.trim()))}else x!=="style"&&(k[Um[x]||x]=!0);return k},{}):null}n.overrides=n.overrides||{},n.sanitizer=n.sanitizer||Px,n.slugify=n.slugify||qi,n.namedCodesToUnicode=n.namedCodesToUnicode?yn({},Hm,n.namedCodesToUnicode):Hm,n.createElement=n.createElement||U.createElement;const u=[],d={},h={[re.blockQuote]:{match:Er(tv),order:1,parse(m,_,v){const[,k,x]=m[0].replace(Uw,"").match(Hw);return{alert:k,children:_(x,v)}},render(m,_,v){const k={key:v.key};return m.alert&&(k.className="markdown-alert-"+n.slugify(m.alert.toLowerCase(),qi),m.children.unshift({attrs:{},children:[{type:re.text,text:m.alert}],noInnerParse:!0,type:re.htmlBlock,tag:"header"})),i("blockquote",k,_(m.children,v))}},[re.breakLine]:{match:Vi(Gw),order:1,parse:Pu,render:(m,_,v)=>i("br",{key:v.key})},[re.breakThematic]:{match:Er($w),order:1,parse:Pu,render:(m,_,v)=>i("hr",{key:v.key})},[re.codeBlock]:{match:Er(nv),order:0,parse:m=>({lang:void 0,text:m[0].replace(/^ {4}/gm,"").replace(/\n+$/,"")}),render:(m,_,v)=>i("pre",{key:v.key},i("code",yn({},m.attrs,{className:m.lang?`lang-${m.lang}`:""}),m.text))},[re.codeFenced]:{match:Er(rv),order:0,parse:m=>({attrs:l("code",m[3]||""),lang:m[2]||void 0,text:m[4],type:re.codeBlock})},[re.codeInline]:{match:Xr(qw),order:3,parse:m=>({text:m[2]}),render:(m,_,v)=>i("code",{key:v.key},m.text)},[re.footnote]:{match:Er(Xw),order:0,parse:m=>(u.push({footnote:m[2],identifier:m[1]}),{}),render:Du},[re.footnoteReference]:{match:Wr(Qw),order:1,parse:m=>({target:`#${n.slugify(m[1],qi)}`,text:m[1]}),render:(m,_,v)=>i("a",{key:v.key,href:n.sanitizer(m.target,"a","href")},i("sup",{key:v.key},m.text))},[re.gfmTask]:{match:Wr(Zw),order:1,parse:m=>({completed:m[1].toLowerCase()==="x"}),render:(m,_,v)=>i("input",{checked:m.completed,key:v.key,readOnly:!0,type:"checkbox"})},[re.heading]:{match:Er(n.enforceAtxHeadings?ov:iv),order:1,parse:(m,_,v)=>({children:zs(_,m[2],v),id:n.slugify(m[2],qi),level:m[1].length}),render:(m,_,v)=>i(`h${m.level}`,{id:m.id,key:v.key},_(m.children,v))},[re.headingSetext]:{match:Er(sv),order:0,parse:(m,_,v)=>({children:zs(_,m[1],v),level:m[2]==="="?1:2,type:re.heading})},[re.htmlBlock]:{match:Vi(Oc),order:1,parse(m,_,v){const[,k]=m[3].match(bx),x=new RegExp(`^${k}`,"gm"),N=m[3].replace(x,""),O=(S=N,Ox.some(W=>W.test(S))?Mx:zs);var S;const T=m[1].toLowerCase(),C=Lw.indexOf(T)!==-1,L=(C?T:m[1]).trim(),H={attrs:l(L,m[2]),noInnerParse:C,tag:L};return v.inAnchor=v.inAnchor||T==="a",C?H.text=m[3]:H.children=O(_,N,v),v.inAnchor=!1,H},render:(m,_,v)=>i(m.tag,yn({key:v.key},m.attrs),m.text||(m.children?_(m.children,v):""))},[re.htmlSelfClosing]:{match:Vi(Nc),order:1,parse(m){const _=m[1].trim();return{attrs:l(_,m[2]||""),tag:_}},render:(m,_,v)=>i(m.tag,yn({},m.attrs,{key:v.key}))},[re.htmlComment]:{match:Vi(av),order:1,parse:()=>({}),render:Du},[re.image]:{match:Xr(Rx),order:1,parse:m=>({alt:m[1],target:Wm(m[2]),title:m[3]}),render:(m,_,v)=>i("img",{key:v.key,alt:m.alt||void 0,title:m.title||void 0,src:n.sanitizer(m.target,"img","src")})},[re.link]:{match:Wr(kx),order:3,parse:(m,_,v)=>({children:Dx(_,m[1],v),target:Wm(m[2]),title:m[3]}),render:(m,_,v)=>i("a",{key:v.key,href:n.sanitizer(m.target,"a","href"),title:m.title},_(m.children,v))},[re.linkAngleBraceStyleDetector]:{match:Wr(ix),order:0,parse:m=>({children:[{text:m[1],type:re.text}],target:m[1],type:re.link})},[re.linkBareUrlDetector]:{match:(m,_)=>_.inAnchor||n.disableAutoLink?null:Wr(rx)(m,_),order:0,parse:m=>({children:[{text:m[1],type:re.text}],target:m[1],title:void 0,type:re.link})},[re.linkMailtoDetector]:{match:Wr(nx),order:0,parse(m){let _=m[1],v=m[1];return jw.test(v)||(v="mailto:"+v),{children:[{text:_.replace("mailto:",""),type:re.text}],target:v,type:re.link}}},[re.orderedList]:$m(i,1),[re.unorderedList]:$m(i,2),[re.newlineCoalescer]:{match:Er(Vw),order:3,parse:Pu,render:()=>`
|
|
95
|
+
`},[re.paragraph]:{match:Ix,order:3,parse:Iu,render:(m,_,v)=>i("p",{key:v.key},_(m.children,v))},[re.ref]:{match:Wr(sx),order:0,parse:m=>(d[m[1]]={target:m[2],title:m[4]},{}),render:Du},[re.refImage]:{match:Xr(ax),order:0,parse:m=>({alt:m[1]||void 0,ref:m[2]}),render:(m,_,v)=>d[m.ref]?i("img",{key:v.key,alt:m.alt,src:n.sanitizer(d[m.ref].target,"img","src"),title:d[m.ref].title}):null},[re.refLink]:{match:Wr(lx),order:0,parse:(m,_,v)=>({children:_(m[1],v),fallbackChildren:m[0],ref:m[2]}),render:(m,_,v)=>d[m.ref]?i("a",{key:v.key,href:n.sanitizer(d[m.ref].target,"a","href"),title:d[m.ref].title},_(m.children,v)):i("span",{key:v.key},m.fallbackChildren)},[re.table]:{match:Er(lv),order:1,parse:Ax,render(m,_,v){const k=m;return i("table",{key:v.key},i("thead",null,i("tr",null,k.header.map(function(x,N){return i("th",{key:N,style:Vm(k,N)},_(x,v))}))),i("tbody",null,k.cells.map(function(x,N){return i("tr",{key:N},x.map(function(O,S){return i("td",{key:S,style:Vm(k,S)},_(O,v))}))})))}},[re.text]:{match:Vi(Ex),order:4,parse:m=>({text:m[0].replace(Jw,(_,v)=>n.namedCodesToUnicode[v]?n.namedCodesToUnicode[v]:_)}),render:m=>m.text},[re.textBolded]:{match:Xr(mx),order:2,parse:(m,_,v)=>({children:_(m[2],v)}),render:(m,_,v)=>i("strong",{key:v.key},_(m.children,v))},[re.textEmphasized]:{match:Xr(gx),order:3,parse:(m,_,v)=>({children:_(m[2],v)}),render:(m,_,v)=>i("em",{key:v.key},_(m.children,v))},[re.textEscaped]:{match:Xr(_x),order:1,parse:m=>({text:m[1],type:re.text})},[re.textMarked]:{match:Xr(yx),order:3,parse:Iu,render:(m,_,v)=>i("mark",{key:v.key},_(m.children,v))},[re.textStrikethroughed]:{match:Xr(vx),order:3,parse:Iu,render:(m,_,v)=>i("del",{key:v.key},_(m.children,v))}};n.disableParsingRawHTML===!0&&(delete h[re.htmlBlock],delete h[re.htmlSelfClosing]);const p=function(m){let _=Object.keys(m);function v(k,x){let N=[];for(x.prevCapture=x.prevCapture||"";k;){let O=0;for(;O<_.length;){const S=_[O],T=m[S],C=T.match(k,x);if(C){const L=C[0];x.prevCapture+=L,k=k.substring(L.length);const H=T.parse(C,v,x);H.type==null&&(H.type=S),N.push(H);break}O++}}return x.prevCapture="",N}return _.sort(function(k,x){let N=m[k].order,O=m[x].order;return N!==O?N-O:k<x?-1:1}),function(k,x){return v(function(N){return N.replace(Ww,`
|
|
96
|
+
`).replace(Kw,"").replace(cx," ")}(k),x)}}(h),E=(y=function(m,_){return function(v,k,x){const N=m[v.type].render;return _?_(()=>N(v,k,x),v,k,x):N(v,k,x)}}(h,n.renderRule),function m(_,v={}){if(Array.isArray(_)){const k=v.key,x=[];let N=!1;for(let O=0;O<_.length;O++){v.key=O;const S=m(_[O],v),T=typeof S=="string";T&&N?x[x.length-1]+=S:S!==null&&x.push(S),N=T}return v.key=k,x}return y(_,m,v)});var y;const w=s(e);return u.length?i("div",null,w,i("footer",{key:"footer"},u.map(function(m){return i("div",{id:n.slugify(m.identifier,qi),key:m.identifier},m.identifier,E(p(m.footnote,{inline:!0})))}))):w}const Kr=e=>{let{children:n="",options:i}=e,s=function(l,u){if(l==null)return{};var d,h,p={},E=Object.keys(l);for(h=0;h<E.length;h++)u.indexOf(d=E[h])>=0||(p[d]=l[d]);return p}(e,Fw);return U.cloneElement(Lx(n,i),s)};var Ev={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},Xm=wr.createContext&&wr.createContext(Ev),Bx=["attr","size","title"];function jx(e,n){if(e==null)return{};var i=zx(e,n),s,l;if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(e);for(l=0;l<u.length;l++)s=u[l],!(n.indexOf(s)>=0)&&Object.prototype.propertyIsEnumerable.call(e,s)&&(i[s]=e[s])}return i}function zx(e,n){if(e==null)return{};var i={};for(var s in e)if(Object.prototype.hasOwnProperty.call(e,s)){if(n.indexOf(s)>=0)continue;i[s]=e[s]}return i}function Ks(){return Ks=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var i=arguments[n];for(var s in i)Object.prototype.hasOwnProperty.call(i,s)&&(e[s]=i[s])}return e},Ks.apply(this,arguments)}function Qm(e,n){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);n&&(s=s.filter(function(l){return Object.getOwnPropertyDescriptor(e,l).enumerable})),i.push.apply(i,s)}return i}function Ys(e){for(var n=1;n<arguments.length;n++){var i=arguments[n]!=null?arguments[n]:{};n%2?Qm(Object(i),!0).forEach(function(s){Ux(e,s,i[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):Qm(Object(i)).forEach(function(s){Object.defineProperty(e,s,Object.getOwnPropertyDescriptor(i,s))})}return e}function Ux(e,n,i){return n=Hx(n),n in e?Object.defineProperty(e,n,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[n]=i,e}function Hx(e){var n=Gx(e,"string");return typeof n=="symbol"?n:n+""}function Gx(e,n){if(typeof e!="object"||!e)return e;var i=e[Symbol.toPrimitive];if(i!==void 0){var s=i.call(e,n||"default");if(typeof s!="object")return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return(n==="string"?String:Number)(e)}function Sv(e){return e&&e.map((n,i)=>wr.createElement(n.tag,Ys({key:i},n.attr),Sv(n.child)))}function bv(e){return n=>wr.createElement($x,Ks({attr:Ys({},e.attr)},n),Sv(e.child))}function $x(e){var n=i=>{var{attr:s,size:l,title:u}=e,d=jx(e,Bx),h=l||i.size||"1em",p;return i.className&&(p=i.className),e.className&&(p=(p?p+" ":"")+e.className),wr.createElement("svg",Ks({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},i.attr,s,d,{className:p,style:Ys(Ys({color:e.color||i.color},i.style),e.style),height:h,width:h,xmlns:"http://www.w3.org/2000/svg"}),u&&wr.createElement("title",null,u),e.children)};return Xm!==void 0?wr.createElement(Xm.Consumer,null,i=>n(i)):n(Ev)}function qx(e){return bv({tag:"svg",attr:{viewBox:"0 0 320 512"},child:[{tag:"path",attr:{d:"M143 352.3L7 216.3c-9.4-9.4-9.4-24.6 0-33.9l22.6-22.6c9.4-9.4 24.6-9.4 33.9 0l96.4 96.4 96.4-96.4c9.4-9.4 24.6-9.4 33.9 0l22.6 22.6c9.4 9.4 9.4 24.6 0 33.9l-136 136c-9.2 9.4-24.4 9.4-33.8 0z"},child:[]}]})(e)}function Vx(e){return bv({tag:"svg",attr:{viewBox:"0 0 320 512"},child:[{tag:"path",attr:{d:"M177 159.7l136 136c9.4 9.4 9.4 24.6 0 33.9l-22.6 22.6c-9.4 9.4-24.6 9.4-33.9 0L160 255.9l-96.4 96.4c-9.4 9.4-24.6 9.4-33.9 0L7 329.7c-9.4-9.4-9.4-24.6 0-33.9l136-136c9.4-9.5 24.6-9.5 34-.1z"},child:[]}]})(e)}const Wx="_generalConditionsContainer_1ijeb_1",Xx="_generalConditions_1ijeb_1",Qx="_generalConditionsHeader_1ijeb_15",Kx="_generalConditionsBody_1ijeb_25",Yx="_generalConditionsAccept_1ijeb_33",Wi={generalConditionsContainer:Wx,generalConditions:Xx,generalConditionsHeader:Qx,generalConditionsBody:Kx,generalConditionsAccept:Yx},Zx="general-conditions.header",Jx="general-conditions.body",Km="general-conditions.accept-conditions-note",eT=()=>{const e=$t(),[n,i]=U.useState(!1),s=()=>i(!n),l=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()},u=e(Zx),d=e(Km);return R.jsxs("div",{className:q(Wi.generalConditionsContainer,"chat__generalConditions"),children:[!!(u!=null&&u.length)&&R.jsxs("div",{className:Wi.generalConditions,children:[R.jsxs("div",{role:"button",onClick:s,onKeyDown:l,tabIndex:0,className:q(Wi.generalConditionsHeader,"chat__generalConditions__header"),"aria-controls":"general-conditions-body","aria-expanded":n?"true":"false","aria-pressed":n?"true":"false",children:[R.jsx(Kr,{children:u}),n?R.jsx(Vx,{}):R.jsx(qx,{})]}),R.jsx("div",{className:q(Wi.generalConditionsBody,"chat__generalConditions__body"),id:"general-conditions-body",role:"region",tabIndex:-1,children:n&&R.jsx(Kr,{children:e(Jx)||""})})]}),!!(d!=null&&d.length)&&R.jsx("div",{className:q(Wi.generalConditionsAccept,"chat__generalConditions__accept"),tabIndex:0,children:R.jsx(Kr,{children:e(Km)||""})})]})},tT="_message_iyv51_5",rT="_messageBot_iyv51_12",nT="_messageBotLast_iyv51_20",iT="_avatar_iyv51_20",oT="_messageBotFirst_iyv51_24",sT="_messageBotAnimated_iyv51_37",aT="_fadeInLeft_iyv51_1",lT="_messageGuest_iyv51_48",uT="_messageGuestFirst_iyv51_54",cT="_messageGuestLast_iyv51_60",fT="_botAvatar_iyv51_74",dT="_agentAvatar_iyv51_78",hT="_bubble_iyv51_82",pT="_bubbleContent_iyv51_88",mT="_bubbleLeft_iyv51_191",gT="_leftText_iyv51_200",yT="_bubbleRight_iyv51_207",vT="_rightText_iyv51_215",pe={message:tT,messageBot:rT,messageBotLast:nT,avatar:iT,messageBotFirst:oT,messageBotAnimated:sT,fadeInLeft:aT,messageGuest:lT,messageGuestFirst:uT,messageGuestLast:cT,botAvatar:fT,agentAvatar:dT,bubble:hT,bubbleContent:pT,bubbleLeft:mT,leftText:gT,bubbleRight:yT,rightText:vT},_T="_botMessageActions_4blu2_1",ET="_alwaysVisible_4blu2_20",ST="_reported_4blu2_27",bT="_action_4blu2_31",Qr={botMessageActions:_T,alwaysVisible:ET,reported:ST,action:bT},wT=({alwaysVisible:e,reaction:n,botMessageRef:i,onReaction:s})=>{const l=$t(),[u,d]=U.useState(!1),h=E=>()=>s(E),p=U.useCallback(async()=>{if(i.current)try{d(!0);const E=i.current.innerHTML,y=i.current.innerText;await navigator.clipboard.write([new ClipboardItem({"text/html":new Blob([E],{type:"text/html"}),"text/plain":new Blob([y],{type:"text/plain"})})]),await new Promise(w=>setTimeout(w,1500))}finally{d(!1)}},[i]);return R.jsxs("div",{className:q(Qr.botMessageActions,e&&Qr.alwaysVisible,n&&Qr.reported),children:[R.jsx("button",{className:q(Qr.action,n==="GOOD"&&Qr.reported,"tooltip--right"),tabIndex:0,"aria-label":l(n==="GOOD"?"bot-bubble.reaction.remove":"bot-bubble.reaction.good"),"data-title":l(n==="GOOD"?"bot-bubble.reaction.remove":"bot-bubble.reaction.good"),onClick:h(n==="GOOD"?null:"GOOD"),children:R.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",children:n==="GOOD"?R.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"}):R.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.jsx("button",{className:q(Qr.action,n==="BAD"&&Qr.reported,"tooltip--right"),tabIndex:0,"aria-label":l(n==="BAD"?"bot-bubble.reaction.remove":"bot-bubble.reaction.bad"),"data-title":l(n==="BAD"?"bot-bubble.reaction.remove":"bot-bubble.reaction.bad"),onClick:h(n==="BAD"?null:"BAD"),children:R.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",children:n==="BAD"?R.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"}):R.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"})})}),R.jsx("button",{className:q(Qr.action,"tooltip--right"),tabIndex:0,"aria-label":l("bot-bubble.copy"),"data-title":l("bot-bubble.copy"),onClick:p,children:R.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",children:u?R.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"}):R.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"})})})]})},wv=U.forwardRef(({message:e,isAnimated:n,isLastMessage:i,isFirstMessageBySender:s,isLastMessageBySender:l,children:u,onReaction:d},h)=>{const p=$t(),E=U.useRef(null),y=e.sender.type===ge.UserType.BOT;return R.jsxs("li",{ref:h,className:q(pe.message,pe.messageBot,i&&pe.lastMessage,s&&pe.messageBotFirst,l&&pe.messageBotLast,"chat__bubbleContainer",n&&pe.messageBotAnimated,n&&"chat__bubbleContainer--animated",y?"chat__botBubbleContainer":"chat__agentBubbleContainer",s&&"chat__bubbleContainer--first",l&&"chat__bubbleContainer--last"),children:[R.jsx("img",{className:q(pe.avatar,y?pe.botAvatar:pe.agentAvatar,"chat__avatar",y?"chat__botAvatar":"chat__agentAvatar"),src:`${e.sender.avatar}`,alt:y?"Bot":"Agent",referrerPolicy:"no-referrer"}),R.jsx("div",{ref:E,className:q(pe.bubble,pe.bubbleLeft,"chat__bubble",y?"chat__botBubble":"chat__agentBubble"),tabIndex:0,"aria-label":p(y?"bot-bubble.label":"agent-bubble.label"),children:R.jsx("div",{className:q(pe.leftText),children:u})}),d&&R.jsx(wT,{alwaysVisible:i&&l,reaction:e.reaction,botMessageRef:E,onReaction:d})]})}),xT="_title_1mhh2_1",TT="_subtitle_1mhh2_6",CT="_buttons_1mhh2_11",kT="_button_1mhh2_11",RT="_imageContainer_1mhh2_33",OT="_image_1mhh2_33",NT="_video_container_1mhh2_44",AT="_video_1mhh2_44",IT="_only_1mhh2_54",xt={title:xT,subtitle:TT,buttons:CT,button:kT,imageContainer:RT,image:OT,video_container:NT,video:AT,only:IT},PT=({buttons:e,onButtonClick:n})=>R.jsx("div",{className:q(xt.buttons,"chat__bubbleButtons"),children:e.map((i,s)=>R.jsx("button",{className:q(xt.button,it.button,"chat__bubbleButton"),onClick:()=>n(i),children:i.title},s))});var Ns={},As={},Is={},Ym;function DT(){if(Ym)return Is;Ym=1,Object.defineProperty(Is,"__esModule",{value:!0});var e=ei(),n=i(e);function i(s){if(s&&s.__esModule)return s;var l={};if(s!=null)for(var u in s)Object.prototype.hasOwnProperty.call(s,u)&&(l[u]=s[u]);return l.default=s,l}return Is.default=function(s,l,u){return n.createElement("a",{href:s,key:u},l)},Is}var Ps={},Zm;function MT(){return Zm||(Zm=1,Object.defineProperty(Ps,"__esModule",{value:!0}),Ps.default=function(e){return e}),Ps}var Ds={},Fu,Jm;function FT(){return Jm||(Jm=1,Fu=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/),Fu}var Lu,eg;function LT(){return eg||(eg=1,Lu=/[\0-\x1F\x7F-\x9F]/),Lu}var Bu,tg;function BT(){return tg||(tg=1,Bu=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/),Bu}var ju,rg;function jT(){return rg||(rg=1,ju=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4E\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDF55-\uDF59]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDF3C-\uDF3E]|\uD806[\uDC3B\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/),ju}var zu,ng;function zT(){return ng||(ng=1,zu=function(e){var n={};n.src_Any=FT().source,n.src_Cc=LT().source,n.src_Z=BT().source,n.src_P=jT().source,n.src_ZPCc=[n.src_Z,n.src_P,n.src_Cc].join("|"),n.src_ZCc=[n.src_Z,n.src_Cc].join("|");var i="[><|]";return n.src_pseudo_letter="(?:(?!"+i+"|"+n.src_ZPCc+")"+n.src_Any+")",n.src_ip4="(?:(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)",n.src_auth="(?:(?:(?!"+n.src_ZCc+"|[@/\\[\\]()]).)+@)?",n.src_port="(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?",n.src_host_terminator="(?=$|"+i+"|"+n.src_ZPCc+")(?!-|_|:\\d|\\.-|\\.(?!$|"+n.src_ZPCc+"))",n.src_path="(?:[/?#](?:(?!"+n.src_ZCc+"|"+i+`|[()[\\]{}.,"'?!\\-]).|\\[(?:(?!`+n.src_ZCc+"|\\]).)*\\]|\\((?:(?!"+n.src_ZCc+"|[)]).)*\\)|\\{(?:(?!"+n.src_ZCc+'|[}]).)*\\}|\\"(?:(?!'+n.src_ZCc+`|["]).)+\\"|\\'(?:(?!`+n.src_ZCc+"|[']).)+\\'|\\'(?="+n.src_pseudo_letter+"|[-]).|\\.{2,4}[a-zA-Z0-9%/]|\\.(?!"+n.src_ZCc+"|[.]).|"+(e&&e["---"]?"\\-(?!--(?:[^-]|$))(?:-*)|":"\\-+|")+"\\,(?!"+n.src_ZCc+").|\\!(?!"+n.src_ZCc+"|[!]).|\\?(?!"+n.src_ZCc+"|[?]).)+|\\/)?",n.src_email_name='[\\-;:&=\\+\\$,\\.a-zA-Z0-9_][\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]*',n.src_xn="xn--[a-z0-9\\-]{1,59}",n.src_domain_root="(?:"+n.src_xn+"|"+n.src_pseudo_letter+"{1,63})",n.src_domain="(?:"+n.src_xn+"|(?:"+n.src_pseudo_letter+")|(?:"+n.src_pseudo_letter+"(?:-|"+n.src_pseudo_letter+"){0,61}"+n.src_pseudo_letter+"))",n.src_host="(?:(?:(?:(?:"+n.src_domain+")\\.)*"+n.src_domain+"))",n.tpl_host_fuzzy="(?:"+n.src_ip4+"|(?:(?:(?:"+n.src_domain+")\\.)+(?:%TLDS%)))",n.tpl_host_no_ip_fuzzy="(?:(?:(?:"+n.src_domain+")\\.)+(?:%TLDS%))",n.src_host_strict=n.src_host+n.src_host_terminator,n.tpl_host_fuzzy_strict=n.tpl_host_fuzzy+n.src_host_terminator,n.src_host_port_strict=n.src_host+n.src_port+n.src_host_terminator,n.tpl_host_port_fuzzy_strict=n.tpl_host_fuzzy+n.src_port+n.src_host_terminator,n.tpl_host_port_no_ip_fuzzy_strict=n.tpl_host_no_ip_fuzzy+n.src_port+n.src_host_terminator,n.tpl_host_fuzzy_test="localhost|www\\.|\\.\\d{1,3}\\.|(?:\\.(?:%TLDS%)(?:"+n.src_ZPCc+"|>|$))",n.tpl_email_fuzzy="(^|"+i+'|"|\\(|'+n.src_ZCc+")("+n.src_email_name+"@"+n.tpl_host_fuzzy_strict+")",n.tpl_link_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+n.src_ZPCc+"))((?![$+<=>^`||])"+n.tpl_host_port_fuzzy_strict+n.src_path+")",n.tpl_link_no_ip_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+n.src_ZPCc+"))((?![$+<=>^`||])"+n.tpl_host_port_no_ip_fuzzy_strict+n.src_path+")",n}),zu}var Uu,ig;function UT(){if(ig)return Uu;ig=1;function e(S){var T=Array.prototype.slice.call(arguments,1);return T.forEach(function(C){C&&Object.keys(C).forEach(function(L){S[L]=C[L]})}),S}function n(S){return Object.prototype.toString.call(S)}function i(S){return n(S)==="[object String]"}function s(S){return n(S)==="[object Object]"}function l(S){return n(S)==="[object RegExp]"}function u(S){return n(S)==="[object Function]"}function d(S){return S.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}var h={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};function p(S){return Object.keys(S||{}).reduce(function(T,C){return T||h.hasOwnProperty(C)},!1)}var E={"http:":{validate:function(S,T,C){var L=S.slice(T);return C.re.http||(C.re.http=new RegExp("^\\/\\/"+C.re.src_auth+C.re.src_host_port_strict+C.re.src_path,"i")),C.re.http.test(L)?L.match(C.re.http)[0].length:0}},"https:":"http:","ftp:":"http:","//":{validate:function(S,T,C){var L=S.slice(T);return C.re.no_http||(C.re.no_http=new RegExp("^"+C.re.src_auth+"(?:localhost|(?:(?:"+C.re.src_domain+")\\.)+"+C.re.src_domain_root+")"+C.re.src_port+C.re.src_host_terminator+C.re.src_path,"i")),C.re.no_http.test(L)?T>=3&&S[T-3]===":"||T>=3&&S[T-3]==="/"?0:L.match(C.re.no_http)[0].length:0}},"mailto:":{validate:function(S,T,C){var L=S.slice(T);return C.re.mailto||(C.re.mailto=new RegExp("^"+C.re.src_email_name+"@"+C.re.src_host_strict,"i")),C.re.mailto.test(L)?L.match(C.re.mailto)[0].length:0}}},y="a[cdefgilmnoqrstuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]",w="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");function m(S){S.__index__=-1,S.__text_cache__=""}function _(S){return function(T,C){var L=T.slice(C);return S.test(L)?L.match(S)[0].length:0}}function v(){return function(S,T){T.normalize(S)}}function k(S){var T=S.re=zT()(S.__opts__),C=S.__tlds__.slice();S.onCompile(),S.__tlds_replaced__||C.push(y),C.push(T.src_xn),T.src_tlds=C.join("|");function L(te){return te.replace("%TLDS%",T.src_tlds)}T.email_fuzzy=RegExp(L(T.tpl_email_fuzzy),"i"),T.link_fuzzy=RegExp(L(T.tpl_link_fuzzy),"i"),T.link_no_ip_fuzzy=RegExp(L(T.tpl_link_no_ip_fuzzy),"i"),T.host_fuzzy_test=RegExp(L(T.tpl_host_fuzzy_test),"i");var H=[];S.__compiled__={};function W(te,fe){throw new Error('(LinkifyIt) Invalid schema "'+te+'": '+fe)}Object.keys(S.__schemas__).forEach(function(te){var fe=S.__schemas__[te];if(fe!==null){var de={validate:null,link:null};if(S.__compiled__[te]=de,s(fe)){l(fe.validate)?de.validate=_(fe.validate):u(fe.validate)?de.validate=fe.validate:W(te,fe),u(fe.normalize)?de.normalize=fe.normalize:fe.normalize?W(te,fe):de.normalize=v();return}if(i(fe)){H.push(te);return}W(te,fe)}}),H.forEach(function(te){S.__compiled__[S.__schemas__[te]]&&(S.__compiled__[te].validate=S.__compiled__[S.__schemas__[te]].validate,S.__compiled__[te].normalize=S.__compiled__[S.__schemas__[te]].normalize)}),S.__compiled__[""]={validate:null,normalize:v()};var se=Object.keys(S.__compiled__).filter(function(te){return te.length>0&&S.__compiled__[te]}).map(d).join("|");S.re.schema_test=RegExp("(^|(?!_)(?:[><|]|"+T.src_ZPCc+"))("+se+")","i"),S.re.schema_search=RegExp("(^|(?!_)(?:[><|]|"+T.src_ZPCc+"))("+se+")","ig"),S.re.pretest=RegExp("("+S.re.schema_test.source+")|("+S.re.host_fuzzy_test.source+")|@","i"),m(S)}function x(S,T){var C=S.__index__,L=S.__last_index__,H=S.__text_cache__.slice(C,L);this.schema=S.__schema__.toLowerCase(),this.index=C+T,this.lastIndex=L+T,this.raw=H,this.text=H,this.url=H}function N(S,T){var C=new x(S,T);return S.__compiled__[C.schema].normalize(C,S),C}function O(S,T){if(!(this instanceof O))return new O(S,T);T||p(S)&&(T=S,S={}),this.__opts__=e({},h,T),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=e({},E,S),this.__compiled__={},this.__tlds__=w,this.__tlds_replaced__=!1,this.re={},k(this)}return O.prototype.add=function(T,C){return this.__schemas__[T]=C,k(this),this},O.prototype.set=function(T){return this.__opts__=e(this.__opts__,T),this},O.prototype.test=function(T){if(this.__text_cache__=T,this.__index__=-1,!T.length)return!1;var C,L,H,W,se,te,fe,de,ae;if(this.re.schema_test.test(T)){for(fe=this.re.schema_search,fe.lastIndex=0;(C=fe.exec(T))!==null;)if(W=this.testSchemaAt(T,C[2],fe.lastIndex),W){this.__schema__=C[2],this.__index__=C.index+C[1].length,this.__last_index__=C.index+C[0].length+W;break}}return this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&(de=T.search(this.re.host_fuzzy_test),de>=0&&(this.__index__<0||de<this.__index__)&&(L=T.match(this.__opts__.fuzzyIP?this.re.link_fuzzy:this.re.link_no_ip_fuzzy))!==null&&(se=L.index+L[1].length,(this.__index__<0||se<this.__index__)&&(this.__schema__="",this.__index__=se,this.__last_index__=L.index+L[0].length))),this.__opts__.fuzzyEmail&&this.__compiled__["mailto:"]&&(ae=T.indexOf("@"),ae>=0&&(H=T.match(this.re.email_fuzzy))!==null&&(se=H.index+H[1].length,te=H.index+H[0].length,(this.__index__<0||se<this.__index__||se===this.__index__&&te>this.__last_index__)&&(this.__schema__="mailto:",this.__index__=se,this.__last_index__=te))),this.__index__>=0},O.prototype.pretest=function(T){return this.re.pretest.test(T)},O.prototype.testSchemaAt=function(T,C,L){return this.__compiled__[C.toLowerCase()]?this.__compiled__[C.toLowerCase()].validate(T,L,this):0},O.prototype.match=function(T){var C=0,L=[];this.__index__>=0&&this.__text_cache__===T&&(L.push(N(this,C)),C=this.__last_index__);for(var H=C?T.slice(C):T;this.test(H);)L.push(N(this,C)),H=H.slice(this.__last_index__),C+=this.__last_index__;return L.length?L:null},O.prototype.tlds=function(T,C){return T=Array.isArray(T)?T:[T],C?(this.__tlds__=this.__tlds__.concat(T).sort().filter(function(L,H,W){return L!==W[H-1]}).reverse(),k(this),this):(this.__tlds__=T.slice(),this.__tlds_replaced__=!0,k(this),this)},O.prototype.normalize=function(T){T.schema||(T.url="http://"+T.url),T.schema==="mailto:"&&!/^mailto:/i.test(T.url)&&(T.url="mailto:"+T.url)},O.prototype.onCompile=function(){},Uu=O,Uu}const HT=JSON.parse('["aaa","aarp","abb","abbott","abbvie","abc","able","abogado","abudhabi","ac","academy","accenture","accountant","accountants","aco","actor","ad","ads","adult","ae","aeg","aero","aetna","af","afl","africa","ag","agakhan","agency","ai","aig","airbus","airforce","airtel","akdn","al","alibaba","alipay","allfinanz","allstate","ally","alsace","alstom","am","amazon","americanexpress","americanfamily","amex","amfam","amica","amsterdam","analytics","android","anquan","anz","ao","aol","apartments","app","apple","aq","aquarelle","ar","arab","aramco","archi","army","arpa","art","arte","as","asda","asia","associates","at","athleta","attorney","au","auction","audi","audible","audio","auspost","author","auto","autos","avianca","aw","aws","ax","axa","az","azure","ba","baby","baidu","banamex","bananarepublic","band","bank","bar","barcelona","barclaycard","barclays","barefoot","bargains","baseball","basketball","bauhaus","bayern","bb","bbc","bbt","bbva","bcg","bcn","bd","be","beats","beauty","beer","bentley","berlin","best","bestbuy","bet","bf","bg","bh","bharti","bi","bible","bid","bike","bing","bingo","bio","biz","bj","black","blackfriday","blockbuster","blog","bloomberg","blue","bm","bms","bmw","bn","bnpparibas","bo","boats","boehringer","bofa","bom","bond","boo","book","booking","bosch","bostik","boston","bot","boutique","box","br","bradesco","bridgestone","broadway","broker","brother","brussels","bs","bt","build","builders","business","buy","buzz","bv","bw","by","bz","bzh","ca","cab","cafe","cal","call","calvinklein","cam","camera","camp","canon","capetown","capital","capitalone","car","caravan","cards","care","career","careers","cars","casa","case","cash","casino","cat","catering","catholic","cba","cbn","cbre","cbs","cc","cd","center","ceo","cern","cf","cfa","cfd","cg","ch","chanel","channel","charity","chase","chat","cheap","chintai","christmas","chrome","church","ci","cipriani","circle","cisco","citadel","citi","citic","city","cityeats","ck","cl","claims","cleaning","click","clinic","clinique","clothing","cloud","club","clubmed","cm","cn","co","coach","codes","coffee","college","cologne","com","comcast","commbank","community","company","compare","computer","comsec","condos","construction","consulting","contact","contractors","cooking","cool","coop","corsica","country","coupon","coupons","courses","cpa","cr","credit","creditcard","creditunion","cricket","crown","crs","cruise","cruises","cu","cuisinella","cv","cw","cx","cy","cymru","cyou","cz","dabur","dad","dance","data","date","dating","datsun","day","dclk","dds","de","deal","dealer","deals","degree","delivery","dell","deloitte","delta","democrat","dental","dentist","desi","design","dev","dhl","diamonds","diet","digital","direct","directory","discount","discover","dish","diy","dj","dk","dm","dnp","do","docs","doctor","dog","domains","dot","download","drive","dtv","dubai","dunlop","dupont","durban","dvag","dvr","dz","earth","eat","ec","eco","edeka","edu","education","ee","eg","email","emerck","energy","engineer","engineering","enterprises","epson","equipment","er","ericsson","erni","es","esq","estate","et","etisalat","eu","eurovision","eus","events","exchange","expert","exposed","express","extraspace","fage","fail","fairwinds","faith","family","fan","fans","farm","farmers","fashion","fast","fedex","feedback","ferrari","ferrero","fi","fidelity","fido","film","final","finance","financial","fire","firestone","firmdale","fish","fishing","fit","fitness","fj","fk","flickr","flights","flir","florist","flowers","fly","fm","fo","foo","food","football","ford","forex","forsale","forum","foundation","fox","fr","free","fresenius","frl","frogans","frontdoor","frontier","ftr","fujitsu","fun","fund","furniture","futbol","fyi","ga","gal","gallery","gallo","gallup","game","games","gap","garden","gay","gb","gbiz","gd","gdn","ge","gea","gent","genting","george","gf","gg","ggee","gh","gi","gift","gifts","gives","giving","gl","glass","gle","global","globo","gm","gmail","gmbh","gmo","gmx","gn","godaddy","gold","goldpoint","golf","goo","goodyear","goog","google","gop","got","gov","gp","gq","gr","grainger","graphics","gratis","green","gripe","grocery","group","gs","gt","gu","guardian","gucci","guge","guide","guitars","guru","gw","gy","hair","hamburg","hangout","haus","hbo","hdfc","hdfcbank","health","healthcare","help","helsinki","here","hermes","hiphop","hisamitsu","hitachi","hiv","hk","hkt","hm","hn","hockey","holdings","holiday","homedepot","homegoods","homes","homesense","honda","horse","hospital","host","hosting","hot","hotels","hotmail","house","how","hr","hsbc","ht","hu","hughes","hyatt","hyundai","ibm","icbc","ice","icu","id","ie","ieee","ifm","ikano","il","im","imamat","imdb","immo","immobilien","in","inc","industries","infiniti","info","ing","ink","institute","insurance","insure","int","international","intuit","investments","io","ipiranga","iq","ir","irish","is","ismaili","ist","istanbul","it","itau","itv","jaguar","java","jcb","je","jeep","jetzt","jewelry","jio","jll","jm","jmp","jnj","jo","jobs","joburg","jot","joy","jp","jpmorgan","jprs","juegos","juniper","kaufen","kddi","ke","kerryhotels","kerrylogistics","kerryproperties","kfh","kg","kh","ki","kia","kids","kim","kinder","kindle","kitchen","kiwi","km","kn","koeln","komatsu","kosher","kp","kpmg","kpn","kr","krd","kred","kuokgroup","kw","ky","kyoto","kz","la","lacaixa","lamborghini","lamer","lancaster","land","landrover","lanxess","lasalle","lat","latino","latrobe","law","lawyer","lb","lc","lds","lease","leclerc","lefrak","legal","lego","lexus","lgbt","li","lidl","life","lifeinsurance","lifestyle","lighting","like","lilly","limited","limo","lincoln","link","lipsy","live","living","lk","llc","llp","loan","loans","locker","locus","lol","london","lotte","lotto","love","lpl","lplfinancial","lr","ls","lt","ltd","ltda","lu","lundbeck","luxe","luxury","lv","ly","ma","madrid","maif","maison","makeup","man","management","mango","map","market","marketing","markets","marriott","marshalls","mattel","mba","mc","mckinsey","md","me","med","media","meet","melbourne","meme","memorial","men","menu","merckmsd","mg","mh","miami","microsoft","mil","mini","mint","mit","mitsubishi","mk","ml","mlb","mls","mm","mma","mn","mo","mobi","mobile","moda","moe","moi","mom","monash","money","monster","mormon","mortgage","moscow","moto","motorcycles","mov","movie","mp","mq","mr","ms","msd","mt","mtn","mtr","mu","museum","music","mv","mw","mx","my","mz","na","nab","nagoya","name","natura","navy","nba","nc","ne","nec","net","netbank","netflix","network","neustar","new","news","next","nextdirect","nexus","nf","nfl","ng","ngo","nhk","ni","nico","nike","nikon","ninja","nissan","nissay","nl","no","nokia","norton","now","nowruz","nowtv","np","nr","nra","nrw","ntt","nu","nyc","nz","obi","observer","office","okinawa","olayan","olayangroup","oldnavy","ollo","om","omega","one","ong","onl","online","ooo","open","oracle","orange","org","organic","origins","osaka","otsuka","ott","ovh","pa","page","panasonic","paris","pars","partners","parts","party","pay","pccw","pe","pet","pf","pfizer","pg","ph","pharmacy","phd","philips","phone","photo","photography","photos","physio","pics","pictet","pictures","pid","pin","ping","pink","pioneer","pizza","pk","pl","place","play","playstation","plumbing","plus","pm","pn","pnc","pohl","poker","politie","porn","post","pr","pramerica","praxi","press","prime","pro","prod","productions","prof","progressive","promo","properties","property","protection","pru","prudential","ps","pt","pub","pw","pwc","py","qa","qpon","quebec","quest","racing","radio","re","read","realestate","realtor","realty","recipes","red","redstone","redumbrella","rehab","reise","reisen","reit","reliance","ren","rent","rentals","repair","report","republican","rest","restaurant","review","reviews","rexroth","rich","richardli","ricoh","ril","rio","rip","ro","rocher","rocks","rodeo","rogers","room","rs","rsvp","ru","rugby","ruhr","run","rw","rwe","ryukyu","sa","saarland","safe","safety","sakura","sale","salon","samsclub","samsung","sandvik","sandvikcoromant","sanofi","sap","sarl","sas","save","saxo","sb","sbi","sbs","sc","sca","scb","schaeffler","schmidt","scholarships","school","schule","schwarz","science","scot","sd","se","search","seat","secure","security","seek","select","sener","services","seven","sew","sex","sexy","sfr","sg","sh","shangrila","sharp","shaw","shell","shia","shiksha","shoes","shop","shopping","shouji","show","showtime","si","silk","sina","singles","site","sj","sk","ski","skin","sky","skype","sl","sling","sm","smart","smile","sn","sncf","so","soccer","social","softbank","software","sohu","solar","solutions","song","sony","soy","spa","space","sport","spot","sr","srl","ss","st","stada","staples","star","statebank","statefarm","stc","stcgroup","stockholm","storage","store","stream","studio","study","style","su","sucks","supplies","supply","support","surf","surgery","suzuki","sv","swatch","swiss","sx","sy","sydney","systems","sz","tab","taipei","talk","taobao","target","tatamotors","tatar","tattoo","tax","taxi","tc","tci","td","tdk","team","tech","technology","tel","temasek","tennis","teva","tf","tg","th","thd","theater","theatre","tiaa","tickets","tienda","tips","tires","tirol","tj","tjmaxx","tjx","tk","tkmaxx","tl","tm","tmall","tn","to","today","tokyo","tools","top","toray","toshiba","total","tours","town","toyota","toys","tr","trade","trading","training","travel","travelers","travelersinsurance","trust","trv","tt","tube","tui","tunes","tushu","tv","tvs","tw","tz","ua","ubank","ubs","ug","uk","unicom","university","uno","uol","ups","us","uy","uz","va","vacations","vana","vanguard","vc","ve","vegas","ventures","verisign","vermögensberater","vermögensberatung","versicherung","vet","vg","vi","viajes","video","vig","viking","villas","vin","vip","virgin","visa","vision","viva","vivo","vlaanderen","vn","vodka","volkswagen","volvo","vote","voting","voto","voyage","vu","wales","walmart","walter","wang","wanggou","watch","watches","weather","weatherchannel","webcam","weber","website","wed","wedding","weibo","weir","wf","whoswho","wien","wiki","williamhill","win","windows","wine","winners","wme","wolterskluwer","woodside","work","works","world","wow","ws","wtc","wtf","xbox","xerox","xfinity","xihuan","xin","xxx","xyz","yachts","yahoo","yamaxun","yandex","ye","yodobashi","yoga","yokohama","you","youtube","yt","yun","za","zappos","zara","zero","zip","zm","zone","zuerich","zw","ελ","ευ","бг","бел","дети","ею","католик","ком","мкд","мон","москва","онлайн","орг","рус","рф","сайт","срб","укр","қаз","հայ","ישראל","קום","ابوظبي","اتصالات","ارامكو","الاردن","البحرين","الجزائر","السعودية","العليان","المغرب","امارات","ایران","بارت","بازار","بيتك","بھارت","تونس","سودان","سورية","شبكة","عراق","عرب","عمان","فلسطين","قطر","كاثوليك","كوم","مصر","مليسيا","موريتانيا","موقع","همراه","پاکستان","ڀارت","कॉम","नेट","भारत","भारतम्","भारोत","संगठन","বাংলা","ভারত","ভাৰত","ਭਾਰਤ","ભારત","ଭାରତ","இந்தியா","இலங்கை","சிங்கப்பூர்","భారత్","ಭಾರತ","ഭാരതം","ලංකා","คอม","ไทย","ລາວ","გე","みんな","アマゾン","クラウド","グーグル","コム","ストア","セール","ファッション","ポイント","世界","中信","中国","中國","中文网","亚马逊","企业","佛山","信息","健康","八卦","公司","公益","台湾","台灣","商城","商店","商标","嘉里","嘉里大酒店","在线","大拿","天主教","娱乐","家電","广东","微博","慈善","我爱你","手机","招聘","政务","政府","新加坡","新闻","时尚","書籍","机构","淡马锡","游戏","澳門","点看","移动","组织机构","网址","网店","网站","网络","联通","谷歌","购物","通販","集团","電訊盈科","飞利浦","食品","餐厅","香格里拉","香港","닷넷","닷컴","삼성","한국"]');var og;function GT(){if(og)return Ds;og=1,Object.defineProperty(Ds,"__esModule",{value:!0});var e=UT(),n=l(e),i=HT,s=l(i);function l(d){return d&&d.__esModule?d:{default:d}}var u=new n.default;return u.tlds(s.default),Ds.default=function(d){return u.match(d)},Ds}var Ms={},sg;function $T(){return sg||(sg=1,Object.defineProperty(Ms,"__esModule",{value:!0}),Ms.default=function(e){return e}),Ms}var ag;function qT(){if(ag)return As;ag=1,Object.defineProperty(As,"__esModule",{value:!0});var e=function(){function N(O,S){for(var T=0;T<S.length;T++){var C=S[T];C.enumerable=C.enumerable||!1,C.configurable=!0,"value"in C&&(C.writable=!0),Object.defineProperty(O,C.key,C)}}return function(O,S,T){return S&&N(O.prototype,S),T&&N(O,T),O}}(),n=ei(),i=m(n),s=DT(),l=w(s),u=MT(),d=w(u),h=GT(),p=w(h),E=$T(),y=w(E);function w(N){return N&&N.__esModule?N:{default:N}}function m(N){if(N&&N.__esModule)return N;var O={};if(N!=null)for(var S in N)Object.prototype.hasOwnProperty.call(N,S)&&(O[S]=N[S]);return O.default=N,O}function _(N,O){if(!(N instanceof O))throw new TypeError("Cannot call a class as a function")}function v(N,O){if(!N)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return O&&(typeof O=="object"||typeof O=="function")?O:N}function k(N,O){if(typeof O!="function"&&O!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof O);N.prototype=Object.create(O&&O.prototype,{constructor:{value:N,enumerable:!1,writable:!0,configurable:!0}}),O&&(Object.setPrototypeOf?Object.setPrototypeOf(N,O):N.__proto__=O)}var x=function(N){k(O,N);function O(){return _(this,O),v(this,(O.__proto__||Object.getPrototypeOf(O)).apply(this,arguments))}return e(O,[{key:"parseString",value:function(T){var C=this;if(T==="")return T;var L=this.props.matchDecorator(T);if(!L)return T;var H=[],W=0;return L.forEach(function(se,te){se.index>W&&H.push(T.substring(W,se.index));var fe=C.props.hrefDecorator(se.url),de=C.props.textDecorator(se.text),ae=C.props.componentDecorator(fe,de,te);H.push(ae),W=se.lastIndex}),T.length>W&&H.push(T.substring(W)),H.length===1?H[0]:H}},{key:"parse",value:function(T){var C=this,L=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return typeof T=="string"?this.parseString(T):i.isValidElement(T)&&T.type!=="a"&&T.type!=="button"?i.cloneElement(T,{key:L},this.parse(T.props.children)):Array.isArray(T)?T.map(function(H,W){return C.parse(H,W)}):T}},{key:"render",value:function(){return i.createElement(i.Fragment,null,this.parse(this.props.children))}}]),O}(i.Component);return x.defaultProps={componentDecorator:l.default,hrefDecorator:d.default,matchDecorator:p.default,textDecorator:y.default},As.default=x,As}var lg;function VT(){if(lg)return Ns;lg=1,Object.defineProperty(Ns,"__esModule",{value:!0});var e=qT(),n=i(e);function i(s){return s&&s.__esModule?s:{default:s}}return Ns.default=n.default,Ns}var WT=VT();const XT=Js(WT),QT="_text_1k7aq_1",KT={text:QT},xv=({text:e,onLinkClick:n})=>{const i=l=>u=>(u.preventDefault(),l&&n(l),!1),s=(l,u,d)=>R.jsx("a",{onClick:i(l),role:"button",children:u},d);return R.jsx("div",{children:e.split(`
|
|
97
|
+
`).map((l,u)=>R.jsxs("span",{className:KT.text,children:[R.jsx(XT,{componentDecorator:s,children:l}),R.jsx("br",{})]},u))})},YT=({subtitle:e,onLinkClick:n})=>e?R.jsx("div",{className:xt.subtitle,children:R.jsx(xv,{text:e,onLinkClick:n})}):null,ug="newtab#",Tv=({markdown:e,onLinkClick:n})=>{const i=l=>u=>(u.preventDefault(),l&&n(l),!1),s=({title:l,href:u,children:d})=>u.indexOf(ug)===0?R.jsx("a",{href:u.slice(ug.length),title:l,target:"_blank",rel:"noopener noreferrer",children:d}):R.jsx("a",{onClick:i(u),title:l,href:u,children:d});return R.jsx(Kr,{options:{overrides:{a:s}},children:e})},ZT=({text:e,onLinkClick:n})=>e?R.jsx("div",{children:R.jsx(Tv,{markdown:e,onLinkClick:n})}):null,JT=({title:e})=>e?R.jsx("h1",{className:xt.title,children:e}):null,eC=({title:e,text:n,subtitle:i,buttons:s,onButtonClick:l,onLinkClick:u})=>(e==null?void 0:e.length)||(n==null?void 0:n.length)||(i==null?void 0:i.length)||(s==null?void 0:s.length)?R.jsxs("div",{className:q(pe.bubbleContent),children:[R.jsx(JT,{title:e}),R.jsx(ZT,{text:n,onLinkClick:u}),R.jsx(YT,{subtitle:i,onLinkClick:u}),R.jsx(PT,{buttons:s,onButtonClick:l})]}):null,tC=({alt:e,imageUrl:n,itemUrl:i,hasBody:s})=>n?i?i.indexOf("youtube.com")>-1?R.jsx("div",{className:xt.video_container,children:R.jsx("iframe",{className:q(xt.video,{[xt.only]:!s}),title:"Youtube",width:"100%",src:i+"?rel=0",frameBorder:"0",allowFullScreen:!0})}):R.jsx("a",{href:i,target:"_blank",rel:"noopener noreferrer",children:R.jsx("div",{className:xt.imageContainer,children:R.jsx("img",{className:q(xt.image,{[xt.only]:!s}),src:n,alt:e})})}):R.jsx("div",{className:xt.imageContainer,children:R.jsx("img",{className:q(xt.image,{[xt.only]:!s}),src:n,alt:e})}):null,rC=({title:e,text:n,subtitle:i,imageUrl:s,itemUrl:l,buttons:u,onButtonClick:d,onLinkClick:h})=>{const p=!!(e!=null&&e.length)||!!(n!=null&&n.length)||!!(i!=null&&i.length)||!!(u!=null&&u.length);return R.jsxs("div",{className:q(xt.detailMessage),children:[R.jsx(tC,{hasBody:p,imageUrl:s,itemUrl:l,alt:e||i}),p&&R.jsx(eC,{title:e,text:n,subtitle:i,buttons:u,onLinkClick:h,onButtonClick:d})]})},nC=U.forwardRef(({isFirstMessageBySender:e,isLastMessageBySender:n,children:i},s)=>{const l=$t();return R.jsx("li",{ref:s,className:q(pe.message,pe.messageGuest,e&&pe.messageGuestFirst,n&&pe.messageGuestLast,"chat__bubbleContainer","chat__guestBubbleContainer",e&&"chat__bubbleContainer--first",n&&"chat__bubbleContainer--last"),children:R.jsx("div",{className:q(pe.bubble,pe.bubbleRight,"chat__bubble","chat__guestBubble"),tabIndex:0,"aria-label":l("guest-bubble.label"),children:R.jsx("div",{className:q(pe.rightText),children:i})})})}),iC=({markdown:e,className:n,onLinkClick:i})=>R.jsx("div",{className:q(pe.bubbleContent,n),children:R.jsx(Tv,{markdown:e,onLinkClick:i})}),oC=({text:e,onLinkClick:n})=>R.jsx("div",{className:pe.bubbleContent,children:R.jsx(xv,{text:e,onLinkClick:n})}),sC=U.forwardRef(({message:e,isLastMessage:n,isFirstMessageBySender:i,isLastMessageBySender:s,onReaction:l,onButtonClick:u,onLinkClick:d},h)=>{const p=aC(e,u,d);switch(e.sender.type){case ge.UserType.GUEST:return R.jsx(nC,{ref:h,isFirstMessageBySender:i,isLastMessageBySender:s,children:p});default:{const E=y=>l(e._id,y);return R.jsx(wv,{ref:h,message:e,isAnimated:!1,isLastMessage:n,isFirstMessageBySender:i,isLastMessageBySender:s,onReaction:E,children:p})}}}),aC=(e,n,i)=>{switch(e.type){case ge.MessageTypeEnum.TEXT:{const s=e;return R.jsx(oC,{text:s.text,onLinkClick:i})}case ge.MessageTypeEnum.DETAIL:{const s=e;return R.jsx(rC,{title:s.title,text:s.text,subtitle:s.subtitle,imageUrl:s.imageUrl,itemUrl:s.itemUrl,buttons:s.buttons,onButtonClick:n,onLinkClick:i})}case ge.MessageTypeEnum.MARKDOWN:{const s=e;return R.jsx(iC,{markdown:s.markdown,className:s.className,onLinkClick:i})}}},lC=(e,n)=>e.message._id===n.message._id&&e.message.reaction===n.message.reaction&&e.isLastMessage===n.isLastMessage&&e.isFirstMessageBySender===n.isFirstMessageBySender&&e.isLastMessageBySender===n.isLastMessageBySender,uC=wr.memo(sC,lC),cC="_ticontainer_wftg7_1",fC="_tiblock_wftg7_5",dC="_tidot_wftg7_12",hC="_mercuryTypingAnimation_wftg7_1",Xi={ticontainer:cC,tiblock:fC,tidot:dC,mercuryTypingAnimation:hC},pC=({isTyping:e=!1})=>R.jsx("div",{className:Xi.ticontainer,children:R.jsx("div",{className:Xi.tiblock,children:e?R.jsxs(R.Fragment,{children:[R.jsx("div",{className:q(Xi.tidot,"chat__typingIndicator")}),R.jsx("div",{className:q(Xi.tidot,"chat__typingIndicator")}),R.jsx("div",{className:q(Xi.tidot,"chat__typingIndicator")})]}):null})}),mC=Object.assign({_id:"typing-indicator"},new ge.TextMessage("",new ge.BotUser)),gC=({messages:e,isBotTyping:n,showGeneralConditions:i,onTranscriptItemReaction:s,onButtonClick:l,onLinkClick:u})=>{const d=U.useRef(0),h=U.useRef(!0),p=U.useRef(null),E=U.useRef(null),y=U.useRef(null);U.useLayoutEffect(()=>{if(e.length&&p.current&&(d.current<e.length||n)){if(E.current){const _=E.current.offsetTop;p.current.scrollTop=_}else if(y.current){const _=y.current.offsetTop;p.current.scrollTop=_}h.current&&(h.current=!1),d.current=e.length}},[e,h,n]);let w;const m=e.length;return R.jsxs("div",{ref:p,className:q(jm.messageContainer,"chat__messageContainer"),style:{scrollBehavior:e.length&&h.current?"auto":"smooth"},id:"MessageContainer",role:"log","aria-live":"polite",children:[i&&R.jsx(eT,{}),R.jsxs("ul",{className:jm.messages,children:[e.map((_,v)=>{const k=yC(_,w),x=vC(_,v,e,n);w=_.sender.type;const N=v+1===m;return R.jsx(uC,{ref:N?y:null,message:_,isLastMessage:N,isFirstMessageBySender:k,isLastMessageBySender:x,onButtonClick:l,onLinkClick:u,onReaction:s},N&&!n?"last":_._id)}),n&&R.jsx(wv,{ref:E,message:mC,isLastMessage:!1,isAnimated:!0,isFirstMessageBySender:w!==ge.UserType.BOT,isLastMessageBySender:!0,children:R.jsx(pC,{isTyping:!0})},"last")]})]})},yC=(e,n)=>!n||n!==e.sender.type,vC=(e,n,i,s)=>{var h;const l=e.sender.type,u=i.length;return n+1===u?!(l===ge.UserType.BOT&&s):l!==((h=i.at(n+1))==null?void 0:h.sender.type)},_C="_bottomSheet_8itd6_1",EC="_bottomSheetOpen_8itd6_15",SC="_bottomSheetClose_8itd6_20",Tr={bottomSheet:_C,bottomSheetOpen:EC,"slide-in":"_slide-in_8itd6_1",bottomSheetClose:SC,"slide-out":"_slide-out_8itd6_1"},bC="_container_ooyn8_1",cg={container:bC},wC=({contentUrl:e})=>{const n=_n(u=>u.connection.sessionId),[i,s]=U.useState(!1);U.useEffect(()=>{s(u=>u||!!e)},[e]);const l=U.useMemo(()=>{if(e&&n){const u=new URL(e,document.baseURI);return u.searchParams.set("sessionId",n),u.toString()}else return},[e,n]);return R.jsx("div",{className:q(cg.container,Tr.bottomSheet,{[Tr.bottomSheetOpen]:!!e,[Tr.bottomSheetClose]:i&&!e}),children:l&&R.jsx("iframe",{title:"Drawer",src:l,className:cg.iframe})})},xC="_container_t5oqt_1",TC={container:xC},CC=({title:e,href:n,children:i})=>R.jsx("a",{href:n,title:e,target:"_blank",rel:"noopener noreferrer",children:i}),kC=()=>{const n=$t()("powered-by");return n&&n.length?R.jsx("div",{className:q(TC.container,"chat__poweredBy"),children:R.jsx(Kr,{options:{overrides:{a:CC}},children:n})}):null},RC="_container_rkqaf_1",OC="_formContainer_rkqaf_14",NC="_emailInput_rkqaf_19",AC="_description_rkqaf_48",IC="_actions_rkqaf_53",PC="_validationError_rkqaf_63",DC="_submitted_rkqaf_70",Sr={container:RC,formContainer:OC,emailInput:NC,description:AC,actions:IC,validationError:PC,submitted:DC},MC=({visible:e,methods:n,onEmailExport:i,onPdfExport:s,onClose:l})=>{const u=$t(),[d,h]=U.useState(void 0),[p,E]=U.useState(!1),[y,w]=U.useState(!1),[m,_]=U.useState(void 0),v=U.useRef(null);U.useEffect(()=>{var O;e?((O=v.current)==null||O.focus(),E(!1),w(!1),h(e)):d===!0&&h(!1)},[e,d]);const k=O=>{O.preventDefault(),m&&m.length>0&&(i(m),E(!0),setTimeout(l,3*1e3))},x=O=>{const S=O.target.value.trim(),T=/^\w+([.-]?\w+)*@\w+([.-]?\w+)*(\.\w{2,3})+$/.test(S);_(T?S:"")},N=()=>{w(!0),s(),setTimeout(l,3*1e3)};return R.jsxs("div",{className:q(Sr.container,Tr.bottomSheet,{[Tr.bottomSheetOpen]:d===!0,[Tr.bottomSheetClose]:d===!1}),children:[n.pdf&&R.jsxs(R.Fragment,{children:[R.jsx("h2",{children:u("export-transcript.pdf.title")}),R.jsx(Kr,{className:Sr.description,children:u("export-transcript.pdf.description")||""}),R.jsxs("div",{className:Sr.actions,children:[R.jsx("button",{type:"button",className:q(it.button,it.buttonDefault),onClick:l,children:u("export-transcript.pdf.cancel")}),R.jsx("button",{className:q(it.button,it.buttonPrimary),onClick:N,disabled:y,children:u("export-transcript.pdf.download")})]})]}),n.email&&R.jsxs(R.Fragment,{children:[R.jsx("h2",{children:u("export-transcript.email.title")}),R.jsx(Kr,{className:Sr.description,children:u("export-transcript.email.description")||""}),R.jsxs("form",{onSubmit:k,className:Sr.formContainer,children:[R.jsxs("div",{children:[R.jsx("input",{disabled:p,ref:v,type:"email",placeholder:u("export-transcript.email.placeholder"),className:Sr.emailInput,onChange:x}),(m==null?void 0:m.length)===0?R.jsx("div",{className:Sr.validationError,children:u("export-transcript.email.invalid")}):null]}),R.jsxs("div",{className:Sr.actions,children:[R.jsx("button",{type:"button",className:q(it.button,it.buttonDefault),onClick:l,children:u("export-transcript.email.cancel")}),R.jsx("button",{type:"submit",disabled:p||m===void 0||m.length===0,className:q(it.button,it.buttonPrimary),children:u("export-transcript.email.send")})]})]}),p&&R.jsx("div",{className:Sr.submitted,children:u("export-transcript.email.success")})]})]})},FC="_inputContainer_1px77_1",LC={inputContainer:FC},BC="_blockUserInput_rv0dg_1",jC={blockUserInput:BC,"append-animate":"_append-animate_rv0dg_1"},zC=({visible:e})=>{const n=$t();return e?R.jsx("div",{className:q(jC.blockUserInput,"chat__blockUserInput"),children:n("block-user-input.title")}):null},UC="_callToActionContainer_czz0p_1",HC="_callToActionTitle_czz0p_24",GC="_rateOverlay_czz0p_31",$C="_body_czz0p_50",qC="_footer_czz0p_58",VC="_actions_czz0p_73",WC="_bubbles_czz0p_85",XC="_rateFeedbackBotBubble_czz0p_112",QC="_rateFeedbackGuestBubble_czz0p_118",KC="_avatar_czz0p_124",YC="_fadeInLeft_czz0p_1",ZC="_bubble_czz0p_85",JC="_appear_czz0p_1",e2="_botBubble_czz0p_150",t2="_guestBubble_czz0p_160",r2="_rateText_czz0p_176",n2="_stars_czz0p_181",i2="_starsSmall_czz0p_194",o2="_starsLarge_czz0p_198",s2="_star_czz0p_181",a2="_starReadonly_czz0p_215",l2="_starIcon_czz0p_223",u2="_starsDescriptionContainer_czz0p_241",c2="_starsDescription_czz0p_241",mt={callToActionContainer:UC,"append-animate":"_append-animate_czz0p_1",callToActionTitle:HC,rateOverlay:GC,body:$C,footer:qC,actions:VC,bubbles:WC,rateFeedbackBotBubble:XC,rateFeedbackGuestBubble:QC,avatar:KC,fadeInLeft:YC,bubble:ZC,appear:JC,botBubble:e2,guestBubble:t2,rateText:r2,stars:n2,starsSmall:i2,starsLarge:o2,star:s2,starReadonly:a2,starIcon:l2,starsDescriptionContainer:u2,starsDescription:c2},f2=({value:e,index:n,count:i,readonly:s,onHover:l,onClick:u})=>{const d=h=>{u&&h.key==="Enter"&&u()};return R.jsx("li",{className:q(mt.star,{[mt.starReadonly]:s},"chat__conversationRating__star"),children:R.jsx("div",{role:"radio","aria-checked":e>n?"true":"false","aria-posinset":n+1,"aria-setsize":i,tabIndex:0,onMouseOver:l,onKeyDown:d,onClick:u,children:R.jsx("span",{role:"img","aria-label":"Star",className:q(mt.starIcon),children:R.jsx("svg",{viewBox:"64 64 896 896",focusable:"false","data-icon":"star",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",children:R.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"})})})})})},fg=5,Cv=({value:e,size:n,readonly:i=!1,onChange:s})=>{const[l,u]=U.useState(void 0),d=()=>{u(void 0)},h=E=>()=>{if(!i){const y=E+1;u(y)}},p=E=>()=>{s&&!i&&(s(E===0&&e===1?0:E+1),u(void 0))};return R.jsx("ul",{tabIndex:0,role:"radiogroup",className:q(mt.stars,{[mt.starsSmall]:n==="small",[mt.starsLarge]:n==="large"},"chat__conversationRating__stars",{chat__conversationRating__stars__small:n==="small",chat__conversationRating__stars__large:n==="large"}),onMouseOut:d,children:Array(fg).fill(0).map((E,y)=>R.jsx(f2,{value:l===void 0?e:l,index:y,count:fg,readonly:i,onHover:h(y),onClick:p(y)},y))})},d2=({visible:e,onRate:n})=>{const i=$t();return e?R.jsxs("div",{className:q(mt.callToActionContainer,"chat__conversationRating__callToAction"),children:[R.jsx("div",{className:q(mt.callToActionTitle,"chat__conversationRating__callToAction__title"),children:i("conversation-rating.call-to-action.title")}),R.jsx(Cv,{value:0,size:"small",onChange:n})]}):null},dg=({isFirstMessageBySender:e,isLastMessageBySender:n,children:i})=>R.jsxs("div",{className:q(pe.message,pe.messageBot,e&&pe.messageBotFirst,n&&pe.messageBotLast,"chat__bubbleContainer","chat__botBubbleContainer",e&&"chat__bubbleContainer--first",n&&"chat__bubbleContainer--last"),children:[R.jsx("img",{className:q(pe.avatar,pe.botAvatar),src:"bot.svg",alt:"Bot"}),R.jsx("div",{className:q(pe.bubble,pe.bubbleLeft,"chat__bubble","chat__botBubble"),children:R.jsx("div",{className:q(pe.leftText,pe.bubbleContent),children:i})})]}),h2=({children:e})=>R.jsx("div",{className:q(pe.message,pe.messageGuest,pe.messageGuestFirst,pe.messageGuestLast,"chat__bubbleContainer","chat__guestBubbleContainer","chat__bubbleContainer--first","chat__bubbleContainer--last"),children:R.jsx("div",{className:q(pe.bubble,pe.bubbleRight,"chat__bubble","chat__guestBubble"),children:R.jsx("div",{className:q(pe.rightText,pe.bubbleContent),children:e})})}),p2=({visible:e,rating:n,onRate:i,onClose:s})=>{const l=$t(),[u,d]=U.useState(n),[h,p]=U.useState(void 0),[E,y]=U.useState(void 0),[w,m]=U.useState({submitted:!1,feedback:""}),[_,v]=U.useState(!1),k=U.useRef(null);U.useEffect(()=>{e?(m({submitted:!1,feedback:""}),y(e)):E===!0&&y(!1)},[e,E]),U.useEffect(()=>{d(n)},[n]),U.useEffect(()=>{const N=l(`conversation-rating.overlay.bot-message.rate-feedback.value-${u}`);p(N!=null&&N.length?N:void 0)},[u,l]),U.useEffect(()=>{w.submitted?setTimeout(()=>v(!0),w.feedback.length?500:0):v(!1)},[w]);const x=N=>{var S,T;N.preventDefault();const O=((T=(S=k.current)==null?void 0:S.value)==null?void 0:T.trim())||"";i(u,O),m({submitted:!0,feedback:O})};return R.jsx("div",{className:q(mt.rateOverlay,Tr.bottomSheet,"chat__conversationRating__overlay",{[Tr.bottomSheetOpen]:E===!0,[Tr.bottomSheetClose]:E===!1}),children:R.jsxs("form",{onSubmit:x,children:[R.jsxs("div",{className:q(mt.body,"chat__conversationRating__overlay__body"),children:[R.jsxs("div",{children:[R.jsx("h2",{children:l("conversation-rating.overlay.title")}),R.jsxs("div",{className:q(mt.starsDescriptionContainer),children:[R.jsx(Cv,{value:u,size:"large",readonly:w.submitted,onChange:d}),R.jsxs("div",{className:q(mt.starsDescription),children:[R.jsx("div",{children:l("conversation-rating.overlay.star.very-bad")}),R.jsx("div",{children:l("conversation-rating.overlay.star.very-good")})]})]})]}),R.jsx("div",{className:q(mt.bubbles),children:e&&h&&R.jsxs(R.Fragment,{children:[R.jsx(dg,{isFirstMessageBySender:!0,isLastMessageBySender:!_||!!w.feedback.length,children:R.jsx("div",{children:h})}),!!w.feedback.length&&R.jsx(h2,{children:w.feedback}),_&&R.jsx(dg,{isFirstMessageBySender:!!w.feedback.length,isLastMessageBySender:!0,children:R.jsx("div",{children:l("conversation-rating.overlay.bot-message.submit-feedback")})})]})})]}),R.jsxs("div",{className:q(mt.footer,"chat__conversationRating__overlay__footer"),children:[!w.submitted&&R.jsx("input",{ref:k,placeholder:l("conversation-rating.overlay.guest-feedback.input-placeholder")}),R.jsx("div",{className:q(mt.actions,"chat__conversationRating__overlay__footer__actions"),children:w.submitted?R.jsx("button",{type:"button",className:q(it.button,it.buttonPrimary),onClick:s,children:l("conversation-rating.overlay.action.close")}):R.jsx("button",{type:"submit",className:q(it.button,it.buttonPrimary),children:l("conversation-rating.overlay.action.submit")})})]})]})})},m2=({conversationRating:{enabled:e,rating:n},numberOfMessagesFromGuest:i,showRatingOverlay:s,setShowRatingOverlay:l,onRate:u})=>{const[d,h]=U.useState(0),p=w=>{h(w),l(!0)},E=()=>l(!1),y=!n&&i>=1;return e?R.jsxs(R.Fragment,{children:[R.jsx(d2,{visible:y,onRate:p}),R.jsx(p2,{visible:s,rating:d,onRate:u,onClose:E})]}):null},g2="_inputWrapper_1o8hf_5",y2="_messageInputWrapper_1o8hf_14",v2="_messageInput_1o8hf_14",_2="_buttons_1o8hf_36",E2="_button_1o8hf_36",Qn={inputWrapper:g2,messageInputWrapper:y2,messageInput:v2,buttons:_2,button:E2},S2="_audioRecorder_xps9k_5",b2="_recordButton_xps9k_10",w2="_submitButton_xps9k_37",x2="_cancelButton_xps9k_64",T2="_recorderIcon_xps9k_91",C2="_pulse_xps9k_1",k2="_spinning_xps9k_113",R2="_spin_xps9k_113",mn={audioRecorder:S2,recordButton:b2,submitButton:w2,cancelButton:x2,recorderIcon:T2,pulse:C2,spinning:k2,spin:R2},hg=2048,Zs=16e3;class O2 extends wr.Component{constructor(i){super(i);we(this,"audioInput",null);we(this,"volume",null);we(this,"leftchannel",[]);we(this,"recorder",null);we(this,"recordingLength",0);we(this,"sampleRate",null);we(this,"mediaStream",null);this.state={recordingState:"none"},this.triggerAudioRecording=this.triggerAudioRecording.bind(this),this.triggerAudioRecordingSuccess=this.triggerAudioRecordingSuccess.bind(this),this.initRecording=this.initRecording.bind(this),this.processRecordingInput=this.processRecordingInput.bind(this),this.handleClickSubmitAudio=this.handleClickSubmitAudio.bind(this),this.handleClickStopAudio=this.handleClickStopAudio.bind(this)}triggerAudioRecording(){this.setState({recordingState:"connecting"}),navigator.mediaDevices.getUserMedia({audio:!0,video:!1}).then(this.triggerAudioRecordingSuccess)}triggerAudioRecordingSuccess(i){this.mediaStream=i,this.leftchannel.length=0,this.recordingLength=0,this.initRecording(i)}initRecording(i){const s=window.AudioContext||window.webkitAudioContext,l=new s;this.sampleRate=l.sampleRate,this.volume=l.createGain(),this.audioInput=l.createMediaStreamSource(i),this.audioInput.connect(this.volume),this.recorder=l.createScriptProcessor(hg,1,1),this.recorder.onaudioprocess=this.processRecordingInput,this.volume.connect(this.recorder),this.recorder.connect(l.destination)}processRecordingInput(i){if(this.state.recordingState==="connecting"&&this.setState({recordingState:"recording"}),this.state.recordingState!=="none"){const s=i.inputBuffer.getChannelData(0);this.leftchannel.push(new Float32Array(s)),this.recordingLength+=hg}}handleClickSubmitAudio(){const i=A2(this.leftchannel,this.recordingLength),s=I2(i,this.sampleRate||0),l=N2(s);this.props.onAudioRecorded(l),this.handleClickStopAudio()}handleClickStopAudio(){var i,s,l,u;this.setState({recordingState:"none"}),(i=this.audioInput)==null||i.disconnect(),(s=this.volume)==null||s.disconnect(),(l=this.recorder)==null||l.disconnect(),this.mediaStream&&((u=this.mediaStream)==null||u.getAudioTracks().forEach(d=>{d.stop()}))}render(){return R.jsxs("div",{className:mn.audioRecorder,children:[this.state.recordingState==="none"&&R.jsx("button",{className:q(mn.recordButton,"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:R.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",children:[R.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"}),R.jsx("path",{d:"M0 0h24v24H0z",fill:"none"})]})}),this.state.recordingState==="connecting"&&R.jsxs("svg",{className:mn.spinning,xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",children:[R.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"}),R.jsx("path",{d:"M0 0h24v24H0z",fill:"none"})]}),this.state.recordingState==="recording"&&R.jsxs("div",{className:mn.audioRecorder,children:[R.jsx("button",{className:q(mn.cancelButton),onClick:this.handleClickStopAudio,"aria-label":this.props.translate("message-input.actions.stop-audio-recording.label"),tabIndex:0,children:R.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",children:[R.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"}),R.jsx("path",{d:"M0 0h24v24H0z",fill:"none"})]})}),R.jsx("div",{className:mn.recorderIcon}),R.jsx("button",{className:q(mn.submitButton),type:"submit",onClick:this.handleClickSubmitAudio,"aria-label":this.props.translate("message-input.actions.submit-audio-recording.label"),tabIndex:0,autoFocus:!0,children:R.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",children:[R.jsx("path",{d:"M0 0h24v24H0z",fill:"none"}),R.jsx("path",{d:"M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"})]})})]})]})}}const N2=e=>{const n=new ArrayBuffer(44+e.length*2),i=new DataView(n);Fs(i,0,"RIFF"),i.setUint32(4,44+e.length*2,!0),Fs(i,8,"WAVE"),Fs(i,12,"fmt "),i.setUint32(16,16,!0),i.setUint16(20,1,!0),i.setUint16(22,1,!0),i.setUint32(24,Zs,!0),i.setUint32(28,Zs*4,!0),i.setUint16(32,4,!0),i.setUint16(34,16,!0),Fs(i,36,"data"),i.setUint32(40,e.length*2,!0);const s=e.length;let l=44;const u=1;for(let d=0;d<s;d++)i.setInt16(l,e[d]*(32767*u),!0),l+=2;return new Blob([i],{type:"audio/wav"})},Fs=(e,n,i)=>{for(let s=0;s<i.length;s++)e.setUint8(n+s,i.charCodeAt(s))},A2=(e,n)=>{const i=new Float32Array(n);let s=0;const l=e.length;for(let u=0;u<l;u++){const d=e[u];i.set(d,s),s+=d.length}return i},I2=(e,n)=>{if(Zs===n)return e;const i=n/Zs,s=Math.round(e.length/i),l=new Float32Array(s);let u=0,d=0;for(;u<l.length;){const h=Math.round((u+1)*i);let p=0,E=0;for(let y=d;y<h&&y<e.length;y++)p+=e[y],E++;l[u]=p/E,u++,d=h}return l},P2=({speechSupport:e,transcriptExportEnabled:n,disabled:i,onTextInput:s,onAudioRecorded:l,onOpenTranscriptExportModal:u})=>{const d=$t(),[h,p]=U.useState(!1),E=U.useRef(null),y=()=>{const v=E.current;v&&v.value.trim().length>=1&&s(v.value.trim())&&(v.value="",v.style.height="",p(!1),v.focus())},w=v=>{v.preventDefault(),y()},m=v=>{const k=v.target.value.trim();p(k.length>0),v.target.style.height="";const{scrollHeight:x}=v.target;v.target.style.height=`${x>150?150:x}px`},_=v=>{v.code==="Enter"&&!v.shiftKey&&(v.repeat||y(),v.preventDefault())};return R.jsxs("form",{className:q(Qn.inputWrapper,"chat__textInput"),onSubmit:w,children:[R.jsx("div",{className:Qn.messageInputWrapper,children:R.jsx("textarea",{id:"user_input",ref:E,className:Qn.messageInput,tabIndex:0,placeholder:d("message-input-placeholder"),onChange:m,onKeyDown:_,"aria-label":d("message-input-label")})}),R.jsxs("div",{className:q(Qn.buttons,"chat__buttons"),children:[!h&&n&&R.jsx("button",{type:"button",className:q(Qn.button,"chat__button"),"aria-label":d("message-input.actions.export-transcript.label"),"data-title":d("message-input.actions.export-transcript.label"),tabIndex:0,onClick:u,children:R.jsx("svg",{viewBox:"64 64 896 896",focusable:"false",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",children:R.jsx("path",{d:"M456 231a56 56 0 10112 0 56 56 0 10-112 0zm0 280a56 56 0 10112 0 56 56 0 10-112 0zm0 280a56 56 0 10112 0 56 56 0 10-112 0z"})})}),h||!e||navigator.mediaDevices===void 0?R.jsx("button",{className:q(Qn.button,"chat__button"),type:"submit","aria-label":d("message-input.actions.submit.label"),"data-title":d("message-input.actions.submit.label"),tabIndex:0,disabled:i,children:R.jsx("svg",{viewBox:"64 64 896 896",focusable:"false",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",children:R.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"})})}):e&&navigator.mediaDevices!==void 0&&R.jsx(O2,{translate:d,onAudioRecorded:l})]})]})},D2="_quickReplies_11l22_1",M2="_quickReply_11l22_9",pg={quickReplies:D2,quickReply:M2},F2=({quickReplies:e,onQuickReplyClick:n})=>e.length?R.jsx("div",{className:q(pg.quickReplies,"chat__quickReplies"),children:e.map(i=>R.jsx("button",{tabIndex:0,className:q(pg.quickReply,it.button,"chat__button","chat__quickReply"),onClick:()=>n(i),children:i.label},i.label))}):null,mg=5e3,L2=1e3,B2=({isBotTyping:e,quickReplies:n,speechSupport:i,transcriptExportEnabled:s,conversationRating:l,numberOfMessagesFromGuest:u,showRatingOverlay:d,setShowRatingOverlay:h,onTextInput:p,onRate:E,onQuickReplyClick:y,onAudioRecorded:w,onOpenTranscriptExportModal:m})=>{const[_,v]=U.useState(!1),k=U.useRef(),x=U.useRef(0);U.useEffect(()=>{if(_&&!e){const O=k.current?Date.now()-k.current:0;O>mg?v(!1):setTimeout(()=>{v(!1)},mg-O)}},[_,e]),U.useEffect(()=>{_&&(k.current=Date.now())},[_]);const N=O=>{const S=Date.now()-x.current<L2;return e||S?(v(!0),!1):(p(O),x.current=Date.now(),!0)};return R.jsxs("div",{className:q(LC.inputContainer),children:[R.jsx(F2,{quickReplies:n,onQuickReplyClick:y}),R.jsx(zC,{visible:_}),!_&&R.jsx(m2,{conversationRating:l,numberOfMessagesFromGuest:u,onRate:E,showRatingOverlay:d,setShowRatingOverlay:h}),R.jsx(P2,{onTextInput:N,onAudioRecorded:w,speechSupport:i,onOpenTranscriptExportModal:m,transcriptExportEnabled:s,disabled:_})]})},j2=({clientName:e,messages:n,quickReplies:i,isBotTyping:s,drawerContentUrl:l,speechSupport:u,transcriptExportEnabled:d,conversationRating:h,showGeneralConditions:p,onMessageFromUser:E,onRate:y,onQuickReplyClick:w,onButtonClick:m,onLinkClick:_,onAudioRecorded:v,onTranscriptExport:k,onPdfExport:x,onTranscriptItemReaction:N})=>{const O=qc(),S=_n(te=>te.connection.connectionState),[T,C]=U.useState(!1),[L,H]=U.useState(!1),W=d.email||d.pdf,se=n.filter(te=>te.sender.type===ev.GUEST).length;return U.useEffect(()=>{if(S===vn.CONNECTED){const te=Xc.parse(window.location.search);O(Jy(e,te))}},[e,S,O]),R.jsxs("div",{children:[R.jsxs("div",{className:`${Pw.chatcontent} ${T||L?it.accessabilityHidden:""}`,children:[R.jsx(gC,{messages:n,isBotTyping:s,showGeneralConditions:p,onButtonClick:m,onLinkClick:_,onTranscriptItemReaction:N}),R.jsx(B2,{isBotTyping:s,quickReplies:s?[]:i,numberOfMessagesFromGuest:se,speechSupport:u,transcriptExportEnabled:W,conversationRating:T?{enabled:!1}:h,showRatingOverlay:L,setShowRatingOverlay:H,onRate:y,onQuickReplyClick:w,onTextInput:E,onAudioRecorded:v,onOpenTranscriptExportModal:()=>C(!T)}),R.jsx(kC,{})]}),W&&R.jsx(MC,{methods:d,visible:T,onEmailExport:k,onPdfExport:x,onClose:()=>C(!1)}),R.jsx(wC,{contentUrl:l})]})},z2=e=>{const{messages:n,quickReplies:i,isBotTyping:s,drawerContentUrl:l,speechSupport:u,transcriptExportEnabled:d,conversationRating:h,showGeneralConditions:p}=e.chat;return{messages:n,quickReplies:i,isBotTyping:s,drawerContentUrl:l,speechSupport:u,transcriptExportEnabled:d,conversationRating:h,showGeneralConditions:p}},U2=e=>({onRestartChat:(n,i)=>e(pf(n,i)),onMessageFromUser:n=>e(Py(n)),onRate:(n,i)=>e(Sb(n,i)),onAudioRecorded:n=>e(hb(n)),onActionFromUser:n=>e(n),onQuickReplyClick:n=>e(Iy(n)),onNluEvent:n=>e(Fy(n)),onButtonClick:n=>e(wb(n)),onLinkClick:n=>e(xb(n)),onTranscriptExport:n=>e(yb(n)),onPdfExport:()=>e(_b()),onTranscriptItemReaction:(n,i)=>e(ge.transcriptItemGuestReaction(n,i||null))}),H2=Q1(z2,U2)(j2),G2="_chatwindow_phukm_1",$2="_chatcontent_phukm_13",q2={chatwindow:G2,chatcontent:$2},V2="_container_ophni_2",W2="_body_ophni_8",X2="_intro_ophni_13",Q2="_footer_ophni_34",K2="_startChatButton_ophni_38",Y2="_formFields_ophni_42",Z2="_formField_ophni_42",J2="_radio_ophni_54",ek="_checkbox_ophni_61",tk="_input_ophni_69",rk="_inputLabel_ophni_99",nk="_selectWrapper_ophni_103",ik="_select_ophni_103",ok="_selectLabel_ophni_145",gt={container:V2,body:W2,intro:X2,footer:Q2,startChatButton:K2,formFields:Y2,formField:Z2,radio:J2,checkbox:ek,input:tk,inputLabel:rk,selectWrapper:nk,select:ik,selectLabel:ok},sk=({name:e,label:n,defaultValue:i,required:s,onChange:l})=>{const u=d=>{l(d.currentTarget.checked?"true":"false")};return R.jsxs("label",{className:q(gt.checkbox,"chat__startScreen__checkbox"),htmlFor:e,children:[R.jsx("input",{type:"checkbox",id:e,name:e,defaultChecked:i==="true",required:s,onChange:u}),R.jsx("div",{children:n})]})},ak=({type:e,name:n,label:i,defaultValue:s,placeholder:l,required:u,multiple:d,min:h,max:p,pattern:E,onChange:y})=>{const w=m=>{y(m.target.value)};return R.jsxs("label",{className:q(gt.input,"chat__startScreen__input"),htmlFor:n,children:[R.jsx("div",{className:q(gt.inputLabel),children:i}),R.jsx("input",{type:e,id:n,name:n,defaultValue:s,placeholder:l,required:u,multiple:d,min:h,max:p,pattern:E,onChange:w})]})},lk=({name:e,value:n,label:i,defaultChecked:s,required:l,onChange:u})=>{const d=`${e}-${n}`,h=p=>{u(p.target.value)};return R.jsxs("label",{className:q(gt.radio,"chat__startScreen__radio"),htmlFor:d,children:[R.jsx("input",{id:d,type:"radio",name:e,value:n,defaultChecked:s,required:l,onChange:h}),R.jsx("span",{className:q(gt.label),children:i})]})},uk=({name:e,label:n,defaultValue:i,required:s,multiple:l,options:u,onChange:d})=>{const h=p=>{d(p.target.value)};return R.jsxs("label",{className:q(gt.select,"chat__startScreen__select"),htmlFor:e,children:[R.jsx("div",{className:q(gt.selectLabel),children:n}),R.jsx("div",{className:q(gt.selectWrapper),children:R.jsx("select",{id:e,name:e,defaultValue:i,required:s,multiple:l,onChange:h,children:Object.entries(u||{}).map(([p,E])=>R.jsx("option",{value:p,selected:E===i,children:E}))})})]})},ck="start-screen.intro",fk="start-screen.start-chat",er="start-screen.form",gg=`${er}.fields`,dk=()=>{const e=$t(),n=qc(),[i,s]=U.useState({}),l=()=>{const y=Object.entries(i).reduce((w,[m,_])=>({...w,[m]:_.value}),{});n(fw(y))},u=e(ck),d=e(fk),h=U.useMemo(()=>{var y;return((y=e(gg))==null?void 0:y.split(";").map(w=>w.trim()))??[]},[e(gg)]);U.useEffect(()=>{s(h.reduce((y,w)=>({...y,[w]:pk(w,e)}),{}))},[e,h]);const p=y=>{y.preventDefault(),l()},E=y=>w=>{s(m=>({...m,[y]:{...m[y],value:w}}))};return R.jsxs("form",{onSubmit:p,className:q(gt.container,"chat__startScreen"),children:[R.jsxs("div",{className:q(gt.body,"chat__startScreen__body"),children:[u&&R.jsx("div",{className:q(gt.intro,"chat__startScreen__intro"),children:R.jsx(Kr,{options:{overrides:{a:hk}},children:u})}),R.jsx("div",{className:q(gt.formFields,"chat__startScreen__fields"),children:Object.values(i).map(({type:y,name:w,label:m,placeholder:_,defaultValue:v,options:k,required:x,multiple:N,min:O,max:S,pattern:T})=>R.jsx("div",{className:q(gt.formField,"chat__startScreen__field"),children:(()=>{switch(y){case"radio":return R.jsxs(R.Fragment,{children:[R.jsx("div",{children:m}),Object.entries(k||{}).map(([C,L])=>R.jsx(lk,{name:w,value:C,label:L,defaultChecked:C===v,required:x,onChange:E(w)}))]});case"checkbox":return R.jsx(sk,{name:w,label:m,defaultValue:v,required:x,onChange:E(w)});case"select":return R.jsx(uk,{name:w,label:m,defaultValue:v,required:x,multiple:N,options:k,onChange:E(w)});default:return R.jsx(ak,{type:y,name:w,label:m,placeholder:_,defaultValue:v,required:x,multiple:N,min:O,max:S,pattern:T,onChange:E(w)})}})()},w))})]}),R.jsx("div",{className:q(gt.footer,"chat__startScreen__footer"),children:R.jsx("button",{type:"submit",className:q(it.button,it.buttonPrimary,gt.startChatButton),children:d})})]})},hk=({title:e,href:n,children:i})=>R.jsx("a",{href:n,title:e,target:"_blank",rel:"noopener noreferrer",children:i}),pk=(e,n)=>{const i=n(`${er}.${e}.type`)||"text",s=n(`${er}.${e}.required`)==="true",l=n(`${er}.${e}.multiple`)==="true",u=n(`${er}.${e}.placeholder`),d=n(`${er}.${e}.label`)||"",h=n(`${er}.${e}.defaultValue`),p=n(`${er}.${e}.min`),E=n(`${er}.${e}.max`),y=n(`${er}.${e}.pattern`),w=gk(n(`${er}.${e}.options`));return{name:e,label:d,placeholder:u,value:mk(i,h,w)||"",defaultValue:h,options:w,type:i,required:s,multiple:l,min:p,max:E,pattern:y}},mk=(e,n,i)=>n||e==="select"&&Object.keys(i)[0]||"",gk=(e="")=>e.split(";").map(n=>n.trim()).reduce((n,i)=>{const[s,l]=i.split(":").map(u=>u.trim());return{...n,[s]:l}},{}),yk=()=>{const e=ra();U.useEffect(()=>{window.document.documentElement.lang=e.locale},[e.locale])},Kn={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"},vk=({clientName:e})=>{yk();const n=qc(),i=_n(y=>y.intl.messages),s=$t(),l=_n(y=>y.startScreen.useStartScreen),u=_n(y=>y.startScreen.startScreenStatus),[d,h]=U.useState(void 0);U.useEffect(()=>{const y=Xc.parse(window.location.search);y.cssClassName&&h(y.cssClassName);const w=m=>{switch(m.data.type){case Kn.TRIGGER_ACTION:n(m.data.action);break;case Kn.TRIGGER_STORY:n(Fy(m.data.story));break;case Kn.ON_CHAT_WINDOW_OPEN:n({type:"webclient.chatwindow.opened"});break;case Kn.ON_CHAT_WINDOW_CLOSE:n({type:"webclient.chatwindow.closed"});break;case Kn.CHAT_MESSAGE_FROM_GUEST:n(Py(m.data.text));break;case Kn.RESTART_CHAT:n(pf(e,y));break}};return n(Ew(e,y)),window.addEventListener("message",m=>w(m),!1),()=>window.removeEventListener("message",w)},[e,n]),U.useEffect(()=>{const y=s("header.restart-chat"),w=s("header.close-chat");n(Tb({header:{restartChat:y,closeChat:w}}))},[i,n,s]);const p=l===void 0,E=l===!1||u==="HIDDEN";return R.jsx("div",{className:q(q2.chatwindow,"chat__chatwindow",d),children:p?null:E?R.jsx(H2,{clientName:e}):R.jsx(dk,{})})},_k=()=>{const e=by(),n=_n(s=>s.intl.locale),i=_n(s=>s.intl.messages);return R.jsx(kS,{locale:n,messages:i,children:R.jsx("div",{className:OS.app,children:R.jsx(vk,{clientName:e})})})};var Hu,yg;function yf(){if(yg)return Hu;yg=1;function e(n){var i=typeof n;return n!=null&&(i=="object"||i=="function")}return Hu=e,Hu}var Gu,vg;function Ek(){if(vg)return Gu;vg=1;var e=typeof ds=="object"&&ds&&ds.Object===Object&&ds;return Gu=e,Gu}var $u,_g;function kv(){if(_g)return $u;_g=1;var e=Ek(),n=typeof self=="object"&&self&&self.Object===Object&&self,i=e||n||Function("return this")();return $u=i,$u}var qu,Eg;function Sk(){if(Eg)return qu;Eg=1;var e=kv(),n=function(){return e.Date.now()};return qu=n,qu}var Vu,Sg;function bk(){if(Sg)return Vu;Sg=1;var e=/\s/;function n(i){for(var s=i.length;s--&&e.test(i.charAt(s)););return s}return Vu=n,Vu}var Wu,bg;function wk(){if(bg)return Wu;bg=1;var e=bk(),n=/^\s+/;function i(s){return s&&s.slice(0,e(s)+1).replace(n,"")}return Wu=i,Wu}var Xu,wg;function Rv(){if(wg)return Xu;wg=1;var e=kv(),n=e.Symbol;return Xu=n,Xu}var Qu,xg;function xk(){if(xg)return Qu;xg=1;var e=Rv(),n=Object.prototype,i=n.hasOwnProperty,s=n.toString,l=e?e.toStringTag:void 0;function u(d){var h=i.call(d,l),p=d[l];try{d[l]=void 0;var E=!0}catch{}var y=s.call(d);return E&&(h?d[l]=p:delete d[l]),y}return Qu=u,Qu}var Ku,Tg;function Tk(){if(Tg)return Ku;Tg=1;var e=Object.prototype,n=e.toString;function i(s){return n.call(s)}return Ku=i,Ku}var Yu,Cg;function Ck(){if(Cg)return Yu;Cg=1;var e=Rv(),n=xk(),i=Tk(),s="[object Null]",l="[object Undefined]",u=e?e.toStringTag:void 0;function d(h){return h==null?h===void 0?l:s:u&&u in Object(h)?n(h):i(h)}return Yu=d,Yu}var Zu,kg;function kk(){if(kg)return Zu;kg=1;function e(n){return n!=null&&typeof n=="object"}return Zu=e,Zu}var Ju,Rg;function Rk(){if(Rg)return Ju;Rg=1;var e=Ck(),n=kk(),i="[object Symbol]";function s(l){return typeof l=="symbol"||n(l)&&e(l)==i}return Ju=s,Ju}var ec,Og;function Ok(){if(Og)return ec;Og=1;var e=wk(),n=yf(),i=Rk(),s=NaN,l=/^[-+]0x[0-9a-f]+$/i,u=/^0b[01]+$/i,d=/^0o[0-7]+$/i,h=parseInt;function p(E){if(typeof E=="number")return E;if(i(E))return s;if(n(E)){var y=typeof E.valueOf=="function"?E.valueOf():E;E=n(y)?y+"":y}if(typeof E!="string")return E===0?E:+E;E=e(E);var w=u.test(E);return w||d.test(E)?h(E.slice(2),w?2:8):l.test(E)?s:+E}return ec=p,ec}var tc,Ng;function Nk(){if(Ng)return tc;Ng=1;var e=yf(),n=Sk(),i=Ok(),s="Expected a function",l=Math.max,u=Math.min;function d(h,p,E){var y,w,m,_,v,k,x=0,N=!1,O=!1,S=!0;if(typeof h!="function")throw new TypeError(s);p=i(p)||0,e(E)&&(N=!!E.leading,O="maxWait"in E,m=O?l(i(E.maxWait)||0,p):m,S="trailing"in E?!!E.trailing:S);function T(ae){var Fe=y,Ie=w;return y=w=void 0,x=ae,_=h.apply(Ie,Fe),_}function C(ae){return x=ae,v=setTimeout(W,p),N?T(ae):_}function L(ae){var Fe=ae-k,Ie=ae-x,$e=p-Fe;return O?u($e,m-Ie):$e}function H(ae){var Fe=ae-k,Ie=ae-x;return k===void 0||Fe>=p||Fe<0||O&&Ie>=m}function W(){var ae=n();if(H(ae))return se(ae);v=setTimeout(W,L(ae))}function se(ae){return v=void 0,S&&y?T(ae):(y=w=void 0,_)}function te(){v!==void 0&&clearTimeout(v),x=0,y=k=w=v=void 0}function fe(){return v===void 0?_:se(n())}function de(){var ae=n(),Fe=H(ae);if(y=arguments,w=this,k=ae,Fe){if(v===void 0)return C(k);if(O)return clearTimeout(v),v=setTimeout(W,p),T(k)}return v===void 0&&(v=setTimeout(W,p)),_}return de.cancel=te,de.flush=fe,de}return tc=d,tc}var rc,Ag;function Ak(){if(Ag)return rc;Ag=1;var e=Nk(),n=yf(),i="Expected a function";function s(l,u,d){var h=!0,p=!0;if(typeof l!="function")throw new TypeError(i);return n(d)&&(h="leading"in d?!!d.leading:h,p="trailing"in d?!!d.trailing:p),e(l,u,{leading:h,maxWait:u,trailing:p})}return rc=s,rc}var Ik=Ak();const Pk=Js(Ik);var nc,Ig;function Dk(){if(Ig)return nc;Ig=1;function e(_,v){var k,x;if(typeof v=="function")x=v(_),x!==void 0&&(_=x);else if(Array.isArray(v))for(k=0;k<v.length;k++)x=v[k](_),x!==void 0&&(_=x);return _}function n(_,v){return _[0]==="-"&&Array.isArray(v)&&/^-\d+$/.test(_)?v.length+parseInt(_,10):_}function i(_){return/^\d+$/.test(_)}function s(_){return Object.prototype.toString.call(_)==="[object Object]"}function l(_){return Object(_)===_}function u(_){return Object.keys(_).length===0}var d=["__proto__","prototype","constructor"],h=function(_){return d.indexOf(_)===-1};function p(_,v){_.indexOf("[")>=0&&(_=_.replace(/\[/g,v).replace(/]/g,""));var k=_.split(v),x=k.filter(h);if(x.length!==k.length)throw Error("Refusing to update blacklisted property "+_);return k}var E=Object.prototype.hasOwnProperty;function y(_,v,k,x){if(!(this instanceof y))return new y(_,v,k,x);typeof v>"u"&&(v=!1),typeof k>"u"&&(k=!0),typeof x>"u"&&(x=!0),this.separator=_||".",this.override=v,this.useArray=k,this.useBrackets=x,this.keepArray=!1,this.cleanup=[]}var w=new y(".",!1,!0,!0);function m(_){return function(){return w[_].apply(w,arguments)}}return y.prototype._fill=function(_,v,k,x){var N=_.shift();if(_.length>0){if(v[N]=v[N]||(this.useArray&&i(_[0])?[]:{}),!l(v[N]))if(this.override)v[N]={};else{if(!(l(k)&&u(k)))throw new Error("Trying to redefine `"+N+"` which is a "+typeof v[N]);return}this._fill(_,v[N],k,x)}else{if(!this.override&&l(v[N])&&!u(v[N])){if(!(l(k)&&u(k)))throw new Error("Trying to redefine non-empty obj['"+N+"']");return}v[N]=e(k,x)}},y.prototype.object=function(_,v){var k=this;return Object.keys(_).forEach(function(x){var N=v===void 0?null:v[x],O=p(x,k.separator).join(k.separator);O.indexOf(k.separator)!==-1?(k._fill(O.split(k.separator),_,_[x],N),delete _[x]):_[x]=e(_[x],N)}),_},y.prototype.str=function(_,v,k,x){var N=p(_,this.separator).join(this.separator);return _.indexOf(this.separator)!==-1?this._fill(N.split(this.separator),k,v,x):k[_]=e(v,x),k},y.prototype.pick=function(_,v,k,x){var N,O,S,T,C;for(O=p(_,this.separator),N=0;N<O.length;N++)if(T=n(O[N],v),v&&typeof v=="object"&&T in v){if(N===O.length-1)return k?(S=v[T],x&&Array.isArray(v)?v.splice(T,1):delete v[T],Array.isArray(v)&&(C=O.slice(0,-1).join("."),this.cleanup.indexOf(C)===-1&&this.cleanup.push(C)),S):v[T];v=v[T]}else return;return k&&Array.isArray(v)&&(v=v.filter(function(L){return L!==void 0})),v},y.prototype.delete=function(_,v){return this.remove(_,v,!0)},y.prototype.remove=function(_,v,k){var x;if(this.cleanup=[],Array.isArray(_)){for(x=0;x<_.length;x++)this.pick(_[x],v,!0,k);return k||this._cleanup(v),v}else return this.pick(_,v,!0,k)},y.prototype._cleanup=function(_){var v,k,x,N;if(this.cleanup.length){for(k=0;k<this.cleanup.length;k++)x=this.cleanup[k].split("."),N=x.splice(0,-1).join("."),v=N?this.pick(N,_):_,v=v[x[0]].filter(function(O){return O!==void 0}),this.set(this.cleanup[k],v,_);this.cleanup=[]}},y.prototype.del=y.prototype.remove,y.prototype.move=function(_,v,k,x,N){return typeof x=="function"||Array.isArray(x)?this.set(v,e(this.pick(_,k,!0),x),k,N):(N=x,this.set(v,this.pick(_,k,!0),k,N)),k},y.prototype.transfer=function(_,v,k,x,N,O){return typeof N=="function"||Array.isArray(N)?this.set(v,e(this.pick(_,k,!0),N),x,O):(O=N,this.set(v,this.pick(_,k,!0),x,O)),x},y.prototype.copy=function(_,v,k,x,N,O){return typeof N=="function"||Array.isArray(N)?this.set(v,e(JSON.parse(JSON.stringify(this.pick(_,k,!1))),N),x,O):(O=N,this.set(v,this.pick(_,k,!1),x,O)),x},y.prototype.set=function(_,v,k,x){var N,O,S,T;if(typeof v>"u")return k;for(S=p(_,this.separator),N=0;N<S.length;N++){if(T=S[N],N===S.length-1)if(x&&s(v)&&s(k[T]))for(O in v)E.call(v,O)&&(k[T][O]=v[O]);else if(x&&Array.isArray(k[T])&&Array.isArray(v))for(var C=0;C<v.length;C++)k[S[N]].push(v[C]);else k[T]=v;else(!E.call(k,T)||!s(k[T])&&!Array.isArray(k[T]))&&(/^\d+$/.test(S[N+1])?k[T]=[]:k[T]={});k=k[T]}return k},y.prototype.transform=function(_,v,k){return v=v||{},k=k||{},Object.keys(_).forEach((function(x){this.set(_[x],this.pick(x,v),k)}).bind(this)),k},y.prototype.dot=function(_,v,k){v=v||{},k=k||[];var x=Array.isArray(_);return Object.keys(_).forEach((function(N){var O=x&&this.useBrackets?"["+N+"]":N;if(l(_[N])&&(s(_[N])&&!u(_[N])||Array.isArray(_[N])&&!this.keepArray&&_[N].length!==0))if(x&&this.useBrackets){var S=k[k.length-1]||"";return this.dot(_[N],v,k.slice(0,-1).concat(S+O))}else return this.dot(_[N],v,k.concat(O));else x&&this.useBrackets?v[k.join(this.separator).concat("["+N+"]")]=_[N]:v[k.concat(O).join(this.separator)]=_[N]}).bind(this)),v},y.pick=m("pick"),y.move=m("move"),y.transfer=m("transfer"),y.transform=m("transform"),y.copy=m("copy"),y.object=m("object"),y.str=m("str"),y.set=m("set"),y.delete=m("delete"),y.del=y.remove=m("remove"),y.dot=m("dot"),["override","overwrite"].forEach(function(_){Object.defineProperty(y,_,{get:function(){return w.override},set:function(v){w.override=!!v}})}),["useArray","keepArray","useBrackets"].forEach(function(_){Object.defineProperty(y,_,{get:function(){return w[_]},set:function(v){w[_]=v}})}),y._process=e,nc=y,nc}var Mk=Dk();const Ov={"message-input-label":"Benutzereingabe","message-input-placeholder":"Nachricht","message-input.actions.submit.label":"Nachricht senden","message-input.actions.export-transcript.label":"Konversation exportieren","message-input.actions.start-audio-recording.label":"Spracheingabe starten","message-input.actions.stop-audio-recording.label":"Spracheingabe stoppen","message-input.actions.submit-audio-recording.label":"Spracheingabe übermitteln","guest-bubble.label":"Ihre Nachricht","bot-bubble.label":"Nachricht des Chatbots","bot-bubble.reaction.good":"Gefällt mir","bot-bubble.reaction.bad":"Gefällt mir nicht","bot-bubble.reaction.remove":"Markierung entfernen","bot-bubble.copy":"Kopieren","agent-bubble.label":"Nachricht des Live-Agenten","export-transcript.email.title":"Konversation per E-Mail versenden","export-transcript.email.description":"Geben Sie Ihre E-Mail-Adresse ein, um den Chatverlauf zu erhalten.","export-transcript.email.cancel":"Abbrechen","export-transcript.email.send":"Senden","export-transcript.email.placeholder":"Ihre E-Mail-Adresse","export-transcript.email.invalid":"Bitte gültige E-Mail-Adresse eingeben.","export-transcript.email.success":"Ich habe den Chatverlauf an Ihre E-Mail-Adresse gesendet.","export-transcript.pdf.title":"Konversation als PDF erhalten","export-transcript.pdf.description":"Laden Sie die Konversation als PDF herunter.","export-transcript.pdf.cancel":"Abbrechen","export-transcript.pdf.download":"Herunterladen","general-conditions.header":"**Nutzungsbedingungen**","general-conditions.body":`Bitte berücksichtigen Sie die folgenden Punkte:
|
|
98
|
+
|
|
99
|
+
- Der Chatverlauf wird im EU-Raum gespeichert und kann nur von autorisierten Personen eingesehen werden.
|
|
100
|
+
- Geben Sie im Chatfenster keine persönlichen Daten ein (Passwörter, Geburtsdatum usw.).`,"general-conditions.accept-conditions-note":"Mit der Verwendung des Chats erklären Sie sich mit den Nutzungsbedingungen einverstanden.","block-user-input.title":"Bitte auf die Antwort des Chatbots warten.","conversation-rating.call-to-action.title":"Bewerten Sie diesen Chat","conversation-rating.overlay.title":"Wie zufrieden sind Sie mit diesem Chat?","conversation-rating.overlay.guest-feedback.input-placeholder":"Feedback bitte hier eingeben (optional)","conversation-rating.overlay.star.very-bad":"Sehr schlecht","conversation-rating.overlay.star.very-good":"Sehr gut","conversation-rating.overlay.bot-message.rate-feedback.value-1":"Oh, das tönt nicht gut. Bitte geben Sie mir doch ein schriftliches Feedback, damit ich dazulernen kann.","conversation-rating.overlay.bot-message.rate-feedback.value-2":"Oh, das tönt nicht gut. Bitte geben Sie mir doch ein schriftliches Feedback, damit ich dazulernen kann.","conversation-rating.overlay.bot-message.rate-feedback.value-3":"Durchschnitt ist nicht mein Ziel, was kann ich noch verbessern?","conversation-rating.overlay.bot-message.rate-feedback.value-4":"Knapp daneben ist auch vorbei. Was kann ich noch verbessern, um das nächste Mal alle Sterne zu erreichen?","conversation-rating.overlay.bot-message.rate-feedback.value-5":"Perfekt! Dann hoffe ich, dass ich Sie wieder einmal so gut beraten kann.","conversation-rating.overlay.bot-message.submit-feedback":"Vielen Dank für die Rückmeldung. Ich bin bestrebt, mich ständig zu verbessern.","conversation-rating.overlay.action.submit":"Bewertung senden","conversation-rating.overlay.action.close":"Zurück zum Chat","start-screen.intro":"","start-screen.start-chat":"Chat starten","header.restart-chat":"Chat neu starten","header.close-chat":"Chat minimieren"},Fk={"message-input-label":"User input","message-input-placeholder":"Message","message-input.actions.submit.label":"Send message","message-input.actions.export-transcript.label":"Export conversation","message-input.actions.start-audio-recording.label":"Start voice input","message-input.actions.stop-audio-recording.label":"Stop voice input","message-input.actions.submit-audio-recording.label":"Transmit voice input","guest-bubble.label":"Your message","bot-bubble.label":"Message from the chatbot","bot-bubble.reaction.good":"I like","bot-bubble.reaction.bad":"I don't like it","bot-bubble.reaction.remove":"Remove marker","bot-bubble.copy":"Copy","agent-bubble.label":"Message from the live agent","export-transcript.email.title":"Receive Conversation","export-transcript.email.description":"Enter your email address to receive the chat history.","export-transcript.email.cancel":"Cancel","export-transcript.email.send":"Send","export-transcript.email.placeholder":"Your email address","export-transcript.email.invalid":"Please enter a valid e-mail address.","export-transcript.email.success":"I have sent the chat history to your email address.","export-transcript.pdf.title":"Get conversation as PDF","export-transcript.pdf.description":"Download this conversation as PDF.","export-transcript.pdf.cancel":"Cancel","export-transcript.pdf.download":"Download","general-conditions.header":"**Terms of use**","general-conditions.body":`Please consider the following points:
|
|
101
|
+
|
|
102
|
+
- The chat history is stored in the EU area and can only be viewed by authorized personnel.
|
|
103
|
+
- Do not enter any personal information in the chat window (passwords, date of birth, etc.)`,"general-conditions.accept-conditions-note":"By using the chat you agree to the terms of use.","block-user-input.title":"Please wait for the chatbot's response.","conversation-rating.call-to-action.title":"Rate this chat","conversation-rating.overlay.title":"How satisfied are you with this chat?","conversation-rating.overlay.guest-feedback.input-placeholder":"Please enter feedback here (optional)","conversation-rating.overlay.star.very-bad":"Very bad","conversation-rating.overlay.star.very-good":"Very good","conversation-rating.overlay.bot-message.rate-feedback.value-1":"Oh, that doesn't sound good. Please give me some feedback so that I can learn more.","conversation-rating.overlay.bot-message.rate-feedback.value-2":"Oh, that doesn't sound good. Please give me some feedback so that I can learn more.","conversation-rating.overlay.bot-message.rate-feedback.value-3":"Average is not my goal, what can I still improve?","conversation-rating.overlay.bot-message.rate-feedback.value-4":"Just missed is also over. What can I improve to achieve all stars next time?","conversation-rating.overlay.bot-message.rate-feedback.value-5":"Perfect! Then I hope that I can once again advise you so well.","conversation-rating.overlay.bot-message.submit-feedback":"Thank you for the feedback. I am constantly striving to improve.","conversation-rating.overlay.action.submit":"Send rating","conversation-rating.overlay.action.close":"Close","start-screen.intro":"","start-screen.start-chat":"Start chat","header.restart-chat":"Restart chat","header.close-chat":"Minimize chat"},Lk={"message-input-label":"Input dell'utente","message-input-placeholder":"Entrée utilisateur","message-input.actions.submit.label":"Envoyer un message","message-input.actions.export-transcript.label":"Exporter la conversation","message-input.actions.start-audio-recording.label":"Démarrer la saisie vocale","message-input.actions.stop-audio-recording.label":"Arrêt de la saisie vocale","message-input.actions.submit-audio-recording.label":"Transmettre une entrée vocale","guest-bubble.label":"Votre message","bot-bubble.label":"Message du chatbot","bot-bubble.reaction.good":"J'aime bien","bot-bubble.reaction.bad":"Je n'aime pas","bot-bubble.reaction.remove":"Retirer le marqueur","bot-bubble.copy":"Copie","agent-bubble.label":"Message de l'agent en direct","export-transcript.email.title":"Recevoir conversation","export-transcript.email.description":"Entrez votre adresse électronique pour recevoir l'historique du chat.","export-transcript.email.cancel":"Annuler","export-transcript.email.send":"Envoyer","export-transcript.email.placeholder":"Votre adresse électronique","export-transcript.email.invalid":"Veuillez entrer une adresse électronique valide.","export-transcript.email.success":"J'ai envoyé l'historique du chat à votre adresse électronique.","export-transcript.pdf.title":"Recevoir la conversation en PDF","export-transcript.pdf.description":"Téléchargez la conversation en format PDF.","export-transcript.pdf.cancel":"Annuler","export-transcript.pdf.download":"Télécharger","general-conditions.header":"**Conditions d'utilisation**","general-conditions.body":`Veuillez considérer les points suivants:
|
|
104
|
+
|
|
105
|
+
- L'historique du chat est stocké dans l'espace UE et ne peut être consulté que par les personnes autorisées.
|
|
106
|
+
- Ne saisissez aucune information personnelle dans la fenêtre de chat (mots de passe, date de naissance, etc.).`,"general-conditions.accept-conditions-note":"En utilisant le chat, vous acceptez les conditions d'utilisation.","block-user-input.title":"Veuillez attendre la réponse du chatbot.","conversation-rating.call-to-action.title":"Notez ce chat","conversation-rating.overlay.title":"Dans quelle mesure êtes-vous satisfait de ce chat ?","conversation-rating.overlay.guest-feedback.input-placeholder":"Veuillez saisir vos commentaires ici (facultatif)","conversation-rating.overlay.star.very-bad":"Très mauvais","conversation-rating.overlay.star.very-good":"Très bien","conversation-rating.overlay.bot-message.rate-feedback.value-1":"Oh, ça ne sonne pas bien. Merci de me donner un feedback pour que je puisse en apprendre davantage.","conversation-rating.overlay.bot-message.rate-feedback.value-2":"Oh, ça ne sonne pas bien. Merci de me donner un feedback pour que je puisse en apprendre davantage.","conversation-rating.overlay.bot-message.rate-feedback.value-3":"La moyenne n'est pas mon objectif, que puis-je encore améliorer ?","conversation-rating.overlay.bot-message.rate-feedback.value-4":"Le rater de peu, c'est le rater aussi. Que puis-je encore améliorer pour obtenir toutes les étoiles la prochaine fois ?","conversation-rating.overlay.bot-message.rate-feedback.value-5":"Parfait ! Alors j'espère pouvoir vous conseiller aussi bien une fois de plus.","conversation-rating.overlay.bot-message.submit-feedback":"Merci beaucoup pour votre feed-back. Je m'efforce de m'améliorer en permanence.","conversation-rating.overlay.action.submit":"Envoyer","conversation-rating.overlay.action.close":"Fermer","start-screen.intro":"","start-screen.start-chat":"Démarrer le chat","header.restart-chat":"Redémarrer le chat","header.close-chat":"Minimiser le chat"},Bk={"message-input-label":"Input dell'utente","message-input-placeholder":"Messaggio","message-input.actions.submit.label":"Invia messaggio","message-input.actions.export-transcript.label":"Esportare la conversazione","message-input.actions.start-audio-recording.label":"Avviare l'input vocale","message-input.actions.stop-audio-recording.label":"Interrompere l'input vocale","message-input.actions.submit-audio-recording.label":"Trasmettere l'input vocale","guest-bubble.label":"Il tuo messaggio","bot-bubble.label":"Messaggio del chatbot","bot-bubble.reaction.good":"Mi piace","bot-bubble.reaction.bad":"Non mi piace","bot-bubble.reaction.remove":"Rimuovere il marcatore","bot-bubble.copy":"Copia","agent-bubble.label":"Messaggio dell'agente dal vivo","export-transcript.email.title":"Ricevere la conversazione","export-transcript.email.description":"Inserisci il tuo indirizzo e-mail per ricevere la cronologia della chat.","export-transcript.email.cancel":"Annulla","export-transcript.email.send":"Invia","export-transcript.email.placeholder":"Il tuo indirizzo e-mail","export-transcript.email.invalid":"Inserire un indirizzo e-mail valido.","export-transcript.email.success":"Ho inviato la cronologia della chat al vostro indirizzo e-mail.","export-transcript.pdf.title":"Ricevi la conversazione come PDF","export-transcript.pdf.description":"Scarica questa conversazione in PDF.","export-transcript.pdf.cancel":"Annulla","export-transcript.pdf.download":"Scaricare","general-conditions.header":"**Condizioni di utilizzo**","general-conditions.body":`Si prega di considerare i seguenti punti:
|
|
107
|
+
|
|
108
|
+
- La cronologia delle chat è memorizzata nell'area UE e può essere visualizzata solo da persone autorizzate.
|
|
109
|
+
- Non inserire dati personali nella finestra di chat (password, data di nascita, ecc.).`,"general-conditions.accept-conditions-note":"Utilizzando la chat si accettano le condizioni d'uso.","block-user-input.title":"Attendere la risposta del chatbot.","conversation-rating.call-to-action.title":"Valuta questa chat","conversation-rating.overlay.title":"Quanto sei soddisfatto di questa chat?","conversation-rating.overlay.guest-feedback.input-placeholder":"Inserisci qui il tuo feedback (opzionale)","conversation-rating.overlay.star.very-bad":"Molto male","conversation-rating.overlay.star.very-good":"Molto buono","conversation-rating.overlay.bot-message.rate-feedback.value-1":"Oh, non suona bene. Vi prego di darmi un feedback in modo che possa imparare di più.","conversation-rating.overlay.bot-message.rate-feedback.value-2":"Oh, non suona bene. Vi prego di darmi un feedback in modo che possa imparare di più.","conversation-rating.overlay.bot-message.rate-feedback.value-3":"La media non è il mio obiettivo, cosa posso ancora migliorare?","conversation-rating.overlay.bot-message.rate-feedback.value-4":"Anche l'assenza è finita. Cosa posso migliorare per ottenere tutte le stelle la prossima volta?","conversation-rating.overlay.bot-message.rate-feedback.value-5":"Perfetto! Allora spero di potervi consigliare ancora una volta bene.","conversation-rating.overlay.bot-message.submit-feedback":"Grazie mille per il feedback. Mi impegno costantemente per migliorare.","conversation-rating.overlay.action.submit":"Invia","conversation-rating.overlay.action.close":"Chiudere","start-screen.intro":"","start-screen.start-chat":"Avviare la chat","header.restart-chat":"Riavviare la chat","header.close-chat":"Ridurre al minimo la chat"},jk=["de","en","fr","it"],Nv={locale:"de",messages:Ov},zk=(e,n)=>{if(jk.includes(e)){const i=Uk(e),s=Mk.dot(n);return{...i,...s}}return n},Uk=e=>{switch(e.toString()){case"en":return Fk;case"fr":return Lk;case"it":return Bk;default:return Ov}},Hk=(e=Gk,n)=>{switch(n.type){case uf:return Object.assign({},e,{connectionState:vn.CONNECTING});case cf:return Object.assign({},e,{connectionState:vn.CONNECTED});case ff:return Object.assign({},e,{connectionState:vn.DISCONNECTED});case df:return Object.assign({},e,{connectionState:vn.RECONNECTED});case hf:return Object.assign({},e,{sessionId:n.sessionId});case la:return Object.assign({},e,{sessionId:n.payload.sessionId,userId:n.payload.userId});case ua:return Object.assign({},e,{sessionId:void 0});default:return e}},Gk={connectionState:vn.DISCONNECTED,sessionId:void 0,userId:void 0},$k=(e=Dg,n)=>{switch(n.type){case Zy:return Dg;case la:return Yn({type:"webclient.chat.started"}),e;case ua:return Yn({type:"webclient.chat.ended"}),e;case ge.ActionTypes.TYPING_ON:return Object.assign({},e,{isBotTyping:!0});case ge.ActionTypes.TYPING_OFF:return Object.assign({},e,{isBotTyping:!1});case ge.ActionTypes.MESSAGE_FROM_GUEST:case ge.ActionTypes.MESSAGE_WITHOUT_ANALYSIS_FROM_GUEST:return Pg(e,n.message);case ge.ActionTypes.MESSAGE_TO_GUEST:{Yn(n);const i=Object.assign({},n.message,{_id:n.meta.actionId}),s=e.messages.filter(l=>l._id===n.meta.actionId).length>0;return Object.assign({},e,{isBotTyping:!1,messages:s?e.messages:e.messages.concat([i]),quickReplies:i.quickReplies?i.quickReplies:[]})}case Yc:{const i=n.messages,s=i.length?i[i.length-1]:void 0;return Object.assign({},e,{isBotTyping:!1,messages:i,quickReplies:(s==null?void 0:s.quickReplies)||[]})}case na:return Yn(n.message),e;case ge.ActionTypes.EVENT_TO_GUEST:return Yn(n.event),e;case ge.ActionTypes.DRAWER_OPEN:return Object.assign({},e,{drawerContentUrl:n.payload.parameters.contentUrl});case ge.ActionTypes.DRAWER_CLOSE:return Object.assign({},e,{drawerContentUrl:void 0});case ge.ActionTypes.GUEST_LOCALE_CHANGED:return Object.assign({},e,{locale:n.payload.locale});case Dy:return Yn(n),e;case Jc:return Object.assign({},e,{speechSupport:!0});case tf:{const i=new ge.TextMessage(n.transcription,new ge.GuestUser),s=Object.assign({},i,{_id:Rc()});return Pg(e,s)}case ef:return Object.assign({},e,{transcriptExportEnabled:n.methods});case rf:return Object.assign({},e,{showGeneralConditions:!0});case ge.ActionTypes.TRANSCRIPT_ITEM_GUEST_REACTION:{const i=e.messages.map(s=>s._id===n.payload.actionId?Object.assign({},s,{reaction:n.payload.reaction}):s);return Object.assign({},e,{messages:i})}case nf:{const i={enabled:!0,rating:n.payload.rating};return Object.assign({},e,{conversationRating:i})}case ge.ActionTypes.CONVERSATION_RATING_FROM_GUEST:{const i={...e.conversationRating,rating:n.payload};return Object.assign({},e,{conversationRating:i})}default:return e}},Pg=(e,n)=>{const i=e.messages[e.messages.length-1],s=(i==null?void 0:i.text)===n.text;return i&&i.sender.type===n.sender.type&&s?e:Object.assign({},e,{messages:e.messages.concat([n]),quickReplies:[]})},Yn=e=>{var n;qk()?(n=window.top)==null||n.postMessage(e,"*"):e.type==="webclient.change.url"&&window.open(e.url)},qk=()=>typeof window<"u"&&window.self!==window.top,Dg={messages:[],quickReplies:[],isBotTyping:!1,speechSupport:!1,transcriptExportEnabled:{pdf:!1,email:!1},showGeneralConditions:!1,conversationRating:{enabled:!1}},Av=Ky({name:"intl",initialState:Nv,reducers:{updateIntl:(e,n)=>{e.locale=n.payload.language,e.messages=n.payload.messages}}}),{updateIntl:Vk}=Av.actions,Wk=Av.reducer,Xk=jy({chat:$k,startScreen:hw,connection:Hk,intl:Wk}),Iv="bf-webclient-state-last-saved-at",Pv="bf-webclient-state",Qk=e=>{try{if(!Zk())return;const n=Mg(e,Iv);if(Yk(n))return;{const i=Mg(e,Pv);return i===null?void 0:JSON.parse(i)}}catch(n){console.error(n);return}},Kk=(e,n)=>{try{const i=JSON.stringify(n);Fg(e,Pv,i);const s=new Date().toISOString();Fg(e,Iv,s)}catch(i){console.error(i)}},Yk=e=>{if(e===null)return!1;const n=new Date(e);return n.setHours(n.getHours()+12),new Date>n},Zk=()=>typeof localStorage<"u",Mg=(e,n)=>localStorage.getItem(`${e}_${n}`),Fg=(e,n,i)=>localStorage.setItem(`${e}_${n}`,i),fr=Object.create(null);fr.open="0";fr.close="1";fr.ping="2";fr.pong="3";fr.message="4";fr.upgrade="5";fr.noop="6";const Us=Object.create(null);Object.keys(fr).forEach(e=>{Us[fr[e]]=e});const Ac={type:"error",data:"parser error"},Dv=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",Mv=typeof ArrayBuffer=="function",Fv=e=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e&&e.buffer instanceof ArrayBuffer,vf=({type:e,data:n},i,s)=>Dv&&n instanceof Blob?i?s(n):Lg(n,s):Mv&&(n instanceof ArrayBuffer||Fv(n))?i?s(n):Lg(new Blob([n]),s):s(fr[e]+(n||"")),Lg=(e,n)=>{const i=new FileReader;return i.onload=function(){const s=i.result.split(",")[1];n("b"+(s||""))},i.readAsDataURL(e)};function Bg(e){return e instanceof Uint8Array?e:e instanceof ArrayBuffer?new Uint8Array(e):new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}let ic;function Jk(e,n){if(Dv&&e.data instanceof Blob)return e.data.arrayBuffer().then(Bg).then(n);if(Mv&&(e.data instanceof ArrayBuffer||Fv(e.data)))return n(Bg(e.data));vf(e,!1,i=>{ic||(ic=new TextEncoder),n(ic.encode(i))})}const jg="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Yi=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let e=0;e<jg.length;e++)Yi[jg.charCodeAt(e)]=e;const eR=e=>{let n=e.length*.75,i=e.length,s,l=0,u,d,h,p;e[e.length-1]==="="&&(n--,e[e.length-2]==="="&&n--);const E=new ArrayBuffer(n),y=new Uint8Array(E);for(s=0;s<i;s+=4)u=Yi[e.charCodeAt(s)],d=Yi[e.charCodeAt(s+1)],h=Yi[e.charCodeAt(s+2)],p=Yi[e.charCodeAt(s+3)],y[l++]=u<<2|d>>4,y[l++]=(d&15)<<4|h>>2,y[l++]=(h&3)<<6|p&63;return E},tR=typeof ArrayBuffer=="function",_f=(e,n)=>{if(typeof e!="string")return{type:"message",data:Lv(e,n)};const i=e.charAt(0);return i==="b"?{type:"message",data:rR(e.substring(1),n)}:Us[i]?e.length>1?{type:Us[i],data:e.substring(1)}:{type:Us[i]}:Ac},rR=(e,n)=>{if(tR){const i=eR(e);return Lv(i,n)}else return{base64:!0,data:e}},Lv=(e,n)=>{switch(n){case"blob":return e instanceof Blob?e:new Blob([e]);case"arraybuffer":default:return e instanceof ArrayBuffer?e:e.buffer}},Bv="",nR=(e,n)=>{const i=e.length,s=new Array(i);let l=0;e.forEach((u,d)=>{vf(u,!1,h=>{s[d]=h,++l===i&&n(s.join(Bv))})})},iR=(e,n)=>{const i=e.split(Bv),s=[];for(let l=0;l<i.length;l++){const u=_f(i[l],n);if(s.push(u),u.type==="error")break}return s};function oR(){return new TransformStream({transform(e,n){Jk(e,i=>{const s=i.length;let l;if(s<126)l=new Uint8Array(1),new DataView(l.buffer).setUint8(0,s);else if(s<65536){l=new Uint8Array(3);const u=new DataView(l.buffer);u.setUint8(0,126),u.setUint16(1,s)}else{l=new Uint8Array(9);const u=new DataView(l.buffer);u.setUint8(0,127),u.setBigUint64(1,BigInt(s))}e.data&&typeof e.data!="string"&&(l[0]|=128),n.enqueue(l),n.enqueue(i)})}})}let oc;function Ls(e){return e.reduce((n,i)=>n+i.length,0)}function Bs(e,n){if(e[0].length===n)return e.shift();const i=new Uint8Array(n);let s=0;for(let l=0;l<n;l++)i[l]=e[0][s++],s===e[0].length&&(e.shift(),s=0);return e.length&&s<e[0].length&&(e[0]=e[0].slice(s)),i}function sR(e,n){oc||(oc=new TextDecoder);const i=[];let s=0,l=-1,u=!1;return new TransformStream({transform(d,h){for(i.push(d);;){if(s===0){if(Ls(i)<1)break;const p=Bs(i,1);u=(p[0]&128)===128,l=p[0]&127,l<126?s=3:l===126?s=1:s=2}else if(s===1){if(Ls(i)<2)break;const p=Bs(i,2);l=new DataView(p.buffer,p.byteOffset,p.length).getUint16(0),s=3}else if(s===2){if(Ls(i)<8)break;const p=Bs(i,8),E=new DataView(p.buffer,p.byteOffset,p.length),y=E.getUint32(0);if(y>Math.pow(2,21)-1){h.enqueue(Ac);break}l=y*Math.pow(2,32)+E.getUint32(4),s=3}else{if(Ls(i)<l)break;const p=Bs(i,l);h.enqueue(_f(u?p:oc.decode(p),n)),s=0}if(l===0||l>e){h.enqueue(Ac);break}}}})}const jv=4;function We(e){if(e)return aR(e)}function aR(e){for(var n in We.prototype)e[n]=We.prototype[n];return e}We.prototype.on=We.prototype.addEventListener=function(e,n){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(n),this};We.prototype.once=function(e,n){function i(){this.off(e,i),n.apply(this,arguments)}return i.fn=n,this.on(e,i),this};We.prototype.off=We.prototype.removeListener=We.prototype.removeAllListeners=We.prototype.removeEventListener=function(e,n){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var i=this._callbacks["$"+e];if(!i)return this;if(arguments.length==1)return delete this._callbacks["$"+e],this;for(var s,l=0;l<i.length;l++)if(s=i[l],s===n||s.fn===n){i.splice(l,1);break}return i.length===0&&delete this._callbacks["$"+e],this};We.prototype.emit=function(e){this._callbacks=this._callbacks||{};for(var n=new Array(arguments.length-1),i=this._callbacks["$"+e],s=1;s<arguments.length;s++)n[s-1]=arguments[s];if(i){i=i.slice(0);for(var s=0,l=i.length;s<l;++s)i[s].apply(this,n)}return this};We.prototype.emitReserved=We.prototype.emit;We.prototype.listeners=function(e){return this._callbacks=this._callbacks||{},this._callbacks["$"+e]||[]};We.prototype.hasListeners=function(e){return!!this.listeners(e).length};const fa=typeof Promise=="function"&&typeof Promise.resolve=="function"?n=>Promise.resolve().then(n):(n,i)=>i(n,0),Ut=typeof self<"u"?self:typeof window<"u"?window:Function("return this")(),lR="arraybuffer";function zv(e,...n){return n.reduce((i,s)=>(e.hasOwnProperty(s)&&(i[s]=e[s]),i),{})}const uR=Ut.setTimeout,cR=Ut.clearTimeout;function da(e,n){n.useNativeTimers?(e.setTimeoutFn=uR.bind(Ut),e.clearTimeoutFn=cR.bind(Ut)):(e.setTimeoutFn=Ut.setTimeout.bind(Ut),e.clearTimeoutFn=Ut.clearTimeout.bind(Ut))}const fR=1.33;function dR(e){return typeof e=="string"?hR(e):Math.ceil((e.byteLength||e.size)*fR)}function hR(e){let n=0,i=0;for(let s=0,l=e.length;s<l;s++)n=e.charCodeAt(s),n<128?i+=1:n<2048?i+=2:n<55296||n>=57344?i+=3:(s++,i+=4);return i}function Uv(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)}function pR(e){let n="";for(let i in e)e.hasOwnProperty(i)&&(n.length&&(n+="&"),n+=encodeURIComponent(i)+"="+encodeURIComponent(e[i]));return n}function mR(e){let n={},i=e.split("&");for(let s=0,l=i.length;s<l;s++){let u=i[s].split("=");n[decodeURIComponent(u[0])]=decodeURIComponent(u[1])}return n}class gR extends Error{constructor(n,i,s){super(n),this.description=i,this.context=s,this.type="TransportError"}}class Ef extends We{constructor(n){super(),this.writable=!1,da(this,n),this.opts=n,this.query=n.query,this.socket=n.socket,this.supportsBinary=!n.forceBase64}onError(n,i,s){return super.emitReserved("error",new gR(n,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(n){this.readyState==="open"&&this.write(n)}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(n){const i=_f(n,this.socket.binaryType);this.onPacket(i)}onPacket(n){super.emitReserved("packet",n)}onClose(n){this.readyState="closed",super.emitReserved("close",n)}pause(n){}createUri(n,i={}){return n+"://"+this._hostname()+this._port()+this.opts.path+this._query(i)}_hostname(){const n=this.opts.hostname;return n.indexOf(":")===-1?n:"["+n+"]"}_port(){return this.opts.port&&(this.opts.secure&&+(this.opts.port!==443)||!this.opts.secure&&Number(this.opts.port)!==80)?":"+this.opts.port:""}_query(n){const i=pR(n);return i.length?"?"+i:""}}class yR extends Ef{constructor(){super(...arguments),this._polling=!1}get name(){return"polling"}doOpen(){this._poll()}pause(n){this.readyState="pausing";const i=()=>{this.readyState="paused",n()};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(n){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)};iR(n,this.socket.binaryType).forEach(i),this.readyState!=="closed"&&(this._polling=!1,this.emitReserved("pollComplete"),this.readyState==="open"&&this._poll())}doClose(){const n=()=>{this.write([{type:"close"}])};this.readyState==="open"?n():this.once("open",n)}write(n){this.writable=!1,nR(n,i=>{this.doWrite(i,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){const n=this.opts.secure?"https":"http",i=this.query||{};return this.opts.timestampRequests!==!1&&(i[this.opts.timestampParam]=Uv()),!this.supportsBinary&&!i.sid&&(i.b64=1),this.createUri(n,i)}}let Hv=!1;try{Hv=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{}const vR=Hv;function _R(){}class ER extends yR{constructor(n){if(super(n),typeof location<"u"){const i=location.protocol==="https:";let s=location.port;s||(s=i?"443":"80"),this.xd=typeof location<"u"&&n.hostname!==location.hostname||s!==n.port}}doWrite(n,i){const s=this.request({method:"POST",data:n});s.on("success",i),s.on("error",(l,u)=>{this.onError("xhr post error",l,u)})}doPoll(){const n=this.request();n.on("data",this.onData.bind(this)),n.on("error",(i,s)=>{this.onError("xhr poll error",i,s)}),this.pollXhr=n}}class ur extends We{constructor(n,i,s){super(),this.createRequest=n,da(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 n;const i=zv(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 l in this._opts.extraHeaders)this._opts.extraHeaders.hasOwnProperty(l)&&s.setRequestHeader(l,this._opts.extraHeaders[l])}}catch{}if(this._method==="POST")try{s.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{s.setRequestHeader("Accept","*/*")}catch{}(n=this._opts.cookieJar)===null||n===void 0||n.addCookies(s),"withCredentials"in s&&(s.withCredentials=this._opts.withCredentials),this._opts.requestTimeout&&(s.timeout=this._opts.requestTimeout),s.onreadystatechange=()=>{var l;s.readyState===3&&((l=this._opts.cookieJar)===null||l===void 0||l.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(l){this.setTimeoutFn(()=>{this._onError(l)},0);return}typeof document<"u"&&(this._index=ur.requestsCount++,ur.requests[this._index]=this)}_onError(n){this.emitReserved("error",n,this._xhr),this._cleanup(!0)}_cleanup(n){if(!(typeof this._xhr>"u"||this._xhr===null)){if(this._xhr.onreadystatechange=_R,n)try{this._xhr.abort()}catch{}typeof document<"u"&&delete ur.requests[this._index],this._xhr=null}}_onLoad(){const n=this._xhr.responseText;n!==null&&(this.emitReserved("data",n),this.emitReserved("success"),this._cleanup())}abort(){this._cleanup()}}ur.requestsCount=0;ur.requests={};if(typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",zg);else if(typeof addEventListener=="function"){const e="onpagehide"in Ut?"pagehide":"unload";addEventListener(e,zg,!1)}}function zg(){for(let e in ur.requests)ur.requests.hasOwnProperty(e)&&ur.requests[e].abort()}const SR=function(){const e=Gv({xdomain:!1});return e&&e.responseType!==null}();class bR extends ER{constructor(n){super(n);const i=n&&n.forceBase64;this.supportsBinary=SR&&!i}request(n={}){return Object.assign(n,{xd:this.xd},this.opts),new ur(Gv,this.uri(),n)}}function Gv(e){const n=e.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!n||vR))return new XMLHttpRequest}catch{}if(!n)try{return new Ut[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}const $v=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative";class wR extends Ef{get name(){return"websocket"}doOpen(){const n=this.uri(),i=this.opts.protocols,s=$v?{}:zv(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(n,i,s)}catch(l){return this.emitReserved("error",l)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=n=>this.onClose({description:"websocket connection closed",context:n}),this.ws.onmessage=n=>this.onData(n.data),this.ws.onerror=n=>this.onError("websocket error",n)}write(n){this.writable=!1;for(let i=0;i<n.length;i++){const s=n[i],l=i===n.length-1;vf(s,this.supportsBinary,u=>{try{this.doWrite(s,u)}catch{}l&&fa(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){typeof this.ws<"u"&&(this.ws.close(),this.ws=null)}uri(){const n=this.opts.secure?"wss":"ws",i=this.query||{};return this.opts.timestampRequests&&(i[this.opts.timestampParam]=Uv()),this.supportsBinary||(i.b64=1),this.createUri(n,i)}}const sc=Ut.WebSocket||Ut.MozWebSocket;class xR extends wR{createSocket(n,i,s){return $v?new sc(n,i,s):i?new sc(n,i):new sc(n)}doWrite(n,i){this.ws.send(i)}}class TR extends Ef{get name(){return"webtransport"}doOpen(){try{this._transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name])}catch(n){return this.emitReserved("error",n)}this._transport.closed.then(()=>{this.onClose()}).catch(n=>{this.onError("webtransport error",n)}),this._transport.ready.then(()=>{this._transport.createBidirectionalStream().then(n=>{const i=sR(Number.MAX_SAFE_INTEGER,this.socket.binaryType),s=n.readable.pipeThrough(i).getReader(),l=oR();l.readable.pipeTo(n.writable),this._writer=l.writable.getWriter();const u=()=>{s.read().then(({done:h,value:p})=>{h||(this.onPacket(p),u())}).catch(h=>{})};u();const d={type:"open"};this.query.sid&&(d.data=`{"sid":"${this.query.sid}"}`),this._writer.write(d).then(()=>this.onOpen())})})}write(n){this.writable=!1;for(let i=0;i<n.length;i++){const s=n[i],l=i===n.length-1;this._writer.write(s).then(()=>{l&&fa(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var n;(n=this._transport)===null||n===void 0||n.close()}}const CR={websocket:xR,webtransport:TR,polling:bR},kR=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,RR=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function Ic(e){if(e.length>8e3)throw"URI too long";const n=e,i=e.indexOf("["),s=e.indexOf("]");i!=-1&&s!=-1&&(e=e.substring(0,i)+e.substring(i,s).replace(/:/g,";")+e.substring(s,e.length));let l=kR.exec(e||""),u={},d=14;for(;d--;)u[RR[d]]=l[d]||"";return i!=-1&&s!=-1&&(u.source=n,u.host=u.host.substring(1,u.host.length-1).replace(/;/g,":"),u.authority=u.authority.replace("[","").replace("]","").replace(/;/g,":"),u.ipv6uri=!0),u.pathNames=OR(u,u.path),u.queryKey=NR(u,u.query),u}function OR(e,n){const i=/\/{2,9}/g,s=n.replace(i,"/").split("/");return(n.slice(0,1)=="/"||n.length===0)&&s.splice(0,1),n.slice(-1)=="/"&&s.splice(s.length-1,1),s}function NR(e,n){const i={};return n.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(s,l,u){l&&(i[l]=u)}),i}const Pc=typeof addEventListener=="function"&&typeof removeEventListener=="function",Hs=[];Pc&&addEventListener("offline",()=>{Hs.forEach(e=>e())},!1);class Yr extends We{constructor(n,i){if(super(),this.binaryType=lR,this.writeBuffer=[],this._prevBufferLen=0,this._pingInterval=-1,this._pingTimeout=-1,this._maxPayload=-1,this._pingTimeoutTime=1/0,n&&typeof n=="object"&&(i=n,n=null),n){const s=Ic(n);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=Ic(i.host).host);da(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 l=s.prototype.name;this.transports.push(l),this._transportsByName[l]=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=mR(this.opts.query)),Pc&&(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"})},Hs.push(this._offlineEventListener))),this.opts.withCredentials&&(this._cookieJar=void 0),this._open()}createTransport(n){const i=Object.assign({},this.opts.query);i.EIO=jv,i.transport=n,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[n]);return new this._transportsByName[n](s)}_open(){if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}const n=this.opts.rememberUpgrade&&Yr.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1?"websocket":this.transports[0];this.readyState="opening";const i=this.createTransport(n);i.open(),this.setTransport(i)}setTransport(n){this.transport&&this.transport.removeAllListeners(),this.transport=n,n.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",Yr.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush()}_onPacket(n){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")switch(this.emitReserved("packet",n),this.emitReserved("heartbeat"),n.type){case"open":this.onHandshake(JSON.parse(n.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=n.data,this._onError(i);break;case"message":this.emitReserved("data",n.data),this.emitReserved("message",n.data);break}}onHandshake(n){this.emitReserved("handshake",n),this.id=n.sid,this.transport.query.sid=n.sid,this._pingInterval=n.pingInterval,this._pingTimeout=n.pingTimeout,this._maxPayload=n.maxPayload,this.onOpen(),this.readyState!=="closed"&&this._resetPingTimeout()}_resetPingTimeout(){this.clearTimeoutFn(this._pingTimeoutTimer);const n=this._pingInterval+this._pingTimeout;this._pingTimeoutTime=Date.now()+n,this._pingTimeoutTimer=this.setTimeoutFn(()=>{this._onClose("ping timeout")},n),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 n=this._getWritablePackets();this.transport.send(n),this._prevBufferLen=n.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 l=this.writeBuffer[s].data;if(l&&(i+=dR(l)),s>0&&i>this._maxPayload)return this.writeBuffer.slice(0,s);i+=2}return this.writeBuffer}_hasPingExpired(){if(!this._pingTimeoutTime)return!0;const n=Date.now()>this._pingTimeoutTime;return n&&(this._pingTimeoutTime=0,fa(()=>{this._onClose("ping timeout")},this.setTimeoutFn)),n}write(n,i,s){return this._sendPacket("message",n,i,s),this}send(n,i,s){return this._sendPacket("message",n,i,s),this}_sendPacket(n,i,s,l){if(typeof i=="function"&&(l=i,i=void 0),typeof s=="function"&&(l=s,s=null),this.readyState==="closing"||this.readyState==="closed")return;s=s||{},s.compress=s.compress!==!1;const u={type:n,data:i,options:s};this.emitReserved("packetCreate",u),this.writeBuffer.push(u),l&&this.once("flush",l),this.flush()}close(){const n=()=>{this._onClose("forced close"),this.transport.close()},i=()=>{this.off("upgrade",i),this.off("upgradeError",i),n()},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():n()}):this.upgrading?s():n()),this}_onError(n){if(Yr.priorWebsocketSuccess=!1,this.opts.tryAllTransports&&this.transports.length>1&&this.readyState==="opening")return this.transports.shift(),this._open();this.emitReserved("error",n),this._onClose("transport error",n)}_onClose(n,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(),Pc&&(this._beforeunloadEventListener&&removeEventListener("beforeunload",this._beforeunloadEventListener,!1),this._offlineEventListener)){const s=Hs.indexOf(this._offlineEventListener);s!==-1&&Hs.splice(s,1)}this.readyState="closed",this.id=null,this.emitReserved("close",n,i),this.writeBuffer=[],this._prevBufferLen=0}}}Yr.protocol=jv;class AR extends Yr{constructor(){super(...arguments),this._upgrades=[]}onOpen(){if(super.onOpen(),this.readyState==="open"&&this.opts.upgrade)for(let n=0;n<this._upgrades.length;n++)this._probe(this._upgrades[n])}_probe(n){let i=this.createTransport(n),s=!1;Yr.priorWebsocketSuccess=!1;const l=()=>{s||(i.send([{type:"ping",data:"probe"}]),i.once("packet",w=>{if(!s)if(w.type==="pong"&&w.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",i),!i)return;Yr.priorWebsocketSuccess=i.name==="websocket",this.transport.pause(()=>{s||this.readyState!=="closed"&&(y(),this.setTransport(i),i.send([{type:"upgrade"}]),this.emitReserved("upgrade",i),i=null,this.upgrading=!1,this.flush())})}else{const m=new Error("probe error");m.transport=i.name,this.emitReserved("upgradeError",m)}}))};function u(){s||(s=!0,y(),i.close(),i=null)}const d=w=>{const m=new Error("probe error: "+w);m.transport=i.name,u(),this.emitReserved("upgradeError",m)};function h(){d("transport closed")}function p(){d("socket closed")}function E(w){i&&w.name!==i.name&&u()}const y=()=>{i.removeListener("open",l),i.removeListener("error",d),i.removeListener("close",h),this.off("close",p),this.off("upgrading",E)};i.once("open",l),i.once("error",d),i.once("close",h),this.once("close",p),this.once("upgrading",E),this._upgrades.indexOf("webtransport")!==-1&&n!=="webtransport"?this.setTimeoutFn(()=>{s||i.open()},200):i.open()}onHandshake(n){this._upgrades=this._filterUpgrades(n.upgrades),super.onHandshake(n)}_filterUpgrades(n){const i=[];for(let s=0;s<n.length;s++)~this.transports.indexOf(n[s])&&i.push(n[s]);return i}}let IR=class extends AR{constructor(n,i={}){const s=typeof n=="object"?n:i;(!s.transports||s.transports&&typeof s.transports[0]=="string")&&(s.transports=(s.transports||["polling","websocket","webtransport"]).map(l=>CR[l]).filter(l=>!!l)),super(n,s)}};function PR(e,n="",i){let s=e;i=i||typeof location<"u"&&location,e==null&&(e=i.protocol+"//"+i.host),typeof e=="string"&&(e.charAt(0)==="/"&&(e.charAt(1)==="/"?e=i.protocol+e:e=i.host+e),/^(https?|wss?):\/\//.test(e)||(typeof i<"u"?e=i.protocol+"//"+e:e="https://"+e),s=Ic(e)),s.port||(/^(http|ws)$/.test(s.protocol)?s.port="80":/^(http|ws)s$/.test(s.protocol)&&(s.port="443")),s.path=s.path||"/";const u=s.host.indexOf(":")!==-1?"["+s.host+"]":s.host;return s.id=s.protocol+"://"+u+":"+s.port+n,s.href=s.protocol+"://"+u+(i&&i.port===s.port?"":":"+s.port),s}const DR=typeof ArrayBuffer=="function",MR=e=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e.buffer instanceof ArrayBuffer,qv=Object.prototype.toString,FR=typeof Blob=="function"||typeof Blob<"u"&&qv.call(Blob)==="[object BlobConstructor]",LR=typeof File=="function"||typeof File<"u"&&qv.call(File)==="[object FileConstructor]";function Sf(e){return DR&&(e instanceof ArrayBuffer||MR(e))||FR&&e instanceof Blob||LR&&e instanceof File}function Gs(e,n){if(!e||typeof e!="object")return!1;if(Array.isArray(e)){for(let i=0,s=e.length;i<s;i++)if(Gs(e[i]))return!0;return!1}if(Sf(e))return!0;if(e.toJSON&&typeof e.toJSON=="function"&&arguments.length===1)return Gs(e.toJSON(),!0);for(const i in e)if(Object.prototype.hasOwnProperty.call(e,i)&&Gs(e[i]))return!0;return!1}function BR(e){const n=[],i=e.data,s=e;return s.data=Dc(i,n),s.attachments=n.length,{packet:s,buffers:n}}function Dc(e,n){if(!e)return e;if(Sf(e)){const i={_placeholder:!0,num:n.length};return n.push(e),i}else if(Array.isArray(e)){const i=new Array(e.length);for(let s=0;s<e.length;s++)i[s]=Dc(e[s],n);return i}else if(typeof e=="object"&&!(e instanceof Date)){const i={};for(const s in e)Object.prototype.hasOwnProperty.call(e,s)&&(i[s]=Dc(e[s],n));return i}return e}function jR(e,n){return e.data=Mc(e.data,n),delete e.attachments,e}function Mc(e,n){if(!e)return e;if(e&&e._placeholder===!0){if(typeof e.num=="number"&&e.num>=0&&e.num<n.length)return n[e.num];throw new Error("illegal attachments")}else if(Array.isArray(e))for(let i=0;i<e.length;i++)e[i]=Mc(e[i],n);else if(typeof e=="object")for(const i in e)Object.prototype.hasOwnProperty.call(e,i)&&(e[i]=Mc(e[i],n));return e}const zR=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"],UR=5;var Ee;(function(e){e[e.CONNECT=0]="CONNECT",e[e.DISCONNECT=1]="DISCONNECT",e[e.EVENT=2]="EVENT",e[e.ACK=3]="ACK",e[e.CONNECT_ERROR=4]="CONNECT_ERROR",e[e.BINARY_EVENT=5]="BINARY_EVENT",e[e.BINARY_ACK=6]="BINARY_ACK"})(Ee||(Ee={}));class HR{constructor(n){this.replacer=n}encode(n){return(n.type===Ee.EVENT||n.type===Ee.ACK)&&Gs(n)?this.encodeAsBinary({type:n.type===Ee.EVENT?Ee.BINARY_EVENT:Ee.BINARY_ACK,nsp:n.nsp,data:n.data,id:n.id}):[this.encodeAsString(n)]}encodeAsString(n){let i=""+n.type;return(n.type===Ee.BINARY_EVENT||n.type===Ee.BINARY_ACK)&&(i+=n.attachments+"-"),n.nsp&&n.nsp!=="/"&&(i+=n.nsp+","),n.id!=null&&(i+=n.id),n.data!=null&&(i+=JSON.stringify(n.data,this.replacer)),i}encodeAsBinary(n){const i=BR(n),s=this.encodeAsString(i.packet),l=i.buffers;return l.unshift(s),l}}function Ug(e){return Object.prototype.toString.call(e)==="[object Object]"}class bf extends We{constructor(n){super(),this.reviver=n}add(n){let i;if(typeof n=="string"){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");i=this.decodeString(n);const s=i.type===Ee.BINARY_EVENT;s||i.type===Ee.BINARY_ACK?(i.type=s?Ee.EVENT:Ee.ACK,this.reconstructor=new GR(i),i.attachments===0&&super.emitReserved("decoded",i)):super.emitReserved("decoded",i)}else if(Sf(n)||n.base64)if(this.reconstructor)i=this.reconstructor.takeBinaryData(n),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: "+n)}decodeString(n){let i=0;const s={type:Number(n.charAt(0))};if(Ee[s.type]===void 0)throw new Error("unknown packet type "+s.type);if(s.type===Ee.BINARY_EVENT||s.type===Ee.BINARY_ACK){const u=i+1;for(;n.charAt(++i)!=="-"&&i!=n.length;);const d=n.substring(u,i);if(d!=Number(d)||n.charAt(i)!=="-")throw new Error("Illegal attachments");s.attachments=Number(d)}if(n.charAt(i+1)==="/"){const u=i+1;for(;++i&&!(n.charAt(i)===","||i===n.length););s.nsp=n.substring(u,i)}else s.nsp="/";const l=n.charAt(i+1);if(l!==""&&Number(l)==l){const u=i+1;for(;++i;){const d=n.charAt(i);if(d==null||Number(d)!=d){--i;break}if(i===n.length)break}s.id=Number(n.substring(u,i+1))}if(n.charAt(++i)){const u=this.tryParse(n.substr(i));if(bf.isPayloadValid(s.type,u))s.data=u;else throw new Error("invalid payload")}return s}tryParse(n){try{return JSON.parse(n,this.reviver)}catch{return!1}}static isPayloadValid(n,i){switch(n){case Ee.CONNECT:return Ug(i);case Ee.DISCONNECT:return i===void 0;case Ee.CONNECT_ERROR:return typeof i=="string"||Ug(i);case Ee.EVENT:case Ee.BINARY_EVENT:return Array.isArray(i)&&(typeof i[0]=="number"||typeof i[0]=="string"&&zR.indexOf(i[0])===-1);case Ee.ACK:case Ee.BINARY_ACK:return Array.isArray(i)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}}class GR{constructor(n){this.packet=n,this.buffers=[],this.reconPack=n}takeBinaryData(n){if(this.buffers.push(n),this.buffers.length===this.reconPack.attachments){const i=jR(this.reconPack,this.buffers);return this.finishedReconstruction(),i}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}const $R=Object.freeze(Object.defineProperty({__proto__:null,Decoder:bf,Encoder:HR,get PacketType(){return Ee},protocol:UR},Symbol.toStringTag,{value:"Module"}));function tr(e,n,i){return e.on(n,i),function(){e.off(n,i)}}const qR=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class Vv extends We{constructor(n,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=n,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 n=this.io;this.subs=[tr(n,"open",this.onopen.bind(this)),tr(n,"packet",this.onpacket.bind(this)),tr(n,"error",this.onerror.bind(this)),tr(n,"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(...n){return n.unshift("message"),this.emit.apply(this,n),this}emit(n,...i){var s,l,u;if(qR.hasOwnProperty(n))throw new Error('"'+n.toString()+'" is a reserved event name');if(i.unshift(n),this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this._addToQueue(i),this;const d={type:Ee.EVENT,data:i};if(d.options={},d.options.compress=this.flags.compress!==!1,typeof i[i.length-1]=="function"){const y=this.ids++,w=i.pop();this._registerAckCallback(y,w),d.id=y}const h=(l=(s=this.io.engine)===null||s===void 0?void 0:s.transport)===null||l===void 0?void 0:l.writable,p=this.connected&&!(!((u=this.io.engine)===null||u===void 0)&&u._hasPingExpired());return this.flags.volatile&&!h||(p?(this.notifyOutgoingListeners(d),this.packet(d)):this.sendBuffer.push(d)),this.flags={},this}_registerAckCallback(n,i){var s;const l=(s=this.flags.timeout)!==null&&s!==void 0?s:this._opts.ackTimeout;if(l===void 0){this.acks[n]=i;return}const u=this.io.setTimeoutFn(()=>{delete this.acks[n];for(let h=0;h<this.sendBuffer.length;h++)this.sendBuffer[h].id===n&&this.sendBuffer.splice(h,1);i.call(this,new Error("operation has timed out"))},l),d=(...h)=>{this.io.clearTimeoutFn(u),i.apply(this,h)};d.withError=!0,this.acks[n]=d}emitWithAck(n,...i){return new Promise((s,l)=>{const u=(d,h)=>d?l(d):s(h);u.withError=!0,i.push(u),this.emit(n,...i)})}_addToQueue(n){let i;typeof n[n.length-1]=="function"&&(i=n.pop());const s={id:this._queueSeq++,tryCount:0,pending:!1,args:n,flags:Object.assign({fromQueue:!0},this.flags)};n.push((l,...u)=>s!==this._queue[0]?void 0:(l!==null?s.tryCount>this._opts.retries&&(this._queue.shift(),i&&i(l)):(this._queue.shift(),i&&i(null,...u)),s.pending=!1,this._drainQueue())),this._queue.push(s),this._drainQueue()}_drainQueue(n=!1){if(!this.connected||this._queue.length===0)return;const i=this._queue[0];i.pending&&!n||(i.pending=!0,i.tryCount++,this.flags=i.flags,this.emit.apply(this,i.args))}packet(n){n.nsp=this.nsp,this.io._packet(n)}onopen(){typeof this.auth=="function"?this.auth(n=>{this._sendConnectPacket(n)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(n){this.packet({type:Ee.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},n):n})}onerror(n){this.connected||this.emitReserved("connect_error",n)}onclose(n,i){this.connected=!1,delete this.id,this.emitReserved("disconnect",n,i),this._clearAcks()}_clearAcks(){Object.keys(this.acks).forEach(n=>{if(!this.sendBuffer.some(s=>String(s.id)===n)){const s=this.acks[n];delete this.acks[n],s.withError&&s.call(this,new Error("socket has been disconnected"))}})}onpacket(n){if(n.nsp===this.nsp)switch(n.type){case Ee.CONNECT:n.data&&n.data.sid?this.onconnect(n.data.sid,n.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 Ee.EVENT:case Ee.BINARY_EVENT:this.onevent(n);break;case Ee.ACK:case Ee.BINARY_ACK:this.onack(n);break;case Ee.DISCONNECT:this.ondisconnect();break;case Ee.CONNECT_ERROR:this.destroy();const s=new Error(n.data.message);s.data=n.data.data,this.emitReserved("connect_error",s);break}}onevent(n){const i=n.data||[];n.id!=null&&i.push(this.ack(n.id)),this.connected?this.emitEvent(i):this.receiveBuffer.push(Object.freeze(i))}emitEvent(n){if(this._anyListeners&&this._anyListeners.length){const i=this._anyListeners.slice();for(const s of i)s.apply(this,n)}super.emit.apply(this,n),this._pid&&n.length&&typeof n[n.length-1]=="string"&&(this._lastOffset=n[n.length-1])}ack(n){const i=this;let s=!1;return function(...l){s||(s=!0,i.packet({type:Ee.ACK,id:n,data:l}))}}onack(n){const i=this.acks[n.id];typeof i=="function"&&(delete this.acks[n.id],i.withError&&n.data.unshift(null),i.apply(this,n.data))}onconnect(n,i){this.id=n,this.recovered=i&&this._pid===i,this._pid=i,this.connected=!0,this.emitBuffered(),this.emitReserved("connect"),this._drainQueue(!0)}emitBuffered(){this.receiveBuffer.forEach(n=>this.emitEvent(n)),this.receiveBuffer=[],this.sendBuffer.forEach(n=>{this.notifyOutgoingListeners(n),this.packet(n)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(n=>n()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:Ee.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(n){return this.flags.compress=n,this}get volatile(){return this.flags.volatile=!0,this}timeout(n){return this.flags.timeout=n,this}onAny(n){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(n),this}prependAny(n){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(n),this}offAny(n){if(!this._anyListeners)return this;if(n){const i=this._anyListeners;for(let s=0;s<i.length;s++)if(n===i[s])return i.splice(s,1),this}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}onAnyOutgoing(n){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.push(n),this}prependAnyOutgoing(n){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.unshift(n),this}offAnyOutgoing(n){if(!this._anyOutgoingListeners)return this;if(n){const i=this._anyOutgoingListeners;for(let s=0;s<i.length;s++)if(n===i[s])return i.splice(s,1),this}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(n){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length){const i=this._anyOutgoingListeners.slice();for(const s of i)s.apply(this,n.data)}}}function ti(e){e=e||{},this.ms=e.min||100,this.max=e.max||1e4,this.factor=e.factor||2,this.jitter=e.jitter>0&&e.jitter<=1?e.jitter:0,this.attempts=0}ti.prototype.duration=function(){var e=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var n=Math.random(),i=Math.floor(n*this.jitter*e);e=Math.floor(n*10)&1?e+i:e-i}return Math.min(e,this.max)|0};ti.prototype.reset=function(){this.attempts=0};ti.prototype.setMin=function(e){this.ms=e};ti.prototype.setMax=function(e){this.max=e};ti.prototype.setJitter=function(e){this.jitter=e};class Fc extends We{constructor(n,i){var s;super(),this.nsps={},this.subs=[],n&&typeof n=="object"&&(i=n,n=void 0),i=i||{},i.path=i.path||"/socket.io",this.opts=i,da(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 ti({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(i.timeout==null?2e4:i.timeout),this._readyState="closed",this.uri=n;const l=i.parser||$R;this.encoder=new l.Encoder,this.decoder=new l.Decoder,this._autoConnect=i.autoConnect!==!1,this._autoConnect&&this.open()}reconnection(n){return arguments.length?(this._reconnection=!!n,n||(this.skipReconnect=!0),this):this._reconnection}reconnectionAttempts(n){return n===void 0?this._reconnectionAttempts:(this._reconnectionAttempts=n,this)}reconnectionDelay(n){var i;return n===void 0?this._reconnectionDelay:(this._reconnectionDelay=n,(i=this.backoff)===null||i===void 0||i.setMin(n),this)}randomizationFactor(n){var i;return n===void 0?this._randomizationFactor:(this._randomizationFactor=n,(i=this.backoff)===null||i===void 0||i.setJitter(n),this)}reconnectionDelayMax(n){var i;return n===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=n,(i=this.backoff)===null||i===void 0||i.setMax(n),this)}timeout(n){return arguments.length?(this._timeout=n,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()}open(n){if(~this._readyState.indexOf("open"))return this;this.engine=new IR(this.uri,this.opts);const i=this.engine,s=this;this._readyState="opening",this.skipReconnect=!1;const l=tr(i,"open",function(){s.onopen(),n&&n()}),u=h=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",h),n?n(h):this.maybeReconnectOnOpen()},d=tr(i,"error",u);if(this._timeout!==!1){const h=this._timeout,p=this.setTimeoutFn(()=>{l(),u(new Error("timeout")),i.close()},h);this.opts.autoUnref&&p.unref(),this.subs.push(()=>{this.clearTimeoutFn(p)})}return this.subs.push(l),this.subs.push(d),this}connect(n){return this.open(n)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");const n=this.engine;this.subs.push(tr(n,"ping",this.onping.bind(this)),tr(n,"data",this.ondata.bind(this)),tr(n,"error",this.onerror.bind(this)),tr(n,"close",this.onclose.bind(this)),tr(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(n){try{this.decoder.add(n)}catch(i){this.onclose("parse error",i)}}ondecoded(n){fa(()=>{this.emitReserved("packet",n)},this.setTimeoutFn)}onerror(n){this.emitReserved("error",n)}socket(n,i){let s=this.nsps[n];return s?this._autoConnect&&!s.active&&s.connect():(s=new Vv(this,n,i),this.nsps[n]=s),s}_destroy(n){const i=Object.keys(this.nsps);for(const s of i)if(this.nsps[s].active)return;this._close()}_packet(n){const i=this.encoder.encode(n);for(let s=0;s<i.length;s++)this.engine.write(i[s],n.options)}cleanup(){this.subs.forEach(n=>n()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close")}disconnect(){return this._close()}onclose(n,i){var s;this.cleanup(),(s=this.engine)===null||s===void 0||s.close(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",n,i),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;const n=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(()=>{n.skipReconnect||(this.emitReserved("reconnect_attempt",n.backoff.attempts),!n.skipReconnect&&n.open(l=>{l?(n._reconnecting=!1,n.reconnect(),this.emitReserved("reconnect_error",l)):n.onreconnect()}))},i);this.opts.autoUnref&&s.unref(),this.subs.push(()=>{this.clearTimeoutFn(s)})}}onreconnect(){const n=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",n)}}const Qi={};function $s(e,n){typeof e=="object"&&(n=e,e=void 0),n=n||{};const i=PR(e,n.path||"/socket.io"),s=i.source,l=i.id,u=i.path,d=Qi[l]&&u in Qi[l].nsps,h=n.forceNew||n["force new connection"]||n.multiplex===!1||d;let p;return h?p=new Fc(s,n):(Qi[l]||(Qi[l]=new Fc(s,n)),p=Qi[l]),i.query&&!n.query&&(n.query=i.queryKey),p.socket(i.path,n)}Object.assign($s,{Manager:Fc,Socket:Vv,io:$s,connect:$s});const VR=[ge.ActionTypes.MESSAGE_TO_GUEST,ge.ActionTypes.EVENT_TO_GUEST,ge.ActionTypes.TYPING_ON,ge.ActionTypes.TYPING_OFF,ge.ActionTypes.RESTART_CHAT_REQUEST,..._w,...db,"@@localize/SET_ACTIVE_LANGUAGE","@@localize/ADD_TRANSLATION_FOR_LANGUAGE"],WR=({dispatch:e,getState:n})=>i=>{let s=null;return l=>{const u=i(l);if(l.type===lf){s!=null&&s.disconnect(),e(bw());const d=`/chat?${Xc.stringify(l.querystrings)}`;s=$s(`/${l.clientName}${d}`),s.on("action",e),s.on("connect",()=>e(ww())),s.on("disconnect",()=>e(xw())),s.on("reconnect",()=>e(Tw())),s.on("set-use-start-screen",h=>{e(h?uw():cw())}),s.on("set-translations",(h,p)=>{e(Vk({language:h,messages:zk(h,p)}))}),s.on("enable-speech-support",()=>e(pb())),s.on("enable-transcript-export",h=>e(gb(h))),s.on("enable-conversation-rating",h=>e(Eb(h))),s.on("speech-transcription",h=>e(mb(h))),s.on("restore-client-state",h=>{e(Sw(h.sessionId)),e(bb(h.messages))}),s.on("expand-window",({devices:h})=>e({type:Dy,devices:h})),s.on("show-general-conditions",()=>e(vb())),s.on("restart-chat",()=>{e(pf(l.clientName,l.querystrings))})}else if(l.type===la)s==null||s.emit("start-chat",l.payload);else if(l.type===ua)s==null||s.emit("terminate-session",l.payload);else if(l.type===fb)s==null||s.emit("get-started",JSON.stringify(l));else if(l.type===Zc)s==null||s.emit("audio-message",l.buffer);else if(l.type===ge.ActionTypes.CONVERSATION_RATING_FROM_GUEST)s==null||s.emit("conversation-rating",l.payload);else if(l.type===My){const{connection:{sessionId:d}}=n();window.location.href=`/transcript-pdf/${d}`}else VR.indexOf(l.type)===-1&&l.meta===void 0&&s&&s.emit("action",JSON.stringify(l));return u}},Wv=by(),XR={...Qk(Wv),intl:Nv},Lc=Kb({middleware:e=>e().concat(WR),reducer:Xk,preloadedState:XR});Lc.subscribe(Pk(()=>{const e=Lc.getState();Kk(Wv,{connection:e.connection,startScreen:e.startScreen})},1e3));const QR=document.getElementById("root"),KR=e1.createRoot(QR);KR.render(R.jsx(Y1,{store:Lc,children:R.jsx(_k,{})}));
|
|
110
|
+
//# sourceMappingURL=index-JobsCiR7.js.map
|