@botfabrik/engine-webclient 4.81.0 → 4.81.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- var i1=Object.defineProperty;var o1=(e,n,i)=>n in e?i1(e,n,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[n]=i;var xe=(e,n,i)=>o1(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 vs=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function oa(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var hu={exports:{}},Gi={},pu={exports:{}},me={};/**
1
+ var o1=Object.defineProperty;var s1=(e,n,i)=>n in e?o1(e,n,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[n]=i;var xe=(e,n,i)=>s1(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 vs=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function sa(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var pu={exports:{}},Gi={},mu={exports:{}},me={};/**
2
2
  * @license React
3
3
  * react.production.min.js
4
4
  *
@@ -6,7 +6,7 @@ var i1=Object.defineProperty;var o1=(e,n,i)=>n in e?i1(e,n,{enumerable:!0,config
6
6
  *
7
7
  * This source code is licensed under the MIT license found in the
8
8
  * LICENSE file in the root directory of this source tree.
9
- */var Tp;function s1(){if(Tp)return me;Tp=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"),v=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),b=Symbol.iterator;function m(D){return D===null||typeof D!="object"?null:(D=b&&D[b]||D["@@iterator"],typeof D=="function"?D:null)}var w={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},_=Object.assign,S={};function R(D,j,ce){this.props=D,this.context=j,this.refs=S,this.updater=ce||w}R.prototype.isReactComponent={},R.prototype.setState=function(D,j){if(typeof D!="object"&&typeof D!="function"&&D!=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,D,j,"setState")},R.prototype.forceUpdate=function(D){this.updater.enqueueForceUpdate(this,D,"forceUpdate")};function O(){}O.prototype=R.prototype;function N(D,j,ce){this.props=D,this.context=j,this.refs=S,this.updater=ce||w}var x=N.prototype=new O;x.constructor=N,_(x,R.prototype),x.isPureReactComponent=!0;var k=Array.isArray,T=Object.prototype.hasOwnProperty,F={current:null},z={key:!0,ref:!0,__self:!0,__source:!0};function V(D,j,ce){var he,ye={},ve=null,ke=null;if(j!=null)for(he in j.ref!==void 0&&(ke=j.ref),j.key!==void 0&&(ve=""+j.key),j)T.call(j,he)&&!z.hasOwnProperty(he)&&(ye[he]=j[he]);var Te=arguments.length-2;if(Te===1)ye.children=ce;else if(1<Te){for(var Re=Array(Te),et=0;et<Te;et++)Re[et]=arguments[et+2];ye.children=Re}if(D&&D.defaultProps)for(he in Te=D.defaultProps,Te)ye[he]===void 0&&(ye[he]=Te[he]);return{$$typeof:e,type:D,key:ve,ref:ke,props:ye,_owner:F.current}}function fe(D,j){return{$$typeof:e,type:D.type,key:j,ref:D.ref,props:D.props,_owner:D._owner}}function te(D){return typeof D=="object"&&D!==null&&D.$$typeof===e}function oe(D){var j={"=":"=0",":":"=2"};return"$"+D.replace(/[=:]/g,function(ce){return j[ce]})}var pe=/\/+/g;function ue(D,j){return typeof D=="object"&&D!==null&&D.key!=null?oe(""+D.key):j.toString(36)}function Ue(D,j,ce,he,ye){var ve=typeof D;(ve==="undefined"||ve==="boolean")&&(D=null);var ke=!1;if(D===null)ke=!0;else switch(ve){case"string":case"number":ke=!0;break;case"object":switch(D.$$typeof){case e:case n:ke=!0}}if(ke)return ke=D,ye=ye(ke),D=he===""?"."+ue(ke,0):he,k(ye)?(ce="",D!=null&&(ce=D.replace(pe,"$&/")+"/"),Ue(ye,j,ce,"",function(et){return et})):ye!=null&&(te(ye)&&(ye=fe(ye,ce+(!ye.key||ke&&ke.key===ye.key?"":(""+ye.key).replace(pe,"$&/")+"/")+D)),j.push(ye)),1;if(ke=0,he=he===""?".":he+":",k(D))for(var Te=0;Te<D.length;Te++){ve=D[Te];var Re=he+ue(ve,Te);ke+=Ue(ve,j,ce,Re,ye)}else if(Re=m(D),typeof Re=="function")for(D=Re.call(D),Te=0;!(ve=D.next()).done;)ve=ve.value,Re=he+ue(ve,Te++),ke+=Ue(ve,j,ce,Re,ye);else if(ve==="object")throw j=String(D),Error("Objects are not valid as a React child (found: "+(j==="[object Object]"?"object with keys {"+Object.keys(D).join(", ")+"}":j)+"). If you meant to render a collection of children, use an array instead.");return ke}function Ie(D,j,ce){if(D==null)return D;var he=[],ye=0;return Ue(D,he,"","",function(ve){return j.call(ce,ve,ye++)}),he}function $e(D){if(D._status===-1){var j=D._result;j=j(),j.then(function(ce){(D._status===0||D._status===-1)&&(D._status=1,D._result=ce)},function(ce){(D._status===0||D._status===-1)&&(D._status=2,D._result=ce)}),D._status===-1&&(D._status=0,D._result=j)}if(D._status===1)return D._result.default;throw D._result}var Ne={current:null},W={transition:null},re={ReactCurrentDispatcher:Ne,ReactCurrentBatchConfig:W,ReactCurrentOwner:F};function Z(){throw Error("act(...) is not supported in production builds of React.")}return me.Children={map:Ie,forEach:function(D,j,ce){Ie(D,function(){j.apply(this,arguments)},ce)},count:function(D){var j=0;return Ie(D,function(){j++}),j},toArray:function(D){return Ie(D,function(j){return j})||[]},only:function(D){if(!te(D))throw Error("React.Children.only expected to receive a single React element child.");return D}},me.Component=R,me.Fragment=i,me.Profiler=l,me.PureComponent=N,me.StrictMode=s,me.Suspense=p,me.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=re,me.act=Z,me.cloneElement=function(D,j,ce){if(D==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+D+".");var he=_({},D.props),ye=D.key,ve=D.ref,ke=D._owner;if(j!=null){if(j.ref!==void 0&&(ve=j.ref,ke=F.current),j.key!==void 0&&(ye=""+j.key),D.type&&D.type.defaultProps)var Te=D.type.defaultProps;for(Re in j)T.call(j,Re)&&!z.hasOwnProperty(Re)&&(he[Re]=j[Re]===void 0&&Te!==void 0?Te[Re]:j[Re])}var Re=arguments.length-2;if(Re===1)he.children=ce;else if(1<Re){Te=Array(Re);for(var et=0;et<Re;et++)Te[et]=arguments[et+2];he.children=Te}return{$$typeof:e,type:D.type,key:ye,ref:ve,props:he,_owner:ke}},me.createContext=function(D){return D={$$typeof:d,_currentValue:D,_currentValue2:D,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},D.Provider={$$typeof:u,_context:D},D.Consumer=D},me.createElement=V,me.createFactory=function(D){var j=V.bind(null,D);return j.type=D,j},me.createRef=function(){return{current:null}},me.forwardRef=function(D){return{$$typeof:h,render:D}},me.isValidElement=te,me.lazy=function(D){return{$$typeof:y,_payload:{_status:-1,_result:D},_init:$e}},me.memo=function(D,j){return{$$typeof:v,type:D,compare:j===void 0?null:j}},me.startTransition=function(D){var j=W.transition;W.transition={};try{D()}finally{W.transition=j}},me.unstable_act=Z,me.useCallback=function(D,j){return Ne.current.useCallback(D,j)},me.useContext=function(D){return Ne.current.useContext(D)},me.useDebugValue=function(){},me.useDeferredValue=function(D){return Ne.current.useDeferredValue(D)},me.useEffect=function(D,j){return Ne.current.useEffect(D,j)},me.useId=function(){return Ne.current.useId()},me.useImperativeHandle=function(D,j,ce){return Ne.current.useImperativeHandle(D,j,ce)},me.useInsertionEffect=function(D,j){return Ne.current.useInsertionEffect(D,j)},me.useLayoutEffect=function(D,j){return Ne.current.useLayoutEffect(D,j)},me.useMemo=function(D,j){return Ne.current.useMemo(D,j)},me.useReducer=function(D,j,ce){return Ne.current.useReducer(D,j,ce)},me.useRef=function(D){return Ne.current.useRef(D)},me.useState=function(D){return Ne.current.useState(D)},me.useSyncExternalStore=function(D,j,ce){return Ne.current.useSyncExternalStore(D,j,ce)},me.useTransition=function(){return Ne.current.useTransition()},me.version="18.3.1",me}var Cp;function Jn(){return Cp||(Cp=1,pu.exports=s1()),pu.exports}/**
9
+ */var Tp;function a1(){if(Tp)return me;Tp=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"),v=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),b=Symbol.iterator;function m(D){return D===null||typeof D!="object"?null:(D=b&&D[b]||D["@@iterator"],typeof D=="function"?D:null)}var w={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},_=Object.assign,S={};function R(D,j,ce){this.props=D,this.context=j,this.refs=S,this.updater=ce||w}R.prototype.isReactComponent={},R.prototype.setState=function(D,j){if(typeof D!="object"&&typeof D!="function"&&D!=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,D,j,"setState")},R.prototype.forceUpdate=function(D){this.updater.enqueueForceUpdate(this,D,"forceUpdate")};function O(){}O.prototype=R.prototype;function N(D,j,ce){this.props=D,this.context=j,this.refs=S,this.updater=ce||w}var x=N.prototype=new O;x.constructor=N,_(x,R.prototype),x.isPureReactComponent=!0;var k=Array.isArray,T=Object.prototype.hasOwnProperty,F={current:null},z={key:!0,ref:!0,__self:!0,__source:!0};function V(D,j,ce){var he,ye={},ve=null,ke=null;if(j!=null)for(he in j.ref!==void 0&&(ke=j.ref),j.key!==void 0&&(ve=""+j.key),j)T.call(j,he)&&!z.hasOwnProperty(he)&&(ye[he]=j[he]);var Te=arguments.length-2;if(Te===1)ye.children=ce;else if(1<Te){for(var Re=Array(Te),et=0;et<Te;et++)Re[et]=arguments[et+2];ye.children=Re}if(D&&D.defaultProps)for(he in Te=D.defaultProps,Te)ye[he]===void 0&&(ye[he]=Te[he]);return{$$typeof:e,type:D,key:ve,ref:ke,props:ye,_owner:F.current}}function fe(D,j){return{$$typeof:e,type:D.type,key:j,ref:D.ref,props:D.props,_owner:D._owner}}function te(D){return typeof D=="object"&&D!==null&&D.$$typeof===e}function oe(D){var j={"=":"=0",":":"=2"};return"$"+D.replace(/[=:]/g,function(ce){return j[ce]})}var pe=/\/+/g;function ue(D,j){return typeof D=="object"&&D!==null&&D.key!=null?oe(""+D.key):j.toString(36)}function Ue(D,j,ce,he,ye){var ve=typeof D;(ve==="undefined"||ve==="boolean")&&(D=null);var ke=!1;if(D===null)ke=!0;else switch(ve){case"string":case"number":ke=!0;break;case"object":switch(D.$$typeof){case e:case n:ke=!0}}if(ke)return ke=D,ye=ye(ke),D=he===""?"."+ue(ke,0):he,k(ye)?(ce="",D!=null&&(ce=D.replace(pe,"$&/")+"/"),Ue(ye,j,ce,"",function(et){return et})):ye!=null&&(te(ye)&&(ye=fe(ye,ce+(!ye.key||ke&&ke.key===ye.key?"":(""+ye.key).replace(pe,"$&/")+"/")+D)),j.push(ye)),1;if(ke=0,he=he===""?".":he+":",k(D))for(var Te=0;Te<D.length;Te++){ve=D[Te];var Re=he+ue(ve,Te);ke+=Ue(ve,j,ce,Re,ye)}else if(Re=m(D),typeof Re=="function")for(D=Re.call(D),Te=0;!(ve=D.next()).done;)ve=ve.value,Re=he+ue(ve,Te++),ke+=Ue(ve,j,ce,Re,ye);else if(ve==="object")throw j=String(D),Error("Objects are not valid as a React child (found: "+(j==="[object Object]"?"object with keys {"+Object.keys(D).join(", ")+"}":j)+"). If you meant to render a collection of children, use an array instead.");return ke}function Ie(D,j,ce){if(D==null)return D;var he=[],ye=0;return Ue(D,he,"","",function(ve){return j.call(ce,ve,ye++)}),he}function $e(D){if(D._status===-1){var j=D._result;j=j(),j.then(function(ce){(D._status===0||D._status===-1)&&(D._status=1,D._result=ce)},function(ce){(D._status===0||D._status===-1)&&(D._status=2,D._result=ce)}),D._status===-1&&(D._status=0,D._result=j)}if(D._status===1)return D._result.default;throw D._result}var Ne={current:null},W={transition:null},re={ReactCurrentDispatcher:Ne,ReactCurrentBatchConfig:W,ReactCurrentOwner:F};function Z(){throw Error("act(...) is not supported in production builds of React.")}return me.Children={map:Ie,forEach:function(D,j,ce){Ie(D,function(){j.apply(this,arguments)},ce)},count:function(D){var j=0;return Ie(D,function(){j++}),j},toArray:function(D){return Ie(D,function(j){return j})||[]},only:function(D){if(!te(D))throw Error("React.Children.only expected to receive a single React element child.");return D}},me.Component=R,me.Fragment=i,me.Profiler=l,me.PureComponent=N,me.StrictMode=s,me.Suspense=p,me.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=re,me.act=Z,me.cloneElement=function(D,j,ce){if(D==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+D+".");var he=_({},D.props),ye=D.key,ve=D.ref,ke=D._owner;if(j!=null){if(j.ref!==void 0&&(ve=j.ref,ke=F.current),j.key!==void 0&&(ye=""+j.key),D.type&&D.type.defaultProps)var Te=D.type.defaultProps;for(Re in j)T.call(j,Re)&&!z.hasOwnProperty(Re)&&(he[Re]=j[Re]===void 0&&Te!==void 0?Te[Re]:j[Re])}var Re=arguments.length-2;if(Re===1)he.children=ce;else if(1<Re){Te=Array(Re);for(var et=0;et<Re;et++)Te[et]=arguments[et+2];he.children=Te}return{$$typeof:e,type:D.type,key:ye,ref:ve,props:he,_owner:ke}},me.createContext=function(D){return D={$$typeof:d,_currentValue:D,_currentValue2:D,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},D.Provider={$$typeof:u,_context:D},D.Consumer=D},me.createElement=V,me.createFactory=function(D){var j=V.bind(null,D);return j.type=D,j},me.createRef=function(){return{current:null}},me.forwardRef=function(D){return{$$typeof:h,render:D}},me.isValidElement=te,me.lazy=function(D){return{$$typeof:y,_payload:{_status:-1,_result:D},_init:$e}},me.memo=function(D,j){return{$$typeof:v,type:D,compare:j===void 0?null:j}},me.startTransition=function(D){var j=W.transition;W.transition={};try{D()}finally{W.transition=j}},me.unstable_act=Z,me.useCallback=function(D,j){return Ne.current.useCallback(D,j)},me.useContext=function(D){return Ne.current.useContext(D)},me.useDebugValue=function(){},me.useDeferredValue=function(D){return Ne.current.useDeferredValue(D)},me.useEffect=function(D,j){return Ne.current.useEffect(D,j)},me.useId=function(){return Ne.current.useId()},me.useImperativeHandle=function(D,j,ce){return Ne.current.useImperativeHandle(D,j,ce)},me.useInsertionEffect=function(D,j){return Ne.current.useInsertionEffect(D,j)},me.useLayoutEffect=function(D,j){return Ne.current.useLayoutEffect(D,j)},me.useMemo=function(D,j){return Ne.current.useMemo(D,j)},me.useReducer=function(D,j,ce){return Ne.current.useReducer(D,j,ce)},me.useRef=function(D){return Ne.current.useRef(D)},me.useState=function(D){return Ne.current.useState(D)},me.useSyncExternalStore=function(D,j,ce){return Ne.current.useSyncExternalStore(D,j,ce)},me.useTransition=function(){return Ne.current.useTransition()},me.version="18.3.1",me}var Cp;function Jn(){return Cp||(Cp=1,mu.exports=a1()),mu.exports}/**
10
10
  * @license React
11
11
  * react-jsx-runtime.production.min.js
12
12
  *
@@ -14,7 +14,7 @@ var i1=Object.defineProperty;var o1=(e,n,i)=>n in e?i1(e,n,{enumerable:!0,config
14
14
  *
15
15
  * This source code is licensed under the MIT license found in the
16
16
  * LICENSE file in the root directory of this source tree.
17
- */var kp;function a1(){if(kp)return Gi;kp=1;var e=Jn(),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,v){var y,b={},m=null,w=null;v!==void 0&&(m=""+v),p.key!==void 0&&(m=""+p.key),p.ref!==void 0&&(w=p.ref);for(y in p)s.call(p,y)&&!u.hasOwnProperty(y)&&(b[y]=p[y]);if(h&&h.defaultProps)for(y in p=h.defaultProps,p)b[y]===void 0&&(b[y]=p[y]);return{$$typeof:n,type:h,key:m,ref:w,props:b,_owner:l.current}}return Gi.Fragment=i,Gi.jsx=d,Gi.jsxs=d,Gi}var Rp;function l1(){return Rp||(Rp=1,hu.exports=a1()),hu.exports}var E=l1(),_s={},mu={exports:{}},Et={},gu={exports:{}},yu={};/**
17
+ */var kp;function l1(){if(kp)return Gi;kp=1;var e=Jn(),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,v){var y,b={},m=null,w=null;v!==void 0&&(m=""+v),p.key!==void 0&&(m=""+p.key),p.ref!==void 0&&(w=p.ref);for(y in p)s.call(p,y)&&!u.hasOwnProperty(y)&&(b[y]=p[y]);if(h&&h.defaultProps)for(y in p=h.defaultProps,p)b[y]===void 0&&(b[y]=p[y]);return{$$typeof:n,type:h,key:m,ref:w,props:b,_owner:l.current}}return Gi.Fragment=i,Gi.jsx=d,Gi.jsxs=d,Gi}var Rp;function u1(){return Rp||(Rp=1,pu.exports=l1()),pu.exports}var E=u1(),_s={},gu={exports:{}},Et={},yu={exports:{}},vu={};/**
18
18
  * @license React
19
19
  * scheduler.production.min.js
20
20
  *
@@ -22,7 +22,7 @@ var i1=Object.defineProperty;var o1=(e,n,i)=>n in e?i1(e,n,{enumerable:!0,config
22
22
  *
23
23
  * This source code is licensed under the MIT license found in the
24
24
  * LICENSE file in the root directory of this source tree.
25
- */var Op;function u1(){return Op||(Op=1,function(e){function n(W,re){var Z=W.length;W.push(re);e:for(;0<Z;){var D=Z-1>>>1,j=W[D];if(0<l(j,re))W[D]=re,W[Z]=j,Z=D;else break e}}function i(W){return W.length===0?null:W[0]}function s(W){if(W.length===0)return null;var re=W[0],Z=W.pop();if(Z!==re){W[0]=Z;e:for(var D=0,j=W.length,ce=j>>>1;D<ce;){var he=2*(D+1)-1,ye=W[he],ve=he+1,ke=W[ve];if(0>l(ye,Z))ve<j&&0>l(ke,ye)?(W[D]=ke,W[ve]=Z,D=ve):(W[D]=ye,W[he]=Z,D=he);else if(ve<j&&0>l(ke,Z))W[D]=ke,W[ve]=Z,D=ve;else break e}}return re}function l(W,re){var Z=W.sortIndex-re.sortIndex;return Z!==0?Z:W.id-re.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=[],v=[],y=1,b=null,m=3,w=!1,_=!1,S=!1,R=typeof setTimeout=="function"?setTimeout:null,O=typeof clearTimeout=="function"?clearTimeout:null,N=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function x(W){for(var re=i(v);re!==null;){if(re.callback===null)s(v);else if(re.startTime<=W)s(v),re.sortIndex=re.expirationTime,n(p,re);else break;re=i(v)}}function k(W){if(S=!1,x(W),!_)if(i(p)!==null)_=!0,$e(T);else{var re=i(v);re!==null&&Ne(k,re.startTime-W)}}function T(W,re){_=!1,S&&(S=!1,O(V),V=-1),w=!0;var Z=m;try{for(x(re),b=i(p);b!==null&&(!(b.expirationTime>re)||W&&!oe());){var D=b.callback;if(typeof D=="function"){b.callback=null,m=b.priorityLevel;var j=D(b.expirationTime<=re);re=e.unstable_now(),typeof j=="function"?b.callback=j:b===i(p)&&s(p),x(re)}else s(p);b=i(p)}if(b!==null)var ce=!0;else{var he=i(v);he!==null&&Ne(k,he.startTime-re),ce=!1}return ce}finally{b=null,m=Z,w=!1}}var F=!1,z=null,V=-1,fe=5,te=-1;function oe(){return!(e.unstable_now()-te<fe)}function pe(){if(z!==null){var W=e.unstable_now();te=W;var re=!0;try{re=z(!0,W)}finally{re?ue():(F=!1,z=null)}}else F=!1}var ue;if(typeof N=="function")ue=function(){N(pe)};else if(typeof MessageChannel<"u"){var Ue=new MessageChannel,Ie=Ue.port2;Ue.port1.onmessage=pe,ue=function(){Ie.postMessage(null)}}else ue=function(){R(pe,0)};function $e(W){z=W,F||(F=!0,ue())}function Ne(W,re){V=R(function(){W(e.unstable_now())},re)}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(W){W.callback=null},e.unstable_continueExecution=function(){_||w||(_=!0,$e(T))},e.unstable_forceFrameRate=function(W){0>W||125<W?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):fe=0<W?Math.floor(1e3/W):5},e.unstable_getCurrentPriorityLevel=function(){return m},e.unstable_getFirstCallbackNode=function(){return i(p)},e.unstable_next=function(W){switch(m){case 1:case 2:case 3:var re=3;break;default:re=m}var Z=m;m=re;try{return W()}finally{m=Z}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(W,re){switch(W){case 1:case 2:case 3:case 4:case 5:break;default:W=3}var Z=m;m=W;try{return re()}finally{m=Z}},e.unstable_scheduleCallback=function(W,re,Z){var D=e.unstable_now();switch(typeof Z=="object"&&Z!==null?(Z=Z.delay,Z=typeof Z=="number"&&0<Z?D+Z:D):Z=D,W){case 1:var j=-1;break;case 2:j=250;break;case 5:j=1073741823;break;case 4:j=1e4;break;default:j=5e3}return j=Z+j,W={id:y++,callback:re,priorityLevel:W,startTime:Z,expirationTime:j,sortIndex:-1},Z>D?(W.sortIndex=Z,n(v,W),i(p)===null&&W===i(v)&&(S?(O(V),V=-1):S=!0,Ne(k,Z-D))):(W.sortIndex=j,n(p,W),_||w||(_=!0,$e(T))),W},e.unstable_shouldYield=oe,e.unstable_wrapCallback=function(W){var re=m;return function(){var Z=m;m=re;try{return W.apply(this,arguments)}finally{m=Z}}}}(yu)),yu}var Np;function c1(){return Np||(Np=1,gu.exports=u1()),gu.exports}/**
25
+ */var Op;function c1(){return Op||(Op=1,function(e){function n(W,re){var Z=W.length;W.push(re);e:for(;0<Z;){var D=Z-1>>>1,j=W[D];if(0<l(j,re))W[D]=re,W[Z]=j,Z=D;else break e}}function i(W){return W.length===0?null:W[0]}function s(W){if(W.length===0)return null;var re=W[0],Z=W.pop();if(Z!==re){W[0]=Z;e:for(var D=0,j=W.length,ce=j>>>1;D<ce;){var he=2*(D+1)-1,ye=W[he],ve=he+1,ke=W[ve];if(0>l(ye,Z))ve<j&&0>l(ke,ye)?(W[D]=ke,W[ve]=Z,D=ve):(W[D]=ye,W[he]=Z,D=he);else if(ve<j&&0>l(ke,Z))W[D]=ke,W[ve]=Z,D=ve;else break e}}return re}function l(W,re){var Z=W.sortIndex-re.sortIndex;return Z!==0?Z:W.id-re.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=[],v=[],y=1,b=null,m=3,w=!1,_=!1,S=!1,R=typeof setTimeout=="function"?setTimeout:null,O=typeof clearTimeout=="function"?clearTimeout:null,N=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function x(W){for(var re=i(v);re!==null;){if(re.callback===null)s(v);else if(re.startTime<=W)s(v),re.sortIndex=re.expirationTime,n(p,re);else break;re=i(v)}}function k(W){if(S=!1,x(W),!_)if(i(p)!==null)_=!0,$e(T);else{var re=i(v);re!==null&&Ne(k,re.startTime-W)}}function T(W,re){_=!1,S&&(S=!1,O(V),V=-1),w=!0;var Z=m;try{for(x(re),b=i(p);b!==null&&(!(b.expirationTime>re)||W&&!oe());){var D=b.callback;if(typeof D=="function"){b.callback=null,m=b.priorityLevel;var j=D(b.expirationTime<=re);re=e.unstable_now(),typeof j=="function"?b.callback=j:b===i(p)&&s(p),x(re)}else s(p);b=i(p)}if(b!==null)var ce=!0;else{var he=i(v);he!==null&&Ne(k,he.startTime-re),ce=!1}return ce}finally{b=null,m=Z,w=!1}}var F=!1,z=null,V=-1,fe=5,te=-1;function oe(){return!(e.unstable_now()-te<fe)}function pe(){if(z!==null){var W=e.unstable_now();te=W;var re=!0;try{re=z(!0,W)}finally{re?ue():(F=!1,z=null)}}else F=!1}var ue;if(typeof N=="function")ue=function(){N(pe)};else if(typeof MessageChannel<"u"){var Ue=new MessageChannel,Ie=Ue.port2;Ue.port1.onmessage=pe,ue=function(){Ie.postMessage(null)}}else ue=function(){R(pe,0)};function $e(W){z=W,F||(F=!0,ue())}function Ne(W,re){V=R(function(){W(e.unstable_now())},re)}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(W){W.callback=null},e.unstable_continueExecution=function(){_||w||(_=!0,$e(T))},e.unstable_forceFrameRate=function(W){0>W||125<W?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):fe=0<W?Math.floor(1e3/W):5},e.unstable_getCurrentPriorityLevel=function(){return m},e.unstable_getFirstCallbackNode=function(){return i(p)},e.unstable_next=function(W){switch(m){case 1:case 2:case 3:var re=3;break;default:re=m}var Z=m;m=re;try{return W()}finally{m=Z}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(W,re){switch(W){case 1:case 2:case 3:case 4:case 5:break;default:W=3}var Z=m;m=W;try{return re()}finally{m=Z}},e.unstable_scheduleCallback=function(W,re,Z){var D=e.unstable_now();switch(typeof Z=="object"&&Z!==null?(Z=Z.delay,Z=typeof Z=="number"&&0<Z?D+Z:D):Z=D,W){case 1:var j=-1;break;case 2:j=250;break;case 5:j=1073741823;break;case 4:j=1e4;break;default:j=5e3}return j=Z+j,W={id:y++,callback:re,priorityLevel:W,startTime:Z,expirationTime:j,sortIndex:-1},Z>D?(W.sortIndex=Z,n(v,W),i(p)===null&&W===i(v)&&(S?(O(V),V=-1):S=!0,Ne(k,Z-D))):(W.sortIndex=j,n(p,W),_||w||(_=!0,$e(T))),W},e.unstable_shouldYield=oe,e.unstable_wrapCallback=function(W){var re=m;return function(){var Z=m;m=re;try{return W.apply(this,arguments)}finally{m=Z}}}}(vu)),vu}var Np;function f1(){return Np||(Np=1,yu.exports=c1()),yu.exports}/**
26
26
  * @license React
27
27
  * react-dom.production.min.js
28
28
  *
@@ -30,14 +30,14 @@ var i1=Object.defineProperty;var o1=(e,n,i)=>n in e?i1(e,n,{enumerable:!0,config
30
30
  *
31
31
  * This source code is licensed under the MIT license found in the
32
32
  * LICENSE file in the root directory of this source tree.
33
- */var Ap;function f1(){if(Ap)return Et;Ap=1;var e=Jn(),n=c1();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,v=/^[: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={},b={};function m(t){return p.call(b,t)?!0:p.call(y,t)?!1:v.test(t)?b[t]=!0:(y[t]=!0,!1)}function w(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 _(t,r,o,a){if(r===null||typeof r>"u"||w(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 S(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 R={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(t){R[t]=new S(t,0,!1,t,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(t){var r=t[0];R[r]=new S(r,1,!1,t[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(t){R[t]=new S(t,2,!1,t.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(t){R[t]=new S(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){R[t]=new S(t,3,!1,t.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(t){R[t]=new S(t,3,!0,t,null,!1,!1)}),["capture","download"].forEach(function(t){R[t]=new S(t,4,!1,t,null,!1,!1)}),["cols","rows","size","span"].forEach(function(t){R[t]=new S(t,6,!1,t,null,!1,!1)}),["rowSpan","start"].forEach(function(t){R[t]=new S(t,5,!1,t.toLowerCase(),null,!1,!1)});var O=/[\-:]([a-z])/g;function N(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(O,N);R[r]=new S(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(O,N);R[r]=new S(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(O,N);R[r]=new S(r,1,!1,t,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(t){R[t]=new S(t,1,!1,t.toLowerCase(),null,!1,!1)}),R.xlinkHref=new S("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(t){R[t]=new S(t,1,!1,t.toLowerCase(),null,!0,!0)});function x(t,r,o,a){var c=R.hasOwnProperty(r)?R[r]:null;(c!==null?c.type!==0:a||!(2<r.length)||r[0]!=="o"&&r[0]!=="O"||r[1]!=="n"&&r[1]!=="N")&&(_(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 k=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,T=Symbol.for("react.element"),F=Symbol.for("react.portal"),z=Symbol.for("react.fragment"),V=Symbol.for("react.strict_mode"),fe=Symbol.for("react.profiler"),te=Symbol.for("react.provider"),oe=Symbol.for("react.context"),pe=Symbol.for("react.forward_ref"),ue=Symbol.for("react.suspense"),Ue=Symbol.for("react.suspense_list"),Ie=Symbol.for("react.memo"),$e=Symbol.for("react.lazy"),Ne=Symbol.for("react.offscreen"),W=Symbol.iterator;function re(t){return t===null||typeof t!="object"?null:(t=W&&t[W]||t["@@iterator"],typeof t=="function"?t:null)}var Z=Object.assign,D;function j(t){if(D===void 0)try{throw Error()}catch(o){var r=o.stack.trim().match(/\n( *(at )?)/);D=r&&r[1]||""}return`
33
+ */var Ap;function d1(){if(Ap)return Et;Ap=1;var e=Jn(),n=f1();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,v=/^[: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={},b={};function m(t){return p.call(b,t)?!0:p.call(y,t)?!1:v.test(t)?b[t]=!0:(y[t]=!0,!1)}function w(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 _(t,r,o,a){if(r===null||typeof r>"u"||w(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 S(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 R={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(t){R[t]=new S(t,0,!1,t,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(t){var r=t[0];R[r]=new S(r,1,!1,t[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(t){R[t]=new S(t,2,!1,t.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(t){R[t]=new S(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){R[t]=new S(t,3,!1,t.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(t){R[t]=new S(t,3,!0,t,null,!1,!1)}),["capture","download"].forEach(function(t){R[t]=new S(t,4,!1,t,null,!1,!1)}),["cols","rows","size","span"].forEach(function(t){R[t]=new S(t,6,!1,t,null,!1,!1)}),["rowSpan","start"].forEach(function(t){R[t]=new S(t,5,!1,t.toLowerCase(),null,!1,!1)});var O=/[\-:]([a-z])/g;function N(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(O,N);R[r]=new S(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(O,N);R[r]=new S(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(O,N);R[r]=new S(r,1,!1,t,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(t){R[t]=new S(t,1,!1,t.toLowerCase(),null,!1,!1)}),R.xlinkHref=new S("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(t){R[t]=new S(t,1,!1,t.toLowerCase(),null,!0,!0)});function x(t,r,o,a){var c=R.hasOwnProperty(r)?R[r]:null;(c!==null?c.type!==0:a||!(2<r.length)||r[0]!=="o"&&r[0]!=="O"||r[1]!=="n"&&r[1]!=="N")&&(_(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 k=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,T=Symbol.for("react.element"),F=Symbol.for("react.portal"),z=Symbol.for("react.fragment"),V=Symbol.for("react.strict_mode"),fe=Symbol.for("react.profiler"),te=Symbol.for("react.provider"),oe=Symbol.for("react.context"),pe=Symbol.for("react.forward_ref"),ue=Symbol.for("react.suspense"),Ue=Symbol.for("react.suspense_list"),Ie=Symbol.for("react.memo"),$e=Symbol.for("react.lazy"),Ne=Symbol.for("react.offscreen"),W=Symbol.iterator;function re(t){return t===null||typeof t!="object"?null:(t=W&&t[W]||t["@@iterator"],typeof t=="function"?t:null)}var Z=Object.assign,D;function j(t){if(D===void 0)try{throw Error()}catch(o){var r=o.stack.trim().match(/\n( *(at )?)/);D=r&&r[1]||""}return`
34
34
  `+D+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(L){var a=L}Reflect.construct(t,[],r)}else{try{r.call()}catch(L){a=L}t.call(r.prototype)}else{try{throw Error()}catch(L){a=L}t()}}catch(L){if(L&&a&&typeof L.stack=="string"){for(var c=L.stack.split(`
35
35
  `),f=a.stack.split(`
36
36
  `),g=c.length-1,C=f.length-1;1<=g&&0<=C&&c[g]!==f[C];)C--;for(;1<=g&&0<=C;g--,C--)if(c[g]!==f[C]){if(g!==1||C!==1)do if(g--,C--,0>C||c[g]!==f[C]){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<=C);break}}}finally{ce=!1,Error.prepareStackTrace=o}return(t=t?t.displayName||t.name:"")?j(t):""}function ye(t){switch(t.tag){case 5:return j(t.type);case 16:return j("Lazy");case 13:return j("Suspense");case 19:return j("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 z:return"Fragment";case F:return"Portal";case fe:return"Profiler";case V:return"StrictMode";case ue:return"Suspense";case Ue:return"SuspenseList"}if(typeof t=="object")switch(t.$$typeof){case oe:return(t.displayName||"Context")+".Consumer";case te:return(t._context.displayName||"Context")+".Provider";case pe: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===V?"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 et(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 ni(t){t._valueTracker||(t._valueTracker=et(t))}function ct(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 Jt(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 Ea(t,r){var o=r.checked;return Z({},r,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:o??t._wrapperState.initialChecked})}function If(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 Df(t,r){r=r.checked,r!=null&&x(t,"checked",r,!1)}function wa(t,r){Df(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")?Sa(t,r.type,o):r.hasOwnProperty("defaultValue")&&Sa(t,r.type,Te(r.defaultValue)),r.checked==null&&r.defaultChecked!=null&&(t.defaultChecked=!!r.defaultChecked)}function Pf(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 Sa(t,r,o){(r!=="number"||Jt(t.ownerDocument)!==t)&&(o==null?t.defaultValue=""+t._wrapperState.initialValue:t.defaultValue!==""+o&&(t.defaultValue=""+o))}var ii=Array.isArray;function bn(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 xa(t,r){if(r.dangerouslySetInnerHTML!=null)throw Error(i(91));return Z({},r,{value:void 0,defaultValue:void 0,children:""+t._wrapperState.initialValue})}function Mf(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(ii(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 Ff(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 Lf(t){var r=t.textContent;r===t._wrapperState.initialValue&&r!==""&&r!==null&&(t.value=r)}function Bf(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 ba(t,r){return t==null||t==="http://www.w3.org/1999/xhtml"?Bf(r):t==="http://www.w3.org/2000/svg"&&r==="foreignObject"?"http://www.w3.org/1999/xhtml":t}var uo,jf=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(uo=uo||document.createElement("div"),uo.innerHTML="<svg>"+r.valueOf().toString()+"</svg>",r=uo.firstChild;t.firstChild;)t.removeChild(t.firstChild);for(;r.firstChild;)t.appendChild(r.firstChild)}});function oi(t,r){if(r){var o=t.firstChild;if(o&&o===t.lastChild&&o.nodeType===3){o.nodeValue=r;return}}t.textContent=r}var si={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},lv=["Webkit","ms","Moz","O"];Object.keys(si).forEach(function(t){lv.forEach(function(r){r=r+t.charAt(0).toUpperCase()+t.substring(1),si[r]=si[t]})});function Uf(t,r,o){return r==null||typeof r=="boolean"||r===""?"":o||typeof r!="number"||r===0||si.hasOwnProperty(t)&&si[t]?(""+r).trim():r+"px"}function Hf(t,r){t=t.style;for(var o in r)if(r.hasOwnProperty(o)){var a=o.indexOf("--")===0,c=Uf(o,r[o],a);o==="float"&&(o="cssFloat"),a?t.setProperty(o,c):t[o]=c}}var uv=Z({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 Ta(t,r){if(r){if(uv[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 Ca(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 ka=null;function Ra(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var Oa=null,Tn=null,Cn=null;function zf(t){if(t=Ri(t)){if(typeof Oa!="function")throw Error(i(280));var r=t.stateNode;r&&(r=Do(r),Oa(t.stateNode,t.type,r))}}function Gf(t){Tn?Cn?Cn.push(t):Cn=[t]:Tn=t}function $f(){if(Tn){var t=Tn,r=Cn;if(Cn=Tn=null,zf(t),r)for(t=0;t<r.length;t++)zf(r[t])}}function qf(t,r){return t(r)}function Vf(){}var Na=!1;function Wf(t,r,o){if(Na)return t(r,o);Na=!0;try{return qf(t,r,o)}finally{Na=!1,(Tn!==null||Cn!==null)&&(Vf(),$f())}}function ai(t,r){var o=t.stateNode;if(o===null)return null;var a=Do(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 Aa=!1;if(h)try{var li={};Object.defineProperty(li,"passive",{get:function(){Aa=!0}}),window.addEventListener("test",li,li),window.removeEventListener("test",li,li)}catch{Aa=!1}function cv(t,r,o,a,c,f,g,C,A){var L=Array.prototype.slice.call(arguments,3);try{r.apply(o,L)}catch(H){this.onError(H)}}var ui=!1,co=null,fo=!1,Ia=null,fv={onError:function(t){ui=!0,co=t}};function dv(t,r,o,a,c,f,g,C,A){ui=!1,co=null,cv.apply(fv,arguments)}function hv(t,r,o,a,c,f,g,C,A){if(dv.apply(this,arguments),ui){if(ui){var L=co;ui=!1,co=null}else throw Error(i(198));fo||(fo=!0,Ia=L)}}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)!==0&&(o=r.return),t=r.return;while(t)}return r.tag===3?o:null}function Kf(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 pv(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,C=c.child;C;){if(C===o){g=!0,o=c,a=f;break}if(C===a){g=!0,a=c,o=f;break}C=C.sibling}if(!g){for(C=f.child;C;){if(C===o){g=!0,o=f,a=c;break}if(C===a){g=!0,a=f,o=c;break}C=C.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 Qf(t){return t=pv(t),t!==null?Xf(t):null}function Xf(t){if(t.tag===5||t.tag===6)return t;for(t=t.child;t!==null;){var r=Xf(t);if(r!==null)return r;t=t.sibling}return null}var Yf=n.unstable_scheduleCallback,Jf=n.unstable_cancelCallback,mv=n.unstable_shouldYield,gv=n.unstable_requestPaint,ze=n.unstable_now,yv=n.unstable_getCurrentPriorityLevel,Da=n.unstable_ImmediatePriority,ed=n.unstable_UserBlockingPriority,ho=n.unstable_NormalPriority,vv=n.unstable_LowPriority,td=n.unstable_IdlePriority,po=null,er=null;function _v(t){if(er&&typeof er.onCommitFiberRoot=="function")try{er.onCommitFiberRoot(po,t,void 0,(t.current.flags&128)===128)}catch{}}var Ht=Math.clz32?Math.clz32:Sv,Ev=Math.log,wv=Math.LN2;function Sv(t){return t>>>=0,t===0?32:31-(Ev(t)/wv|0)|0}var mo=64,go=4194304;function ci(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 yo(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 C=g&~c;C!==0?a=ci(C):(f&=g,f!==0&&(a=ci(f)))}else g=o&~c,g!==0?a=ci(g):f!==0&&(a=ci(f));if(a===0)return 0;if(r!==0&&r!==a&&(r&c)===0&&(c=a&-a,f=r&-r,c>=f||c===16&&(f&4194240)!==0))return r;if((a&4)!==0&&(a|=o&16),r=t.entangledLanes,r!==0)for(t=t.entanglements,r&=a;0<r;)o=31-Ht(r),c=1<<o,a|=t[o],r&=~c;return a}function xv(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 bv(t,r){for(var o=t.suspendedLanes,a=t.pingedLanes,c=t.expirationTimes,f=t.pendingLanes;0<f;){var g=31-Ht(f),C=1<<g,A=c[g];A===-1?((C&o)===0||(C&a)!==0)&&(c[g]=xv(C,r)):A<=r&&(t.expiredLanes|=C),f&=~C}}function Pa(t){return t=t.pendingLanes&-1073741825,t!==0?t:t&1073741824?1073741824:0}function rd(){var t=mo;return mo<<=1,(mo&4194240)===0&&(mo=64),t}function Ma(t){for(var r=[],o=0;31>o;o++)r.push(t);return r}function fi(t,r,o){t.pendingLanes|=r,r!==536870912&&(t.suspendedLanes=0,t.pingedLanes=0),t=t.eventTimes,r=31-Ht(r),t[r]=o}function Tv(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-Ht(o),f=1<<c;r[c]=0,a[c]=-1,t[c]=-1,o&=~f}}function Fa(t,r){var o=t.entangledLanes|=r;for(t=t.entanglements;o;){var a=31-Ht(o),c=1<<a;c&r|t[a]&r&&(t[a]|=r),o&=~c}}var Oe=0;function nd(t){return t&=-t,1<t?4<t?(t&268435455)!==0?16:536870912:4:1}var id,La,od,sd,ad,Ba=!1,vo=[],Rr=null,Or=null,Nr=null,di=new Map,hi=new Map,Ar=[],Cv="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 ld(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":di.delete(r.pointerId);break;case"gotpointercapture":case"lostpointercapture":hi.delete(r.pointerId)}}function pi(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=Ri(r),r!==null&&La(r)),t):(t.eventSystemFlags|=a,r=t.targetContainers,c!==null&&r.indexOf(c)===-1&&r.push(c),t)}function kv(t,r,o,a,c){switch(r){case"focusin":return Rr=pi(Rr,t,r,o,a,c),!0;case"dragenter":return Or=pi(Or,t,r,o,a,c),!0;case"mouseover":return Nr=pi(Nr,t,r,o,a,c),!0;case"pointerover":var f=c.pointerId;return di.set(f,pi(di.get(f)||null,t,r,o,a,c)),!0;case"gotpointercapture":return f=c.pointerId,hi.set(f,pi(hi.get(f)||null,t,r,o,a,c)),!0}return!1}function ud(t){var r=en(t.target);if(r!==null){var o=Jr(r);if(o!==null){if(r=o.tag,r===13){if(r=Kf(o),r!==null){t.blockedOn=r,ad(t.priority,function(){od(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 _o(t){if(t.blockedOn!==null)return!1;for(var r=t.targetContainers;0<r.length;){var o=Ua(t.domEventName,t.eventSystemFlags,r[0],t.nativeEvent);if(o===null){o=t.nativeEvent;var a=new o.constructor(o.type,o);ka=a,o.target.dispatchEvent(a),ka=null}else return r=Ri(o),r!==null&&La(r),t.blockedOn=o,!1;r.shift()}return!0}function cd(t,r,o){_o(t)&&o.delete(r)}function Rv(){Ba=!1,Rr!==null&&_o(Rr)&&(Rr=null),Or!==null&&_o(Or)&&(Or=null),Nr!==null&&_o(Nr)&&(Nr=null),di.forEach(cd),hi.forEach(cd)}function mi(t,r){t.blockedOn===r&&(t.blockedOn=null,Ba||(Ba=!0,n.unstable_scheduleCallback(n.unstable_NormalPriority,Rv)))}function gi(t){function r(c){return mi(c,t)}if(0<vo.length){mi(vo[0],t);for(var o=1;o<vo.length;o++){var a=vo[o];a.blockedOn===t&&(a.blockedOn=null)}}for(Rr!==null&&mi(Rr,t),Or!==null&&mi(Or,t),Nr!==null&&mi(Nr,t),di.forEach(r),hi.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);)ud(o),o.blockedOn===null&&Ar.shift()}var kn=k.ReactCurrentBatchConfig,Eo=!0;function Ov(t,r,o,a){var c=Oe,f=kn.transition;kn.transition=null;try{Oe=1,ja(t,r,o,a)}finally{Oe=c,kn.transition=f}}function Nv(t,r,o,a){var c=Oe,f=kn.transition;kn.transition=null;try{Oe=4,ja(t,r,o,a)}finally{Oe=c,kn.transition=f}}function ja(t,r,o,a){if(Eo){var c=Ua(t,r,o,a);if(c===null)nl(t,r,a,wo,o),ld(t,a);else if(kv(c,t,r,o,a))a.stopPropagation();else if(ld(t,a),r&4&&-1<Cv.indexOf(t)){for(;c!==null;){var f=Ri(c);if(f!==null&&id(f),f=Ua(t,r,o,a),f===null&&nl(t,r,a,wo,o),f===c)break;c=f}c!==null&&a.stopPropagation()}else nl(t,r,a,null,o)}}var wo=null;function Ua(t,r,o,a){if(wo=null,t=Ra(a),t=en(t),t!==null)if(r=Jr(t),r===null)t=null;else if(o=r.tag,o===13){if(t=Kf(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 wo=t,null}function fd(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(yv()){case Da:return 1;case ed:return 4;case ho:case vv:return 16;case td:return 536870912;default:return 16}default:return 16}}var Ir=null,Ha=null,So=null;function dd(){if(So)return So;var t,r=Ha,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 So=c.slice(t,1<a?1-a:void 0)}function xo(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 bo(){return!0}function hd(){return!1}function St(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 C in t)t.hasOwnProperty(C)&&(o=t[C],this[C]=o?o(f):f[C]);return this.isDefaultPrevented=(f.defaultPrevented!=null?f.defaultPrevented:f.returnValue===!1)?bo:hd,this.isPropagationStopped=hd,this}return Z(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=bo)},stopPropagation:function(){var o=this.nativeEvent;o&&(o.stopPropagation?o.stopPropagation():typeof o.cancelBubble!="unknown"&&(o.cancelBubble=!0),this.isPropagationStopped=bo)},persist:function(){},isPersistent:bo}),r}var Rn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},za=St(Rn),yi=Z({},Rn,{view:0,detail:0}),Av=St(yi),Ga,$a,vi,To=Z({},yi,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Va,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!==vi&&(vi&&t.type==="mousemove"?(Ga=t.screenX-vi.screenX,$a=t.screenY-vi.screenY):$a=Ga=0,vi=t),Ga)},movementY:function(t){return"movementY"in t?t.movementY:$a}}),pd=St(To),Iv=Z({},To,{dataTransfer:0}),Dv=St(Iv),Pv=Z({},yi,{relatedTarget:0}),qa=St(Pv),Mv=Z({},Rn,{animationName:0,elapsedTime:0,pseudoElement:0}),Fv=St(Mv),Lv=Z({},Rn,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),Bv=St(Lv),jv=Z({},Rn,{data:0}),md=St(jv),Uv={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Hv={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"},zv={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Gv(t){var r=this.nativeEvent;return r.getModifierState?r.getModifierState(t):(t=zv[t])?!!r[t]:!1}function Va(){return Gv}var $v=Z({},yi,{key:function(t){if(t.key){var r=Uv[t.key]||t.key;if(r!=="Unidentified")return r}return t.type==="keypress"?(t=xo(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?Hv[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Va,charCode:function(t){return t.type==="keypress"?xo(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?xo(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),qv=St($v),Vv=Z({},To,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),gd=St(Vv),Wv=Z({},yi,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Va}),Kv=St(Wv),Zv=Z({},Rn,{propertyName:0,elapsedTime:0,pseudoElement:0}),Qv=St(Zv),Xv=Z({},To,{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}),Yv=St(Xv),Jv=[9,13,27,32],Wa=h&&"CompositionEvent"in window,_i=null;h&&"documentMode"in document&&(_i=document.documentMode);var e_=h&&"TextEvent"in window&&!_i,yd=h&&(!Wa||_i&&8<_i&&11>=_i),vd=" ",_d=!1;function Ed(t,r){switch(t){case"keyup":return Jv.indexOf(r.keyCode)!==-1;case"keydown":return r.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function wd(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var On=!1;function t_(t,r){switch(t){case"compositionend":return wd(r);case"keypress":return r.which!==32?null:(_d=!0,vd);case"textInput":return t=r.data,t===vd&&_d?null:t;default:return null}}function r_(t,r){if(On)return t==="compositionend"||!Wa&&Ed(t,r)?(t=dd(),So=Ha=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 yd&&r.locale!=="ko"?null:r.data;default:return null}}var n_={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 Sd(t){var r=t&&t.nodeName&&t.nodeName.toLowerCase();return r==="input"?!!n_[t.type]:r==="textarea"}function xd(t,r,o,a){Gf(a),r=No(r,"onChange"),0<r.length&&(o=new za("onChange","change",null,o,a),t.push({event:o,listeners:r}))}var Ei=null,wi=null;function i_(t){Hd(t,0)}function Co(t){var r=Pn(t);if(ct(r))return t}function o_(t,r){if(t==="change")return r}var bd=!1;if(h){var Ka;if(h){var Za="oninput"in document;if(!Za){var Td=document.createElement("div");Td.setAttribute("oninput","return;"),Za=typeof Td.oninput=="function"}Ka=Za}else Ka=!1;bd=Ka&&(!document.documentMode||9<document.documentMode)}function Cd(){Ei&&(Ei.detachEvent("onpropertychange",kd),wi=Ei=null)}function kd(t){if(t.propertyName==="value"&&Co(wi)){var r=[];xd(r,wi,t,Ra(t)),Wf(i_,r)}}function s_(t,r,o){t==="focusin"?(Cd(),Ei=r,wi=o,Ei.attachEvent("onpropertychange",kd)):t==="focusout"&&Cd()}function a_(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return Co(wi)}function l_(t,r){if(t==="click")return Co(r)}function u_(t,r){if(t==="input"||t==="change")return Co(r)}function c_(t,r){return t===r&&(t!==0||1/t===1/r)||t!==t&&r!==r}var zt=typeof Object.is=="function"?Object.is:c_;function Si(t,r){if(zt(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)||!zt(t[c],r[c]))return!1}return!0}function Rd(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function Od(t,r){var o=Rd(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=Rd(o)}}function Nd(t,r){return t&&r?t===r?!0:t&&t.nodeType===3?!1:r&&r.nodeType===3?Nd(t,r.parentNode):"contains"in t?t.contains(r):t.compareDocumentPosition?!!(t.compareDocumentPosition(r)&16):!1:!1}function Ad(){for(var t=window,r=Jt();r instanceof t.HTMLIFrameElement;){try{var o=typeof r.contentWindow.location.href=="string"}catch{o=!1}if(o)t=r.contentWindow;else break;r=Jt(t.document)}return r}function Qa(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 f_(t){var r=Ad(),o=t.focusedElem,a=t.selectionRange;if(r!==o&&o&&o.ownerDocument&&Nd(o.ownerDocument.documentElement,o)){if(a!==null&&Qa(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=Od(o,f);var g=Od(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 d_=h&&"documentMode"in document&&11>=document.documentMode,Nn=null,Xa=null,xi=null,Ya=!1;function Id(t,r,o){var a=o.window===o?o.document:o.nodeType===9?o:o.ownerDocument;Ya||Nn==null||Nn!==Jt(a)||(a=Nn,"selectionStart"in a&&Qa(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}),xi&&Si(xi,a)||(xi=a,a=No(Xa,"onSelect"),0<a.length&&(r=new za("onSelect","select",null,r,o),t.push({event:r,listeners:a}),r.target=Nn)))}function ko(t,r){var o={};return o[t.toLowerCase()]=r.toLowerCase(),o["Webkit"+t]="webkit"+r,o["Moz"+t]="moz"+r,o}var An={animationend:ko("Animation","AnimationEnd"),animationiteration:ko("Animation","AnimationIteration"),animationstart:ko("Animation","AnimationStart"),transitionend:ko("Transition","TransitionEnd")},Ja={},Dd={};h&&(Dd=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 Ro(t){if(Ja[t])return Ja[t];if(!An[t])return t;var r=An[t],o;for(o in r)if(r.hasOwnProperty(o)&&o in Dd)return Ja[t]=r[o];return t}var Pd=Ro("animationend"),Md=Ro("animationiteration"),Fd=Ro("animationstart"),Ld=Ro("transitionend"),Bd=new Map,jd="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 Dr(t,r){Bd.set(t,r),u(r,[t])}for(var el=0;el<jd.length;el++){var tl=jd[el],h_=tl.toLowerCase(),p_=tl[0].toUpperCase()+tl.slice(1);Dr(h_,"on"+p_)}Dr(Pd,"onAnimationEnd"),Dr(Md,"onAnimationIteration"),Dr(Fd,"onAnimationStart"),Dr("dblclick","onDoubleClick"),Dr("focusin","onFocus"),Dr("focusout","onBlur"),Dr(Ld,"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 bi="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(" "),m_=new Set("cancel close invalid load scroll toggle".split(" ").concat(bi));function Ud(t,r,o){var a=t.type||"unknown-event";t.currentTarget=o,hv(a,r,void 0,t),t.currentTarget=null}function Hd(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 C=a[g],A=C.instance,L=C.currentTarget;if(C=C.listener,A!==f&&c.isPropagationStopped())break e;Ud(c,C,L),f=A}else for(g=0;g<a.length;g++){if(C=a[g],A=C.instance,L=C.currentTarget,C=C.listener,A!==f&&c.isPropagationStopped())break e;Ud(c,C,L),f=A}}}if(fo)throw t=Ia,fo=!1,Ia=null,t}function De(t,r){var o=r[ul];o===void 0&&(o=r[ul]=new Set);var a=t+"__bubble";o.has(a)||(zd(r,t,2,!1),o.add(a))}function rl(t,r,o){var a=0;r&&(a|=4),zd(o,t,a,r)}var Oo="_reactListening"+Math.random().toString(36).slice(2);function Ti(t){if(!t[Oo]){t[Oo]=!0,s.forEach(function(o){o!=="selectionchange"&&(m_.has(o)||rl(o,!1,t),rl(o,!0,t))});var r=t.nodeType===9?t:t.ownerDocument;r===null||r[Oo]||(r[Oo]=!0,rl("selectionchange",!1,r))}}function zd(t,r,o,a){switch(fd(r)){case 1:var c=Ov;break;case 4:c=Nv;break;default:c=ja}o=c.bind(null,r,o,t),c=void 0,!Aa||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 nl(t,r,o,a,c){var f=a;if((r&1)===0&&(r&2)===0&&a!==null)e:for(;;){if(a===null)return;var g=a.tag;if(g===3||g===4){var C=a.stateNode.containerInfo;if(C===c||C.nodeType===8&&C.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(;C!==null;){if(g=en(C),g===null)return;if(A=g.tag,A===5||A===6){a=f=g;continue e}C=C.parentNode}}a=a.return}Wf(function(){var L=f,H=Ra(o),G=[];e:{var U=Bd.get(t);if(U!==void 0){var K=za,X=t;switch(t){case"keypress":if(xo(o)===0)break e;case"keydown":case"keyup":K=qv;break;case"focusin":X="focus",K=qa;break;case"focusout":X="blur",K=qa;break;case"beforeblur":case"afterblur":K=qa;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":K=pd;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":K=Dv;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":K=Kv;break;case Pd:case Md:case Fd:K=Fv;break;case Ld:K=Qv;break;case"scroll":K=Av;break;case"wheel":K=Yv;break;case"copy":case"cut":case"paste":K=Bv;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":K=gd}var Y=(r&4)!==0,Ge=!Y&&t==="scroll",P=Y?U!==null?U+"Capture":null:U;Y=[];for(var I=L,M;I!==null;){M=I;var $=M.stateNode;if(M.tag===5&&$!==null&&(M=$,P!==null&&($=ai(I,P),$!=null&&Y.push(Ci(I,$,M)))),Ge)break;I=I.return}0<Y.length&&(U=new K(U,X,null,o,H),G.push({event:U,listeners:Y}))}}if((r&7)===0){e:{if(U=t==="mouseover"||t==="pointerover",K=t==="mouseout"||t==="pointerout",U&&o!==ka&&(X=o.relatedTarget||o.fromElement)&&(en(X)||X[hr]))break e;if((K||U)&&(U=H.window===H?H:(U=H.ownerDocument)?U.defaultView||U.parentWindow:window,K?(X=o.relatedTarget||o.toElement,K=L,X=X?en(X):null,X!==null&&(Ge=Jr(X),X!==Ge||X.tag!==5&&X.tag!==6)&&(X=null)):(K=null,X=L),K!==X)){if(Y=pd,$="onMouseLeave",P="onMouseEnter",I="mouse",(t==="pointerout"||t==="pointerover")&&(Y=gd,$="onPointerLeave",P="onPointerEnter",I="pointer"),Ge=K==null?U:Pn(K),M=X==null?U:Pn(X),U=new Y($,I+"leave",K,o,H),U.target=Ge,U.relatedTarget=M,$=null,en(H)===L&&(Y=new Y(P,I+"enter",X,o,H),Y.target=M,Y.relatedTarget=Ge,$=Y),Ge=$,K&&X)t:{for(Y=K,P=X,I=0,M=Y;M;M=In(M))I++;for(M=0,$=P;$;$=In($))M++;for(;0<I-M;)Y=In(Y),I--;for(;0<M-I;)P=In(P),M--;for(;I--;){if(Y===P||P!==null&&Y===P.alternate)break t;Y=In(Y),P=In(P)}Y=null}else Y=null;K!==null&&Gd(G,U,K,Y,!1),X!==null&&Ge!==null&&Gd(G,Ge,X,Y,!0)}}e:{if(U=L?Pn(L):window,K=U.nodeName&&U.nodeName.toLowerCase(),K==="select"||K==="input"&&U.type==="file")var ee=o_;else if(Sd(U))if(bd)ee=u_;else{ee=a_;var ne=s_}else(K=U.nodeName)&&K.toLowerCase()==="input"&&(U.type==="checkbox"||U.type==="radio")&&(ee=l_);if(ee&&(ee=ee(t,L))){xd(G,ee,o,H);break e}ne&&ne(t,U,L),t==="focusout"&&(ne=U._wrapperState)&&ne.controlled&&U.type==="number"&&Sa(U,"number",U.value)}switch(ne=L?Pn(L):window,t){case"focusin":(Sd(ne)||ne.contentEditable==="true")&&(Nn=ne,Xa=L,xi=null);break;case"focusout":xi=Xa=Nn=null;break;case"mousedown":Ya=!0;break;case"contextmenu":case"mouseup":case"dragend":Ya=!1,Id(G,o,H);break;case"selectionchange":if(d_)break;case"keydown":case"keyup":Id(G,o,H)}var ie;if(Wa)e:{switch(t){case"compositionstart":var ae="onCompositionStart";break e;case"compositionend":ae="onCompositionEnd";break e;case"compositionupdate":ae="onCompositionUpdate";break e}ae=void 0}else On?Ed(t,o)&&(ae="onCompositionEnd"):t==="keydown"&&o.keyCode===229&&(ae="onCompositionStart");ae&&(yd&&o.locale!=="ko"&&(On||ae!=="onCompositionStart"?ae==="onCompositionEnd"&&On&&(ie=dd()):(Ir=H,Ha="value"in Ir?Ir.value:Ir.textContent,On=!0)),ne=No(L,ae),0<ne.length&&(ae=new md(ae,t,null,o,H),G.push({event:ae,listeners:ne}),ie?ae.data=ie:(ie=wd(o),ie!==null&&(ae.data=ie)))),(ie=e_?t_(t,o):r_(t,o))&&(L=No(L,"onBeforeInput"),0<L.length&&(H=new md("onBeforeInput","beforeinput",null,o,H),G.push({event:H,listeners:L}),H.data=ie))}Hd(G,r)})}function Ci(t,r,o){return{instance:t,listener:r,currentTarget:o}}function No(t,r){for(var o=r+"Capture",a=[];t!==null;){var c=t,f=c.stateNode;c.tag===5&&f!==null&&(c=f,f=ai(t,o),f!=null&&a.unshift(Ci(t,f,c)),f=ai(t,r),f!=null&&a.push(Ci(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 Gd(t,r,o,a,c){for(var f=r._reactName,g=[];o!==null&&o!==a;){var C=o,A=C.alternate,L=C.stateNode;if(A!==null&&A===a)break;C.tag===5&&L!==null&&(C=L,c?(A=ai(o,f),A!=null&&g.unshift(Ci(o,A,C))):c||(A=ai(o,f),A!=null&&g.push(Ci(o,A,C)))),o=o.return}g.length!==0&&t.push({event:r,listeners:g})}var g_=/\r\n?/g,y_=/\u0000|\uFFFD/g;function $d(t){return(typeof t=="string"?t:""+t).replace(g_,`
38
- `).replace(y_,"")}function Ao(t,r,o){if(r=$d(r),$d(t)!==r&&o)throw Error(i(425))}function Io(){}var il=null,ol=null;function sl(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 al=typeof setTimeout=="function"?setTimeout:void 0,v_=typeof clearTimeout=="function"?clearTimeout:void 0,qd=typeof Promise=="function"?Promise:void 0,__=typeof queueMicrotask=="function"?queueMicrotask:typeof qd<"u"?function(t){return qd.resolve(null).then(t).catch(E_)}:al;function E_(t){setTimeout(function(){throw t})}function ll(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),gi(r);return}a--}else o!=="$"&&o!=="$?"&&o!=="$!"||a++;o=c}while(o);gi(r)}function Pr(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 Vd(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 Dn=Math.random().toString(36).slice(2),tr="__reactFiber$"+Dn,ki="__reactProps$"+Dn,hr="__reactContainer$"+Dn,ul="__reactEvents$"+Dn,w_="__reactListeners$"+Dn,S_="__reactHandles$"+Dn;function en(t){var r=t[tr];if(r)return r;for(var o=t.parentNode;o;){if(r=o[hr]||o[tr]){if(o=r.alternate,r.child!==null||o!==null&&o.child!==null)for(t=Vd(t);t!==null;){if(o=t[tr])return o;t=Vd(t)}return r}t=o,o=t.parentNode}return null}function Ri(t){return t=t[tr]||t[hr],!t||t.tag!==5&&t.tag!==6&&t.tag!==13&&t.tag!==3?null:t}function Pn(t){if(t.tag===5||t.tag===6)return t.stateNode;throw Error(i(33))}function Do(t){return t[ki]||null}var cl=[],Mn=-1;function Mr(t){return{current:t}}function Pe(t){0>Mn||(t.current=cl[Mn],cl[Mn]=null,Mn--)}function Ae(t,r){Mn++,cl[Mn]=t.current,t.current=r}var Fr={},st=Mr(Fr),mt=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 gt(t){return t=t.childContextTypes,t!=null}function Po(){Pe(mt),Pe(st)}function Wd(t,r,o){if(st.current!==Fr)throw Error(i(168));Ae(st,r),Ae(mt,o)}function Kd(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 Z({},o,a)}function Mo(t){return t=(t=t.stateNode)&&t.__reactInternalMemoizedMergedChildContext||Fr,tn=st.current,Ae(st,t),Ae(mt,mt.current),!0}function Zd(t,r,o){var a=t.stateNode;if(!a)throw Error(i(169));o?(t=Kd(t,r,tn),a.__reactInternalMemoizedMergedChildContext=t,Pe(mt),Pe(st),Ae(st,t)):Pe(mt),Ae(mt,o)}var pr=null,Fo=!1,fl=!1;function Qd(t){pr===null?pr=[t]:pr.push(t)}function x_(t){Fo=!0,Qd(t)}function Lr(){if(!fl&&pr!==null){fl=!0;var t=0,r=Oe;try{var o=pr;for(Oe=1;t<o.length;t++){var a=o[t];do a=a(!0);while(a!==null)}pr=null,Fo=!1}catch(c){throw pr!==null&&(pr=pr.slice(t+1)),Yf(Da,Lr),c}finally{Oe=r,fl=!1}}return null}var Ln=[],Bn=0,Lo=null,Bo=0,It=[],Dt=0,rn=null,mr=1,gr="";function nn(t,r){Ln[Bn++]=Bo,Ln[Bn++]=Lo,Lo=t,Bo=r}function Xd(t,r,o){It[Dt++]=mr,It[Dt++]=gr,It[Dt++]=rn,rn=t;var a=mr;t=gr;var c=32-Ht(a)-1;a&=~(1<<c),o+=1;var f=32-Ht(r)+c;if(30<f){var g=c-c%5;f=(a&(1<<g)-1).toString(32),a>>=g,c-=g,mr=1<<32-Ht(r)+c|o<<c|a,gr=f+t}else mr=1<<f|o<<c|a,gr=t}function dl(t){t.return!==null&&(nn(t,1),Xd(t,1,0))}function hl(t){for(;t===Lo;)Lo=Ln[--Bn],Ln[Bn]=null,Bo=Ln[--Bn],Ln[Bn]=null;for(;t===rn;)rn=It[--Dt],It[Dt]=null,gr=It[--Dt],It[Dt]=null,mr=It[--Dt],It[Dt]=null}var xt=null,bt=null,Fe=!1,Gt=null;function Yd(t,r){var o=Lt(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 Jd(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,xt=t,bt=Pr(r.firstChild),!0):!1;case 6:return r=t.pendingProps===""||r.nodeType!==3?null:r,r!==null?(t.stateNode=r,xt=t,bt=null,!0):!1;case 13:return r=r.nodeType!==8?null:r,r!==null?(o=rn!==null?{id:mr,overflow:gr}:null,t.memoizedState={dehydrated:r,treeContext:o,retryLane:1073741824},o=Lt(18,null,null,0),o.stateNode=r,o.return=t,t.child=o,xt=t,bt=null,!0):!1;default:return!1}}function pl(t){return(t.mode&1)!==0&&(t.flags&128)===0}function ml(t){if(Fe){var r=bt;if(r){var o=r;if(!Jd(t,r)){if(pl(t))throw Error(i(418));r=Pr(o.nextSibling);var a=xt;r&&Jd(t,r)?Yd(a,o):(t.flags=t.flags&-4097|2,Fe=!1,xt=t)}}else{if(pl(t))throw Error(i(418));t.flags=t.flags&-4097|2,Fe=!1,xt=t}}}function eh(t){for(t=t.return;t!==null&&t.tag!==5&&t.tag!==3&&t.tag!==13;)t=t.return;xt=t}function jo(t){if(t!==xt)return!1;if(!Fe)return eh(t),Fe=!0,!1;var r;if((r=t.tag!==3)&&!(r=t.tag!==5)&&(r=t.type,r=r!=="head"&&r!=="body"&&!sl(t.type,t.memoizedProps)),r&&(r=bt)){if(pl(t))throw th(),Error(i(418));for(;r;)Yd(t,r),r=Pr(r.nextSibling)}if(eh(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){bt=Pr(t.nextSibling);break e}r--}else o!=="$"&&o!=="$!"&&o!=="$?"||r++}t=t.nextSibling}bt=null}}else bt=xt?Pr(t.stateNode.nextSibling):null;return!0}function th(){for(var t=bt;t;)t=Pr(t.nextSibling)}function jn(){bt=xt=null,Fe=!1}function gl(t){Gt===null?Gt=[t]:Gt.push(t)}var b_=k.ReactCurrentBatchConfig;function Oi(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 C=c.refs;g===null?delete C[f]:C[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 Uo(t,r){throw t=Object.prototype.toString.call(r),Error(i(31,t==="[object Object]"?"object with keys {"+Object.keys(r).join(", ")+"}":t))}function rh(t){var r=t._init;return r(t._payload)}function nh(t){function r(P,I){if(t){var M=P.deletions;M===null?(P.deletions=[I],P.flags|=16):M.push(I)}}function o(P,I){if(!t)return null;for(;I!==null;)r(P,I),I=I.sibling;return null}function a(P,I){for(P=new Map;I!==null;)I.key!==null?P.set(I.key,I):P.set(I.index,I),I=I.sibling;return P}function c(P,I){return P=qr(P,I),P.index=0,P.sibling=null,P}function f(P,I,M){return P.index=M,t?(M=P.alternate,M!==null?(M=M.index,M<I?(P.flags|=2,I):M):(P.flags|=2,I)):(P.flags|=1048576,I)}function g(P){return t&&P.alternate===null&&(P.flags|=2),P}function C(P,I,M,$){return I===null||I.tag!==6?(I=au(M,P.mode,$),I.return=P,I):(I=c(I,M),I.return=P,I)}function A(P,I,M,$){var ee=M.type;return ee===z?H(P,I,M.props.children,$,M.key):I!==null&&(I.elementType===ee||typeof ee=="object"&&ee!==null&&ee.$$typeof===$e&&rh(ee)===I.type)?($=c(I,M.props),$.ref=Oi(P,I,M),$.return=P,$):($=cs(M.type,M.key,M.props,null,P.mode,$),$.ref=Oi(P,I,M),$.return=P,$)}function L(P,I,M,$){return I===null||I.tag!==4||I.stateNode.containerInfo!==M.containerInfo||I.stateNode.implementation!==M.implementation?(I=lu(M,P.mode,$),I.return=P,I):(I=c(I,M.children||[]),I.return=P,I)}function H(P,I,M,$,ee){return I===null||I.tag!==7?(I=dn(M,P.mode,$,ee),I.return=P,I):(I=c(I,M),I.return=P,I)}function G(P,I,M){if(typeof I=="string"&&I!==""||typeof I=="number")return I=au(""+I,P.mode,M),I.return=P,I;if(typeof I=="object"&&I!==null){switch(I.$$typeof){case T:return M=cs(I.type,I.key,I.props,null,P.mode,M),M.ref=Oi(P,null,I),M.return=P,M;case F:return I=lu(I,P.mode,M),I.return=P,I;case $e:var $=I._init;return G(P,$(I._payload),M)}if(ii(I)||re(I))return I=dn(I,P.mode,M,null),I.return=P,I;Uo(P,I)}return null}function U(P,I,M,$){var ee=I!==null?I.key:null;if(typeof M=="string"&&M!==""||typeof M=="number")return ee!==null?null:C(P,I,""+M,$);if(typeof M=="object"&&M!==null){switch(M.$$typeof){case T:return M.key===ee?A(P,I,M,$):null;case F:return M.key===ee?L(P,I,M,$):null;case $e:return ee=M._init,U(P,I,ee(M._payload),$)}if(ii(M)||re(M))return ee!==null?null:H(P,I,M,$,null);Uo(P,M)}return null}function K(P,I,M,$,ee){if(typeof $=="string"&&$!==""||typeof $=="number")return P=P.get(M)||null,C(I,P,""+$,ee);if(typeof $=="object"&&$!==null){switch($.$$typeof){case T:return P=P.get($.key===null?M:$.key)||null,A(I,P,$,ee);case F:return P=P.get($.key===null?M:$.key)||null,L(I,P,$,ee);case $e:var ne=$._init;return K(P,I,M,ne($._payload),ee)}if(ii($)||re($))return P=P.get(M)||null,H(I,P,$,ee,null);Uo(I,$)}return null}function X(P,I,M,$){for(var ee=null,ne=null,ie=I,ae=I=0,Ye=null;ie!==null&&ae<M.length;ae++){ie.index>ae?(Ye=ie,ie=null):Ye=ie.sibling;var be=U(P,ie,M[ae],$);if(be===null){ie===null&&(ie=Ye);break}t&&ie&&be.alternate===null&&r(P,ie),I=f(be,I,ae),ne===null?ee=be:ne.sibling=be,ne=be,ie=Ye}if(ae===M.length)return o(P,ie),Fe&&nn(P,ae),ee;if(ie===null){for(;ae<M.length;ae++)ie=G(P,M[ae],$),ie!==null&&(I=f(ie,I,ae),ne===null?ee=ie:ne.sibling=ie,ne=ie);return Fe&&nn(P,ae),ee}for(ie=a(P,ie);ae<M.length;ae++)Ye=K(ie,P,ae,M[ae],$),Ye!==null&&(t&&Ye.alternate!==null&&ie.delete(Ye.key===null?ae:Ye.key),I=f(Ye,I,ae),ne===null?ee=Ye:ne.sibling=Ye,ne=Ye);return t&&ie.forEach(function(Vr){return r(P,Vr)}),Fe&&nn(P,ae),ee}function Y(P,I,M,$){var ee=re(M);if(typeof ee!="function")throw Error(i(150));if(M=ee.call(M),M==null)throw Error(i(151));for(var ne=ee=null,ie=I,ae=I=0,Ye=null,be=M.next();ie!==null&&!be.done;ae++,be=M.next()){ie.index>ae?(Ye=ie,ie=null):Ye=ie.sibling;var Vr=U(P,ie,be.value,$);if(Vr===null){ie===null&&(ie=Ye);break}t&&ie&&Vr.alternate===null&&r(P,ie),I=f(Vr,I,ae),ne===null?ee=Vr:ne.sibling=Vr,ne=Vr,ie=Ye}if(be.done)return o(P,ie),Fe&&nn(P,ae),ee;if(ie===null){for(;!be.done;ae++,be=M.next())be=G(P,be.value,$),be!==null&&(I=f(be,I,ae),ne===null?ee=be:ne.sibling=be,ne=be);return Fe&&nn(P,ae),ee}for(ie=a(P,ie);!be.done;ae++,be=M.next())be=K(ie,P,ae,be.value,$),be!==null&&(t&&be.alternate!==null&&ie.delete(be.key===null?ae:be.key),I=f(be,I,ae),ne===null?ee=be:ne.sibling=be,ne=be);return t&&ie.forEach(function(n1){return r(P,n1)}),Fe&&nn(P,ae),ee}function Ge(P,I,M,$){if(typeof M=="object"&&M!==null&&M.type===z&&M.key===null&&(M=M.props.children),typeof M=="object"&&M!==null){switch(M.$$typeof){case T:e:{for(var ee=M.key,ne=I;ne!==null;){if(ne.key===ee){if(ee=M.type,ee===z){if(ne.tag===7){o(P,ne.sibling),I=c(ne,M.props.children),I.return=P,P=I;break e}}else if(ne.elementType===ee||typeof ee=="object"&&ee!==null&&ee.$$typeof===$e&&rh(ee)===ne.type){o(P,ne.sibling),I=c(ne,M.props),I.ref=Oi(P,ne,M),I.return=P,P=I;break e}o(P,ne);break}else r(P,ne);ne=ne.sibling}M.type===z?(I=dn(M.props.children,P.mode,$,M.key),I.return=P,P=I):($=cs(M.type,M.key,M.props,null,P.mode,$),$.ref=Oi(P,I,M),$.return=P,P=$)}return g(P);case F:e:{for(ne=M.key;I!==null;){if(I.key===ne)if(I.tag===4&&I.stateNode.containerInfo===M.containerInfo&&I.stateNode.implementation===M.implementation){o(P,I.sibling),I=c(I,M.children||[]),I.return=P,P=I;break e}else{o(P,I);break}else r(P,I);I=I.sibling}I=lu(M,P.mode,$),I.return=P,P=I}return g(P);case $e:return ne=M._init,Ge(P,I,ne(M._payload),$)}if(ii(M))return X(P,I,M,$);if(re(M))return Y(P,I,M,$);Uo(P,M)}return typeof M=="string"&&M!==""||typeof M=="number"?(M=""+M,I!==null&&I.tag===6?(o(P,I.sibling),I=c(I,M),I.return=P,P=I):(o(P,I),I=au(M,P.mode,$),I.return=P,P=I),g(P)):o(P,I)}return Ge}var Un=nh(!0),ih=nh(!1),Ho=Mr(null),zo=null,Hn=null,yl=null;function vl(){yl=Hn=zo=null}function _l(t){var r=Ho.current;Pe(Ho),t._currentValue=r}function El(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 zn(t,r){zo=t,yl=Hn=null,t=t.dependencies,t!==null&&t.firstContext!==null&&((t.lanes&r)!==0&&(yt=!0),t.firstContext=null)}function Pt(t){var r=t._currentValue;if(yl!==t)if(t={context:t,memoizedValue:r,next:null},Hn===null){if(zo===null)throw Error(i(308));Hn=t,zo.dependencies={lanes:0,firstContext:t}}else Hn=Hn.next=t;return r}var on=null;function wl(t){on===null?on=[t]:on.push(t)}function oh(t,r,o,a){var c=r.interleaved;return c===null?(o.next=o,wl(r)):(o.next=c.next,c.next=o),r.interleaved=o,yr(t,a)}function yr(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 Sl(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function sh(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 vr(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,(Se&2)!==0){var c=a.pending;return c===null?r.next=r:(r.next=c.next,c.next=r),a.pending=r,yr(t,o)}return c=a.interleaved,c===null?(r.next=r,wl(a)):(r.next=c.next,c.next=r),a.interleaved=r,yr(t,o)}function Go(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,Fa(t,o)}}function ah(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 $o(t,r,o,a){var c=t.updateQueue;Br=!1;var f=c.firstBaseUpdate,g=c.lastBaseUpdate,C=c.shared.pending;if(C!==null){c.shared.pending=null;var A=C,L=A.next;A.next=null,g===null?f=L:g.next=L,g=A;var H=t.alternate;H!==null&&(H=H.updateQueue,C=H.lastBaseUpdate,C!==g&&(C===null?H.firstBaseUpdate=L:C.next=L,H.lastBaseUpdate=A))}if(f!==null){var G=c.baseState;g=0,H=L=A=null,C=f;do{var U=C.lane,K=C.eventTime;if((a&U)===U){H!==null&&(H=H.next={eventTime:K,lane:0,tag:C.tag,payload:C.payload,callback:C.callback,next:null});e:{var X=t,Y=C;switch(U=r,K=o,Y.tag){case 1:if(X=Y.payload,typeof X=="function"){G=X.call(K,G,U);break e}G=X;break e;case 3:X.flags=X.flags&-65537|128;case 0:if(X=Y.payload,U=typeof X=="function"?X.call(K,G,U):X,U==null)break e;G=Z({},G,U);break e;case 2:Br=!0}}C.callback!==null&&C.lane!==0&&(t.flags|=64,U=c.effects,U===null?c.effects=[C]:U.push(C))}else K={eventTime:K,lane:U,tag:C.tag,payload:C.payload,callback:C.callback,next:null},H===null?(L=H=K,A=G):H=H.next=K,g|=U;if(C=C.next,C===null){if(C=c.shared.pending,C===null)break;U=C,C=U.next,U.next=null,c.lastBaseUpdate=U,c.shared.pending=null}}while(!0);if(H===null&&(A=G),c.baseState=A,c.firstBaseUpdate=L,c.lastBaseUpdate=H,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 lh(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 Ni={},rr=Mr(Ni),Ai=Mr(Ni),Ii=Mr(Ni);function sn(t){if(t===Ni)throw Error(i(174));return t}function xl(t,r){switch(Ae(Ii,r),Ae(Ai,t),Ae(rr,Ni),t=r.nodeType,t){case 9:case 11:r=(r=r.documentElement)?r.namespaceURI:ba(null,"");break;default:t=t===8?r.parentNode:r,r=t.namespaceURI||null,t=t.tagName,r=ba(r,t)}Pe(rr),Ae(rr,r)}function Gn(){Pe(rr),Pe(Ai),Pe(Ii)}function uh(t){sn(Ii.current);var r=sn(rr.current),o=ba(r,t.type);r!==o&&(Ae(Ai,t),Ae(rr,o))}function bl(t){Ai.current===t&&(Pe(rr),Pe(Ai))}var Le=Mr(0);function qo(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)!==0)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 Tl=[];function Cl(){for(var t=0;t<Tl.length;t++)Tl[t]._workInProgressVersionPrimary=null;Tl.length=0}var Vo=k.ReactCurrentDispatcher,kl=k.ReactCurrentBatchConfig,an=0,Be=null,Ke=null,Qe=null,Wo=!1,Di=!1,Pi=0,T_=0;function at(){throw Error(i(321))}function Rl(t,r){if(r===null)return!1;for(var o=0;o<r.length&&o<t.length;o++)if(!zt(t[o],r[o]))return!1;return!0}function Ol(t,r,o,a,c,f){if(an=f,Be=r,r.memoizedState=null,r.updateQueue=null,r.lanes=0,Vo.current=t===null||t.memoizedState===null?O_:N_,t=o(a,c),Di){f=0;do{if(Di=!1,Pi=0,25<=f)throw Error(i(301));f+=1,Qe=Ke=null,r.updateQueue=null,Vo.current=A_,t=o(a,c)}while(Di)}if(Vo.current=Qo,r=Ke!==null&&Ke.next!==null,an=0,Qe=Ke=Be=null,Wo=!1,r)throw Error(i(300));return t}function Nl(){var t=Pi!==0;return Pi=0,t}function nr(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Qe===null?Be.memoizedState=Qe=t:Qe=Qe.next=t,Qe}function Mt(){if(Ke===null){var t=Be.alternate;t=t!==null?t.memoizedState:null}else t=Ke.next;var r=Qe===null?Be.memoizedState:Qe.next;if(r!==null)Qe=r,Ke=t;else{if(t===null)throw Error(i(310));Ke=t,t={memoizedState:Ke.memoizedState,baseState:Ke.baseState,baseQueue:Ke.baseQueue,queue:Ke.queue,next:null},Qe===null?Be.memoizedState=Qe=t:Qe=Qe.next=t}return Qe}function Mi(t,r){return typeof r=="function"?r(t):r}function Al(t){var r=Mt(),o=r.queue;if(o===null)throw Error(i(311));o.lastRenderedReducer=t;var a=Ke,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 C=g=null,A=null,L=f;do{var H=L.lane;if((an&H)===H)A!==null&&(A=A.next={lane:0,action:L.action,hasEagerState:L.hasEagerState,eagerState:L.eagerState,next:null}),a=L.hasEagerState?L.eagerState:t(a,L.action);else{var G={lane:H,action:L.action,hasEagerState:L.hasEagerState,eagerState:L.eagerState,next:null};A===null?(C=A=G,g=a):A=A.next=G,Be.lanes|=H,ln|=H}L=L.next}while(L!==null&&L!==f);A===null?g=a:A.next=C,zt(a,r.memoizedState)||(yt=!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,Be.lanes|=f,ln|=f,c=c.next;while(c!==t)}else c===null&&(o.lanes=0);return[r.memoizedState,o.dispatch]}function Il(t){var r=Mt(),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);zt(f,r.memoizedState)||(yt=!0),r.memoizedState=f,r.baseQueue===null&&(r.baseState=f),o.lastRenderedState=f}return[f,a]}function ch(){}function fh(t,r){var o=Be,a=Mt(),c=r(),f=!zt(a.memoizedState,c);if(f&&(a.memoizedState=c,yt=!0),a=a.queue,Dl(ph.bind(null,o,a,t),[t]),a.getSnapshot!==r||f||Qe!==null&&Qe.memoizedState.tag&1){if(o.flags|=2048,Fi(9,hh.bind(null,o,a,c,r),void 0,null),Xe===null)throw Error(i(349));(an&30)!==0||dh(o,r,c)}return c}function dh(t,r,o){t.flags|=16384,t={getSnapshot:r,value:o},r=Be.updateQueue,r===null?(r={lastEffect:null,stores:null},Be.updateQueue=r,r.stores=[t]):(o=r.stores,o===null?r.stores=[t]:o.push(t))}function hh(t,r,o,a){r.value=o,r.getSnapshot=a,mh(r)&&gh(t)}function ph(t,r,o){return o(function(){mh(r)&&gh(t)})}function mh(t){var r=t.getSnapshot;t=t.value;try{var o=r();return!zt(t,o)}catch{return!0}}function gh(t){var r=yr(t,1);r!==null&&Wt(r,t,1,-1)}function yh(t){var r=nr();return typeof t=="function"&&(t=t()),r.memoizedState=r.baseState=t,t={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Mi,lastRenderedState:t},r.queue=t,t=t.dispatch=R_.bind(null,Be,t),[r.memoizedState,t]}function Fi(t,r,o,a){return t={tag:t,create:r,destroy:o,deps:a,next:null},r=Be.updateQueue,r===null?(r={lastEffect:null,stores:null},Be.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 vh(){return Mt().memoizedState}function Ko(t,r,o,a){var c=nr();Be.flags|=t,c.memoizedState=Fi(1|r,o,void 0,a===void 0?null:a)}function Zo(t,r,o,a){var c=Mt();a=a===void 0?null:a;var f=void 0;if(Ke!==null){var g=Ke.memoizedState;if(f=g.destroy,a!==null&&Rl(a,g.deps)){c.memoizedState=Fi(r,o,f,a);return}}Be.flags|=t,c.memoizedState=Fi(1|r,o,f,a)}function _h(t,r){return Ko(8390656,8,t,r)}function Dl(t,r){return Zo(2048,8,t,r)}function Eh(t,r){return Zo(4,2,t,r)}function wh(t,r){return Zo(4,4,t,r)}function Sh(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 xh(t,r,o){return o=o!=null?o.concat([t]):null,Zo(4,4,Sh.bind(null,r,t),o)}function Pl(){}function bh(t,r){var o=Mt();r=r===void 0?null:r;var a=o.memoizedState;return a!==null&&r!==null&&Rl(r,a[1])?a[0]:(o.memoizedState=[t,r],t)}function Th(t,r){var o=Mt();r=r===void 0?null:r;var a=o.memoizedState;return a!==null&&r!==null&&Rl(r,a[1])?a[0]:(t=t(),o.memoizedState=[t,r],t)}function Ch(t,r,o){return(an&21)===0?(t.baseState&&(t.baseState=!1,yt=!0),t.memoizedState=o):(zt(o,r)||(o=rd(),Be.lanes|=o,ln|=o,t.baseState=!0),r)}function C_(t,r){var o=Oe;Oe=o!==0&&4>o?o:4,t(!0);var a=kl.transition;kl.transition={};try{t(!1),r()}finally{Oe=o,kl.transition=a}}function kh(){return Mt().memoizedState}function k_(t,r,o){var a=Gr(t);if(o={lane:a,action:o,hasEagerState:!1,eagerState:null,next:null},Rh(t))Oh(r,o);else if(o=oh(t,r,o,a),o!==null){var c=dt();Wt(o,t,a,c),Nh(o,r,a)}}function R_(t,r,o){var a=Gr(t),c={lane:a,action:o,hasEagerState:!1,eagerState:null,next:null};if(Rh(t))Oh(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,C=f(g,o);if(c.hasEagerState=!0,c.eagerState=C,zt(C,g)){var A=r.interleaved;A===null?(c.next=c,wl(r)):(c.next=A.next,A.next=c),r.interleaved=c;return}}catch{}finally{}o=oh(t,r,c,a),o!==null&&(c=dt(),Wt(o,t,a,c),Nh(o,r,a))}}function Rh(t){var r=t.alternate;return t===Be||r!==null&&r===Be}function Oh(t,r){Di=Wo=!0;var o=t.pending;o===null?r.next=r:(r.next=o.next,o.next=r),t.pending=r}function Nh(t,r,o){if((o&4194240)!==0){var a=r.lanes;a&=t.pendingLanes,o|=a,r.lanes=o,Fa(t,o)}}var Qo={readContext:Pt,useCallback:at,useContext:at,useEffect:at,useImperativeHandle:at,useInsertionEffect:at,useLayoutEffect:at,useMemo:at,useReducer:at,useRef:at,useState:at,useDebugValue:at,useDeferredValue:at,useTransition:at,useMutableSource:at,useSyncExternalStore:at,useId:at,unstable_isNewReconciler:!1},O_={readContext:Pt,useCallback:function(t,r){return nr().memoizedState=[t,r===void 0?null:r],t},useContext:Pt,useEffect:_h,useImperativeHandle:function(t,r,o){return o=o!=null?o.concat([t]):null,Ko(4194308,4,Sh.bind(null,r,t),o)},useLayoutEffect:function(t,r){return Ko(4194308,4,t,r)},useInsertionEffect:function(t,r){return Ko(4,2,t,r)},useMemo:function(t,r){var o=nr();return r=r===void 0?null:r,t=t(),o.memoizedState=[t,r],t},useReducer:function(t,r,o){var a=nr();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=k_.bind(null,Be,t),[a.memoizedState,t]},useRef:function(t){var r=nr();return t={current:t},r.memoizedState=t},useState:yh,useDebugValue:Pl,useDeferredValue:function(t){return nr().memoizedState=t},useTransition:function(){var t=yh(!1),r=t[0];return t=C_.bind(null,t[1]),nr().memoizedState=t,[r,t]},useMutableSource:function(){},useSyncExternalStore:function(t,r,o){var a=Be,c=nr();if(Fe){if(o===void 0)throw Error(i(407));o=o()}else{if(o=r(),Xe===null)throw Error(i(349));(an&30)!==0||dh(a,r,o)}c.memoizedState=o;var f={value:o,getSnapshot:r};return c.queue=f,_h(ph.bind(null,a,f,t),[t]),a.flags|=2048,Fi(9,hh.bind(null,a,f,o,r),void 0,null),o},useId:function(){var t=nr(),r=Xe.identifierPrefix;if(Fe){var o=gr,a=mr;o=(a&~(1<<32-Ht(a)-1)).toString(32)+o,r=":"+r+"R"+o,o=Pi++,0<o&&(r+="H"+o.toString(32)),r+=":"}else o=T_++,r=":"+r+"r"+o.toString(32)+":";return t.memoizedState=r},unstable_isNewReconciler:!1},N_={readContext:Pt,useCallback:bh,useContext:Pt,useEffect:Dl,useImperativeHandle:xh,useInsertionEffect:Eh,useLayoutEffect:wh,useMemo:Th,useReducer:Al,useRef:vh,useState:function(){return Al(Mi)},useDebugValue:Pl,useDeferredValue:function(t){var r=Mt();return Ch(r,Ke.memoizedState,t)},useTransition:function(){var t=Al(Mi)[0],r=Mt().memoizedState;return[t,r]},useMutableSource:ch,useSyncExternalStore:fh,useId:kh,unstable_isNewReconciler:!1},A_={readContext:Pt,useCallback:bh,useContext:Pt,useEffect:Dl,useImperativeHandle:xh,useInsertionEffect:Eh,useLayoutEffect:wh,useMemo:Th,useReducer:Il,useRef:vh,useState:function(){return Il(Mi)},useDebugValue:Pl,useDeferredValue:function(t){var r=Mt();return Ke===null?r.memoizedState=t:Ch(r,Ke.memoizedState,t)},useTransition:function(){var t=Il(Mi)[0],r=Mt().memoizedState;return[t,r]},useMutableSource:ch,useSyncExternalStore:fh,useId:kh,unstable_isNewReconciler:!1};function $t(t,r){if(t&&t.defaultProps){r=Z({},r),t=t.defaultProps;for(var o in t)r[o]===void 0&&(r[o]=t[o]);return r}return r}function Ml(t,r,o,a){r=t.memoizedState,o=o(a,r),o=o==null?r:Z({},r,o),t.memoizedState=o,t.lanes===0&&(t.updateQueue.baseState=o)}var Xo={isMounted:function(t){return(t=t._reactInternals)?Jr(t)===t:!1},enqueueSetState:function(t,r,o){t=t._reactInternals;var a=dt(),c=Gr(t),f=vr(a,c);f.payload=r,o!=null&&(f.callback=o),r=jr(t,f,c),r!==null&&(Wt(r,t,c,a),Go(r,t,c))},enqueueReplaceState:function(t,r,o){t=t._reactInternals;var a=dt(),c=Gr(t),f=vr(a,c);f.tag=1,f.payload=r,o!=null&&(f.callback=o),r=jr(t,f,c),r!==null&&(Wt(r,t,c,a),Go(r,t,c))},enqueueForceUpdate:function(t,r){t=t._reactInternals;var o=dt(),a=Gr(t),c=vr(o,a);c.tag=2,r!=null&&(c.callback=r),r=jr(t,c,a),r!==null&&(Wt(r,t,a,o),Go(r,t,a))}};function Ah(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 Ih(t,r,o){var a=!1,c=Fr,f=r.contextType;return typeof f=="object"&&f!==null?f=Pt(f):(c=gt(r)?tn:st.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=Xo,t.stateNode=r,r._reactInternals=t,a&&(t=t.stateNode,t.__reactInternalMemoizedUnmaskedChildContext=c,t.__reactInternalMemoizedMaskedChildContext=f),r}function Dh(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&&Xo.enqueueReplaceState(r,r.state,null)}function Fl(t,r,o,a){var c=t.stateNode;c.props=o,c.state=t.memoizedState,c.refs={},Sl(t);var f=r.contextType;typeof f=="object"&&f!==null?c.context=Pt(f):(f=gt(r)?tn:st.current,c.context=Fn(t,f)),c.state=t.memoizedState,f=r.getDerivedStateFromProps,typeof f=="function"&&(Ml(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&&Xo.enqueueReplaceState(c,c.state,null),$o(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=`
37
+ `+c[g].replace(" at new "," at ");return t.displayName&&A.includes("<anonymous>")&&(A=A.replace("<anonymous>",t.displayName)),A}while(1<=g&&0<=C);break}}}finally{ce=!1,Error.prepareStackTrace=o}return(t=t?t.displayName||t.name:"")?j(t):""}function ye(t){switch(t.tag){case 5:return j(t.type);case 16:return j("Lazy");case 13:return j("Suspense");case 19:return j("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 z:return"Fragment";case F:return"Portal";case fe:return"Profiler";case V:return"StrictMode";case ue:return"Suspense";case Ue:return"SuspenseList"}if(typeof t=="object")switch(t.$$typeof){case oe:return(t.displayName||"Context")+".Consumer";case te:return(t._context.displayName||"Context")+".Provider";case pe: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===V?"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 et(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 ni(t){t._valueTracker||(t._valueTracker=et(t))}function ct(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 Jt(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 wa(t,r){var o=r.checked;return Z({},r,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:o??t._wrapperState.initialChecked})}function If(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 Df(t,r){r=r.checked,r!=null&&x(t,"checked",r,!1)}function Sa(t,r){Df(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")?xa(t,r.type,o):r.hasOwnProperty("defaultValue")&&xa(t,r.type,Te(r.defaultValue)),r.checked==null&&r.defaultChecked!=null&&(t.defaultChecked=!!r.defaultChecked)}function Pf(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 xa(t,r,o){(r!=="number"||Jt(t.ownerDocument)!==t)&&(o==null?t.defaultValue=""+t._wrapperState.initialValue:t.defaultValue!==""+o&&(t.defaultValue=""+o))}var ii=Array.isArray;function bn(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 ba(t,r){if(r.dangerouslySetInnerHTML!=null)throw Error(i(91));return Z({},r,{value:void 0,defaultValue:void 0,children:""+t._wrapperState.initialValue})}function Mf(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(ii(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 Ff(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 Lf(t){var r=t.textContent;r===t._wrapperState.initialValue&&r!==""&&r!==null&&(t.value=r)}function Bf(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 Ta(t,r){return t==null||t==="http://www.w3.org/1999/xhtml"?Bf(r):t==="http://www.w3.org/2000/svg"&&r==="foreignObject"?"http://www.w3.org/1999/xhtml":t}var uo,jf=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(uo=uo||document.createElement("div"),uo.innerHTML="<svg>"+r.valueOf().toString()+"</svg>",r=uo.firstChild;t.firstChild;)t.removeChild(t.firstChild);for(;r.firstChild;)t.appendChild(r.firstChild)}});function oi(t,r){if(r){var o=t.firstChild;if(o&&o===t.lastChild&&o.nodeType===3){o.nodeValue=r;return}}t.textContent=r}var si={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},uv=["Webkit","ms","Moz","O"];Object.keys(si).forEach(function(t){uv.forEach(function(r){r=r+t.charAt(0).toUpperCase()+t.substring(1),si[r]=si[t]})});function Uf(t,r,o){return r==null||typeof r=="boolean"||r===""?"":o||typeof r!="number"||r===0||si.hasOwnProperty(t)&&si[t]?(""+r).trim():r+"px"}function Hf(t,r){t=t.style;for(var o in r)if(r.hasOwnProperty(o)){var a=o.indexOf("--")===0,c=Uf(o,r[o],a);o==="float"&&(o="cssFloat"),a?t.setProperty(o,c):t[o]=c}}var cv=Z({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 Ca(t,r){if(r){if(cv[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 ka(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 Ra=null;function Oa(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var Na=null,Tn=null,Cn=null;function zf(t){if(t=Ri(t)){if(typeof Na!="function")throw Error(i(280));var r=t.stateNode;r&&(r=Do(r),Na(t.stateNode,t.type,r))}}function Gf(t){Tn?Cn?Cn.push(t):Cn=[t]:Tn=t}function $f(){if(Tn){var t=Tn,r=Cn;if(Cn=Tn=null,zf(t),r)for(t=0;t<r.length;t++)zf(r[t])}}function qf(t,r){return t(r)}function Vf(){}var Aa=!1;function Wf(t,r,o){if(Aa)return t(r,o);Aa=!0;try{return qf(t,r,o)}finally{Aa=!1,(Tn!==null||Cn!==null)&&(Vf(),$f())}}function ai(t,r){var o=t.stateNode;if(o===null)return null;var a=Do(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 Ia=!1;if(h)try{var li={};Object.defineProperty(li,"passive",{get:function(){Ia=!0}}),window.addEventListener("test",li,li),window.removeEventListener("test",li,li)}catch{Ia=!1}function fv(t,r,o,a,c,f,g,C,A){var L=Array.prototype.slice.call(arguments,3);try{r.apply(o,L)}catch(H){this.onError(H)}}var ui=!1,co=null,fo=!1,Da=null,dv={onError:function(t){ui=!0,co=t}};function hv(t,r,o,a,c,f,g,C,A){ui=!1,co=null,fv.apply(dv,arguments)}function pv(t,r,o,a,c,f,g,C,A){if(hv.apply(this,arguments),ui){if(ui){var L=co;ui=!1,co=null}else throw Error(i(198));fo||(fo=!0,Da=L)}}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)!==0&&(o=r.return),t=r.return;while(t)}return r.tag===3?o:null}function Kf(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 mv(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,C=c.child;C;){if(C===o){g=!0,o=c,a=f;break}if(C===a){g=!0,a=c,o=f;break}C=C.sibling}if(!g){for(C=f.child;C;){if(C===o){g=!0,o=f,a=c;break}if(C===a){g=!0,a=f,o=c;break}C=C.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 Xf(t){return t=mv(t),t!==null?Qf(t):null}function Qf(t){if(t.tag===5||t.tag===6)return t;for(t=t.child;t!==null;){var r=Qf(t);if(r!==null)return r;t=t.sibling}return null}var Yf=n.unstable_scheduleCallback,Jf=n.unstable_cancelCallback,gv=n.unstable_shouldYield,yv=n.unstable_requestPaint,ze=n.unstable_now,vv=n.unstable_getCurrentPriorityLevel,Pa=n.unstable_ImmediatePriority,ed=n.unstable_UserBlockingPriority,ho=n.unstable_NormalPriority,_v=n.unstable_LowPriority,td=n.unstable_IdlePriority,po=null,er=null;function Ev(t){if(er&&typeof er.onCommitFiberRoot=="function")try{er.onCommitFiberRoot(po,t,void 0,(t.current.flags&128)===128)}catch{}}var Ht=Math.clz32?Math.clz32:xv,wv=Math.log,Sv=Math.LN2;function xv(t){return t>>>=0,t===0?32:31-(wv(t)/Sv|0)|0}var mo=64,go=4194304;function ci(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 yo(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 C=g&~c;C!==0?a=ci(C):(f&=g,f!==0&&(a=ci(f)))}else g=o&~c,g!==0?a=ci(g):f!==0&&(a=ci(f));if(a===0)return 0;if(r!==0&&r!==a&&(r&c)===0&&(c=a&-a,f=r&-r,c>=f||c===16&&(f&4194240)!==0))return r;if((a&4)!==0&&(a|=o&16),r=t.entangledLanes,r!==0)for(t=t.entanglements,r&=a;0<r;)o=31-Ht(r),c=1<<o,a|=t[o],r&=~c;return a}function bv(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 Tv(t,r){for(var o=t.suspendedLanes,a=t.pingedLanes,c=t.expirationTimes,f=t.pendingLanes;0<f;){var g=31-Ht(f),C=1<<g,A=c[g];A===-1?((C&o)===0||(C&a)!==0)&&(c[g]=bv(C,r)):A<=r&&(t.expiredLanes|=C),f&=~C}}function Ma(t){return t=t.pendingLanes&-1073741825,t!==0?t:t&1073741824?1073741824:0}function rd(){var t=mo;return mo<<=1,(mo&4194240)===0&&(mo=64),t}function Fa(t){for(var r=[],o=0;31>o;o++)r.push(t);return r}function fi(t,r,o){t.pendingLanes|=r,r!==536870912&&(t.suspendedLanes=0,t.pingedLanes=0),t=t.eventTimes,r=31-Ht(r),t[r]=o}function Cv(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-Ht(o),f=1<<c;r[c]=0,a[c]=-1,t[c]=-1,o&=~f}}function La(t,r){var o=t.entangledLanes|=r;for(t=t.entanglements;o;){var a=31-Ht(o),c=1<<a;c&r|t[a]&r&&(t[a]|=r),o&=~c}}var Oe=0;function nd(t){return t&=-t,1<t?4<t?(t&268435455)!==0?16:536870912:4:1}var id,Ba,od,sd,ad,ja=!1,vo=[],Rr=null,Or=null,Nr=null,di=new Map,hi=new Map,Ar=[],kv="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 ld(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":di.delete(r.pointerId);break;case"gotpointercapture":case"lostpointercapture":hi.delete(r.pointerId)}}function pi(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=Ri(r),r!==null&&Ba(r)),t):(t.eventSystemFlags|=a,r=t.targetContainers,c!==null&&r.indexOf(c)===-1&&r.push(c),t)}function Rv(t,r,o,a,c){switch(r){case"focusin":return Rr=pi(Rr,t,r,o,a,c),!0;case"dragenter":return Or=pi(Or,t,r,o,a,c),!0;case"mouseover":return Nr=pi(Nr,t,r,o,a,c),!0;case"pointerover":var f=c.pointerId;return di.set(f,pi(di.get(f)||null,t,r,o,a,c)),!0;case"gotpointercapture":return f=c.pointerId,hi.set(f,pi(hi.get(f)||null,t,r,o,a,c)),!0}return!1}function ud(t){var r=en(t.target);if(r!==null){var o=Jr(r);if(o!==null){if(r=o.tag,r===13){if(r=Kf(o),r!==null){t.blockedOn=r,ad(t.priority,function(){od(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 _o(t){if(t.blockedOn!==null)return!1;for(var r=t.targetContainers;0<r.length;){var o=Ha(t.domEventName,t.eventSystemFlags,r[0],t.nativeEvent);if(o===null){o=t.nativeEvent;var a=new o.constructor(o.type,o);Ra=a,o.target.dispatchEvent(a),Ra=null}else return r=Ri(o),r!==null&&Ba(r),t.blockedOn=o,!1;r.shift()}return!0}function cd(t,r,o){_o(t)&&o.delete(r)}function Ov(){ja=!1,Rr!==null&&_o(Rr)&&(Rr=null),Or!==null&&_o(Or)&&(Or=null),Nr!==null&&_o(Nr)&&(Nr=null),di.forEach(cd),hi.forEach(cd)}function mi(t,r){t.blockedOn===r&&(t.blockedOn=null,ja||(ja=!0,n.unstable_scheduleCallback(n.unstable_NormalPriority,Ov)))}function gi(t){function r(c){return mi(c,t)}if(0<vo.length){mi(vo[0],t);for(var o=1;o<vo.length;o++){var a=vo[o];a.blockedOn===t&&(a.blockedOn=null)}}for(Rr!==null&&mi(Rr,t),Or!==null&&mi(Or,t),Nr!==null&&mi(Nr,t),di.forEach(r),hi.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);)ud(o),o.blockedOn===null&&Ar.shift()}var kn=k.ReactCurrentBatchConfig,Eo=!0;function Nv(t,r,o,a){var c=Oe,f=kn.transition;kn.transition=null;try{Oe=1,Ua(t,r,o,a)}finally{Oe=c,kn.transition=f}}function Av(t,r,o,a){var c=Oe,f=kn.transition;kn.transition=null;try{Oe=4,Ua(t,r,o,a)}finally{Oe=c,kn.transition=f}}function Ua(t,r,o,a){if(Eo){var c=Ha(t,r,o,a);if(c===null)il(t,r,a,wo,o),ld(t,a);else if(Rv(c,t,r,o,a))a.stopPropagation();else if(ld(t,a),r&4&&-1<kv.indexOf(t)){for(;c!==null;){var f=Ri(c);if(f!==null&&id(f),f=Ha(t,r,o,a),f===null&&il(t,r,a,wo,o),f===c)break;c=f}c!==null&&a.stopPropagation()}else il(t,r,a,null,o)}}var wo=null;function Ha(t,r,o,a){if(wo=null,t=Oa(a),t=en(t),t!==null)if(r=Jr(t),r===null)t=null;else if(o=r.tag,o===13){if(t=Kf(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 wo=t,null}function fd(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(vv()){case Pa:return 1;case ed:return 4;case ho:case _v:return 16;case td:return 536870912;default:return 16}default:return 16}}var Ir=null,za=null,So=null;function dd(){if(So)return So;var t,r=za,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 So=c.slice(t,1<a?1-a:void 0)}function xo(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 bo(){return!0}function hd(){return!1}function St(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 C in t)t.hasOwnProperty(C)&&(o=t[C],this[C]=o?o(f):f[C]);return this.isDefaultPrevented=(f.defaultPrevented!=null?f.defaultPrevented:f.returnValue===!1)?bo:hd,this.isPropagationStopped=hd,this}return Z(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=bo)},stopPropagation:function(){var o=this.nativeEvent;o&&(o.stopPropagation?o.stopPropagation():typeof o.cancelBubble!="unknown"&&(o.cancelBubble=!0),this.isPropagationStopped=bo)},persist:function(){},isPersistent:bo}),r}var Rn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Ga=St(Rn),yi=Z({},Rn,{view:0,detail:0}),Iv=St(yi),$a,qa,vi,To=Z({},yi,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Wa,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!==vi&&(vi&&t.type==="mousemove"?($a=t.screenX-vi.screenX,qa=t.screenY-vi.screenY):qa=$a=0,vi=t),$a)},movementY:function(t){return"movementY"in t?t.movementY:qa}}),pd=St(To),Dv=Z({},To,{dataTransfer:0}),Pv=St(Dv),Mv=Z({},yi,{relatedTarget:0}),Va=St(Mv),Fv=Z({},Rn,{animationName:0,elapsedTime:0,pseudoElement:0}),Lv=St(Fv),Bv=Z({},Rn,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),jv=St(Bv),Uv=Z({},Rn,{data:0}),md=St(Uv),Hv={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},zv={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"},Gv={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function $v(t){var r=this.nativeEvent;return r.getModifierState?r.getModifierState(t):(t=Gv[t])?!!r[t]:!1}function Wa(){return $v}var qv=Z({},yi,{key:function(t){if(t.key){var r=Hv[t.key]||t.key;if(r!=="Unidentified")return r}return t.type==="keypress"?(t=xo(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?zv[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Wa,charCode:function(t){return t.type==="keypress"?xo(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?xo(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),Vv=St(qv),Wv=Z({},To,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),gd=St(Wv),Kv=Z({},yi,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Wa}),Zv=St(Kv),Xv=Z({},Rn,{propertyName:0,elapsedTime:0,pseudoElement:0}),Qv=St(Xv),Yv=Z({},To,{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}),Jv=St(Yv),e_=[9,13,27,32],Ka=h&&"CompositionEvent"in window,_i=null;h&&"documentMode"in document&&(_i=document.documentMode);var t_=h&&"TextEvent"in window&&!_i,yd=h&&(!Ka||_i&&8<_i&&11>=_i),vd=" ",_d=!1;function Ed(t,r){switch(t){case"keyup":return e_.indexOf(r.keyCode)!==-1;case"keydown":return r.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function wd(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var On=!1;function r_(t,r){switch(t){case"compositionend":return wd(r);case"keypress":return r.which!==32?null:(_d=!0,vd);case"textInput":return t=r.data,t===vd&&_d?null:t;default:return null}}function n_(t,r){if(On)return t==="compositionend"||!Ka&&Ed(t,r)?(t=dd(),So=za=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 yd&&r.locale!=="ko"?null:r.data;default:return null}}var i_={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 Sd(t){var r=t&&t.nodeName&&t.nodeName.toLowerCase();return r==="input"?!!i_[t.type]:r==="textarea"}function xd(t,r,o,a){Gf(a),r=No(r,"onChange"),0<r.length&&(o=new Ga("onChange","change",null,o,a),t.push({event:o,listeners:r}))}var Ei=null,wi=null;function o_(t){Hd(t,0)}function Co(t){var r=Pn(t);if(ct(r))return t}function s_(t,r){if(t==="change")return r}var bd=!1;if(h){var Za;if(h){var Xa="oninput"in document;if(!Xa){var Td=document.createElement("div");Td.setAttribute("oninput","return;"),Xa=typeof Td.oninput=="function"}Za=Xa}else Za=!1;bd=Za&&(!document.documentMode||9<document.documentMode)}function Cd(){Ei&&(Ei.detachEvent("onpropertychange",kd),wi=Ei=null)}function kd(t){if(t.propertyName==="value"&&Co(wi)){var r=[];xd(r,wi,t,Oa(t)),Wf(o_,r)}}function a_(t,r,o){t==="focusin"?(Cd(),Ei=r,wi=o,Ei.attachEvent("onpropertychange",kd)):t==="focusout"&&Cd()}function l_(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return Co(wi)}function u_(t,r){if(t==="click")return Co(r)}function c_(t,r){if(t==="input"||t==="change")return Co(r)}function f_(t,r){return t===r&&(t!==0||1/t===1/r)||t!==t&&r!==r}var zt=typeof Object.is=="function"?Object.is:f_;function Si(t,r){if(zt(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)||!zt(t[c],r[c]))return!1}return!0}function Rd(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function Od(t,r){var o=Rd(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=Rd(o)}}function Nd(t,r){return t&&r?t===r?!0:t&&t.nodeType===3?!1:r&&r.nodeType===3?Nd(t,r.parentNode):"contains"in t?t.contains(r):t.compareDocumentPosition?!!(t.compareDocumentPosition(r)&16):!1:!1}function Ad(){for(var t=window,r=Jt();r instanceof t.HTMLIFrameElement;){try{var o=typeof r.contentWindow.location.href=="string"}catch{o=!1}if(o)t=r.contentWindow;else break;r=Jt(t.document)}return r}function Qa(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 d_(t){var r=Ad(),o=t.focusedElem,a=t.selectionRange;if(r!==o&&o&&o.ownerDocument&&Nd(o.ownerDocument.documentElement,o)){if(a!==null&&Qa(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=Od(o,f);var g=Od(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 h_=h&&"documentMode"in document&&11>=document.documentMode,Nn=null,Ya=null,xi=null,Ja=!1;function Id(t,r,o){var a=o.window===o?o.document:o.nodeType===9?o:o.ownerDocument;Ja||Nn==null||Nn!==Jt(a)||(a=Nn,"selectionStart"in a&&Qa(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}),xi&&Si(xi,a)||(xi=a,a=No(Ya,"onSelect"),0<a.length&&(r=new Ga("onSelect","select",null,r,o),t.push({event:r,listeners:a}),r.target=Nn)))}function ko(t,r){var o={};return o[t.toLowerCase()]=r.toLowerCase(),o["Webkit"+t]="webkit"+r,o["Moz"+t]="moz"+r,o}var An={animationend:ko("Animation","AnimationEnd"),animationiteration:ko("Animation","AnimationIteration"),animationstart:ko("Animation","AnimationStart"),transitionend:ko("Transition","TransitionEnd")},el={},Dd={};h&&(Dd=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 Ro(t){if(el[t])return el[t];if(!An[t])return t;var r=An[t],o;for(o in r)if(r.hasOwnProperty(o)&&o in Dd)return el[t]=r[o];return t}var Pd=Ro("animationend"),Md=Ro("animationiteration"),Fd=Ro("animationstart"),Ld=Ro("transitionend"),Bd=new Map,jd="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 Dr(t,r){Bd.set(t,r),u(r,[t])}for(var tl=0;tl<jd.length;tl++){var rl=jd[tl],p_=rl.toLowerCase(),m_=rl[0].toUpperCase()+rl.slice(1);Dr(p_,"on"+m_)}Dr(Pd,"onAnimationEnd"),Dr(Md,"onAnimationIteration"),Dr(Fd,"onAnimationStart"),Dr("dblclick","onDoubleClick"),Dr("focusin","onFocus"),Dr("focusout","onBlur"),Dr(Ld,"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 bi="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(" "),g_=new Set("cancel close invalid load scroll toggle".split(" ").concat(bi));function Ud(t,r,o){var a=t.type||"unknown-event";t.currentTarget=o,pv(a,r,void 0,t),t.currentTarget=null}function Hd(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 C=a[g],A=C.instance,L=C.currentTarget;if(C=C.listener,A!==f&&c.isPropagationStopped())break e;Ud(c,C,L),f=A}else for(g=0;g<a.length;g++){if(C=a[g],A=C.instance,L=C.currentTarget,C=C.listener,A!==f&&c.isPropagationStopped())break e;Ud(c,C,L),f=A}}}if(fo)throw t=Da,fo=!1,Da=null,t}function De(t,r){var o=r[cl];o===void 0&&(o=r[cl]=new Set);var a=t+"__bubble";o.has(a)||(zd(r,t,2,!1),o.add(a))}function nl(t,r,o){var a=0;r&&(a|=4),zd(o,t,a,r)}var Oo="_reactListening"+Math.random().toString(36).slice(2);function Ti(t){if(!t[Oo]){t[Oo]=!0,s.forEach(function(o){o!=="selectionchange"&&(g_.has(o)||nl(o,!1,t),nl(o,!0,t))});var r=t.nodeType===9?t:t.ownerDocument;r===null||r[Oo]||(r[Oo]=!0,nl("selectionchange",!1,r))}}function zd(t,r,o,a){switch(fd(r)){case 1:var c=Nv;break;case 4:c=Av;break;default:c=Ua}o=c.bind(null,r,o,t),c=void 0,!Ia||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 il(t,r,o,a,c){var f=a;if((r&1)===0&&(r&2)===0&&a!==null)e:for(;;){if(a===null)return;var g=a.tag;if(g===3||g===4){var C=a.stateNode.containerInfo;if(C===c||C.nodeType===8&&C.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(;C!==null;){if(g=en(C),g===null)return;if(A=g.tag,A===5||A===6){a=f=g;continue e}C=C.parentNode}}a=a.return}Wf(function(){var L=f,H=Oa(o),G=[];e:{var U=Bd.get(t);if(U!==void 0){var K=Ga,Q=t;switch(t){case"keypress":if(xo(o)===0)break e;case"keydown":case"keyup":K=Vv;break;case"focusin":Q="focus",K=Va;break;case"focusout":Q="blur",K=Va;break;case"beforeblur":case"afterblur":K=Va;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":K=pd;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":K=Pv;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":K=Zv;break;case Pd:case Md:case Fd:K=Lv;break;case Ld:K=Qv;break;case"scroll":K=Iv;break;case"wheel":K=Jv;break;case"copy":case"cut":case"paste":K=jv;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":K=gd}var Y=(r&4)!==0,Ge=!Y&&t==="scroll",P=Y?U!==null?U+"Capture":null:U;Y=[];for(var I=L,M;I!==null;){M=I;var $=M.stateNode;if(M.tag===5&&$!==null&&(M=$,P!==null&&($=ai(I,P),$!=null&&Y.push(Ci(I,$,M)))),Ge)break;I=I.return}0<Y.length&&(U=new K(U,Q,null,o,H),G.push({event:U,listeners:Y}))}}if((r&7)===0){e:{if(U=t==="mouseover"||t==="pointerover",K=t==="mouseout"||t==="pointerout",U&&o!==Ra&&(Q=o.relatedTarget||o.fromElement)&&(en(Q)||Q[hr]))break e;if((K||U)&&(U=H.window===H?H:(U=H.ownerDocument)?U.defaultView||U.parentWindow:window,K?(Q=o.relatedTarget||o.toElement,K=L,Q=Q?en(Q):null,Q!==null&&(Ge=Jr(Q),Q!==Ge||Q.tag!==5&&Q.tag!==6)&&(Q=null)):(K=null,Q=L),K!==Q)){if(Y=pd,$="onMouseLeave",P="onMouseEnter",I="mouse",(t==="pointerout"||t==="pointerover")&&(Y=gd,$="onPointerLeave",P="onPointerEnter",I="pointer"),Ge=K==null?U:Pn(K),M=Q==null?U:Pn(Q),U=new Y($,I+"leave",K,o,H),U.target=Ge,U.relatedTarget=M,$=null,en(H)===L&&(Y=new Y(P,I+"enter",Q,o,H),Y.target=M,Y.relatedTarget=Ge,$=Y),Ge=$,K&&Q)t:{for(Y=K,P=Q,I=0,M=Y;M;M=In(M))I++;for(M=0,$=P;$;$=In($))M++;for(;0<I-M;)Y=In(Y),I--;for(;0<M-I;)P=In(P),M--;for(;I--;){if(Y===P||P!==null&&Y===P.alternate)break t;Y=In(Y),P=In(P)}Y=null}else Y=null;K!==null&&Gd(G,U,K,Y,!1),Q!==null&&Ge!==null&&Gd(G,Ge,Q,Y,!0)}}e:{if(U=L?Pn(L):window,K=U.nodeName&&U.nodeName.toLowerCase(),K==="select"||K==="input"&&U.type==="file")var ee=s_;else if(Sd(U))if(bd)ee=c_;else{ee=l_;var ne=a_}else(K=U.nodeName)&&K.toLowerCase()==="input"&&(U.type==="checkbox"||U.type==="radio")&&(ee=u_);if(ee&&(ee=ee(t,L))){xd(G,ee,o,H);break e}ne&&ne(t,U,L),t==="focusout"&&(ne=U._wrapperState)&&ne.controlled&&U.type==="number"&&xa(U,"number",U.value)}switch(ne=L?Pn(L):window,t){case"focusin":(Sd(ne)||ne.contentEditable==="true")&&(Nn=ne,Ya=L,xi=null);break;case"focusout":xi=Ya=Nn=null;break;case"mousedown":Ja=!0;break;case"contextmenu":case"mouseup":case"dragend":Ja=!1,Id(G,o,H);break;case"selectionchange":if(h_)break;case"keydown":case"keyup":Id(G,o,H)}var ie;if(Ka)e:{switch(t){case"compositionstart":var ae="onCompositionStart";break e;case"compositionend":ae="onCompositionEnd";break e;case"compositionupdate":ae="onCompositionUpdate";break e}ae=void 0}else On?Ed(t,o)&&(ae="onCompositionEnd"):t==="keydown"&&o.keyCode===229&&(ae="onCompositionStart");ae&&(yd&&o.locale!=="ko"&&(On||ae!=="onCompositionStart"?ae==="onCompositionEnd"&&On&&(ie=dd()):(Ir=H,za="value"in Ir?Ir.value:Ir.textContent,On=!0)),ne=No(L,ae),0<ne.length&&(ae=new md(ae,t,null,o,H),G.push({event:ae,listeners:ne}),ie?ae.data=ie:(ie=wd(o),ie!==null&&(ae.data=ie)))),(ie=t_?r_(t,o):n_(t,o))&&(L=No(L,"onBeforeInput"),0<L.length&&(H=new md("onBeforeInput","beforeinput",null,o,H),G.push({event:H,listeners:L}),H.data=ie))}Hd(G,r)})}function Ci(t,r,o){return{instance:t,listener:r,currentTarget:o}}function No(t,r){for(var o=r+"Capture",a=[];t!==null;){var c=t,f=c.stateNode;c.tag===5&&f!==null&&(c=f,f=ai(t,o),f!=null&&a.unshift(Ci(t,f,c)),f=ai(t,r),f!=null&&a.push(Ci(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 Gd(t,r,o,a,c){for(var f=r._reactName,g=[];o!==null&&o!==a;){var C=o,A=C.alternate,L=C.stateNode;if(A!==null&&A===a)break;C.tag===5&&L!==null&&(C=L,c?(A=ai(o,f),A!=null&&g.unshift(Ci(o,A,C))):c||(A=ai(o,f),A!=null&&g.push(Ci(o,A,C)))),o=o.return}g.length!==0&&t.push({event:r,listeners:g})}var y_=/\r\n?/g,v_=/\u0000|\uFFFD/g;function $d(t){return(typeof t=="string"?t:""+t).replace(y_,`
38
+ `).replace(v_,"")}function Ao(t,r,o){if(r=$d(r),$d(t)!==r&&o)throw Error(i(425))}function Io(){}var ol=null,sl=null;function al(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 ll=typeof setTimeout=="function"?setTimeout:void 0,__=typeof clearTimeout=="function"?clearTimeout:void 0,qd=typeof Promise=="function"?Promise:void 0,E_=typeof queueMicrotask=="function"?queueMicrotask:typeof qd<"u"?function(t){return qd.resolve(null).then(t).catch(w_)}:ll;function w_(t){setTimeout(function(){throw t})}function ul(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),gi(r);return}a--}else o!=="$"&&o!=="$?"&&o!=="$!"||a++;o=c}while(o);gi(r)}function Pr(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 Vd(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 Dn=Math.random().toString(36).slice(2),tr="__reactFiber$"+Dn,ki="__reactProps$"+Dn,hr="__reactContainer$"+Dn,cl="__reactEvents$"+Dn,S_="__reactListeners$"+Dn,x_="__reactHandles$"+Dn;function en(t){var r=t[tr];if(r)return r;for(var o=t.parentNode;o;){if(r=o[hr]||o[tr]){if(o=r.alternate,r.child!==null||o!==null&&o.child!==null)for(t=Vd(t);t!==null;){if(o=t[tr])return o;t=Vd(t)}return r}t=o,o=t.parentNode}return null}function Ri(t){return t=t[tr]||t[hr],!t||t.tag!==5&&t.tag!==6&&t.tag!==13&&t.tag!==3?null:t}function Pn(t){if(t.tag===5||t.tag===6)return t.stateNode;throw Error(i(33))}function Do(t){return t[ki]||null}var fl=[],Mn=-1;function Mr(t){return{current:t}}function Pe(t){0>Mn||(t.current=fl[Mn],fl[Mn]=null,Mn--)}function Ae(t,r){Mn++,fl[Mn]=t.current,t.current=r}var Fr={},st=Mr(Fr),mt=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 gt(t){return t=t.childContextTypes,t!=null}function Po(){Pe(mt),Pe(st)}function Wd(t,r,o){if(st.current!==Fr)throw Error(i(168));Ae(st,r),Ae(mt,o)}function Kd(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 Z({},o,a)}function Mo(t){return t=(t=t.stateNode)&&t.__reactInternalMemoizedMergedChildContext||Fr,tn=st.current,Ae(st,t),Ae(mt,mt.current),!0}function Zd(t,r,o){var a=t.stateNode;if(!a)throw Error(i(169));o?(t=Kd(t,r,tn),a.__reactInternalMemoizedMergedChildContext=t,Pe(mt),Pe(st),Ae(st,t)):Pe(mt),Ae(mt,o)}var pr=null,Fo=!1,dl=!1;function Xd(t){pr===null?pr=[t]:pr.push(t)}function b_(t){Fo=!0,Xd(t)}function Lr(){if(!dl&&pr!==null){dl=!0;var t=0,r=Oe;try{var o=pr;for(Oe=1;t<o.length;t++){var a=o[t];do a=a(!0);while(a!==null)}pr=null,Fo=!1}catch(c){throw pr!==null&&(pr=pr.slice(t+1)),Yf(Pa,Lr),c}finally{Oe=r,dl=!1}}return null}var Ln=[],Bn=0,Lo=null,Bo=0,It=[],Dt=0,rn=null,mr=1,gr="";function nn(t,r){Ln[Bn++]=Bo,Ln[Bn++]=Lo,Lo=t,Bo=r}function Qd(t,r,o){It[Dt++]=mr,It[Dt++]=gr,It[Dt++]=rn,rn=t;var a=mr;t=gr;var c=32-Ht(a)-1;a&=~(1<<c),o+=1;var f=32-Ht(r)+c;if(30<f){var g=c-c%5;f=(a&(1<<g)-1).toString(32),a>>=g,c-=g,mr=1<<32-Ht(r)+c|o<<c|a,gr=f+t}else mr=1<<f|o<<c|a,gr=t}function hl(t){t.return!==null&&(nn(t,1),Qd(t,1,0))}function pl(t){for(;t===Lo;)Lo=Ln[--Bn],Ln[Bn]=null,Bo=Ln[--Bn],Ln[Bn]=null;for(;t===rn;)rn=It[--Dt],It[Dt]=null,gr=It[--Dt],It[Dt]=null,mr=It[--Dt],It[Dt]=null}var xt=null,bt=null,Fe=!1,Gt=null;function Yd(t,r){var o=Lt(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 Jd(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,xt=t,bt=Pr(r.firstChild),!0):!1;case 6:return r=t.pendingProps===""||r.nodeType!==3?null:r,r!==null?(t.stateNode=r,xt=t,bt=null,!0):!1;case 13:return r=r.nodeType!==8?null:r,r!==null?(o=rn!==null?{id:mr,overflow:gr}:null,t.memoizedState={dehydrated:r,treeContext:o,retryLane:1073741824},o=Lt(18,null,null,0),o.stateNode=r,o.return=t,t.child=o,xt=t,bt=null,!0):!1;default:return!1}}function ml(t){return(t.mode&1)!==0&&(t.flags&128)===0}function gl(t){if(Fe){var r=bt;if(r){var o=r;if(!Jd(t,r)){if(ml(t))throw Error(i(418));r=Pr(o.nextSibling);var a=xt;r&&Jd(t,r)?Yd(a,o):(t.flags=t.flags&-4097|2,Fe=!1,xt=t)}}else{if(ml(t))throw Error(i(418));t.flags=t.flags&-4097|2,Fe=!1,xt=t}}}function eh(t){for(t=t.return;t!==null&&t.tag!==5&&t.tag!==3&&t.tag!==13;)t=t.return;xt=t}function jo(t){if(t!==xt)return!1;if(!Fe)return eh(t),Fe=!0,!1;var r;if((r=t.tag!==3)&&!(r=t.tag!==5)&&(r=t.type,r=r!=="head"&&r!=="body"&&!al(t.type,t.memoizedProps)),r&&(r=bt)){if(ml(t))throw th(),Error(i(418));for(;r;)Yd(t,r),r=Pr(r.nextSibling)}if(eh(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){bt=Pr(t.nextSibling);break e}r--}else o!=="$"&&o!=="$!"&&o!=="$?"||r++}t=t.nextSibling}bt=null}}else bt=xt?Pr(t.stateNode.nextSibling):null;return!0}function th(){for(var t=bt;t;)t=Pr(t.nextSibling)}function jn(){bt=xt=null,Fe=!1}function yl(t){Gt===null?Gt=[t]:Gt.push(t)}var T_=k.ReactCurrentBatchConfig;function Oi(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 C=c.refs;g===null?delete C[f]:C[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 Uo(t,r){throw t=Object.prototype.toString.call(r),Error(i(31,t==="[object Object]"?"object with keys {"+Object.keys(r).join(", ")+"}":t))}function rh(t){var r=t._init;return r(t._payload)}function nh(t){function r(P,I){if(t){var M=P.deletions;M===null?(P.deletions=[I],P.flags|=16):M.push(I)}}function o(P,I){if(!t)return null;for(;I!==null;)r(P,I),I=I.sibling;return null}function a(P,I){for(P=new Map;I!==null;)I.key!==null?P.set(I.key,I):P.set(I.index,I),I=I.sibling;return P}function c(P,I){return P=qr(P,I),P.index=0,P.sibling=null,P}function f(P,I,M){return P.index=M,t?(M=P.alternate,M!==null?(M=M.index,M<I?(P.flags|=2,I):M):(P.flags|=2,I)):(P.flags|=1048576,I)}function g(P){return t&&P.alternate===null&&(P.flags|=2),P}function C(P,I,M,$){return I===null||I.tag!==6?(I=lu(M,P.mode,$),I.return=P,I):(I=c(I,M),I.return=P,I)}function A(P,I,M,$){var ee=M.type;return ee===z?H(P,I,M.props.children,$,M.key):I!==null&&(I.elementType===ee||typeof ee=="object"&&ee!==null&&ee.$$typeof===$e&&rh(ee)===I.type)?($=c(I,M.props),$.ref=Oi(P,I,M),$.return=P,$):($=cs(M.type,M.key,M.props,null,P.mode,$),$.ref=Oi(P,I,M),$.return=P,$)}function L(P,I,M,$){return I===null||I.tag!==4||I.stateNode.containerInfo!==M.containerInfo||I.stateNode.implementation!==M.implementation?(I=uu(M,P.mode,$),I.return=P,I):(I=c(I,M.children||[]),I.return=P,I)}function H(P,I,M,$,ee){return I===null||I.tag!==7?(I=dn(M,P.mode,$,ee),I.return=P,I):(I=c(I,M),I.return=P,I)}function G(P,I,M){if(typeof I=="string"&&I!==""||typeof I=="number")return I=lu(""+I,P.mode,M),I.return=P,I;if(typeof I=="object"&&I!==null){switch(I.$$typeof){case T:return M=cs(I.type,I.key,I.props,null,P.mode,M),M.ref=Oi(P,null,I),M.return=P,M;case F:return I=uu(I,P.mode,M),I.return=P,I;case $e:var $=I._init;return G(P,$(I._payload),M)}if(ii(I)||re(I))return I=dn(I,P.mode,M,null),I.return=P,I;Uo(P,I)}return null}function U(P,I,M,$){var ee=I!==null?I.key:null;if(typeof M=="string"&&M!==""||typeof M=="number")return ee!==null?null:C(P,I,""+M,$);if(typeof M=="object"&&M!==null){switch(M.$$typeof){case T:return M.key===ee?A(P,I,M,$):null;case F:return M.key===ee?L(P,I,M,$):null;case $e:return ee=M._init,U(P,I,ee(M._payload),$)}if(ii(M)||re(M))return ee!==null?null:H(P,I,M,$,null);Uo(P,M)}return null}function K(P,I,M,$,ee){if(typeof $=="string"&&$!==""||typeof $=="number")return P=P.get(M)||null,C(I,P,""+$,ee);if(typeof $=="object"&&$!==null){switch($.$$typeof){case T:return P=P.get($.key===null?M:$.key)||null,A(I,P,$,ee);case F:return P=P.get($.key===null?M:$.key)||null,L(I,P,$,ee);case $e:var ne=$._init;return K(P,I,M,ne($._payload),ee)}if(ii($)||re($))return P=P.get(M)||null,H(I,P,$,ee,null);Uo(I,$)}return null}function Q(P,I,M,$){for(var ee=null,ne=null,ie=I,ae=I=0,Ye=null;ie!==null&&ae<M.length;ae++){ie.index>ae?(Ye=ie,ie=null):Ye=ie.sibling;var be=U(P,ie,M[ae],$);if(be===null){ie===null&&(ie=Ye);break}t&&ie&&be.alternate===null&&r(P,ie),I=f(be,I,ae),ne===null?ee=be:ne.sibling=be,ne=be,ie=Ye}if(ae===M.length)return o(P,ie),Fe&&nn(P,ae),ee;if(ie===null){for(;ae<M.length;ae++)ie=G(P,M[ae],$),ie!==null&&(I=f(ie,I,ae),ne===null?ee=ie:ne.sibling=ie,ne=ie);return Fe&&nn(P,ae),ee}for(ie=a(P,ie);ae<M.length;ae++)Ye=K(ie,P,ae,M[ae],$),Ye!==null&&(t&&Ye.alternate!==null&&ie.delete(Ye.key===null?ae:Ye.key),I=f(Ye,I,ae),ne===null?ee=Ye:ne.sibling=Ye,ne=Ye);return t&&ie.forEach(function(Vr){return r(P,Vr)}),Fe&&nn(P,ae),ee}function Y(P,I,M,$){var ee=re(M);if(typeof ee!="function")throw Error(i(150));if(M=ee.call(M),M==null)throw Error(i(151));for(var ne=ee=null,ie=I,ae=I=0,Ye=null,be=M.next();ie!==null&&!be.done;ae++,be=M.next()){ie.index>ae?(Ye=ie,ie=null):Ye=ie.sibling;var Vr=U(P,ie,be.value,$);if(Vr===null){ie===null&&(ie=Ye);break}t&&ie&&Vr.alternate===null&&r(P,ie),I=f(Vr,I,ae),ne===null?ee=Vr:ne.sibling=Vr,ne=Vr,ie=Ye}if(be.done)return o(P,ie),Fe&&nn(P,ae),ee;if(ie===null){for(;!be.done;ae++,be=M.next())be=G(P,be.value,$),be!==null&&(I=f(be,I,ae),ne===null?ee=be:ne.sibling=be,ne=be);return Fe&&nn(P,ae),ee}for(ie=a(P,ie);!be.done;ae++,be=M.next())be=K(ie,P,ae,be.value,$),be!==null&&(t&&be.alternate!==null&&ie.delete(be.key===null?ae:be.key),I=f(be,I,ae),ne===null?ee=be:ne.sibling=be,ne=be);return t&&ie.forEach(function(i1){return r(P,i1)}),Fe&&nn(P,ae),ee}function Ge(P,I,M,$){if(typeof M=="object"&&M!==null&&M.type===z&&M.key===null&&(M=M.props.children),typeof M=="object"&&M!==null){switch(M.$$typeof){case T:e:{for(var ee=M.key,ne=I;ne!==null;){if(ne.key===ee){if(ee=M.type,ee===z){if(ne.tag===7){o(P,ne.sibling),I=c(ne,M.props.children),I.return=P,P=I;break e}}else if(ne.elementType===ee||typeof ee=="object"&&ee!==null&&ee.$$typeof===$e&&rh(ee)===ne.type){o(P,ne.sibling),I=c(ne,M.props),I.ref=Oi(P,ne,M),I.return=P,P=I;break e}o(P,ne);break}else r(P,ne);ne=ne.sibling}M.type===z?(I=dn(M.props.children,P.mode,$,M.key),I.return=P,P=I):($=cs(M.type,M.key,M.props,null,P.mode,$),$.ref=Oi(P,I,M),$.return=P,P=$)}return g(P);case F:e:{for(ne=M.key;I!==null;){if(I.key===ne)if(I.tag===4&&I.stateNode.containerInfo===M.containerInfo&&I.stateNode.implementation===M.implementation){o(P,I.sibling),I=c(I,M.children||[]),I.return=P,P=I;break e}else{o(P,I);break}else r(P,I);I=I.sibling}I=uu(M,P.mode,$),I.return=P,P=I}return g(P);case $e:return ne=M._init,Ge(P,I,ne(M._payload),$)}if(ii(M))return Q(P,I,M,$);if(re(M))return Y(P,I,M,$);Uo(P,M)}return typeof M=="string"&&M!==""||typeof M=="number"?(M=""+M,I!==null&&I.tag===6?(o(P,I.sibling),I=c(I,M),I.return=P,P=I):(o(P,I),I=lu(M,P.mode,$),I.return=P,P=I),g(P)):o(P,I)}return Ge}var Un=nh(!0),ih=nh(!1),Ho=Mr(null),zo=null,Hn=null,vl=null;function _l(){vl=Hn=zo=null}function El(t){var r=Ho.current;Pe(Ho),t._currentValue=r}function wl(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 zn(t,r){zo=t,vl=Hn=null,t=t.dependencies,t!==null&&t.firstContext!==null&&((t.lanes&r)!==0&&(yt=!0),t.firstContext=null)}function Pt(t){var r=t._currentValue;if(vl!==t)if(t={context:t,memoizedValue:r,next:null},Hn===null){if(zo===null)throw Error(i(308));Hn=t,zo.dependencies={lanes:0,firstContext:t}}else Hn=Hn.next=t;return r}var on=null;function Sl(t){on===null?on=[t]:on.push(t)}function oh(t,r,o,a){var c=r.interleaved;return c===null?(o.next=o,Sl(r)):(o.next=c.next,c.next=o),r.interleaved=o,yr(t,a)}function yr(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 xl(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function sh(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 vr(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,(Se&2)!==0){var c=a.pending;return c===null?r.next=r:(r.next=c.next,c.next=r),a.pending=r,yr(t,o)}return c=a.interleaved,c===null?(r.next=r,Sl(a)):(r.next=c.next,c.next=r),a.interleaved=r,yr(t,o)}function Go(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,La(t,o)}}function ah(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 $o(t,r,o,a){var c=t.updateQueue;Br=!1;var f=c.firstBaseUpdate,g=c.lastBaseUpdate,C=c.shared.pending;if(C!==null){c.shared.pending=null;var A=C,L=A.next;A.next=null,g===null?f=L:g.next=L,g=A;var H=t.alternate;H!==null&&(H=H.updateQueue,C=H.lastBaseUpdate,C!==g&&(C===null?H.firstBaseUpdate=L:C.next=L,H.lastBaseUpdate=A))}if(f!==null){var G=c.baseState;g=0,H=L=A=null,C=f;do{var U=C.lane,K=C.eventTime;if((a&U)===U){H!==null&&(H=H.next={eventTime:K,lane:0,tag:C.tag,payload:C.payload,callback:C.callback,next:null});e:{var Q=t,Y=C;switch(U=r,K=o,Y.tag){case 1:if(Q=Y.payload,typeof Q=="function"){G=Q.call(K,G,U);break e}G=Q;break e;case 3:Q.flags=Q.flags&-65537|128;case 0:if(Q=Y.payload,U=typeof Q=="function"?Q.call(K,G,U):Q,U==null)break e;G=Z({},G,U);break e;case 2:Br=!0}}C.callback!==null&&C.lane!==0&&(t.flags|=64,U=c.effects,U===null?c.effects=[C]:U.push(C))}else K={eventTime:K,lane:U,tag:C.tag,payload:C.payload,callback:C.callback,next:null},H===null?(L=H=K,A=G):H=H.next=K,g|=U;if(C=C.next,C===null){if(C=c.shared.pending,C===null)break;U=C,C=U.next,U.next=null,c.lastBaseUpdate=U,c.shared.pending=null}}while(!0);if(H===null&&(A=G),c.baseState=A,c.firstBaseUpdate=L,c.lastBaseUpdate=H,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 lh(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 Ni={},rr=Mr(Ni),Ai=Mr(Ni),Ii=Mr(Ni);function sn(t){if(t===Ni)throw Error(i(174));return t}function bl(t,r){switch(Ae(Ii,r),Ae(Ai,t),Ae(rr,Ni),t=r.nodeType,t){case 9:case 11:r=(r=r.documentElement)?r.namespaceURI:Ta(null,"");break;default:t=t===8?r.parentNode:r,r=t.namespaceURI||null,t=t.tagName,r=Ta(r,t)}Pe(rr),Ae(rr,r)}function Gn(){Pe(rr),Pe(Ai),Pe(Ii)}function uh(t){sn(Ii.current);var r=sn(rr.current),o=Ta(r,t.type);r!==o&&(Ae(Ai,t),Ae(rr,o))}function Tl(t){Ai.current===t&&(Pe(rr),Pe(Ai))}var Le=Mr(0);function qo(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)!==0)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 Cl=[];function kl(){for(var t=0;t<Cl.length;t++)Cl[t]._workInProgressVersionPrimary=null;Cl.length=0}var Vo=k.ReactCurrentDispatcher,Rl=k.ReactCurrentBatchConfig,an=0,Be=null,Ke=null,Xe=null,Wo=!1,Di=!1,Pi=0,C_=0;function at(){throw Error(i(321))}function Ol(t,r){if(r===null)return!1;for(var o=0;o<r.length&&o<t.length;o++)if(!zt(t[o],r[o]))return!1;return!0}function Nl(t,r,o,a,c,f){if(an=f,Be=r,r.memoizedState=null,r.updateQueue=null,r.lanes=0,Vo.current=t===null||t.memoizedState===null?N_:A_,t=o(a,c),Di){f=0;do{if(Di=!1,Pi=0,25<=f)throw Error(i(301));f+=1,Xe=Ke=null,r.updateQueue=null,Vo.current=I_,t=o(a,c)}while(Di)}if(Vo.current=Xo,r=Ke!==null&&Ke.next!==null,an=0,Xe=Ke=Be=null,Wo=!1,r)throw Error(i(300));return t}function Al(){var t=Pi!==0;return Pi=0,t}function nr(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Xe===null?Be.memoizedState=Xe=t:Xe=Xe.next=t,Xe}function Mt(){if(Ke===null){var t=Be.alternate;t=t!==null?t.memoizedState:null}else t=Ke.next;var r=Xe===null?Be.memoizedState:Xe.next;if(r!==null)Xe=r,Ke=t;else{if(t===null)throw Error(i(310));Ke=t,t={memoizedState:Ke.memoizedState,baseState:Ke.baseState,baseQueue:Ke.baseQueue,queue:Ke.queue,next:null},Xe===null?Be.memoizedState=Xe=t:Xe=Xe.next=t}return Xe}function Mi(t,r){return typeof r=="function"?r(t):r}function Il(t){var r=Mt(),o=r.queue;if(o===null)throw Error(i(311));o.lastRenderedReducer=t;var a=Ke,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 C=g=null,A=null,L=f;do{var H=L.lane;if((an&H)===H)A!==null&&(A=A.next={lane:0,action:L.action,hasEagerState:L.hasEagerState,eagerState:L.eagerState,next:null}),a=L.hasEagerState?L.eagerState:t(a,L.action);else{var G={lane:H,action:L.action,hasEagerState:L.hasEagerState,eagerState:L.eagerState,next:null};A===null?(C=A=G,g=a):A=A.next=G,Be.lanes|=H,ln|=H}L=L.next}while(L!==null&&L!==f);A===null?g=a:A.next=C,zt(a,r.memoizedState)||(yt=!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,Be.lanes|=f,ln|=f,c=c.next;while(c!==t)}else c===null&&(o.lanes=0);return[r.memoizedState,o.dispatch]}function Dl(t){var r=Mt(),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);zt(f,r.memoizedState)||(yt=!0),r.memoizedState=f,r.baseQueue===null&&(r.baseState=f),o.lastRenderedState=f}return[f,a]}function ch(){}function fh(t,r){var o=Be,a=Mt(),c=r(),f=!zt(a.memoizedState,c);if(f&&(a.memoizedState=c,yt=!0),a=a.queue,Pl(ph.bind(null,o,a,t),[t]),a.getSnapshot!==r||f||Xe!==null&&Xe.memoizedState.tag&1){if(o.flags|=2048,Fi(9,hh.bind(null,o,a,c,r),void 0,null),Qe===null)throw Error(i(349));(an&30)!==0||dh(o,r,c)}return c}function dh(t,r,o){t.flags|=16384,t={getSnapshot:r,value:o},r=Be.updateQueue,r===null?(r={lastEffect:null,stores:null},Be.updateQueue=r,r.stores=[t]):(o=r.stores,o===null?r.stores=[t]:o.push(t))}function hh(t,r,o,a){r.value=o,r.getSnapshot=a,mh(r)&&gh(t)}function ph(t,r,o){return o(function(){mh(r)&&gh(t)})}function mh(t){var r=t.getSnapshot;t=t.value;try{var o=r();return!zt(t,o)}catch{return!0}}function gh(t){var r=yr(t,1);r!==null&&Wt(r,t,1,-1)}function yh(t){var r=nr();return typeof t=="function"&&(t=t()),r.memoizedState=r.baseState=t,t={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Mi,lastRenderedState:t},r.queue=t,t=t.dispatch=O_.bind(null,Be,t),[r.memoizedState,t]}function Fi(t,r,o,a){return t={tag:t,create:r,destroy:o,deps:a,next:null},r=Be.updateQueue,r===null?(r={lastEffect:null,stores:null},Be.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 vh(){return Mt().memoizedState}function Ko(t,r,o,a){var c=nr();Be.flags|=t,c.memoizedState=Fi(1|r,o,void 0,a===void 0?null:a)}function Zo(t,r,o,a){var c=Mt();a=a===void 0?null:a;var f=void 0;if(Ke!==null){var g=Ke.memoizedState;if(f=g.destroy,a!==null&&Ol(a,g.deps)){c.memoizedState=Fi(r,o,f,a);return}}Be.flags|=t,c.memoizedState=Fi(1|r,o,f,a)}function _h(t,r){return Ko(8390656,8,t,r)}function Pl(t,r){return Zo(2048,8,t,r)}function Eh(t,r){return Zo(4,2,t,r)}function wh(t,r){return Zo(4,4,t,r)}function Sh(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 xh(t,r,o){return o=o!=null?o.concat([t]):null,Zo(4,4,Sh.bind(null,r,t),o)}function Ml(){}function bh(t,r){var o=Mt();r=r===void 0?null:r;var a=o.memoizedState;return a!==null&&r!==null&&Ol(r,a[1])?a[0]:(o.memoizedState=[t,r],t)}function Th(t,r){var o=Mt();r=r===void 0?null:r;var a=o.memoizedState;return a!==null&&r!==null&&Ol(r,a[1])?a[0]:(t=t(),o.memoizedState=[t,r],t)}function Ch(t,r,o){return(an&21)===0?(t.baseState&&(t.baseState=!1,yt=!0),t.memoizedState=o):(zt(o,r)||(o=rd(),Be.lanes|=o,ln|=o,t.baseState=!0),r)}function k_(t,r){var o=Oe;Oe=o!==0&&4>o?o:4,t(!0);var a=Rl.transition;Rl.transition={};try{t(!1),r()}finally{Oe=o,Rl.transition=a}}function kh(){return Mt().memoizedState}function R_(t,r,o){var a=Gr(t);if(o={lane:a,action:o,hasEagerState:!1,eagerState:null,next:null},Rh(t))Oh(r,o);else if(o=oh(t,r,o,a),o!==null){var c=dt();Wt(o,t,a,c),Nh(o,r,a)}}function O_(t,r,o){var a=Gr(t),c={lane:a,action:o,hasEagerState:!1,eagerState:null,next:null};if(Rh(t))Oh(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,C=f(g,o);if(c.hasEagerState=!0,c.eagerState=C,zt(C,g)){var A=r.interleaved;A===null?(c.next=c,Sl(r)):(c.next=A.next,A.next=c),r.interleaved=c;return}}catch{}finally{}o=oh(t,r,c,a),o!==null&&(c=dt(),Wt(o,t,a,c),Nh(o,r,a))}}function Rh(t){var r=t.alternate;return t===Be||r!==null&&r===Be}function Oh(t,r){Di=Wo=!0;var o=t.pending;o===null?r.next=r:(r.next=o.next,o.next=r),t.pending=r}function Nh(t,r,o){if((o&4194240)!==0){var a=r.lanes;a&=t.pendingLanes,o|=a,r.lanes=o,La(t,o)}}var Xo={readContext:Pt,useCallback:at,useContext:at,useEffect:at,useImperativeHandle:at,useInsertionEffect:at,useLayoutEffect:at,useMemo:at,useReducer:at,useRef:at,useState:at,useDebugValue:at,useDeferredValue:at,useTransition:at,useMutableSource:at,useSyncExternalStore:at,useId:at,unstable_isNewReconciler:!1},N_={readContext:Pt,useCallback:function(t,r){return nr().memoizedState=[t,r===void 0?null:r],t},useContext:Pt,useEffect:_h,useImperativeHandle:function(t,r,o){return o=o!=null?o.concat([t]):null,Ko(4194308,4,Sh.bind(null,r,t),o)},useLayoutEffect:function(t,r){return Ko(4194308,4,t,r)},useInsertionEffect:function(t,r){return Ko(4,2,t,r)},useMemo:function(t,r){var o=nr();return r=r===void 0?null:r,t=t(),o.memoizedState=[t,r],t},useReducer:function(t,r,o){var a=nr();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=R_.bind(null,Be,t),[a.memoizedState,t]},useRef:function(t){var r=nr();return t={current:t},r.memoizedState=t},useState:yh,useDebugValue:Ml,useDeferredValue:function(t){return nr().memoizedState=t},useTransition:function(){var t=yh(!1),r=t[0];return t=k_.bind(null,t[1]),nr().memoizedState=t,[r,t]},useMutableSource:function(){},useSyncExternalStore:function(t,r,o){var a=Be,c=nr();if(Fe){if(o===void 0)throw Error(i(407));o=o()}else{if(o=r(),Qe===null)throw Error(i(349));(an&30)!==0||dh(a,r,o)}c.memoizedState=o;var f={value:o,getSnapshot:r};return c.queue=f,_h(ph.bind(null,a,f,t),[t]),a.flags|=2048,Fi(9,hh.bind(null,a,f,o,r),void 0,null),o},useId:function(){var t=nr(),r=Qe.identifierPrefix;if(Fe){var o=gr,a=mr;o=(a&~(1<<32-Ht(a)-1)).toString(32)+o,r=":"+r+"R"+o,o=Pi++,0<o&&(r+="H"+o.toString(32)),r+=":"}else o=C_++,r=":"+r+"r"+o.toString(32)+":";return t.memoizedState=r},unstable_isNewReconciler:!1},A_={readContext:Pt,useCallback:bh,useContext:Pt,useEffect:Pl,useImperativeHandle:xh,useInsertionEffect:Eh,useLayoutEffect:wh,useMemo:Th,useReducer:Il,useRef:vh,useState:function(){return Il(Mi)},useDebugValue:Ml,useDeferredValue:function(t){var r=Mt();return Ch(r,Ke.memoizedState,t)},useTransition:function(){var t=Il(Mi)[0],r=Mt().memoizedState;return[t,r]},useMutableSource:ch,useSyncExternalStore:fh,useId:kh,unstable_isNewReconciler:!1},I_={readContext:Pt,useCallback:bh,useContext:Pt,useEffect:Pl,useImperativeHandle:xh,useInsertionEffect:Eh,useLayoutEffect:wh,useMemo:Th,useReducer:Dl,useRef:vh,useState:function(){return Dl(Mi)},useDebugValue:Ml,useDeferredValue:function(t){var r=Mt();return Ke===null?r.memoizedState=t:Ch(r,Ke.memoizedState,t)},useTransition:function(){var t=Dl(Mi)[0],r=Mt().memoizedState;return[t,r]},useMutableSource:ch,useSyncExternalStore:fh,useId:kh,unstable_isNewReconciler:!1};function $t(t,r){if(t&&t.defaultProps){r=Z({},r),t=t.defaultProps;for(var o in t)r[o]===void 0&&(r[o]=t[o]);return r}return r}function Fl(t,r,o,a){r=t.memoizedState,o=o(a,r),o=o==null?r:Z({},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=dt(),c=Gr(t),f=vr(a,c);f.payload=r,o!=null&&(f.callback=o),r=jr(t,f,c),r!==null&&(Wt(r,t,c,a),Go(r,t,c))},enqueueReplaceState:function(t,r,o){t=t._reactInternals;var a=dt(),c=Gr(t),f=vr(a,c);f.tag=1,f.payload=r,o!=null&&(f.callback=o),r=jr(t,f,c),r!==null&&(Wt(r,t,c,a),Go(r,t,c))},enqueueForceUpdate:function(t,r){t=t._reactInternals;var o=dt(),a=Gr(t),c=vr(o,a);c.tag=2,r!=null&&(c.callback=r),r=jr(t,c,a),r!==null&&(Wt(r,t,a,o),Go(r,t,a))}};function Ah(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 Ih(t,r,o){var a=!1,c=Fr,f=r.contextType;return typeof f=="object"&&f!==null?f=Pt(f):(c=gt(r)?tn:st.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 Dh(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 Ll(t,r,o,a){var c=t.stateNode;c.props=o,c.state=t.memoizedState,c.refs={},xl(t);var f=r.contextType;typeof f=="object"&&f!==null?c.context=Pt(f):(f=gt(r)?tn:st.current,c.context=Fn(t,f)),c.state=t.memoizedState,f=r.getDerivedStateFromProps,typeof f=="function"&&(Fl(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),$o(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
39
  Error generating stack: `+f.message+`
40
- `+f.stack}return{value:t,source:r,stack:c,digest:null}}function Ll(t,r,o){return{value:t,source:null,stack:o??null,digest:r??null}}function Bl(t,r){try{console.error(r.value)}catch(o){setTimeout(function(){throw o})}}var I_=typeof WeakMap=="function"?WeakMap:Map;function Ph(t,r,o){o=vr(-1,o),o.tag=3,o.payload={element:null};var a=r.value;return o.callback=function(){is||(is=!0,Jl=a),Bl(t,r)},o}function Mh(t,r,o){o=vr(-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(){Bl(t,r)}}var f=t.stateNode;return f!==null&&typeof f.componentDidCatch=="function"&&(o.callback=function(){Bl(t,r),typeof a!="function"&&(Hr===null?Hr=new Set([this]):Hr.add(this));var g=r.stack;this.componentDidCatch(r.value,{componentStack:g!==null?g:""})}),o}function Fh(t,r,o){var a=t.pingCache;if(a===null){a=t.pingCache=new I_;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=V_.bind(null,t,r,o),r.then(t,t))}function Lh(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 Bh(t,r,o,a,c){return(t.mode&1)===0?(t===r?t.flags|=65536:(t.flags|=128,o.flags|=131072,o.flags&=-52805,o.tag===1&&(o.alternate===null?o.tag=17:(r=vr(-1,1),r.tag=2,jr(o,r,1))),o.lanes|=1),t):(t.flags|=65536,t.lanes=c,t)}var D_=k.ReactCurrentOwner,yt=!1;function ft(t,r,o,a){r.child=t===null?ih(r,null,o,a):Un(r,t.child,o,a)}function jh(t,r,o,a,c){o=o.render;var f=r.ref;return zn(r,c),a=Ol(t,r,o,a,f,c),o=Nl(),t!==null&&!yt?(r.updateQueue=t.updateQueue,r.flags&=-2053,t.lanes&=~c,_r(t,r,c)):(Fe&&o&&dl(r),r.flags|=1,ft(t,r,a,c),r.child)}function Uh(t,r,o,a,c){if(t===null){var f=o.type;return typeof f=="function"&&!su(f)&&f.defaultProps===void 0&&o.compare===null&&o.defaultProps===void 0?(r.tag=15,r.type=f,Hh(t,r,f,a,c)):(t=cs(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)===0){var g=f.memoizedProps;if(o=o.compare,o=o!==null?o:Si,o(g,a)&&t.ref===r.ref)return _r(t,r,c)}return r.flags|=1,t=qr(f,a),t.ref=r.ref,t.return=r,r.child=t}function Hh(t,r,o,a,c){if(t!==null){var f=t.memoizedProps;if(Si(f,a)&&t.ref===r.ref)if(yt=!1,r.pendingProps=a=f,(t.lanes&c)!==0)(t.flags&131072)!==0&&(yt=!0);else return r.lanes=t.lanes,_r(t,r,c)}return jl(t,r,o,a,c)}function zh(t,r,o){var a=r.pendingProps,c=a.children,f=t!==null?t.memoizedState:null;if(a.mode==="hidden")if((r.mode&1)===0)r.memoizedState={baseLanes:0,cachePool:null,transitions:null},Ae(Vn,Tt),Tt|=o;else{if((o&1073741824)===0)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,Tt),Tt|=t,null;r.memoizedState={baseLanes:0,cachePool:null,transitions:null},a=f!==null?f.baseLanes:o,Ae(Vn,Tt),Tt|=a}else f!==null?(a=f.baseLanes|o,r.memoizedState=null):a=o,Ae(Vn,Tt),Tt|=a;return ft(t,r,c,o),r.child}function Gh(t,r){var o=r.ref;(t===null&&o!==null||t!==null&&t.ref!==o)&&(r.flags|=512,r.flags|=2097152)}function jl(t,r,o,a,c){var f=gt(o)?tn:st.current;return f=Fn(r,f),zn(r,c),o=Ol(t,r,o,a,f,c),a=Nl(),t!==null&&!yt?(r.updateQueue=t.updateQueue,r.flags&=-2053,t.lanes&=~c,_r(t,r,c)):(Fe&&a&&dl(r),r.flags|=1,ft(t,r,o,c),r.child)}function $h(t,r,o,a,c){if(gt(o)){var f=!0;Mo(r)}else f=!1;if(zn(r,c),r.stateNode===null)Jo(t,r),Ih(r,o,a),Fl(r,o,a,c),a=!0;else if(t===null){var g=r.stateNode,C=r.memoizedProps;g.props=C;var A=g.context,L=o.contextType;typeof L=="object"&&L!==null?L=Pt(L):(L=gt(o)?tn:st.current,L=Fn(r,L));var H=o.getDerivedStateFromProps,G=typeof H=="function"||typeof g.getSnapshotBeforeUpdate=="function";G||typeof g.UNSAFE_componentWillReceiveProps!="function"&&typeof g.componentWillReceiveProps!="function"||(C!==a||A!==L)&&Dh(r,g,a,L),Br=!1;var U=r.memoizedState;g.state=U,$o(r,a,g,c),A=r.memoizedState,C!==a||U!==A||mt.current||Br?(typeof H=="function"&&(Ml(r,o,H,a),A=r.memoizedState),(C=Br||Ah(r,o,C,a,U,A,L))?(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=L,a=C):(typeof g.componentDidMount=="function"&&(r.flags|=4194308),a=!1)}else{g=r.stateNode,sh(t,r),C=r.memoizedProps,L=r.type===r.elementType?C:$t(r.type,C),g.props=L,G=r.pendingProps,U=g.context,A=o.contextType,typeof A=="object"&&A!==null?A=Pt(A):(A=gt(o)?tn:st.current,A=Fn(r,A));var K=o.getDerivedStateFromProps;(H=typeof K=="function"||typeof g.getSnapshotBeforeUpdate=="function")||typeof g.UNSAFE_componentWillReceiveProps!="function"&&typeof g.componentWillReceiveProps!="function"||(C!==G||U!==A)&&Dh(r,g,a,A),Br=!1,U=r.memoizedState,g.state=U,$o(r,a,g,c);var X=r.memoizedState;C!==G||U!==X||mt.current||Br?(typeof K=="function"&&(Ml(r,o,K,a),X=r.memoizedState),(L=Br||Ah(r,o,L,a,U,X,A)||!1)?(H||typeof g.UNSAFE_componentWillUpdate!="function"&&typeof g.componentWillUpdate!="function"||(typeof g.componentWillUpdate=="function"&&g.componentWillUpdate(a,X,A),typeof g.UNSAFE_componentWillUpdate=="function"&&g.UNSAFE_componentWillUpdate(a,X,A)),typeof g.componentDidUpdate=="function"&&(r.flags|=4),typeof g.getSnapshotBeforeUpdate=="function"&&(r.flags|=1024)):(typeof g.componentDidUpdate!="function"||C===t.memoizedProps&&U===t.memoizedState||(r.flags|=4),typeof g.getSnapshotBeforeUpdate!="function"||C===t.memoizedProps&&U===t.memoizedState||(r.flags|=1024),r.memoizedProps=a,r.memoizedState=X),g.props=a,g.state=X,g.context=A,a=L):(typeof g.componentDidUpdate!="function"||C===t.memoizedProps&&U===t.memoizedState||(r.flags|=4),typeof g.getSnapshotBeforeUpdate!="function"||C===t.memoizedProps&&U===t.memoizedState||(r.flags|=1024),a=!1)}return Ul(t,r,o,a,f,c)}function Ul(t,r,o,a,c,f){Gh(t,r);var g=(r.flags&128)!==0;if(!a&&!g)return c&&Zd(r,o,!1),_r(t,r,f);a=r.stateNode,D_.current=r;var C=g&&typeof o.getDerivedStateFromError!="function"?null:a.render();return r.flags|=1,t!==null&&g?(r.child=Un(r,t.child,null,f),r.child=Un(r,null,C,f)):ft(t,r,C,f),r.memoizedState=a.state,c&&Zd(r,o,!0),r.child}function qh(t){var r=t.stateNode;r.pendingContext?Wd(t,r.pendingContext,r.pendingContext!==r.context):r.context&&Wd(t,r.context,!1),xl(t,r.containerInfo)}function Vh(t,r,o,a,c){return jn(),gl(c),r.flags|=256,ft(t,r,o,a),r.child}var Hl={dehydrated:null,treeContext:null,retryLane:0};function zl(t){return{baseLanes:t,cachePool:null,transitions:null}}function Wh(t,r,o){var a=r.pendingProps,c=Le.current,f=!1,g=(r.flags&128)!==0,C;if((C=g)||(C=t!==null&&t.memoizedState===null?!1:(c&2)!==0),C?(f=!0,r.flags&=-129):(t===null||t.memoizedState!==null)&&(c|=1),Ae(Le,c&1),t===null)return ml(r),t=r.memoizedState,t!==null&&(t=t.dehydrated,t!==null)?((r.mode&1)===0?r.lanes=1:t.data==="$!"?r.lanes=8:r.lanes=1073741824,null):(g=a.children,t=a.fallback,f?(a=r.mode,f=r.child,g={mode:"hidden",children:g},(a&1)===0&&f!==null?(f.childLanes=0,f.pendingProps=g):f=fs(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=zl(o),r.memoizedState=Hl,t):Gl(r,g));if(c=t.memoizedState,c!==null&&(C=c.dehydrated,C!==null))return P_(t,r,g,a,C,c,o);if(f){f=a.fallback,g=r.mode,c=t.child,C=c.sibling;var A={mode:"hidden",children:a.children};return(g&1)===0&&r.child!==c?(a=r.child,a.childLanes=0,a.pendingProps=A,r.deletions=null):(a=qr(c,A),a.subtreeFlags=c.subtreeFlags&14680064),C!==null?f=qr(C,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?zl(o):{baseLanes:g.baseLanes|o,cachePool:null,transitions:g.transitions},f.memoizedState=g,f.childLanes=t.childLanes&~o,r.memoizedState=Hl,a}return f=t.child,t=f.sibling,a=qr(f,{mode:"visible",children:a.children}),(r.mode&1)===0&&(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 Gl(t,r){return r=fs({mode:"visible",children:r},t.mode,0,null),r.return=t,t.child=r}function Yo(t,r,o,a){return a!==null&&gl(a),Un(r,t.child,null,o),t=Gl(r,r.pendingProps.children),t.flags|=2,r.memoizedState=null,t}function P_(t,r,o,a,c,f,g){if(o)return r.flags&256?(r.flags&=-257,a=Ll(Error(i(422))),Yo(t,r,g,a)):r.memoizedState!==null?(r.child=t.child,r.flags|=128,null):(f=a.fallback,c=r.mode,a=fs({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)!==0&&Un(r,t.child,null,g),r.child.memoizedState=zl(g),r.memoizedState=Hl,f);if((r.mode&1)===0)return Yo(t,r,g,null);if(c.data==="$!"){if(a=c.nextSibling&&c.nextSibling.dataset,a)var C=a.dgst;return a=C,f=Error(i(419)),a=Ll(f,a,void 0),Yo(t,r,g,a)}if(C=(g&t.childLanes)!==0,yt||C){if(a=Xe,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?0:c,c!==0&&c!==f.retryLane&&(f.retryLane=c,yr(t,c),Wt(a,t,c,-1))}return ou(),a=Ll(Error(i(421))),Yo(t,r,g,a)}return c.data==="$?"?(r.flags|=128,r.child=t.child,r=W_.bind(null,t),c._reactRetry=r,null):(t=f.treeContext,bt=Pr(c.nextSibling),xt=r,Fe=!0,Gt=null,t!==null&&(It[Dt++]=mr,It[Dt++]=gr,It[Dt++]=rn,mr=t.id,gr=t.overflow,rn=r),r=Gl(r,a.children),r.flags|=4096,r)}function Kh(t,r,o){t.lanes|=r;var a=t.alternate;a!==null&&(a.lanes|=r),El(t.return,r,o)}function $l(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(ft(t,r,a.children,o),a=Le.current,(a&2)!==0)a=a&1|2,r.flags|=128;else{if(t!==null&&(t.flags&128)!==0)e:for(t=r.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&Kh(t,o,r);else if(t.tag===19)Kh(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(Le,a),(r.mode&1)===0)r.memoizedState=null;else switch(c){case"forwards":for(o=r.child,c=null;o!==null;)t=o.alternate,t!==null&&qo(t)===null&&(c=o),o=o.sibling;o=c,o===null?(c=r.child,r.child=null):(c=o.sibling,o.sibling=null),$l(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&&qo(t)===null){r.child=c;break}t=c.sibling,c.sibling=o,o=c,c=t}$l(r,!0,o,null,f);break;case"together":$l(r,!1,null,null,void 0);break;default:r.memoizedState=null}return r.child}function Jo(t,r){(r.mode&1)===0&&t!==null&&(t.alternate=null,r.alternate=null,r.flags|=2)}function _r(t,r,o){if(t!==null&&(r.dependencies=t.dependencies),ln|=r.lanes,(o&r.childLanes)===0)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 M_(t,r,o){switch(r.tag){case 3:qh(r),jn();break;case 5:uh(r);break;case 1:gt(r.type)&&Mo(r);break;case 4:xl(r,r.stateNode.containerInfo);break;case 10:var a=r.type._context,c=r.memoizedProps.value;Ae(Ho,a._currentValue),a._currentValue=c;break;case 13:if(a=r.memoizedState,a!==null)return a.dehydrated!==null?(Ae(Le,Le.current&1),r.flags|=128,null):(o&r.child.childLanes)!==0?Wh(t,r,o):(Ae(Le,Le.current&1),t=_r(t,r,o),t!==null?t.sibling:null);Ae(Le,Le.current&1);break;case 19:if(a=(o&r.childLanes)!==0,(t.flags&128)!==0){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(Le,Le.current),a)break;return null;case 22:case 23:return r.lanes=0,zh(t,r,o)}return _r(t,r,o)}var Qh,ql,Xh,Yh;Qh=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}},ql=function(){},Xh=function(t,r,o,a){var c=t.memoizedProps;if(c!==a){t=r.stateNode,sn(rr.current);var f=null;switch(o){case"input":c=Ea(t,c),a=Ea(t,a),f=[];break;case"select":c=Z({},c,{value:void 0}),a=Z({},a,{value:void 0}),f=[];break;case"textarea":c=xa(t,c),a=xa(t,a),f=[];break;default:typeof c.onClick!="function"&&typeof a.onClick=="function"&&(t.onclick=Io)}Ta(o,a);var g;o=null;for(L in c)if(!a.hasOwnProperty(L)&&c.hasOwnProperty(L)&&c[L]!=null)if(L==="style"){var C=c[L];for(g in C)C.hasOwnProperty(g)&&(o||(o={}),o[g]="")}else L!=="dangerouslySetInnerHTML"&&L!=="children"&&L!=="suppressContentEditableWarning"&&L!=="suppressHydrationWarning"&&L!=="autoFocus"&&(l.hasOwnProperty(L)?f||(f=[]):(f=f||[]).push(L,null));for(L in a){var A=a[L];if(C=c!=null?c[L]:void 0,a.hasOwnProperty(L)&&A!==C&&(A!=null||C!=null))if(L==="style")if(C){for(g in C)!C.hasOwnProperty(g)||A&&A.hasOwnProperty(g)||(o||(o={}),o[g]="");for(g in A)A.hasOwnProperty(g)&&C[g]!==A[g]&&(o||(o={}),o[g]=A[g])}else o||(f||(f=[]),f.push(L,o)),o=A;else L==="dangerouslySetInnerHTML"?(A=A?A.__html:void 0,C=C?C.__html:void 0,A!=null&&C!==A&&(f=f||[]).push(L,A)):L==="children"?typeof A!="string"&&typeof A!="number"||(f=f||[]).push(L,""+A):L!=="suppressContentEditableWarning"&&L!=="suppressHydrationWarning"&&(l.hasOwnProperty(L)?(A!=null&&L==="onScroll"&&De("scroll",t),f||C===A||(f=[])):(f=f||[]).push(L,A))}o&&(f=f||[]).push("style",o);var L=f;(r.updateQueue=L)&&(r.flags|=4)}},Yh=function(t,r,o,a){o!==a&&(r.flags|=4)};function Li(t,r){if(!Fe)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 lt(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 F_(t,r,o){var a=r.pendingProps;switch(hl(r),r.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return lt(r),null;case 1:return gt(r.type)&&Po(),lt(r),null;case 3:return a=r.stateNode,Gn(),Pe(mt),Pe(st),Cl(),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),(t===null||t.child===null)&&(jo(r)?r.flags|=4:t===null||t.memoizedState.isDehydrated&&(r.flags&256)===0||(r.flags|=1024,Gt!==null&&(ru(Gt),Gt=null))),ql(t,r),lt(r),null;case 5:bl(r);var c=sn(Ii.current);if(o=r.type,t!==null&&r.stateNode!=null)Xh(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 lt(r),null}if(t=sn(rr.current),jo(r)){a=r.stateNode,o=r.type;var f=r.memoizedProps;switch(a[tr]=r,a[ki]=f,t=(r.mode&1)!==0,o){case"dialog":De("cancel",a),De("close",a);break;case"iframe":case"object":case"embed":De("load",a);break;case"video":case"audio":for(c=0;c<bi.length;c++)De(bi[c],a);break;case"source":De("error",a);break;case"img":case"image":case"link":De("error",a),De("load",a);break;case"details":De("toggle",a);break;case"input":If(a,f),De("invalid",a);break;case"select":a._wrapperState={wasMultiple:!!f.multiple},De("invalid",a);break;case"textarea":Mf(a,f),De("invalid",a)}Ta(o,f),c=null;for(var g in f)if(f.hasOwnProperty(g)){var C=f[g];g==="children"?typeof C=="string"?a.textContent!==C&&(f.suppressHydrationWarning!==!0&&Ao(a.textContent,C,t),c=["children",C]):typeof C=="number"&&a.textContent!==""+C&&(f.suppressHydrationWarning!==!0&&Ao(a.textContent,C,t),c=["children",""+C]):l.hasOwnProperty(g)&&C!=null&&g==="onScroll"&&De("scroll",a)}switch(o){case"input":ni(a),Pf(a,f,!0);break;case"textarea":ni(a),Lf(a);break;case"select":case"option":break;default:typeof f.onClick=="function"&&(a.onclick=Io)}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=Bf(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[tr]=r,t[ki]=a,Qh(t,r,!1,!1),r.stateNode=t;e:{switch(g=Ca(o,a),o){case"dialog":De("cancel",t),De("close",t),c=a;break;case"iframe":case"object":case"embed":De("load",t),c=a;break;case"video":case"audio":for(c=0;c<bi.length;c++)De(bi[c],t);c=a;break;case"source":De("error",t),c=a;break;case"img":case"image":case"link":De("error",t),De("load",t),c=a;break;case"details":De("toggle",t),c=a;break;case"input":If(t,a),c=Ea(t,a),De("invalid",t);break;case"option":c=a;break;case"select":t._wrapperState={wasMultiple:!!a.multiple},c=Z({},a,{value:void 0}),De("invalid",t);break;case"textarea":Mf(t,a),c=xa(t,a),De("invalid",t);break;default:c=a}Ta(o,c),C=c;for(f in C)if(C.hasOwnProperty(f)){var A=C[f];f==="style"?Hf(t,A):f==="dangerouslySetInnerHTML"?(A=A?A.__html:void 0,A!=null&&jf(t,A)):f==="children"?typeof A=="string"?(o!=="textarea"||A!=="")&&oi(t,A):typeof A=="number"&&oi(t,""+A):f!=="suppressContentEditableWarning"&&f!=="suppressHydrationWarning"&&f!=="autoFocus"&&(l.hasOwnProperty(f)?A!=null&&f==="onScroll"&&De("scroll",t):A!=null&&x(t,f,A,g))}switch(o){case"input":ni(t),Pf(t,a,!1);break;case"textarea":ni(t),Lf(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?bn(t,!!a.multiple,f,!1):a.defaultValue!=null&&bn(t,!!a.multiple,a.defaultValue,!0);break;default:typeof c.onClick=="function"&&(t.onclick=Io)}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 lt(r),null;case 6:if(t&&r.stateNode!=null)Yh(t,r,t.memoizedProps,a);else{if(typeof a!="string"&&r.stateNode===null)throw Error(i(166));if(o=sn(Ii.current),sn(rr.current),jo(r)){if(a=r.stateNode,o=r.memoizedProps,a[tr]=r,(f=a.nodeValue!==o)&&(t=xt,t!==null))switch(t.tag){case 3:Ao(a.nodeValue,o,(t.mode&1)!==0);break;case 5:t.memoizedProps.suppressHydrationWarning!==!0&&Ao(a.nodeValue,o,(t.mode&1)!==0)}f&&(r.flags|=4)}else a=(o.nodeType===9?o:o.ownerDocument).createTextNode(a),a[tr]=r,r.stateNode=a}return lt(r),null;case 13:if(Pe(Le),a=r.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(Fe&&bt!==null&&(r.mode&1)!==0&&(r.flags&128)===0)th(),jn(),r.flags|=98560,f=!1;else if(f=jo(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[tr]=r}else jn(),(r.flags&128)===0&&(r.memoizedState=null),r.flags|=4;lt(r),f=!1}else Gt!==null&&(ru(Gt),Gt=null),f=!0;if(!f)return r.flags&65536?r:null}return(r.flags&128)!==0?(r.lanes=o,r):(a=a!==null,a!==(t!==null&&t.memoizedState!==null)&&a&&(r.child.flags|=8192,(r.mode&1)!==0&&(t===null||(Le.current&1)!==0?Ze===0&&(Ze=3):ou())),r.updateQueue!==null&&(r.flags|=4),lt(r),null);case 4:return Gn(),ql(t,r),t===null&&Ti(r.stateNode.containerInfo),lt(r),null;case 10:return _l(r.type._context),lt(r),null;case 17:return gt(r.type)&&Po(),lt(r),null;case 19:if(Pe(Le),f=r.memoizedState,f===null)return lt(r),null;if(a=(r.flags&128)!==0,g=f.rendering,g===null)if(a)Li(f,!1);else{if(Ze!==0||t!==null&&(t.flags&128)!==0)for(t=r.child;t!==null;){if(g=qo(t),g!==null){for(r.flags|=128,Li(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(Le,Le.current&1|2),r.child}t=t.sibling}f.tail!==null&&ze()>Wn&&(r.flags|=128,a=!0,Li(f,!1),r.lanes=4194304)}else{if(!a)if(t=qo(g),t!==null){if(r.flags|=128,a=!0,o=t.updateQueue,o!==null&&(r.updateQueue=o,r.flags|=4),Li(f,!0),f.tail===null&&f.tailMode==="hidden"&&!g.alternate&&!Fe)return lt(r),null}else 2*ze()-f.renderingStartTime>Wn&&o!==1073741824&&(r.flags|=128,a=!0,Li(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=ze(),r.sibling=null,o=Le.current,Ae(Le,a?o&1|2:o&1),r):(lt(r),null);case 22:case 23:return iu(),a=r.memoizedState!==null,t!==null&&t.memoizedState!==null!==a&&(r.flags|=8192),a&&(r.mode&1)!==0?(Tt&1073741824)!==0&&(lt(r),r.subtreeFlags&6&&(r.flags|=8192)):lt(r),null;case 24:return null;case 25:return null}throw Error(i(156,r.tag))}function L_(t,r){switch(hl(r),r.tag){case 1:return gt(r.type)&&Po(),t=r.flags,t&65536?(r.flags=t&-65537|128,r):null;case 3:return Gn(),Pe(mt),Pe(st),Cl(),t=r.flags,(t&65536)!==0&&(t&128)===0?(r.flags=t&-65537|128,r):null;case 5:return bl(r),null;case 13:if(Pe(Le),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 Pe(Le),null;case 4:return Gn(),null;case 10:return _l(r.type._context),null;case 22:case 23:return iu(),null;case 24:return null;default:return null}}var es=!1,ut=!1,B_=typeof WeakSet=="function"?WeakSet:Set,Q=null;function qn(t,r){var o=t.ref;if(o!==null)if(typeof o=="function")try{o(null)}catch(a){He(t,r,a)}else o.current=null}function Vl(t,r,o){try{o()}catch(a){He(t,r,a)}}var Jh=!1;function j_(t,r){if(il=Eo,t=Ad(),Qa(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,C=-1,A=-1,L=0,H=0,G=t,U=null;t:for(;;){for(var K;G!==o||c!==0&&G.nodeType!==3||(C=g+c),G!==f||a!==0&&G.nodeType!==3||(A=g+a),G.nodeType===3&&(g+=G.nodeValue.length),(K=G.firstChild)!==null;)U=G,G=K;for(;;){if(G===t)break t;if(U===o&&++L===c&&(C=g),U===f&&++H===a&&(A=g),(K=G.nextSibling)!==null)break;G=U,U=G.parentNode}G=K}o=C===-1||A===-1?null:{start:C,end:A}}else o=null}o=o||{start:0,end:0}}else o=null;for(ol={focusedElem:t,selectionRange:o},Eo=!1,Q=r;Q!==null;)if(r=Q,t=r.child,(r.subtreeFlags&1028)!==0&&t!==null)t.return=r,Q=t;else for(;Q!==null;){r=Q;try{var X=r.alternate;if((r.flags&1024)!==0)switch(r.tag){case 0:case 11:case 15:break;case 1:if(X!==null){var Y=X.memoizedProps,Ge=X.memoizedState,P=r.stateNode,I=P.getSnapshotBeforeUpdate(r.elementType===r.type?Y:$t(r.type,Y),Ge);P.__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($){He(r,r.return,$)}if(t=r.sibling,t!==null){t.return=r.return,Q=t;break}Q=r.return}return X=Jh,Jh=!1,X}function Bi(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&&Vl(r,o,f)}c=c.next}while(c!==a)}}function ts(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 Wl(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 ep(t){var r=t.alternate;r!==null&&(t.alternate=null,ep(r)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(r=t.stateNode,r!==null&&(delete r[tr],delete r[ki],delete r[ul],delete r[w_],delete r[S_])),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 tp(t){return t.tag===5||t.tag===3||t.tag===4}function rp(t){e:for(;;){for(;t.sibling===null;){if(t.return===null||tp(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 Kl(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=Io));else if(a!==4&&(t=t.child,t!==null))for(Kl(t,r,o),t=t.sibling;t!==null;)Kl(t,r,o),t=t.sibling}function Zl(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(Zl(t,r,o),t=t.sibling;t!==null;)Zl(t,r,o),t=t.sibling}var tt=null,qt=!1;function Ur(t,r,o){for(o=o.child;o!==null;)np(t,r,o),o=o.sibling}function np(t,r,o){if(er&&typeof er.onCommitFiberUnmount=="function")try{er.onCommitFiberUnmount(po,o)}catch{}switch(o.tag){case 5:ut||qn(o,r);case 6:var a=tt,c=qt;tt=null,Ur(t,r,o),tt=a,qt=c,tt!==null&&(qt?(t=tt,o=o.stateNode,t.nodeType===8?t.parentNode.removeChild(o):t.removeChild(o)):tt.removeChild(o.stateNode));break;case 18:tt!==null&&(qt?(t=tt,o=o.stateNode,t.nodeType===8?ll(t.parentNode,o):t.nodeType===1&&ll(t,o),gi(t)):ll(tt,o.stateNode));break;case 4:a=tt,c=qt,tt=o.stateNode.containerInfo,qt=!0,Ur(t,r,o),tt=a,qt=c;break;case 0:case 11:case 14:case 15:if(!ut&&(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)!==0||(f&4)!==0)&&Vl(o,r,g),c=c.next}while(c!==a)}Ur(t,r,o);break;case 1:if(!ut&&(qn(o,r),a=o.stateNode,typeof a.componentWillUnmount=="function"))try{a.props=o.memoizedProps,a.state=o.memoizedState,a.componentWillUnmount()}catch(C){He(o,r,C)}Ur(t,r,o);break;case 21:Ur(t,r,o);break;case 22:o.mode&1?(ut=(a=ut)||o.memoizedState!==null,Ur(t,r,o),ut=a):Ur(t,r,o);break;default:Ur(t,r,o)}}function ip(t){var r=t.updateQueue;if(r!==null){t.updateQueue=null;var o=t.stateNode;o===null&&(o=t.stateNode=new B_),r.forEach(function(a){var c=K_.bind(null,t,a);o.has(a)||(o.add(a),a.then(c,c))})}}function Vt(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,C=g;e:for(;C!==null;){switch(C.tag){case 5:tt=C.stateNode,qt=!1;break e;case 3:tt=C.stateNode.containerInfo,qt=!0;break e;case 4:tt=C.stateNode.containerInfo,qt=!0;break e}C=C.return}if(tt===null)throw Error(i(160));np(f,g,c),tt=null,qt=!1;var A=c.alternate;A!==null&&(A.return=null),c.return=null}catch(L){He(c,r,L)}}if(r.subtreeFlags&12854)for(r=r.child;r!==null;)op(r,t),r=r.sibling}function op(t,r){var o=t.alternate,a=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:if(Vt(r,t),ir(t),a&4){try{Bi(3,t,t.return),ts(3,t)}catch(Y){He(t,t.return,Y)}try{Bi(5,t,t.return)}catch(Y){He(t,t.return,Y)}}break;case 1:Vt(r,t),ir(t),a&512&&o!==null&&qn(o,o.return);break;case 5:if(Vt(r,t),ir(t),a&512&&o!==null&&qn(o,o.return),t.flags&32){var c=t.stateNode;try{oi(c,"")}catch(Y){He(t,t.return,Y)}}if(a&4&&(c=t.stateNode,c!=null)){var f=t.memoizedProps,g=o!==null?o.memoizedProps:f,C=t.type,A=t.updateQueue;if(t.updateQueue=null,A!==null)try{C==="input"&&f.type==="radio"&&f.name!=null&&Df(c,f),Ca(C,g);var L=Ca(C,f);for(g=0;g<A.length;g+=2){var H=A[g],G=A[g+1];H==="style"?Hf(c,G):H==="dangerouslySetInnerHTML"?jf(c,G):H==="children"?oi(c,G):x(c,H,G,L)}switch(C){case"input":wa(c,f);break;case"textarea":Ff(c,f);break;case"select":var U=c._wrapperState.wasMultiple;c._wrapperState.wasMultiple=!!f.multiple;var K=f.value;K!=null?bn(c,!!f.multiple,K,!1):U!==!!f.multiple&&(f.defaultValue!=null?bn(c,!!f.multiple,f.defaultValue,!0):bn(c,!!f.multiple,f.multiple?[]:"",!1))}c[ki]=f}catch(Y){He(t,t.return,Y)}}break;case 6:if(Vt(r,t),ir(t),a&4){if(t.stateNode===null)throw Error(i(162));c=t.stateNode,f=t.memoizedProps;try{c.nodeValue=f}catch(Y){He(t,t.return,Y)}}break;case 3:if(Vt(r,t),ir(t),a&4&&o!==null&&o.memoizedState.isDehydrated)try{gi(r.containerInfo)}catch(Y){He(t,t.return,Y)}break;case 4:Vt(r,t),ir(t);break;case 13:Vt(r,t),ir(t),c=t.child,c.flags&8192&&(f=c.memoizedState!==null,c.stateNode.isHidden=f,!f||c.alternate!==null&&c.alternate.memoizedState!==null||(Yl=ze())),a&4&&ip(t);break;case 22:if(H=o!==null&&o.memoizedState!==null,t.mode&1?(ut=(L=ut)||H,Vt(r,t),ut=L):Vt(r,t),ir(t),a&8192){if(L=t.memoizedState!==null,(t.stateNode.isHidden=L)&&!H&&(t.mode&1)!==0)for(Q=t,H=t.child;H!==null;){for(G=Q=H;Q!==null;){switch(U=Q,K=U.child,U.tag){case 0:case 11:case 14:case 15:Bi(4,U,U.return);break;case 1:qn(U,U.return);var X=U.stateNode;if(typeof X.componentWillUnmount=="function"){a=U,o=U.return;try{r=a,X.props=r.memoizedProps,X.state=r.memoizedState,X.componentWillUnmount()}catch(Y){He(a,o,Y)}}break;case 5:qn(U,U.return);break;case 22:if(U.memoizedState!==null){lp(G);continue}}K!==null?(K.return=U,Q=K):lp(G)}H=H.sibling}e:for(H=null,G=t;;){if(G.tag===5){if(H===null){H=G;try{c=G.stateNode,L?(f=c.style,typeof f.setProperty=="function"?f.setProperty("display","none","important"):f.display="none"):(C=G.stateNode,A=G.memoizedProps.style,g=A!=null&&A.hasOwnProperty("display")?A.display:null,C.style.display=Uf("display",g))}catch(Y){He(t,t.return,Y)}}}else if(G.tag===6){if(H===null)try{G.stateNode.nodeValue=L?"":G.memoizedProps}catch(Y){He(t,t.return,Y)}}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;H===G&&(H=null),G=G.return}H===G&&(H=null),G.sibling.return=G.return,G=G.sibling}}break;case 19:Vt(r,t),ir(t),a&4&&ip(t);break;case 21:break;default:Vt(r,t),ir(t)}}function ir(t){var r=t.flags;if(r&2){try{e:{for(var o=t.return;o!==null;){if(tp(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&&(oi(c,""),a.flags&=-33);var f=rp(t);Zl(t,f,c);break;case 3:case 4:var g=a.stateNode.containerInfo,C=rp(t);Kl(t,C,g);break;default:throw Error(i(161))}}catch(A){He(t,t.return,A)}t.flags&=-3}r&4096&&(t.flags&=-4097)}function U_(t,r,o){Q=t,sp(t)}function sp(t,r,o){for(var a=(t.mode&1)!==0;Q!==null;){var c=Q,f=c.child;if(c.tag===22&&a){var g=c.memoizedState!==null||es;if(!g){var C=c.alternate,A=C!==null&&C.memoizedState!==null||ut;C=es;var L=ut;if(es=g,(ut=A)&&!L)for(Q=c;Q!==null;)g=Q,A=g.child,g.tag===22&&g.memoizedState!==null?up(c):A!==null?(A.return=g,Q=A):up(c);for(;f!==null;)Q=f,sp(f),f=f.sibling;Q=c,es=C,ut=L}ap(t)}else(c.subtreeFlags&8772)!==0&&f!==null?(f.return=c,Q=f):ap(t)}}function ap(t){for(;Q!==null;){var r=Q;if((r.flags&8772)!==0){var o=r.alternate;try{if((r.flags&8772)!==0)switch(r.tag){case 0:case 11:case 15:ut||ts(5,r);break;case 1:var a=r.stateNode;if(r.flags&4&&!ut)if(o===null)a.componentDidMount();else{var c=r.elementType===r.type?o.memoizedProps:$t(r.type,o.memoizedProps);a.componentDidUpdate(c,o.memoizedState,a.__reactInternalSnapshotBeforeUpdate)}var f=r.updateQueue;f!==null&&lh(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}lh(r,g,o)}break;case 5:var C=r.stateNode;if(o===null&&r.flags&4){o=C;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 L=r.alternate;if(L!==null){var H=L.memoizedState;if(H!==null){var G=H.dehydrated;G!==null&&gi(G)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(i(163))}ut||r.flags&512&&Wl(r)}catch(U){He(r,r.return,U)}}if(r===t){Q=null;break}if(o=r.sibling,o!==null){o.return=r.return,Q=o;break}Q=r.return}}function lp(t){for(;Q!==null;){var r=Q;if(r===t){Q=null;break}var o=r.sibling;if(o!==null){o.return=r.return,Q=o;break}Q=r.return}}function up(t){for(;Q!==null;){var r=Q;try{switch(r.tag){case 0:case 11:case 15:var o=r.return;try{ts(4,r)}catch(A){He(r,o,A)}break;case 1:var a=r.stateNode;if(typeof a.componentDidMount=="function"){var c=r.return;try{a.componentDidMount()}catch(A){He(r,c,A)}}var f=r.return;try{Wl(r)}catch(A){He(r,f,A)}break;case 5:var g=r.return;try{Wl(r)}catch(A){He(r,g,A)}}}catch(A){He(r,r.return,A)}if(r===t){Q=null;break}var C=r.sibling;if(C!==null){C.return=r.return,Q=C;break}Q=r.return}}var H_=Math.ceil,rs=k.ReactCurrentDispatcher,Ql=k.ReactCurrentOwner,Ft=k.ReactCurrentBatchConfig,Se=0,Xe=null,qe=null,rt=0,Tt=0,Vn=Mr(0),Ze=0,ji=null,ln=0,ns=0,Xl=0,Ui=null,vt=null,Yl=0,Wn=1/0,Er=null,is=!1,Jl=null,Hr=null,os=!1,zr=null,ss=0,Hi=0,eu=null,as=-1,ls=0;function dt(){return(Se&6)!==0?ze():as!==-1?as:as=ze()}function Gr(t){return(t.mode&1)===0?1:(Se&2)!==0&&rt!==0?rt&-rt:b_.transition!==null?(ls===0&&(ls=rd()),ls):(t=Oe,t!==0||(t=window.event,t=t===void 0?16:fd(t.type)),t)}function Wt(t,r,o,a){if(50<Hi)throw Hi=0,eu=null,Error(i(185));fi(t,o,a),((Se&2)===0||t!==Xe)&&(t===Xe&&((Se&2)===0&&(ns|=o),Ze===4&&$r(t,rt)),_t(t,a),o===1&&Se===0&&(r.mode&1)===0&&(Wn=ze()+500,Fo&&Lr()))}function _t(t,r){var o=t.callbackNode;bv(t,r);var a=yo(t,t===Xe?rt:0);if(a===0)o!==null&&Jf(o),t.callbackNode=null,t.callbackPriority=0;else if(r=a&-a,t.callbackPriority!==r){if(o!=null&&Jf(o),r===1)t.tag===0?x_(fp.bind(null,t)):Qd(fp.bind(null,t)),__(function(){(Se&6)===0&&Lr()}),o=null;else{switch(nd(a)){case 1:o=Da;break;case 4:o=ed;break;case 16:o=ho;break;case 536870912:o=td;break;default:o=ho}o=_p(o,cp.bind(null,t))}t.callbackPriority=r,t.callbackNode=o}}function cp(t,r){if(as=-1,ls=0,(Se&6)!==0)throw Error(i(327));var o=t.callbackNode;if(Kn()&&t.callbackNode!==o)return null;var a=yo(t,t===Xe?rt:0);if(a===0)return null;if((a&30)!==0||(a&t.expiredLanes)!==0||r)r=us(t,a);else{r=a;var c=Se;Se|=2;var f=hp();(Xe!==t||rt!==r)&&(Er=null,Wn=ze()+500,cn(t,r));do try{$_();break}catch(C){dp(t,C)}while(!0);vl(),rs.current=f,Se=c,qe!==null?r=0:(Xe=null,rt=0,r=Ze)}if(r!==0){if(r===2&&(c=Pa(t),c!==0&&(a=c,r=tu(t,c))),r===1)throw o=ji,cn(t,0),$r(t,a),_t(t,ze()),o;if(r===6)$r(t,a);else{if(c=t.current.alternate,(a&30)===0&&!z_(c)&&(r=us(t,a),r===2&&(f=Pa(t),f!==0&&(a=f,r=tu(t,f))),r===1))throw o=ji,cn(t,0),$r(t,a),_t(t,ze()),o;switch(t.finishedWork=c,t.finishedLanes=a,r){case 0:case 1:throw Error(i(345));case 2:fn(t,vt,Er);break;case 3:if($r(t,a),(a&130023424)===a&&(r=Yl+500-ze(),10<r)){if(yo(t,0)!==0)break;if(c=t.suspendedLanes,(c&a)!==a){dt(),t.pingedLanes|=t.suspendedLanes&c;break}t.timeoutHandle=al(fn.bind(null,t,vt,Er),r);break}fn(t,vt,Er);break;case 4:if($r(t,a),(a&4194240)===a)break;for(r=t.eventTimes,c=-1;0<a;){var g=31-Ht(a);f=1<<g,g=r[g],g>c&&(c=g),a&=~f}if(a=c,a=ze()-a,a=(120>a?120:480>a?480:1080>a?1080:1920>a?1920:3e3>a?3e3:4320>a?4320:1960*H_(a/1960))-a,10<a){t.timeoutHandle=al(fn.bind(null,t,vt,Er),a);break}fn(t,vt,Er);break;case 5:fn(t,vt,Er);break;default:throw Error(i(329))}}}return _t(t,ze()),t.callbackNode===o?cp.bind(null,t):null}function tu(t,r){var o=Ui;return t.current.memoizedState.isDehydrated&&(cn(t,r).flags|=256),t=us(t,r),t!==2&&(r=vt,vt=o,r!==null&&ru(r)),t}function ru(t){vt===null?vt=t:vt.push.apply(vt,t)}function z_(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(!zt(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&=~Xl,r&=~ns,t.suspendedLanes|=r,t.pingedLanes&=~r,t=t.expirationTimes;0<r;){var o=31-Ht(r),a=1<<o;t[o]=-1,r&=~a}}function fp(t){if((Se&6)!==0)throw Error(i(327));Kn();var r=yo(t,0);if((r&1)===0)return _t(t,ze()),null;var o=us(t,r);if(t.tag!==0&&o===2){var a=Pa(t);a!==0&&(r=a,o=tu(t,a))}if(o===1)throw o=ji,cn(t,0),$r(t,r),_t(t,ze()),o;if(o===6)throw Error(i(345));return t.finishedWork=t.current.alternate,t.finishedLanes=r,fn(t,vt,Er),_t(t,ze()),null}function nu(t,r){var o=Se;Se|=1;try{return t(r)}finally{Se=o,Se===0&&(Wn=ze()+500,Fo&&Lr())}}function un(t){zr!==null&&zr.tag===0&&(Se&6)===0&&Kn();var r=Se;Se|=1;var o=Ft.transition,a=Oe;try{if(Ft.transition=null,Oe=1,t)return t()}finally{Oe=a,Ft.transition=o,Se=r,(Se&6)===0&&Lr()}}function iu(){Tt=Vn.current,Pe(Vn)}function cn(t,r){t.finishedWork=null,t.finishedLanes=0;var o=t.timeoutHandle;if(o!==-1&&(t.timeoutHandle=-1,v_(o)),qe!==null)for(o=qe.return;o!==null;){var a=o;switch(hl(a),a.tag){case 1:a=a.type.childContextTypes,a!=null&&Po();break;case 3:Gn(),Pe(mt),Pe(st),Cl();break;case 5:bl(a);break;case 4:Gn();break;case 13:Pe(Le);break;case 19:Pe(Le);break;case 10:_l(a.type._context);break;case 22:case 23:iu()}o=o.return}if(Xe=t,qe=t=qr(t.current,null),rt=Tt=r,Ze=0,ji=null,Xl=ns=ln=0,vt=Ui=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 dp(t,r){do{var o=qe;try{if(vl(),Vo.current=Qo,Wo){for(var a=Be.memoizedState;a!==null;){var c=a.queue;c!==null&&(c.pending=null),a=a.next}Wo=!1}if(an=0,Qe=Ke=Be=null,Di=!1,Pi=0,Ql.current=null,o===null||o.return===null){Ze=1,ji=r,qe=null;break}e:{var f=t,g=o.return,C=o,A=r;if(r=rt,C.flags|=32768,A!==null&&typeof A=="object"&&typeof A.then=="function"){var L=A,H=C,G=H.tag;if((H.mode&1)===0&&(G===0||G===11||G===15)){var U=H.alternate;U?(H.updateQueue=U.updateQueue,H.memoizedState=U.memoizedState,H.lanes=U.lanes):(H.updateQueue=null,H.memoizedState=null)}var K=Lh(g);if(K!==null){K.flags&=-257,Bh(K,g,C,f,r),K.mode&1&&Fh(f,L,r),r=K,A=L;var X=r.updateQueue;if(X===null){var Y=new Set;Y.add(A),r.updateQueue=Y}else X.add(A);break e}else{if((r&1)===0){Fh(f,L,r),ou();break e}A=Error(i(426))}}else if(Fe&&C.mode&1){var Ge=Lh(g);if(Ge!==null){(Ge.flags&65536)===0&&(Ge.flags|=256),Bh(Ge,g,C,f,r),gl($n(A,C));break e}}f=A=$n(A,C),Ze!==4&&(Ze=2),Ui===null?Ui=[f]:Ui.push(f),f=g;do{switch(f.tag){case 3:f.flags|=65536,r&=-r,f.lanes|=r;var P=Ph(f,A,r);ah(f,P);break e;case 1:C=A;var I=f.type,M=f.stateNode;if((f.flags&128)===0&&(typeof I.getDerivedStateFromError=="function"||M!==null&&typeof M.componentDidCatch=="function"&&(Hr===null||!Hr.has(M)))){f.flags|=65536,r&=-r,f.lanes|=r;var $=Mh(f,C,r);ah(f,$);break e}}f=f.return}while(f!==null)}mp(o)}catch(ee){r=ee,qe===o&&o!==null&&(qe=o=o.return);continue}break}while(!0)}function hp(){var t=rs.current;return rs.current=Qo,t===null?Qo:t}function ou(){(Ze===0||Ze===3||Ze===2)&&(Ze=4),Xe===null||(ln&268435455)===0&&(ns&268435455)===0||$r(Xe,rt)}function us(t,r){var o=Se;Se|=2;var a=hp();(Xe!==t||rt!==r)&&(Er=null,cn(t,r));do try{G_();break}catch(c){dp(t,c)}while(!0);if(vl(),Se=o,rs.current=a,qe!==null)throw Error(i(261));return Xe=null,rt=0,Ze}function G_(){for(;qe!==null;)pp(qe)}function $_(){for(;qe!==null&&!mv();)pp(qe)}function pp(t){var r=vp(t.alternate,t,Tt);t.memoizedProps=t.pendingProps,r===null?mp(t):qe=r,Ql.current=null}function mp(t){var r=t;do{var o=r.alternate;if(t=r.return,(r.flags&32768)===0){if(o=F_(o,r,Tt),o!==null){qe=o;return}}else{if(o=L_(o,r),o!==null){o.flags&=32767,qe=o;return}if(t!==null)t.flags|=32768,t.subtreeFlags=0,t.deletions=null;else{Ze=6,qe=null;return}}if(r=r.sibling,r!==null){qe=r;return}qe=r=t}while(r!==null);Ze===0&&(Ze=5)}function fn(t,r,o){var a=Oe,c=Ft.transition;try{Ft.transition=null,Oe=1,q_(t,r,o,a)}finally{Ft.transition=c,Oe=a}return null}function q_(t,r,o,a){do Kn();while(zr!==null);if((Se&6)!==0)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(Tv(t,f),t===Xe&&(qe=Xe=null,rt=0),(o.subtreeFlags&2064)===0&&(o.flags&2064)===0||os||(os=!0,_p(ho,function(){return Kn(),null})),f=(o.flags&15990)!==0,(o.subtreeFlags&15990)!==0||f){f=Ft.transition,Ft.transition=null;var g=Oe;Oe=1;var C=Se;Se|=4,Ql.current=null,j_(t,o),op(o,t),f_(ol),Eo=!!il,ol=il=null,t.current=o,U_(o),gv(),Se=C,Oe=g,Ft.transition=f}else t.current=o;if(os&&(os=!1,zr=t,ss=c),f=t.pendingLanes,f===0&&(Hr=null),_v(o.stateNode),_t(t,ze()),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(is)throw is=!1,t=Jl,Jl=null,t;return(ss&1)!==0&&t.tag!==0&&Kn(),f=t.pendingLanes,(f&1)!==0?t===eu?Hi++:(Hi=0,eu=t):Hi=0,Lr(),null}function Kn(){if(zr!==null){var t=nd(ss),r=Ft.transition,o=Oe;try{if(Ft.transition=null,Oe=16>t?16:t,zr===null)var a=!1;else{if(t=zr,zr=null,ss=0,(Se&6)!==0)throw Error(i(331));var c=Se;for(Se|=4,Q=t.current;Q!==null;){var f=Q,g=f.child;if((Q.flags&16)!==0){var C=f.deletions;if(C!==null){for(var A=0;A<C.length;A++){var L=C[A];for(Q=L;Q!==null;){var H=Q;switch(H.tag){case 0:case 11:case 15:Bi(8,H,f)}var G=H.child;if(G!==null)G.return=H,Q=G;else for(;Q!==null;){H=Q;var U=H.sibling,K=H.return;if(ep(H),H===L){Q=null;break}if(U!==null){U.return=K,Q=U;break}Q=K}}}var X=f.alternate;if(X!==null){var Y=X.child;if(Y!==null){X.child=null;do{var Ge=Y.sibling;Y.sibling=null,Y=Ge}while(Y!==null)}}Q=f}}if((f.subtreeFlags&2064)!==0&&g!==null)g.return=f,Q=g;else e:for(;Q!==null;){if(f=Q,(f.flags&2048)!==0)switch(f.tag){case 0:case 11:case 15:Bi(9,f,f.return)}var P=f.sibling;if(P!==null){P.return=f.return,Q=P;break e}Q=f.return}}var I=t.current;for(Q=I;Q!==null;){g=Q;var M=g.child;if((g.subtreeFlags&2064)!==0&&M!==null)M.return=g,Q=M;else e:for(g=I;Q!==null;){if(C=Q,(C.flags&2048)!==0)try{switch(C.tag){case 0:case 11:case 15:ts(9,C)}}catch(ee){He(C,C.return,ee)}if(C===g){Q=null;break e}var $=C.sibling;if($!==null){$.return=C.return,Q=$;break e}Q=C.return}}if(Se=c,Lr(),er&&typeof er.onPostCommitFiberRoot=="function")try{er.onPostCommitFiberRoot(po,t)}catch{}a=!0}return a}finally{Oe=o,Ft.transition=r}}return!1}function gp(t,r,o){r=$n(o,r),r=Ph(t,r,1),t=jr(t,r,1),r=dt(),t!==null&&(fi(t,1,r),_t(t,r))}function He(t,r,o){if(t.tag===3)gp(t,t,o);else for(;r!==null;){if(r.tag===3){gp(r,t,o);break}else if(r.tag===1){var a=r.stateNode;if(typeof r.type.getDerivedStateFromError=="function"||typeof a.componentDidCatch=="function"&&(Hr===null||!Hr.has(a))){t=$n(o,t),t=Mh(r,t,1),r=jr(r,t,1),t=dt(),r!==null&&(fi(r,1,t),_t(r,t));break}}r=r.return}}function V_(t,r,o){var a=t.pingCache;a!==null&&a.delete(r),r=dt(),t.pingedLanes|=t.suspendedLanes&o,Xe===t&&(rt&o)===o&&(Ze===4||Ze===3&&(rt&130023424)===rt&&500>ze()-Yl?cn(t,0):Xl|=o),_t(t,r)}function yp(t,r){r===0&&((t.mode&1)===0?r=1:(r=go,go<<=1,(go&130023424)===0&&(go=4194304)));var o=dt();t=yr(t,r),t!==null&&(fi(t,r,o),_t(t,o))}function W_(t){var r=t.memoizedState,o=0;r!==null&&(o=r.retryLane),yp(t,o)}function K_(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),yp(t,o)}var vp;vp=function(t,r,o){if(t!==null)if(t.memoizedProps!==r.pendingProps||mt.current)yt=!0;else{if((t.lanes&o)===0&&(r.flags&128)===0)return yt=!1,M_(t,r,o);yt=(t.flags&131072)!==0}else yt=!1,Fe&&(r.flags&1048576)!==0&&Xd(r,Bo,r.index);switch(r.lanes=0,r.tag){case 2:var a=r.type;Jo(t,r),t=r.pendingProps;var c=Fn(r,st.current);zn(r,o),c=Ol(null,r,a,t,c,o);var f=Nl();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,gt(a)?(f=!0,Mo(r)):f=!1,r.memoizedState=c.state!==null&&c.state!==void 0?c.state:null,Sl(r),c.updater=Xo,r.stateNode=c,c._reactInternals=r,Fl(r,a,t,o),r=Ul(null,r,a,!0,f,o)):(r.tag=0,Fe&&f&&dl(r),ft(null,r,c,o),r=r.child),r;case 16:a=r.elementType;e:{switch(Jo(t,r),t=r.pendingProps,c=a._init,a=c(a._payload),r.type=a,c=r.tag=Q_(a),t=$t(a,t),c){case 0:r=jl(null,r,a,t,o);break e;case 1:r=$h(null,r,a,t,o);break e;case 11:r=jh(null,r,a,t,o);break e;case 14:r=Uh(null,r,a,$t(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:$t(a,c),jl(t,r,a,c,o);case 1:return a=r.type,c=r.pendingProps,c=r.elementType===a?c:$t(a,c),$h(t,r,a,c,o);case 3:e:{if(qh(r),t===null)throw Error(i(387));a=r.pendingProps,f=r.memoizedState,c=f.element,sh(t,r),$o(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=Vh(t,r,a,o,c);break e}else if(a!==c){c=$n(Error(i(424)),r),r=Vh(t,r,a,o,c);break e}else for(bt=Pr(r.stateNode.containerInfo.firstChild),xt=r,Fe=!0,Gt=null,o=ih(r,null,a,o),r.child=o;o;)o.flags=o.flags&-3|4096,o=o.sibling;else{if(jn(),a===c){r=_r(t,r,o);break e}ft(t,r,a,o)}r=r.child}return r;case 5:return uh(r),t===null&&ml(r),a=r.type,c=r.pendingProps,f=t!==null?t.memoizedProps:null,g=c.children,sl(a,c)?g=null:f!==null&&sl(a,f)&&(r.flags|=32),Gh(t,r),ft(t,r,g,o),r.child;case 6:return t===null&&ml(r),null;case 13:return Wh(t,r,o);case 4:return xl(r,r.stateNode.containerInfo),a=r.pendingProps,t===null?r.child=Un(r,null,a,o):ft(t,r,a,o),r.child;case 11:return a=r.type,c=r.pendingProps,c=r.elementType===a?c:$t(a,c),jh(t,r,a,c,o);case 7:return ft(t,r,r.pendingProps,o),r.child;case 8:return ft(t,r,r.pendingProps.children,o),r.child;case 12:return ft(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(Ho,a._currentValue),a._currentValue=g,f!==null)if(zt(f.value,g)){if(f.children===c.children&&!mt.current){r=_r(t,r,o);break e}}else for(f=r.child,f!==null&&(f.return=r);f!==null;){var C=f.dependencies;if(C!==null){g=f.child;for(var A=C.firstContext;A!==null;){if(A.context===a){if(f.tag===1){A=vr(-1,o&-o),A.tag=2;var L=f.updateQueue;if(L!==null){L=L.shared;var H=L.pending;H===null?A.next=A:(A.next=H.next,H.next=A),L.pending=A}}f.lanes|=o,A=f.alternate,A!==null&&(A.lanes|=o),El(f.return,o,r),C.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,C=g.alternate,C!==null&&(C.lanes|=o),El(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}ft(t,r,c.children,o),r=r.child}return r;case 9:return c=r.type,a=r.pendingProps.children,zn(r,o),c=Pt(c),a=a(c),r.flags|=1,ft(t,r,a,o),r.child;case 14:return a=r.type,c=$t(a,r.pendingProps),c=$t(a.type,c),Uh(t,r,a,c,o);case 15:return Hh(t,r,r.type,r.pendingProps,o);case 17:return a=r.type,c=r.pendingProps,c=r.elementType===a?c:$t(a,c),Jo(t,r),r.tag=1,gt(a)?(t=!0,Mo(r)):t=!1,zn(r,o),Ih(r,a,c),Fl(r,a,c,o),Ul(null,r,a,!0,t,o);case 19:return Zh(t,r,o);case 22:return zh(t,r,o)}throw Error(i(156,r.tag))};function _p(t,r){return Yf(t,r)}function Z_(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 Lt(t,r,o,a){return new Z_(t,r,o,a)}function su(t){return t=t.prototype,!(!t||!t.isReactComponent)}function Q_(t){if(typeof t=="function")return su(t)?1:0;if(t!=null){if(t=t.$$typeof,t===pe)return 11;if(t===Ie)return 14}return 2}function qr(t,r){var o=t.alternate;return o===null?(o=Lt(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 cs(t,r,o,a,c,f){var g=2;if(a=t,typeof t=="function")su(t)&&(g=1);else if(typeof t=="string")g=5;else e:switch(t){case z:return dn(o.children,c,f,r);case V:g=8,c|=8;break;case fe:return t=Lt(12,o,r,c|2),t.elementType=fe,t.lanes=f,t;case ue:return t=Lt(13,o,r,c),t.elementType=ue,t.lanes=f,t;case Ue:return t=Lt(19,o,r,c),t.elementType=Ue,t.lanes=f,t;case Ne:return fs(o,c,f,r);default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case te:g=10;break e;case oe:g=9;break e;case pe: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=Lt(g,o,r,c),r.elementType=t,r.type=a,r.lanes=f,r}function dn(t,r,o,a){return t=Lt(7,t,a,r),t.lanes=o,t}function fs(t,r,o,a){return t=Lt(22,t,a,r),t.elementType=Ne,t.lanes=o,t.stateNode={isHidden:!1},t}function au(t,r,o){return t=Lt(6,t,null,r),t.lanes=o,t}function lu(t,r,o){return r=Lt(4,t.children!==null?t.children:[],t.key,r),r.lanes=o,r.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},r}function X_(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=Ma(0),this.expirationTimes=Ma(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ma(0),this.identifierPrefix=a,this.onRecoverableError=c,this.mutableSourceEagerHydrationData=null}function uu(t,r,o,a,c,f,g,C,A){return t=new X_(t,r,o,C,A),r===1?(r=1,f===!0&&(r|=8)):r=0,f=Lt(3,null,null,r),t.current=f,f.stateNode=t,f.memoizedState={element:a,isDehydrated:o,cache:null,transitions:null,pendingSuspenseBoundaries:null},Sl(f),t}function Y_(t,r,o){var a=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:F,key:a==null?null:""+a,children:t,containerInfo:r,implementation:o}}function Ep(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(gt(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(gt(o))return Kd(t,o,r)}return r}function wp(t,r,o,a,c,f,g,C,A){return t=uu(o,a,!0,t,c,f,g,C,A),t.context=Ep(null),o=t.current,a=dt(),c=Gr(o),f=vr(a,c),f.callback=r??null,jr(o,f,c),t.current.lanes=c,fi(t,c,a),_t(t,a),t}function ds(t,r,o,a){var c=r.current,f=dt(),g=Gr(c);return o=Ep(o),r.context===null?r.context=o:r.pendingContext=o,r=vr(f,g),r.payload={element:t},a=a===void 0?null:a,a!==null&&(r.callback=a),t=jr(c,r,g),t!==null&&(Wt(t,c,g,f),Go(t,c,g)),g}function hs(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 Sp(t,r){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var o=t.retryLane;t.retryLane=o!==0&&o<r?o:r}}function cu(t,r){Sp(t,r),(t=t.alternate)&&Sp(t,r)}function J_(){return null}var xp=typeof reportError=="function"?reportError:function(t){console.error(t)};function fu(t){this._internalRoot=t}ps.prototype.render=fu.prototype.render=function(t){var r=this._internalRoot;if(r===null)throw Error(i(409));ds(t,r,null,null)},ps.prototype.unmount=fu.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var r=t.containerInfo;un(function(){ds(null,t,null,null)}),r[hr]=null}};function ps(t){this._internalRoot=t}ps.prototype.unstable_scheduleHydration=function(t){if(t){var r=sd();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&&ud(t)}};function du(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)}function ms(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11&&(t.nodeType!==8||t.nodeValue!==" react-mount-point-unstable "))}function bp(){}function e1(t,r,o,a,c){if(c){if(typeof a=="function"){var f=a;a=function(){var L=hs(g);f.call(L)}}var g=wp(r,a,t,0,null,!1,!1,"",bp);return t._reactRootContainer=g,t[hr]=g.current,Ti(t.nodeType===8?t.parentNode:t),un(),g}for(;c=t.lastChild;)t.removeChild(c);if(typeof a=="function"){var C=a;a=function(){var L=hs(A);C.call(L)}}var A=uu(t,0,!1,null,null,!1,!1,"",bp);return t._reactRootContainer=A,t[hr]=A.current,Ti(t.nodeType===8?t.parentNode:t),un(function(){ds(r,A,o,a)}),A}function gs(t,r,o,a,c){var f=o._reactRootContainer;if(f){var g=f;if(typeof c=="function"){var C=c;c=function(){var A=hs(g);C.call(A)}}ds(r,g,t,c)}else g=e1(o,r,t,c,a);return hs(g)}id=function(t){switch(t.tag){case 3:var r=t.stateNode;if(r.current.memoizedState.isDehydrated){var o=ci(r.pendingLanes);o!==0&&(Fa(r,o|1),_t(r,ze()),(Se&6)===0&&(Wn=ze()+500,Lr()))}break;case 13:un(function(){var a=yr(t,1);if(a!==null){var c=dt();Wt(a,t,1,c)}}),cu(t,1)}},La=function(t){if(t.tag===13){var r=yr(t,134217728);if(r!==null){var o=dt();Wt(r,t,134217728,o)}cu(t,134217728)}},od=function(t){if(t.tag===13){var r=Gr(t),o=yr(t,r);if(o!==null){var a=dt();Wt(o,t,r,a)}cu(t,r)}},sd=function(){return Oe},ad=function(t,r){var o=Oe;try{return Oe=t,r()}finally{Oe=o}},Oa=function(t,r,o){switch(r){case"input":if(wa(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=Do(a);if(!c)throw Error(i(90));ct(a),wa(a,c)}}}break;case"textarea":Ff(t,o);break;case"select":r=o.value,r!=null&&bn(t,!!o.multiple,r,!1)}},qf=nu,Vf=un;var t1={usingClientEntryPoint:!1,Events:[Ri,Pn,Do,Gf,$f,nu]},zi={findFiberByHostInstance:en,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},r1={bundleType:zi.bundleType,version:zi.version,rendererPackageName:zi.rendererPackageName,rendererConfig:zi.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:k.ReactCurrentDispatcher,findHostInstanceByFiber:function(t){return t=Qf(t),t===null?null:t.stateNode},findFiberByHostInstance:zi.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 ys=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ys.isDisabled&&ys.supportsFiber)try{po=ys.inject(r1),er=ys}catch{}}return Et.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=t1,Et.createPortal=function(t,r){var o=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!du(r))throw Error(i(200));return Y_(t,r,null,o)},Et.createRoot=function(t,r){if(!du(t))throw Error(i(299));var o=!1,a="",c=xp;return r!=null&&(r.unstable_strictMode===!0&&(o=!0),r.identifierPrefix!==void 0&&(a=r.identifierPrefix),r.onRecoverableError!==void 0&&(c=r.onRecoverableError)),r=uu(t,1,!1,null,null,o,!1,a,c),t[hr]=r.current,Ti(t.nodeType===8?t.parentNode:t),new fu(r)},Et.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=Qf(r),t=t===null?null:t.stateNode,t},Et.flushSync=function(t){return un(t)},Et.hydrate=function(t,r,o){if(!ms(r))throw Error(i(200));return gs(null,t,r,!0,o)},Et.hydrateRoot=function(t,r,o){if(!du(t))throw Error(i(405));var a=o!=null&&o.hydratedSources||null,c=!1,f="",g=xp;if(o!=null&&(o.unstable_strictMode===!0&&(c=!0),o.identifierPrefix!==void 0&&(f=o.identifierPrefix),o.onRecoverableError!==void 0&&(g=o.onRecoverableError)),r=wp(r,null,t,1,o??null,c,!1,f,g),t[hr]=r.current,Ti(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 ps(r)},Et.render=function(t,r,o){if(!ms(r))throw Error(i(200));return gs(null,t,r,!1,o)},Et.unmountComponentAtNode=function(t){if(!ms(t))throw Error(i(40));return t._reactRootContainer?(un(function(){gs(null,null,t,!1,function(){t._reactRootContainer=null,t[hr]=null})}),!0):!1},Et.unstable_batchedUpdates=nu,Et.unstable_renderSubtreeIntoContainer=function(t,r,o,a){if(!ms(o))throw Error(i(200));if(t==null||t._reactInternals===void 0)throw Error(i(38));return gs(t,r,o,!1,a)},Et.version="18.3.1-next-f1338f8080-20240426",Et}var Ip;function d1(){if(Ip)return mu.exports;Ip=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(),mu.exports=f1(),mu.exports}var Dp;function h1(){if(Dp)return _s;Dp=1;var e=d1();return _s.createRoot=e.createRoot,_s.hydrateRoot=e.hydrateRoot,_s}var p1=h1(),B=Jn();const r0=oa(B);var vu={exports:{}},_u={};/**
40
+ `+f.stack}return{value:t,source:r,stack:c,digest:null}}function Bl(t,r,o){return{value:t,source:null,stack:o??null,digest:r??null}}function jl(t,r){try{console.error(r.value)}catch(o){setTimeout(function(){throw o})}}var D_=typeof WeakMap=="function"?WeakMap:Map;function Ph(t,r,o){o=vr(-1,o),o.tag=3,o.payload={element:null};var a=r.value;return o.callback=function(){is||(is=!0,eu=a),jl(t,r)},o}function Mh(t,r,o){o=vr(-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(){jl(t,r)}}var f=t.stateNode;return f!==null&&typeof f.componentDidCatch=="function"&&(o.callback=function(){jl(t,r),typeof a!="function"&&(Hr===null?Hr=new Set([this]):Hr.add(this));var g=r.stack;this.componentDidCatch(r.value,{componentStack:g!==null?g:""})}),o}function Fh(t,r,o){var a=t.pingCache;if(a===null){a=t.pingCache=new D_;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=W_.bind(null,t,r,o),r.then(t,t))}function Lh(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 Bh(t,r,o,a,c){return(t.mode&1)===0?(t===r?t.flags|=65536:(t.flags|=128,o.flags|=131072,o.flags&=-52805,o.tag===1&&(o.alternate===null?o.tag=17:(r=vr(-1,1),r.tag=2,jr(o,r,1))),o.lanes|=1),t):(t.flags|=65536,t.lanes=c,t)}var P_=k.ReactCurrentOwner,yt=!1;function ft(t,r,o,a){r.child=t===null?ih(r,null,o,a):Un(r,t.child,o,a)}function jh(t,r,o,a,c){o=o.render;var f=r.ref;return zn(r,c),a=Nl(t,r,o,a,f,c),o=Al(),t!==null&&!yt?(r.updateQueue=t.updateQueue,r.flags&=-2053,t.lanes&=~c,_r(t,r,c)):(Fe&&o&&hl(r),r.flags|=1,ft(t,r,a,c),r.child)}function Uh(t,r,o,a,c){if(t===null){var f=o.type;return typeof f=="function"&&!au(f)&&f.defaultProps===void 0&&o.compare===null&&o.defaultProps===void 0?(r.tag=15,r.type=f,Hh(t,r,f,a,c)):(t=cs(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)===0){var g=f.memoizedProps;if(o=o.compare,o=o!==null?o:Si,o(g,a)&&t.ref===r.ref)return _r(t,r,c)}return r.flags|=1,t=qr(f,a),t.ref=r.ref,t.return=r,r.child=t}function Hh(t,r,o,a,c){if(t!==null){var f=t.memoizedProps;if(Si(f,a)&&t.ref===r.ref)if(yt=!1,r.pendingProps=a=f,(t.lanes&c)!==0)(t.flags&131072)!==0&&(yt=!0);else return r.lanes=t.lanes,_r(t,r,c)}return Ul(t,r,o,a,c)}function zh(t,r,o){var a=r.pendingProps,c=a.children,f=t!==null?t.memoizedState:null;if(a.mode==="hidden")if((r.mode&1)===0)r.memoizedState={baseLanes:0,cachePool:null,transitions:null},Ae(Vn,Tt),Tt|=o;else{if((o&1073741824)===0)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,Tt),Tt|=t,null;r.memoizedState={baseLanes:0,cachePool:null,transitions:null},a=f!==null?f.baseLanes:o,Ae(Vn,Tt),Tt|=a}else f!==null?(a=f.baseLanes|o,r.memoizedState=null):a=o,Ae(Vn,Tt),Tt|=a;return ft(t,r,c,o),r.child}function Gh(t,r){var o=r.ref;(t===null&&o!==null||t!==null&&t.ref!==o)&&(r.flags|=512,r.flags|=2097152)}function Ul(t,r,o,a,c){var f=gt(o)?tn:st.current;return f=Fn(r,f),zn(r,c),o=Nl(t,r,o,a,f,c),a=Al(),t!==null&&!yt?(r.updateQueue=t.updateQueue,r.flags&=-2053,t.lanes&=~c,_r(t,r,c)):(Fe&&a&&hl(r),r.flags|=1,ft(t,r,o,c),r.child)}function $h(t,r,o,a,c){if(gt(o)){var f=!0;Mo(r)}else f=!1;if(zn(r,c),r.stateNode===null)Jo(t,r),Ih(r,o,a),Ll(r,o,a,c),a=!0;else if(t===null){var g=r.stateNode,C=r.memoizedProps;g.props=C;var A=g.context,L=o.contextType;typeof L=="object"&&L!==null?L=Pt(L):(L=gt(o)?tn:st.current,L=Fn(r,L));var H=o.getDerivedStateFromProps,G=typeof H=="function"||typeof g.getSnapshotBeforeUpdate=="function";G||typeof g.UNSAFE_componentWillReceiveProps!="function"&&typeof g.componentWillReceiveProps!="function"||(C!==a||A!==L)&&Dh(r,g,a,L),Br=!1;var U=r.memoizedState;g.state=U,$o(r,a,g,c),A=r.memoizedState,C!==a||U!==A||mt.current||Br?(typeof H=="function"&&(Fl(r,o,H,a),A=r.memoizedState),(C=Br||Ah(r,o,C,a,U,A,L))?(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=L,a=C):(typeof g.componentDidMount=="function"&&(r.flags|=4194308),a=!1)}else{g=r.stateNode,sh(t,r),C=r.memoizedProps,L=r.type===r.elementType?C:$t(r.type,C),g.props=L,G=r.pendingProps,U=g.context,A=o.contextType,typeof A=="object"&&A!==null?A=Pt(A):(A=gt(o)?tn:st.current,A=Fn(r,A));var K=o.getDerivedStateFromProps;(H=typeof K=="function"||typeof g.getSnapshotBeforeUpdate=="function")||typeof g.UNSAFE_componentWillReceiveProps!="function"&&typeof g.componentWillReceiveProps!="function"||(C!==G||U!==A)&&Dh(r,g,a,A),Br=!1,U=r.memoizedState,g.state=U,$o(r,a,g,c);var Q=r.memoizedState;C!==G||U!==Q||mt.current||Br?(typeof K=="function"&&(Fl(r,o,K,a),Q=r.memoizedState),(L=Br||Ah(r,o,L,a,U,Q,A)||!1)?(H||typeof g.UNSAFE_componentWillUpdate!="function"&&typeof g.componentWillUpdate!="function"||(typeof g.componentWillUpdate=="function"&&g.componentWillUpdate(a,Q,A),typeof g.UNSAFE_componentWillUpdate=="function"&&g.UNSAFE_componentWillUpdate(a,Q,A)),typeof g.componentDidUpdate=="function"&&(r.flags|=4),typeof g.getSnapshotBeforeUpdate=="function"&&(r.flags|=1024)):(typeof g.componentDidUpdate!="function"||C===t.memoizedProps&&U===t.memoizedState||(r.flags|=4),typeof g.getSnapshotBeforeUpdate!="function"||C===t.memoizedProps&&U===t.memoizedState||(r.flags|=1024),r.memoizedProps=a,r.memoizedState=Q),g.props=a,g.state=Q,g.context=A,a=L):(typeof g.componentDidUpdate!="function"||C===t.memoizedProps&&U===t.memoizedState||(r.flags|=4),typeof g.getSnapshotBeforeUpdate!="function"||C===t.memoizedProps&&U===t.memoizedState||(r.flags|=1024),a=!1)}return Hl(t,r,o,a,f,c)}function Hl(t,r,o,a,c,f){Gh(t,r);var g=(r.flags&128)!==0;if(!a&&!g)return c&&Zd(r,o,!1),_r(t,r,f);a=r.stateNode,P_.current=r;var C=g&&typeof o.getDerivedStateFromError!="function"?null:a.render();return r.flags|=1,t!==null&&g?(r.child=Un(r,t.child,null,f),r.child=Un(r,null,C,f)):ft(t,r,C,f),r.memoizedState=a.state,c&&Zd(r,o,!0),r.child}function qh(t){var r=t.stateNode;r.pendingContext?Wd(t,r.pendingContext,r.pendingContext!==r.context):r.context&&Wd(t,r.context,!1),bl(t,r.containerInfo)}function Vh(t,r,o,a,c){return jn(),yl(c),r.flags|=256,ft(t,r,o,a),r.child}var zl={dehydrated:null,treeContext:null,retryLane:0};function Gl(t){return{baseLanes:t,cachePool:null,transitions:null}}function Wh(t,r,o){var a=r.pendingProps,c=Le.current,f=!1,g=(r.flags&128)!==0,C;if((C=g)||(C=t!==null&&t.memoizedState===null?!1:(c&2)!==0),C?(f=!0,r.flags&=-129):(t===null||t.memoizedState!==null)&&(c|=1),Ae(Le,c&1),t===null)return gl(r),t=r.memoizedState,t!==null&&(t=t.dehydrated,t!==null)?((r.mode&1)===0?r.lanes=1:t.data==="$!"?r.lanes=8:r.lanes=1073741824,null):(g=a.children,t=a.fallback,f?(a=r.mode,f=r.child,g={mode:"hidden",children:g},(a&1)===0&&f!==null?(f.childLanes=0,f.pendingProps=g):f=fs(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=Gl(o),r.memoizedState=zl,t):$l(r,g));if(c=t.memoizedState,c!==null&&(C=c.dehydrated,C!==null))return M_(t,r,g,a,C,c,o);if(f){f=a.fallback,g=r.mode,c=t.child,C=c.sibling;var A={mode:"hidden",children:a.children};return(g&1)===0&&r.child!==c?(a=r.child,a.childLanes=0,a.pendingProps=A,r.deletions=null):(a=qr(c,A),a.subtreeFlags=c.subtreeFlags&14680064),C!==null?f=qr(C,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?Gl(o):{baseLanes:g.baseLanes|o,cachePool:null,transitions:g.transitions},f.memoizedState=g,f.childLanes=t.childLanes&~o,r.memoizedState=zl,a}return f=t.child,t=f.sibling,a=qr(f,{mode:"visible",children:a.children}),(r.mode&1)===0&&(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 $l(t,r){return r=fs({mode:"visible",children:r},t.mode,0,null),r.return=t,t.child=r}function Yo(t,r,o,a){return a!==null&&yl(a),Un(r,t.child,null,o),t=$l(r,r.pendingProps.children),t.flags|=2,r.memoizedState=null,t}function M_(t,r,o,a,c,f,g){if(o)return r.flags&256?(r.flags&=-257,a=Bl(Error(i(422))),Yo(t,r,g,a)):r.memoizedState!==null?(r.child=t.child,r.flags|=128,null):(f=a.fallback,c=r.mode,a=fs({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)!==0&&Un(r,t.child,null,g),r.child.memoizedState=Gl(g),r.memoizedState=zl,f);if((r.mode&1)===0)return Yo(t,r,g,null);if(c.data==="$!"){if(a=c.nextSibling&&c.nextSibling.dataset,a)var C=a.dgst;return a=C,f=Error(i(419)),a=Bl(f,a,void 0),Yo(t,r,g,a)}if(C=(g&t.childLanes)!==0,yt||C){if(a=Qe,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?0:c,c!==0&&c!==f.retryLane&&(f.retryLane=c,yr(t,c),Wt(a,t,c,-1))}return su(),a=Bl(Error(i(421))),Yo(t,r,g,a)}return c.data==="$?"?(r.flags|=128,r.child=t.child,r=K_.bind(null,t),c._reactRetry=r,null):(t=f.treeContext,bt=Pr(c.nextSibling),xt=r,Fe=!0,Gt=null,t!==null&&(It[Dt++]=mr,It[Dt++]=gr,It[Dt++]=rn,mr=t.id,gr=t.overflow,rn=r),r=$l(r,a.children),r.flags|=4096,r)}function Kh(t,r,o){t.lanes|=r;var a=t.alternate;a!==null&&(a.lanes|=r),wl(t.return,r,o)}function ql(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(ft(t,r,a.children,o),a=Le.current,(a&2)!==0)a=a&1|2,r.flags|=128;else{if(t!==null&&(t.flags&128)!==0)e:for(t=r.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&Kh(t,o,r);else if(t.tag===19)Kh(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(Le,a),(r.mode&1)===0)r.memoizedState=null;else switch(c){case"forwards":for(o=r.child,c=null;o!==null;)t=o.alternate,t!==null&&qo(t)===null&&(c=o),o=o.sibling;o=c,o===null?(c=r.child,r.child=null):(c=o.sibling,o.sibling=null),ql(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&&qo(t)===null){r.child=c;break}t=c.sibling,c.sibling=o,o=c,c=t}ql(r,!0,o,null,f);break;case"together":ql(r,!1,null,null,void 0);break;default:r.memoizedState=null}return r.child}function Jo(t,r){(r.mode&1)===0&&t!==null&&(t.alternate=null,r.alternate=null,r.flags|=2)}function _r(t,r,o){if(t!==null&&(r.dependencies=t.dependencies),ln|=r.lanes,(o&r.childLanes)===0)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 F_(t,r,o){switch(r.tag){case 3:qh(r),jn();break;case 5:uh(r);break;case 1:gt(r.type)&&Mo(r);break;case 4:bl(r,r.stateNode.containerInfo);break;case 10:var a=r.type._context,c=r.memoizedProps.value;Ae(Ho,a._currentValue),a._currentValue=c;break;case 13:if(a=r.memoizedState,a!==null)return a.dehydrated!==null?(Ae(Le,Le.current&1),r.flags|=128,null):(o&r.child.childLanes)!==0?Wh(t,r,o):(Ae(Le,Le.current&1),t=_r(t,r,o),t!==null?t.sibling:null);Ae(Le,Le.current&1);break;case 19:if(a=(o&r.childLanes)!==0,(t.flags&128)!==0){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(Le,Le.current),a)break;return null;case 22:case 23:return r.lanes=0,zh(t,r,o)}return _r(t,r,o)}var Xh,Vl,Qh,Yh;Xh=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}},Vl=function(){},Qh=function(t,r,o,a){var c=t.memoizedProps;if(c!==a){t=r.stateNode,sn(rr.current);var f=null;switch(o){case"input":c=wa(t,c),a=wa(t,a),f=[];break;case"select":c=Z({},c,{value:void 0}),a=Z({},a,{value:void 0}),f=[];break;case"textarea":c=ba(t,c),a=ba(t,a),f=[];break;default:typeof c.onClick!="function"&&typeof a.onClick=="function"&&(t.onclick=Io)}Ca(o,a);var g;o=null;for(L in c)if(!a.hasOwnProperty(L)&&c.hasOwnProperty(L)&&c[L]!=null)if(L==="style"){var C=c[L];for(g in C)C.hasOwnProperty(g)&&(o||(o={}),o[g]="")}else L!=="dangerouslySetInnerHTML"&&L!=="children"&&L!=="suppressContentEditableWarning"&&L!=="suppressHydrationWarning"&&L!=="autoFocus"&&(l.hasOwnProperty(L)?f||(f=[]):(f=f||[]).push(L,null));for(L in a){var A=a[L];if(C=c!=null?c[L]:void 0,a.hasOwnProperty(L)&&A!==C&&(A!=null||C!=null))if(L==="style")if(C){for(g in C)!C.hasOwnProperty(g)||A&&A.hasOwnProperty(g)||(o||(o={}),o[g]="");for(g in A)A.hasOwnProperty(g)&&C[g]!==A[g]&&(o||(o={}),o[g]=A[g])}else o||(f||(f=[]),f.push(L,o)),o=A;else L==="dangerouslySetInnerHTML"?(A=A?A.__html:void 0,C=C?C.__html:void 0,A!=null&&C!==A&&(f=f||[]).push(L,A)):L==="children"?typeof A!="string"&&typeof A!="number"||(f=f||[]).push(L,""+A):L!=="suppressContentEditableWarning"&&L!=="suppressHydrationWarning"&&(l.hasOwnProperty(L)?(A!=null&&L==="onScroll"&&De("scroll",t),f||C===A||(f=[])):(f=f||[]).push(L,A))}o&&(f=f||[]).push("style",o);var L=f;(r.updateQueue=L)&&(r.flags|=4)}},Yh=function(t,r,o,a){o!==a&&(r.flags|=4)};function Li(t,r){if(!Fe)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 lt(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 L_(t,r,o){var a=r.pendingProps;switch(pl(r),r.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return lt(r),null;case 1:return gt(r.type)&&Po(),lt(r),null;case 3:return a=r.stateNode,Gn(),Pe(mt),Pe(st),kl(),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),(t===null||t.child===null)&&(jo(r)?r.flags|=4:t===null||t.memoizedState.isDehydrated&&(r.flags&256)===0||(r.flags|=1024,Gt!==null&&(nu(Gt),Gt=null))),Vl(t,r),lt(r),null;case 5:Tl(r);var c=sn(Ii.current);if(o=r.type,t!==null&&r.stateNode!=null)Qh(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 lt(r),null}if(t=sn(rr.current),jo(r)){a=r.stateNode,o=r.type;var f=r.memoizedProps;switch(a[tr]=r,a[ki]=f,t=(r.mode&1)!==0,o){case"dialog":De("cancel",a),De("close",a);break;case"iframe":case"object":case"embed":De("load",a);break;case"video":case"audio":for(c=0;c<bi.length;c++)De(bi[c],a);break;case"source":De("error",a);break;case"img":case"image":case"link":De("error",a),De("load",a);break;case"details":De("toggle",a);break;case"input":If(a,f),De("invalid",a);break;case"select":a._wrapperState={wasMultiple:!!f.multiple},De("invalid",a);break;case"textarea":Mf(a,f),De("invalid",a)}Ca(o,f),c=null;for(var g in f)if(f.hasOwnProperty(g)){var C=f[g];g==="children"?typeof C=="string"?a.textContent!==C&&(f.suppressHydrationWarning!==!0&&Ao(a.textContent,C,t),c=["children",C]):typeof C=="number"&&a.textContent!==""+C&&(f.suppressHydrationWarning!==!0&&Ao(a.textContent,C,t),c=["children",""+C]):l.hasOwnProperty(g)&&C!=null&&g==="onScroll"&&De("scroll",a)}switch(o){case"input":ni(a),Pf(a,f,!0);break;case"textarea":ni(a),Lf(a);break;case"select":case"option":break;default:typeof f.onClick=="function"&&(a.onclick=Io)}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=Bf(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[tr]=r,t[ki]=a,Xh(t,r,!1,!1),r.stateNode=t;e:{switch(g=ka(o,a),o){case"dialog":De("cancel",t),De("close",t),c=a;break;case"iframe":case"object":case"embed":De("load",t),c=a;break;case"video":case"audio":for(c=0;c<bi.length;c++)De(bi[c],t);c=a;break;case"source":De("error",t),c=a;break;case"img":case"image":case"link":De("error",t),De("load",t),c=a;break;case"details":De("toggle",t),c=a;break;case"input":If(t,a),c=wa(t,a),De("invalid",t);break;case"option":c=a;break;case"select":t._wrapperState={wasMultiple:!!a.multiple},c=Z({},a,{value:void 0}),De("invalid",t);break;case"textarea":Mf(t,a),c=ba(t,a),De("invalid",t);break;default:c=a}Ca(o,c),C=c;for(f in C)if(C.hasOwnProperty(f)){var A=C[f];f==="style"?Hf(t,A):f==="dangerouslySetInnerHTML"?(A=A?A.__html:void 0,A!=null&&jf(t,A)):f==="children"?typeof A=="string"?(o!=="textarea"||A!=="")&&oi(t,A):typeof A=="number"&&oi(t,""+A):f!=="suppressContentEditableWarning"&&f!=="suppressHydrationWarning"&&f!=="autoFocus"&&(l.hasOwnProperty(f)?A!=null&&f==="onScroll"&&De("scroll",t):A!=null&&x(t,f,A,g))}switch(o){case"input":ni(t),Pf(t,a,!1);break;case"textarea":ni(t),Lf(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?bn(t,!!a.multiple,f,!1):a.defaultValue!=null&&bn(t,!!a.multiple,a.defaultValue,!0);break;default:typeof c.onClick=="function"&&(t.onclick=Io)}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 lt(r),null;case 6:if(t&&r.stateNode!=null)Yh(t,r,t.memoizedProps,a);else{if(typeof a!="string"&&r.stateNode===null)throw Error(i(166));if(o=sn(Ii.current),sn(rr.current),jo(r)){if(a=r.stateNode,o=r.memoizedProps,a[tr]=r,(f=a.nodeValue!==o)&&(t=xt,t!==null))switch(t.tag){case 3:Ao(a.nodeValue,o,(t.mode&1)!==0);break;case 5:t.memoizedProps.suppressHydrationWarning!==!0&&Ao(a.nodeValue,o,(t.mode&1)!==0)}f&&(r.flags|=4)}else a=(o.nodeType===9?o:o.ownerDocument).createTextNode(a),a[tr]=r,r.stateNode=a}return lt(r),null;case 13:if(Pe(Le),a=r.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(Fe&&bt!==null&&(r.mode&1)!==0&&(r.flags&128)===0)th(),jn(),r.flags|=98560,f=!1;else if(f=jo(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[tr]=r}else jn(),(r.flags&128)===0&&(r.memoizedState=null),r.flags|=4;lt(r),f=!1}else Gt!==null&&(nu(Gt),Gt=null),f=!0;if(!f)return r.flags&65536?r:null}return(r.flags&128)!==0?(r.lanes=o,r):(a=a!==null,a!==(t!==null&&t.memoizedState!==null)&&a&&(r.child.flags|=8192,(r.mode&1)!==0&&(t===null||(Le.current&1)!==0?Ze===0&&(Ze=3):su())),r.updateQueue!==null&&(r.flags|=4),lt(r),null);case 4:return Gn(),Vl(t,r),t===null&&Ti(r.stateNode.containerInfo),lt(r),null;case 10:return El(r.type._context),lt(r),null;case 17:return gt(r.type)&&Po(),lt(r),null;case 19:if(Pe(Le),f=r.memoizedState,f===null)return lt(r),null;if(a=(r.flags&128)!==0,g=f.rendering,g===null)if(a)Li(f,!1);else{if(Ze!==0||t!==null&&(t.flags&128)!==0)for(t=r.child;t!==null;){if(g=qo(t),g!==null){for(r.flags|=128,Li(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(Le,Le.current&1|2),r.child}t=t.sibling}f.tail!==null&&ze()>Wn&&(r.flags|=128,a=!0,Li(f,!1),r.lanes=4194304)}else{if(!a)if(t=qo(g),t!==null){if(r.flags|=128,a=!0,o=t.updateQueue,o!==null&&(r.updateQueue=o,r.flags|=4),Li(f,!0),f.tail===null&&f.tailMode==="hidden"&&!g.alternate&&!Fe)return lt(r),null}else 2*ze()-f.renderingStartTime>Wn&&o!==1073741824&&(r.flags|=128,a=!0,Li(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=ze(),r.sibling=null,o=Le.current,Ae(Le,a?o&1|2:o&1),r):(lt(r),null);case 22:case 23:return ou(),a=r.memoizedState!==null,t!==null&&t.memoizedState!==null!==a&&(r.flags|=8192),a&&(r.mode&1)!==0?(Tt&1073741824)!==0&&(lt(r),r.subtreeFlags&6&&(r.flags|=8192)):lt(r),null;case 24:return null;case 25:return null}throw Error(i(156,r.tag))}function B_(t,r){switch(pl(r),r.tag){case 1:return gt(r.type)&&Po(),t=r.flags,t&65536?(r.flags=t&-65537|128,r):null;case 3:return Gn(),Pe(mt),Pe(st),kl(),t=r.flags,(t&65536)!==0&&(t&128)===0?(r.flags=t&-65537|128,r):null;case 5:return Tl(r),null;case 13:if(Pe(Le),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 Pe(Le),null;case 4:return Gn(),null;case 10:return El(r.type._context),null;case 22:case 23:return ou(),null;case 24:return null;default:return null}}var es=!1,ut=!1,j_=typeof WeakSet=="function"?WeakSet:Set,X=null;function qn(t,r){var o=t.ref;if(o!==null)if(typeof o=="function")try{o(null)}catch(a){He(t,r,a)}else o.current=null}function Wl(t,r,o){try{o()}catch(a){He(t,r,a)}}var Jh=!1;function U_(t,r){if(ol=Eo,t=Ad(),Qa(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,C=-1,A=-1,L=0,H=0,G=t,U=null;t:for(;;){for(var K;G!==o||c!==0&&G.nodeType!==3||(C=g+c),G!==f||a!==0&&G.nodeType!==3||(A=g+a),G.nodeType===3&&(g+=G.nodeValue.length),(K=G.firstChild)!==null;)U=G,G=K;for(;;){if(G===t)break t;if(U===o&&++L===c&&(C=g),U===f&&++H===a&&(A=g),(K=G.nextSibling)!==null)break;G=U,U=G.parentNode}G=K}o=C===-1||A===-1?null:{start:C,end:A}}else o=null}o=o||{start:0,end:0}}else o=null;for(sl={focusedElem:t,selectionRange:o},Eo=!1,X=r;X!==null;)if(r=X,t=r.child,(r.subtreeFlags&1028)!==0&&t!==null)t.return=r,X=t;else for(;X!==null;){r=X;try{var Q=r.alternate;if((r.flags&1024)!==0)switch(r.tag){case 0:case 11:case 15:break;case 1:if(Q!==null){var Y=Q.memoizedProps,Ge=Q.memoizedState,P=r.stateNode,I=P.getSnapshotBeforeUpdate(r.elementType===r.type?Y:$t(r.type,Y),Ge);P.__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($){He(r,r.return,$)}if(t=r.sibling,t!==null){t.return=r.return,X=t;break}X=r.return}return Q=Jh,Jh=!1,Q}function Bi(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&&Wl(r,o,f)}c=c.next}while(c!==a)}}function ts(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 Kl(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 ep(t){var r=t.alternate;r!==null&&(t.alternate=null,ep(r)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(r=t.stateNode,r!==null&&(delete r[tr],delete r[ki],delete r[cl],delete r[S_],delete r[x_])),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 tp(t){return t.tag===5||t.tag===3||t.tag===4}function rp(t){e:for(;;){for(;t.sibling===null;){if(t.return===null||tp(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 Zl(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=Io));else if(a!==4&&(t=t.child,t!==null))for(Zl(t,r,o),t=t.sibling;t!==null;)Zl(t,r,o),t=t.sibling}function Xl(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(Xl(t,r,o),t=t.sibling;t!==null;)Xl(t,r,o),t=t.sibling}var tt=null,qt=!1;function Ur(t,r,o){for(o=o.child;o!==null;)np(t,r,o),o=o.sibling}function np(t,r,o){if(er&&typeof er.onCommitFiberUnmount=="function")try{er.onCommitFiberUnmount(po,o)}catch{}switch(o.tag){case 5:ut||qn(o,r);case 6:var a=tt,c=qt;tt=null,Ur(t,r,o),tt=a,qt=c,tt!==null&&(qt?(t=tt,o=o.stateNode,t.nodeType===8?t.parentNode.removeChild(o):t.removeChild(o)):tt.removeChild(o.stateNode));break;case 18:tt!==null&&(qt?(t=tt,o=o.stateNode,t.nodeType===8?ul(t.parentNode,o):t.nodeType===1&&ul(t,o),gi(t)):ul(tt,o.stateNode));break;case 4:a=tt,c=qt,tt=o.stateNode.containerInfo,qt=!0,Ur(t,r,o),tt=a,qt=c;break;case 0:case 11:case 14:case 15:if(!ut&&(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)!==0||(f&4)!==0)&&Wl(o,r,g),c=c.next}while(c!==a)}Ur(t,r,o);break;case 1:if(!ut&&(qn(o,r),a=o.stateNode,typeof a.componentWillUnmount=="function"))try{a.props=o.memoizedProps,a.state=o.memoizedState,a.componentWillUnmount()}catch(C){He(o,r,C)}Ur(t,r,o);break;case 21:Ur(t,r,o);break;case 22:o.mode&1?(ut=(a=ut)||o.memoizedState!==null,Ur(t,r,o),ut=a):Ur(t,r,o);break;default:Ur(t,r,o)}}function ip(t){var r=t.updateQueue;if(r!==null){t.updateQueue=null;var o=t.stateNode;o===null&&(o=t.stateNode=new j_),r.forEach(function(a){var c=Z_.bind(null,t,a);o.has(a)||(o.add(a),a.then(c,c))})}}function Vt(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,C=g;e:for(;C!==null;){switch(C.tag){case 5:tt=C.stateNode,qt=!1;break e;case 3:tt=C.stateNode.containerInfo,qt=!0;break e;case 4:tt=C.stateNode.containerInfo,qt=!0;break e}C=C.return}if(tt===null)throw Error(i(160));np(f,g,c),tt=null,qt=!1;var A=c.alternate;A!==null&&(A.return=null),c.return=null}catch(L){He(c,r,L)}}if(r.subtreeFlags&12854)for(r=r.child;r!==null;)op(r,t),r=r.sibling}function op(t,r){var o=t.alternate,a=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:if(Vt(r,t),ir(t),a&4){try{Bi(3,t,t.return),ts(3,t)}catch(Y){He(t,t.return,Y)}try{Bi(5,t,t.return)}catch(Y){He(t,t.return,Y)}}break;case 1:Vt(r,t),ir(t),a&512&&o!==null&&qn(o,o.return);break;case 5:if(Vt(r,t),ir(t),a&512&&o!==null&&qn(o,o.return),t.flags&32){var c=t.stateNode;try{oi(c,"")}catch(Y){He(t,t.return,Y)}}if(a&4&&(c=t.stateNode,c!=null)){var f=t.memoizedProps,g=o!==null?o.memoizedProps:f,C=t.type,A=t.updateQueue;if(t.updateQueue=null,A!==null)try{C==="input"&&f.type==="radio"&&f.name!=null&&Df(c,f),ka(C,g);var L=ka(C,f);for(g=0;g<A.length;g+=2){var H=A[g],G=A[g+1];H==="style"?Hf(c,G):H==="dangerouslySetInnerHTML"?jf(c,G):H==="children"?oi(c,G):x(c,H,G,L)}switch(C){case"input":Sa(c,f);break;case"textarea":Ff(c,f);break;case"select":var U=c._wrapperState.wasMultiple;c._wrapperState.wasMultiple=!!f.multiple;var K=f.value;K!=null?bn(c,!!f.multiple,K,!1):U!==!!f.multiple&&(f.defaultValue!=null?bn(c,!!f.multiple,f.defaultValue,!0):bn(c,!!f.multiple,f.multiple?[]:"",!1))}c[ki]=f}catch(Y){He(t,t.return,Y)}}break;case 6:if(Vt(r,t),ir(t),a&4){if(t.stateNode===null)throw Error(i(162));c=t.stateNode,f=t.memoizedProps;try{c.nodeValue=f}catch(Y){He(t,t.return,Y)}}break;case 3:if(Vt(r,t),ir(t),a&4&&o!==null&&o.memoizedState.isDehydrated)try{gi(r.containerInfo)}catch(Y){He(t,t.return,Y)}break;case 4:Vt(r,t),ir(t);break;case 13:Vt(r,t),ir(t),c=t.child,c.flags&8192&&(f=c.memoizedState!==null,c.stateNode.isHidden=f,!f||c.alternate!==null&&c.alternate.memoizedState!==null||(Jl=ze())),a&4&&ip(t);break;case 22:if(H=o!==null&&o.memoizedState!==null,t.mode&1?(ut=(L=ut)||H,Vt(r,t),ut=L):Vt(r,t),ir(t),a&8192){if(L=t.memoizedState!==null,(t.stateNode.isHidden=L)&&!H&&(t.mode&1)!==0)for(X=t,H=t.child;H!==null;){for(G=X=H;X!==null;){switch(U=X,K=U.child,U.tag){case 0:case 11:case 14:case 15:Bi(4,U,U.return);break;case 1:qn(U,U.return);var Q=U.stateNode;if(typeof Q.componentWillUnmount=="function"){a=U,o=U.return;try{r=a,Q.props=r.memoizedProps,Q.state=r.memoizedState,Q.componentWillUnmount()}catch(Y){He(a,o,Y)}}break;case 5:qn(U,U.return);break;case 22:if(U.memoizedState!==null){lp(G);continue}}K!==null?(K.return=U,X=K):lp(G)}H=H.sibling}e:for(H=null,G=t;;){if(G.tag===5){if(H===null){H=G;try{c=G.stateNode,L?(f=c.style,typeof f.setProperty=="function"?f.setProperty("display","none","important"):f.display="none"):(C=G.stateNode,A=G.memoizedProps.style,g=A!=null&&A.hasOwnProperty("display")?A.display:null,C.style.display=Uf("display",g))}catch(Y){He(t,t.return,Y)}}}else if(G.tag===6){if(H===null)try{G.stateNode.nodeValue=L?"":G.memoizedProps}catch(Y){He(t,t.return,Y)}}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;H===G&&(H=null),G=G.return}H===G&&(H=null),G.sibling.return=G.return,G=G.sibling}}break;case 19:Vt(r,t),ir(t),a&4&&ip(t);break;case 21:break;default:Vt(r,t),ir(t)}}function ir(t){var r=t.flags;if(r&2){try{e:{for(var o=t.return;o!==null;){if(tp(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&&(oi(c,""),a.flags&=-33);var f=rp(t);Xl(t,f,c);break;case 3:case 4:var g=a.stateNode.containerInfo,C=rp(t);Zl(t,C,g);break;default:throw Error(i(161))}}catch(A){He(t,t.return,A)}t.flags&=-3}r&4096&&(t.flags&=-4097)}function H_(t,r,o){X=t,sp(t)}function sp(t,r,o){for(var a=(t.mode&1)!==0;X!==null;){var c=X,f=c.child;if(c.tag===22&&a){var g=c.memoizedState!==null||es;if(!g){var C=c.alternate,A=C!==null&&C.memoizedState!==null||ut;C=es;var L=ut;if(es=g,(ut=A)&&!L)for(X=c;X!==null;)g=X,A=g.child,g.tag===22&&g.memoizedState!==null?up(c):A!==null?(A.return=g,X=A):up(c);for(;f!==null;)X=f,sp(f),f=f.sibling;X=c,es=C,ut=L}ap(t)}else(c.subtreeFlags&8772)!==0&&f!==null?(f.return=c,X=f):ap(t)}}function ap(t){for(;X!==null;){var r=X;if((r.flags&8772)!==0){var o=r.alternate;try{if((r.flags&8772)!==0)switch(r.tag){case 0:case 11:case 15:ut||ts(5,r);break;case 1:var a=r.stateNode;if(r.flags&4&&!ut)if(o===null)a.componentDidMount();else{var c=r.elementType===r.type?o.memoizedProps:$t(r.type,o.memoizedProps);a.componentDidUpdate(c,o.memoizedState,a.__reactInternalSnapshotBeforeUpdate)}var f=r.updateQueue;f!==null&&lh(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}lh(r,g,o)}break;case 5:var C=r.stateNode;if(o===null&&r.flags&4){o=C;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 L=r.alternate;if(L!==null){var H=L.memoizedState;if(H!==null){var G=H.dehydrated;G!==null&&gi(G)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(i(163))}ut||r.flags&512&&Kl(r)}catch(U){He(r,r.return,U)}}if(r===t){X=null;break}if(o=r.sibling,o!==null){o.return=r.return,X=o;break}X=r.return}}function lp(t){for(;X!==null;){var r=X;if(r===t){X=null;break}var o=r.sibling;if(o!==null){o.return=r.return,X=o;break}X=r.return}}function up(t){for(;X!==null;){var r=X;try{switch(r.tag){case 0:case 11:case 15:var o=r.return;try{ts(4,r)}catch(A){He(r,o,A)}break;case 1:var a=r.stateNode;if(typeof a.componentDidMount=="function"){var c=r.return;try{a.componentDidMount()}catch(A){He(r,c,A)}}var f=r.return;try{Kl(r)}catch(A){He(r,f,A)}break;case 5:var g=r.return;try{Kl(r)}catch(A){He(r,g,A)}}}catch(A){He(r,r.return,A)}if(r===t){X=null;break}var C=r.sibling;if(C!==null){C.return=r.return,X=C;break}X=r.return}}var z_=Math.ceil,rs=k.ReactCurrentDispatcher,Ql=k.ReactCurrentOwner,Ft=k.ReactCurrentBatchConfig,Se=0,Qe=null,qe=null,rt=0,Tt=0,Vn=Mr(0),Ze=0,ji=null,ln=0,ns=0,Yl=0,Ui=null,vt=null,Jl=0,Wn=1/0,Er=null,is=!1,eu=null,Hr=null,os=!1,zr=null,ss=0,Hi=0,tu=null,as=-1,ls=0;function dt(){return(Se&6)!==0?ze():as!==-1?as:as=ze()}function Gr(t){return(t.mode&1)===0?1:(Se&2)!==0&&rt!==0?rt&-rt:T_.transition!==null?(ls===0&&(ls=rd()),ls):(t=Oe,t!==0||(t=window.event,t=t===void 0?16:fd(t.type)),t)}function Wt(t,r,o,a){if(50<Hi)throw Hi=0,tu=null,Error(i(185));fi(t,o,a),((Se&2)===0||t!==Qe)&&(t===Qe&&((Se&2)===0&&(ns|=o),Ze===4&&$r(t,rt)),_t(t,a),o===1&&Se===0&&(r.mode&1)===0&&(Wn=ze()+500,Fo&&Lr()))}function _t(t,r){var o=t.callbackNode;Tv(t,r);var a=yo(t,t===Qe?rt:0);if(a===0)o!==null&&Jf(o),t.callbackNode=null,t.callbackPriority=0;else if(r=a&-a,t.callbackPriority!==r){if(o!=null&&Jf(o),r===1)t.tag===0?b_(fp.bind(null,t)):Xd(fp.bind(null,t)),E_(function(){(Se&6)===0&&Lr()}),o=null;else{switch(nd(a)){case 1:o=Pa;break;case 4:o=ed;break;case 16:o=ho;break;case 536870912:o=td;break;default:o=ho}o=_p(o,cp.bind(null,t))}t.callbackPriority=r,t.callbackNode=o}}function cp(t,r){if(as=-1,ls=0,(Se&6)!==0)throw Error(i(327));var o=t.callbackNode;if(Kn()&&t.callbackNode!==o)return null;var a=yo(t,t===Qe?rt:0);if(a===0)return null;if((a&30)!==0||(a&t.expiredLanes)!==0||r)r=us(t,a);else{r=a;var c=Se;Se|=2;var f=hp();(Qe!==t||rt!==r)&&(Er=null,Wn=ze()+500,cn(t,r));do try{q_();break}catch(C){dp(t,C)}while(!0);_l(),rs.current=f,Se=c,qe!==null?r=0:(Qe=null,rt=0,r=Ze)}if(r!==0){if(r===2&&(c=Ma(t),c!==0&&(a=c,r=ru(t,c))),r===1)throw o=ji,cn(t,0),$r(t,a),_t(t,ze()),o;if(r===6)$r(t,a);else{if(c=t.current.alternate,(a&30)===0&&!G_(c)&&(r=us(t,a),r===2&&(f=Ma(t),f!==0&&(a=f,r=ru(t,f))),r===1))throw o=ji,cn(t,0),$r(t,a),_t(t,ze()),o;switch(t.finishedWork=c,t.finishedLanes=a,r){case 0:case 1:throw Error(i(345));case 2:fn(t,vt,Er);break;case 3:if($r(t,a),(a&130023424)===a&&(r=Jl+500-ze(),10<r)){if(yo(t,0)!==0)break;if(c=t.suspendedLanes,(c&a)!==a){dt(),t.pingedLanes|=t.suspendedLanes&c;break}t.timeoutHandle=ll(fn.bind(null,t,vt,Er),r);break}fn(t,vt,Er);break;case 4:if($r(t,a),(a&4194240)===a)break;for(r=t.eventTimes,c=-1;0<a;){var g=31-Ht(a);f=1<<g,g=r[g],g>c&&(c=g),a&=~f}if(a=c,a=ze()-a,a=(120>a?120:480>a?480:1080>a?1080:1920>a?1920:3e3>a?3e3:4320>a?4320:1960*z_(a/1960))-a,10<a){t.timeoutHandle=ll(fn.bind(null,t,vt,Er),a);break}fn(t,vt,Er);break;case 5:fn(t,vt,Er);break;default:throw Error(i(329))}}}return _t(t,ze()),t.callbackNode===o?cp.bind(null,t):null}function ru(t,r){var o=Ui;return t.current.memoizedState.isDehydrated&&(cn(t,r).flags|=256),t=us(t,r),t!==2&&(r=vt,vt=o,r!==null&&nu(r)),t}function nu(t){vt===null?vt=t:vt.push.apply(vt,t)}function G_(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(!zt(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&=~Yl,r&=~ns,t.suspendedLanes|=r,t.pingedLanes&=~r,t=t.expirationTimes;0<r;){var o=31-Ht(r),a=1<<o;t[o]=-1,r&=~a}}function fp(t){if((Se&6)!==0)throw Error(i(327));Kn();var r=yo(t,0);if((r&1)===0)return _t(t,ze()),null;var o=us(t,r);if(t.tag!==0&&o===2){var a=Ma(t);a!==0&&(r=a,o=ru(t,a))}if(o===1)throw o=ji,cn(t,0),$r(t,r),_t(t,ze()),o;if(o===6)throw Error(i(345));return t.finishedWork=t.current.alternate,t.finishedLanes=r,fn(t,vt,Er),_t(t,ze()),null}function iu(t,r){var o=Se;Se|=1;try{return t(r)}finally{Se=o,Se===0&&(Wn=ze()+500,Fo&&Lr())}}function un(t){zr!==null&&zr.tag===0&&(Se&6)===0&&Kn();var r=Se;Se|=1;var o=Ft.transition,a=Oe;try{if(Ft.transition=null,Oe=1,t)return t()}finally{Oe=a,Ft.transition=o,Se=r,(Se&6)===0&&Lr()}}function ou(){Tt=Vn.current,Pe(Vn)}function cn(t,r){t.finishedWork=null,t.finishedLanes=0;var o=t.timeoutHandle;if(o!==-1&&(t.timeoutHandle=-1,__(o)),qe!==null)for(o=qe.return;o!==null;){var a=o;switch(pl(a),a.tag){case 1:a=a.type.childContextTypes,a!=null&&Po();break;case 3:Gn(),Pe(mt),Pe(st),kl();break;case 5:Tl(a);break;case 4:Gn();break;case 13:Pe(Le);break;case 19:Pe(Le);break;case 10:El(a.type._context);break;case 22:case 23:ou()}o=o.return}if(Qe=t,qe=t=qr(t.current,null),rt=Tt=r,Ze=0,ji=null,Yl=ns=ln=0,vt=Ui=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 dp(t,r){do{var o=qe;try{if(_l(),Vo.current=Xo,Wo){for(var a=Be.memoizedState;a!==null;){var c=a.queue;c!==null&&(c.pending=null),a=a.next}Wo=!1}if(an=0,Xe=Ke=Be=null,Di=!1,Pi=0,Ql.current=null,o===null||o.return===null){Ze=1,ji=r,qe=null;break}e:{var f=t,g=o.return,C=o,A=r;if(r=rt,C.flags|=32768,A!==null&&typeof A=="object"&&typeof A.then=="function"){var L=A,H=C,G=H.tag;if((H.mode&1)===0&&(G===0||G===11||G===15)){var U=H.alternate;U?(H.updateQueue=U.updateQueue,H.memoizedState=U.memoizedState,H.lanes=U.lanes):(H.updateQueue=null,H.memoizedState=null)}var K=Lh(g);if(K!==null){K.flags&=-257,Bh(K,g,C,f,r),K.mode&1&&Fh(f,L,r),r=K,A=L;var Q=r.updateQueue;if(Q===null){var Y=new Set;Y.add(A),r.updateQueue=Y}else Q.add(A);break e}else{if((r&1)===0){Fh(f,L,r),su();break e}A=Error(i(426))}}else if(Fe&&C.mode&1){var Ge=Lh(g);if(Ge!==null){(Ge.flags&65536)===0&&(Ge.flags|=256),Bh(Ge,g,C,f,r),yl($n(A,C));break e}}f=A=$n(A,C),Ze!==4&&(Ze=2),Ui===null?Ui=[f]:Ui.push(f),f=g;do{switch(f.tag){case 3:f.flags|=65536,r&=-r,f.lanes|=r;var P=Ph(f,A,r);ah(f,P);break e;case 1:C=A;var I=f.type,M=f.stateNode;if((f.flags&128)===0&&(typeof I.getDerivedStateFromError=="function"||M!==null&&typeof M.componentDidCatch=="function"&&(Hr===null||!Hr.has(M)))){f.flags|=65536,r&=-r,f.lanes|=r;var $=Mh(f,C,r);ah(f,$);break e}}f=f.return}while(f!==null)}mp(o)}catch(ee){r=ee,qe===o&&o!==null&&(qe=o=o.return);continue}break}while(!0)}function hp(){var t=rs.current;return rs.current=Xo,t===null?Xo:t}function su(){(Ze===0||Ze===3||Ze===2)&&(Ze=4),Qe===null||(ln&268435455)===0&&(ns&268435455)===0||$r(Qe,rt)}function us(t,r){var o=Se;Se|=2;var a=hp();(Qe!==t||rt!==r)&&(Er=null,cn(t,r));do try{$_();break}catch(c){dp(t,c)}while(!0);if(_l(),Se=o,rs.current=a,qe!==null)throw Error(i(261));return Qe=null,rt=0,Ze}function $_(){for(;qe!==null;)pp(qe)}function q_(){for(;qe!==null&&!gv();)pp(qe)}function pp(t){var r=vp(t.alternate,t,Tt);t.memoizedProps=t.pendingProps,r===null?mp(t):qe=r,Ql.current=null}function mp(t){var r=t;do{var o=r.alternate;if(t=r.return,(r.flags&32768)===0){if(o=L_(o,r,Tt),o!==null){qe=o;return}}else{if(o=B_(o,r),o!==null){o.flags&=32767,qe=o;return}if(t!==null)t.flags|=32768,t.subtreeFlags=0,t.deletions=null;else{Ze=6,qe=null;return}}if(r=r.sibling,r!==null){qe=r;return}qe=r=t}while(r!==null);Ze===0&&(Ze=5)}function fn(t,r,o){var a=Oe,c=Ft.transition;try{Ft.transition=null,Oe=1,V_(t,r,o,a)}finally{Ft.transition=c,Oe=a}return null}function V_(t,r,o,a){do Kn();while(zr!==null);if((Se&6)!==0)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(Cv(t,f),t===Qe&&(qe=Qe=null,rt=0),(o.subtreeFlags&2064)===0&&(o.flags&2064)===0||os||(os=!0,_p(ho,function(){return Kn(),null})),f=(o.flags&15990)!==0,(o.subtreeFlags&15990)!==0||f){f=Ft.transition,Ft.transition=null;var g=Oe;Oe=1;var C=Se;Se|=4,Ql.current=null,U_(t,o),op(o,t),d_(sl),Eo=!!ol,sl=ol=null,t.current=o,H_(o),yv(),Se=C,Oe=g,Ft.transition=f}else t.current=o;if(os&&(os=!1,zr=t,ss=c),f=t.pendingLanes,f===0&&(Hr=null),Ev(o.stateNode),_t(t,ze()),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(is)throw is=!1,t=eu,eu=null,t;return(ss&1)!==0&&t.tag!==0&&Kn(),f=t.pendingLanes,(f&1)!==0?t===tu?Hi++:(Hi=0,tu=t):Hi=0,Lr(),null}function Kn(){if(zr!==null){var t=nd(ss),r=Ft.transition,o=Oe;try{if(Ft.transition=null,Oe=16>t?16:t,zr===null)var a=!1;else{if(t=zr,zr=null,ss=0,(Se&6)!==0)throw Error(i(331));var c=Se;for(Se|=4,X=t.current;X!==null;){var f=X,g=f.child;if((X.flags&16)!==0){var C=f.deletions;if(C!==null){for(var A=0;A<C.length;A++){var L=C[A];for(X=L;X!==null;){var H=X;switch(H.tag){case 0:case 11:case 15:Bi(8,H,f)}var G=H.child;if(G!==null)G.return=H,X=G;else for(;X!==null;){H=X;var U=H.sibling,K=H.return;if(ep(H),H===L){X=null;break}if(U!==null){U.return=K,X=U;break}X=K}}}var Q=f.alternate;if(Q!==null){var Y=Q.child;if(Y!==null){Q.child=null;do{var Ge=Y.sibling;Y.sibling=null,Y=Ge}while(Y!==null)}}X=f}}if((f.subtreeFlags&2064)!==0&&g!==null)g.return=f,X=g;else e:for(;X!==null;){if(f=X,(f.flags&2048)!==0)switch(f.tag){case 0:case 11:case 15:Bi(9,f,f.return)}var P=f.sibling;if(P!==null){P.return=f.return,X=P;break e}X=f.return}}var I=t.current;for(X=I;X!==null;){g=X;var M=g.child;if((g.subtreeFlags&2064)!==0&&M!==null)M.return=g,X=M;else e:for(g=I;X!==null;){if(C=X,(C.flags&2048)!==0)try{switch(C.tag){case 0:case 11:case 15:ts(9,C)}}catch(ee){He(C,C.return,ee)}if(C===g){X=null;break e}var $=C.sibling;if($!==null){$.return=C.return,X=$;break e}X=C.return}}if(Se=c,Lr(),er&&typeof er.onPostCommitFiberRoot=="function")try{er.onPostCommitFiberRoot(po,t)}catch{}a=!0}return a}finally{Oe=o,Ft.transition=r}}return!1}function gp(t,r,o){r=$n(o,r),r=Ph(t,r,1),t=jr(t,r,1),r=dt(),t!==null&&(fi(t,1,r),_t(t,r))}function He(t,r,o){if(t.tag===3)gp(t,t,o);else for(;r!==null;){if(r.tag===3){gp(r,t,o);break}else if(r.tag===1){var a=r.stateNode;if(typeof r.type.getDerivedStateFromError=="function"||typeof a.componentDidCatch=="function"&&(Hr===null||!Hr.has(a))){t=$n(o,t),t=Mh(r,t,1),r=jr(r,t,1),t=dt(),r!==null&&(fi(r,1,t),_t(r,t));break}}r=r.return}}function W_(t,r,o){var a=t.pingCache;a!==null&&a.delete(r),r=dt(),t.pingedLanes|=t.suspendedLanes&o,Qe===t&&(rt&o)===o&&(Ze===4||Ze===3&&(rt&130023424)===rt&&500>ze()-Jl?cn(t,0):Yl|=o),_t(t,r)}function yp(t,r){r===0&&((t.mode&1)===0?r=1:(r=go,go<<=1,(go&130023424)===0&&(go=4194304)));var o=dt();t=yr(t,r),t!==null&&(fi(t,r,o),_t(t,o))}function K_(t){var r=t.memoizedState,o=0;r!==null&&(o=r.retryLane),yp(t,o)}function Z_(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),yp(t,o)}var vp;vp=function(t,r,o){if(t!==null)if(t.memoizedProps!==r.pendingProps||mt.current)yt=!0;else{if((t.lanes&o)===0&&(r.flags&128)===0)return yt=!1,F_(t,r,o);yt=(t.flags&131072)!==0}else yt=!1,Fe&&(r.flags&1048576)!==0&&Qd(r,Bo,r.index);switch(r.lanes=0,r.tag){case 2:var a=r.type;Jo(t,r),t=r.pendingProps;var c=Fn(r,st.current);zn(r,o),c=Nl(null,r,a,t,c,o);var f=Al();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,gt(a)?(f=!0,Mo(r)):f=!1,r.memoizedState=c.state!==null&&c.state!==void 0?c.state:null,xl(r),c.updater=Qo,r.stateNode=c,c._reactInternals=r,Ll(r,a,t,o),r=Hl(null,r,a,!0,f,o)):(r.tag=0,Fe&&f&&hl(r),ft(null,r,c,o),r=r.child),r;case 16:a=r.elementType;e:{switch(Jo(t,r),t=r.pendingProps,c=a._init,a=c(a._payload),r.type=a,c=r.tag=Q_(a),t=$t(a,t),c){case 0:r=Ul(null,r,a,t,o);break e;case 1:r=$h(null,r,a,t,o);break e;case 11:r=jh(null,r,a,t,o);break e;case 14:r=Uh(null,r,a,$t(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:$t(a,c),Ul(t,r,a,c,o);case 1:return a=r.type,c=r.pendingProps,c=r.elementType===a?c:$t(a,c),$h(t,r,a,c,o);case 3:e:{if(qh(r),t===null)throw Error(i(387));a=r.pendingProps,f=r.memoizedState,c=f.element,sh(t,r),$o(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=Vh(t,r,a,o,c);break e}else if(a!==c){c=$n(Error(i(424)),r),r=Vh(t,r,a,o,c);break e}else for(bt=Pr(r.stateNode.containerInfo.firstChild),xt=r,Fe=!0,Gt=null,o=ih(r,null,a,o),r.child=o;o;)o.flags=o.flags&-3|4096,o=o.sibling;else{if(jn(),a===c){r=_r(t,r,o);break e}ft(t,r,a,o)}r=r.child}return r;case 5:return uh(r),t===null&&gl(r),a=r.type,c=r.pendingProps,f=t!==null?t.memoizedProps:null,g=c.children,al(a,c)?g=null:f!==null&&al(a,f)&&(r.flags|=32),Gh(t,r),ft(t,r,g,o),r.child;case 6:return t===null&&gl(r),null;case 13:return Wh(t,r,o);case 4:return bl(r,r.stateNode.containerInfo),a=r.pendingProps,t===null?r.child=Un(r,null,a,o):ft(t,r,a,o),r.child;case 11:return a=r.type,c=r.pendingProps,c=r.elementType===a?c:$t(a,c),jh(t,r,a,c,o);case 7:return ft(t,r,r.pendingProps,o),r.child;case 8:return ft(t,r,r.pendingProps.children,o),r.child;case 12:return ft(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(Ho,a._currentValue),a._currentValue=g,f!==null)if(zt(f.value,g)){if(f.children===c.children&&!mt.current){r=_r(t,r,o);break e}}else for(f=r.child,f!==null&&(f.return=r);f!==null;){var C=f.dependencies;if(C!==null){g=f.child;for(var A=C.firstContext;A!==null;){if(A.context===a){if(f.tag===1){A=vr(-1,o&-o),A.tag=2;var L=f.updateQueue;if(L!==null){L=L.shared;var H=L.pending;H===null?A.next=A:(A.next=H.next,H.next=A),L.pending=A}}f.lanes|=o,A=f.alternate,A!==null&&(A.lanes|=o),wl(f.return,o,r),C.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,C=g.alternate,C!==null&&(C.lanes|=o),wl(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}ft(t,r,c.children,o),r=r.child}return r;case 9:return c=r.type,a=r.pendingProps.children,zn(r,o),c=Pt(c),a=a(c),r.flags|=1,ft(t,r,a,o),r.child;case 14:return a=r.type,c=$t(a,r.pendingProps),c=$t(a.type,c),Uh(t,r,a,c,o);case 15:return Hh(t,r,r.type,r.pendingProps,o);case 17:return a=r.type,c=r.pendingProps,c=r.elementType===a?c:$t(a,c),Jo(t,r),r.tag=1,gt(a)?(t=!0,Mo(r)):t=!1,zn(r,o),Ih(r,a,c),Ll(r,a,c,o),Hl(null,r,a,!0,t,o);case 19:return Zh(t,r,o);case 22:return zh(t,r,o)}throw Error(i(156,r.tag))};function _p(t,r){return Yf(t,r)}function X_(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 Lt(t,r,o,a){return new X_(t,r,o,a)}function au(t){return t=t.prototype,!(!t||!t.isReactComponent)}function Q_(t){if(typeof t=="function")return au(t)?1:0;if(t!=null){if(t=t.$$typeof,t===pe)return 11;if(t===Ie)return 14}return 2}function qr(t,r){var o=t.alternate;return o===null?(o=Lt(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 cs(t,r,o,a,c,f){var g=2;if(a=t,typeof t=="function")au(t)&&(g=1);else if(typeof t=="string")g=5;else e:switch(t){case z:return dn(o.children,c,f,r);case V:g=8,c|=8;break;case fe:return t=Lt(12,o,r,c|2),t.elementType=fe,t.lanes=f,t;case ue:return t=Lt(13,o,r,c),t.elementType=ue,t.lanes=f,t;case Ue:return t=Lt(19,o,r,c),t.elementType=Ue,t.lanes=f,t;case Ne:return fs(o,c,f,r);default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case te:g=10;break e;case oe:g=9;break e;case pe: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=Lt(g,o,r,c),r.elementType=t,r.type=a,r.lanes=f,r}function dn(t,r,o,a){return t=Lt(7,t,a,r),t.lanes=o,t}function fs(t,r,o,a){return t=Lt(22,t,a,r),t.elementType=Ne,t.lanes=o,t.stateNode={isHidden:!1},t}function lu(t,r,o){return t=Lt(6,t,null,r),t.lanes=o,t}function uu(t,r,o){return r=Lt(4,t.children!==null?t.children:[],t.key,r),r.lanes=o,r.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},r}function Y_(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=Fa(0),this.expirationTimes=Fa(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Fa(0),this.identifierPrefix=a,this.onRecoverableError=c,this.mutableSourceEagerHydrationData=null}function cu(t,r,o,a,c,f,g,C,A){return t=new Y_(t,r,o,C,A),r===1?(r=1,f===!0&&(r|=8)):r=0,f=Lt(3,null,null,r),t.current=f,f.stateNode=t,f.memoizedState={element:a,isDehydrated:o,cache:null,transitions:null,pendingSuspenseBoundaries:null},xl(f),t}function J_(t,r,o){var a=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:F,key:a==null?null:""+a,children:t,containerInfo:r,implementation:o}}function Ep(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(gt(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(gt(o))return Kd(t,o,r)}return r}function wp(t,r,o,a,c,f,g,C,A){return t=cu(o,a,!0,t,c,f,g,C,A),t.context=Ep(null),o=t.current,a=dt(),c=Gr(o),f=vr(a,c),f.callback=r??null,jr(o,f,c),t.current.lanes=c,fi(t,c,a),_t(t,a),t}function ds(t,r,o,a){var c=r.current,f=dt(),g=Gr(c);return o=Ep(o),r.context===null?r.context=o:r.pendingContext=o,r=vr(f,g),r.payload={element:t},a=a===void 0?null:a,a!==null&&(r.callback=a),t=jr(c,r,g),t!==null&&(Wt(t,c,g,f),Go(t,c,g)),g}function hs(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 Sp(t,r){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var o=t.retryLane;t.retryLane=o!==0&&o<r?o:r}}function fu(t,r){Sp(t,r),(t=t.alternate)&&Sp(t,r)}function e1(){return null}var xp=typeof reportError=="function"?reportError:function(t){console.error(t)};function du(t){this._internalRoot=t}ps.prototype.render=du.prototype.render=function(t){var r=this._internalRoot;if(r===null)throw Error(i(409));ds(t,r,null,null)},ps.prototype.unmount=du.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var r=t.containerInfo;un(function(){ds(null,t,null,null)}),r[hr]=null}};function ps(t){this._internalRoot=t}ps.prototype.unstable_scheduleHydration=function(t){if(t){var r=sd();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&&ud(t)}};function hu(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)}function ms(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11&&(t.nodeType!==8||t.nodeValue!==" react-mount-point-unstable "))}function bp(){}function t1(t,r,o,a,c){if(c){if(typeof a=="function"){var f=a;a=function(){var L=hs(g);f.call(L)}}var g=wp(r,a,t,0,null,!1,!1,"",bp);return t._reactRootContainer=g,t[hr]=g.current,Ti(t.nodeType===8?t.parentNode:t),un(),g}for(;c=t.lastChild;)t.removeChild(c);if(typeof a=="function"){var C=a;a=function(){var L=hs(A);C.call(L)}}var A=cu(t,0,!1,null,null,!1,!1,"",bp);return t._reactRootContainer=A,t[hr]=A.current,Ti(t.nodeType===8?t.parentNode:t),un(function(){ds(r,A,o,a)}),A}function gs(t,r,o,a,c){var f=o._reactRootContainer;if(f){var g=f;if(typeof c=="function"){var C=c;c=function(){var A=hs(g);C.call(A)}}ds(r,g,t,c)}else g=t1(o,r,t,c,a);return hs(g)}id=function(t){switch(t.tag){case 3:var r=t.stateNode;if(r.current.memoizedState.isDehydrated){var o=ci(r.pendingLanes);o!==0&&(La(r,o|1),_t(r,ze()),(Se&6)===0&&(Wn=ze()+500,Lr()))}break;case 13:un(function(){var a=yr(t,1);if(a!==null){var c=dt();Wt(a,t,1,c)}}),fu(t,1)}},Ba=function(t){if(t.tag===13){var r=yr(t,134217728);if(r!==null){var o=dt();Wt(r,t,134217728,o)}fu(t,134217728)}},od=function(t){if(t.tag===13){var r=Gr(t),o=yr(t,r);if(o!==null){var a=dt();Wt(o,t,r,a)}fu(t,r)}},sd=function(){return Oe},ad=function(t,r){var o=Oe;try{return Oe=t,r()}finally{Oe=o}},Na=function(t,r,o){switch(r){case"input":if(Sa(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=Do(a);if(!c)throw Error(i(90));ct(a),Sa(a,c)}}}break;case"textarea":Ff(t,o);break;case"select":r=o.value,r!=null&&bn(t,!!o.multiple,r,!1)}},qf=iu,Vf=un;var r1={usingClientEntryPoint:!1,Events:[Ri,Pn,Do,Gf,$f,iu]},zi={findFiberByHostInstance:en,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},n1={bundleType:zi.bundleType,version:zi.version,rendererPackageName:zi.rendererPackageName,rendererConfig:zi.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:k.ReactCurrentDispatcher,findHostInstanceByFiber:function(t){return t=Xf(t),t===null?null:t.stateNode},findFiberByHostInstance:zi.findFiberByHostInstance||e1,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 ys=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ys.isDisabled&&ys.supportsFiber)try{po=ys.inject(n1),er=ys}catch{}}return Et.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=r1,Et.createPortal=function(t,r){var o=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!hu(r))throw Error(i(200));return J_(t,r,null,o)},Et.createRoot=function(t,r){if(!hu(t))throw Error(i(299));var o=!1,a="",c=xp;return r!=null&&(r.unstable_strictMode===!0&&(o=!0),r.identifierPrefix!==void 0&&(a=r.identifierPrefix),r.onRecoverableError!==void 0&&(c=r.onRecoverableError)),r=cu(t,1,!1,null,null,o,!1,a,c),t[hr]=r.current,Ti(t.nodeType===8?t.parentNode:t),new du(r)},Et.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=Xf(r),t=t===null?null:t.stateNode,t},Et.flushSync=function(t){return un(t)},Et.hydrate=function(t,r,o){if(!ms(r))throw Error(i(200));return gs(null,t,r,!0,o)},Et.hydrateRoot=function(t,r,o){if(!hu(t))throw Error(i(405));var a=o!=null&&o.hydratedSources||null,c=!1,f="",g=xp;if(o!=null&&(o.unstable_strictMode===!0&&(c=!0),o.identifierPrefix!==void 0&&(f=o.identifierPrefix),o.onRecoverableError!==void 0&&(g=o.onRecoverableError)),r=wp(r,null,t,1,o??null,c,!1,f,g),t[hr]=r.current,Ti(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 ps(r)},Et.render=function(t,r,o){if(!ms(r))throw Error(i(200));return gs(null,t,r,!1,o)},Et.unmountComponentAtNode=function(t){if(!ms(t))throw Error(i(40));return t._reactRootContainer?(un(function(){gs(null,null,t,!1,function(){t._reactRootContainer=null,t[hr]=null})}),!0):!1},Et.unstable_batchedUpdates=iu,Et.unstable_renderSubtreeIntoContainer=function(t,r,o,a){if(!ms(o))throw Error(i(200));if(t==null||t._reactInternals===void 0)throw Error(i(38));return gs(t,r,o,!1,a)},Et.version="18.3.1-next-f1338f8080-20240426",Et}var Ip;function h1(){if(Ip)return gu.exports;Ip=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(),gu.exports=d1(),gu.exports}var Dp;function p1(){if(Dp)return _s;Dp=1;var e=h1();return _s.createRoot=e.createRoot,_s.hydrateRoot=e.hydrateRoot,_s}var m1=p1(),B=Jn();const r0=sa(B);var _u={exports:{}},Eu={};/**
41
41
  * @license React
42
42
  * use-sync-external-store-with-selector.production.js
43
43
  *
@@ -45,66 +45,66 @@ Error generating stack: `+f.message+`
45
45
  *
46
46
  * This source code is licensed under the MIT license found in the
47
47
  * LICENSE file in the root directory of this source tree.
48
- */var Pp;function m1(){if(Pp)return _u;Pp=1;var e=Jn();function n(p,v){return p===v&&(p!==0||1/p===1/v)||p!==p&&v!==v}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 _u.useSyncExternalStoreWithSelector=function(p,v,y,b,m){var w=l(null);if(w.current===null){var _={hasValue:!1,value:null};w.current=_}else _=w.current;w=d(function(){function R(T){if(!O){if(O=!0,N=T,T=b(T),m!==void 0&&_.hasValue){var F=_.value;if(m(F,T))return x=F}return x=T}if(F=x,i(N,T))return F;var z=b(T);return m!==void 0&&m(F,z)?(N=T,F):(N=T,x=z)}var O=!1,N,x,k=y===void 0?null:y;return[function(){return R(v())},k===null?void 0:function(){return R(k())}]},[v,y,b,m]);var S=s(p,w[0],w[1]);return u(function(){_.hasValue=!0,_.value=S},[S]),h(S),S},_u}var Mp;function g1(){return Mp||(Mp=1,vu.exports=m1()),vu.exports}var y1=g1(),v1=B.version.startsWith("19"),_1=Symbol.for(v1?"react.transitional.element":"react.element"),E1=Symbol.for("react.portal"),w1=Symbol.for("react.fragment"),S1=Symbol.for("react.strict_mode"),x1=Symbol.for("react.profiler"),b1=Symbol.for("react.consumer"),T1=Symbol.for("react.context"),n0=Symbol.for("react.forward_ref"),C1=Symbol.for("react.suspense"),k1=Symbol.for("react.suspense_list"),Kc=Symbol.for("react.memo"),R1=Symbol.for("react.lazy"),O1=n0,N1=Kc;function A1(e){if(typeof e=="object"&&e!==null){const{$$typeof:n}=e;switch(n){case _1:switch(e=e.type,e){case w1:case x1:case S1:case C1:case k1:return e;default:switch(e=e&&e.$$typeof,e){case T1:case n0:case R1:case Kc:return e;case b1:return e;default:return n}}case E1:return n}}}function I1(e){return A1(e)===Kc}function D1(e,n,i,s,{areStatesEqual:l,areOwnPropsEqual:u,areStatePropsEqual:d}){let h=!1,p,v,y,b,m;function w(N,x){return p=N,v=x,y=e(p,v),b=n(s,v),m=i(y,b,v),h=!0,m}function _(){return y=e(p,v),n.dependsOnOwnProps&&(b=n(s,v)),m=i(y,b,v),m}function S(){return e.dependsOnOwnProps&&(y=e(p,v)),n.dependsOnOwnProps&&(b=n(s,v)),m=i(y,b,v),m}function R(){const N=e(p,v),x=!d(N,y);return y=N,x&&(m=i(y,b,v)),m}function O(N,x){const k=!u(x,v),T=!l(N,p,x,v);return p=N,v=x,k&&T?_():k?S():T?R():m}return function(x,k){return h?O(x,k):w(x,k)}}function P1(e,{initMapStateToProps:n,initMapDispatchToProps:i,initMergeProps:s,...l}){const u=n(e,l),d=i(e,l),h=s(e,l);return D1(u,d,h,e,l)}function M1(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 yc(e){return function(i){const s=e(i);function l(){return s}return l.dependsOnOwnProps=!1,l}}function Fp(e){return e.dependsOnOwnProps?!!e.dependsOnOwnProps:e.length!==1}function i0(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=Fp(e);let v=u(h,p);return typeof v=="function"&&(u.mapToProps=v,u.dependsOnOwnProps=Fp(v),v=u(h,p)),v},u}}function Zc(e,n){return(i,s)=>{throw new Error(`Invalid value of type ${typeof e} for ${n} argument when connecting component ${s.wrappedComponentName}.`)}}function F1(e){return e&&typeof e=="object"?yc(n=>M1(e,n)):e?typeof e=="function"?i0(e):Zc(e,"mapDispatchToProps"):yc(n=>({dispatch:n}))}function L1(e){return e?typeof e=="function"?i0(e):Zc(e,"mapStateToProps"):yc(()=>({}))}function B1(e,n,i){return{...i,...e,...n}}function j1(e){return function(i,{displayName:s,areMergedPropsEqual:l}){let u=!1,d;return function(p,v,y){const b=e(p,v,y);return u?l(b,d)||(d=b):(u=!0,d=b),d}}}function U1(e){return e?typeof e=="function"?j1(e):Zc(e,"mergeProps"):()=>B1}function H1(e){e()}function z1(){let e=null,n=null;return{clear(){e=null,n=null},notify(){H1(()=>{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 Lp={notify(){},get:()=>[]};function o0(e,n){let i,s=Lp,l=0,u=!1;function d(S){y();const R=s.subscribe(S);let O=!1;return()=>{O||(O=!0,R(),b())}}function h(){s.notify()}function p(){_.onStateChange&&_.onStateChange()}function v(){return u}function y(){l++,i||(i=n?n.addNestedSub(p):e.subscribe(p),s=z1())}function b(){l--,i&&l===0&&(i(),i=void 0,s.clear(),s=Lp)}function m(){u||(u=!0,y())}function w(){u&&(u=!1,b())}const _={addNestedSub:d,notifyNestedSubs:h,handleChangeWrapper:p,isSubscribed:v,trySubscribe:m,tryUnsubscribe:w,getListeners:()=>s};return _}var G1=()=>typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",$1=G1(),q1=()=>typeof navigator<"u"&&navigator.product==="ReactNative",V1=q1(),W1=()=>$1||V1?B.useLayoutEffect:B.useEffect,Ys=W1();function Bp(e,n){return e===n?e!==0||n!==0||1/e===1/n:e!==e&&n!==n}function Eu(e,n){if(Bp(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])||!Bp(e[i[l]],n[i[l]]))return!1;return!0}var K1={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},Z1={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},Q1={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s0={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},X1={[O1]:Q1,[N1]:s0};function jp(e){return I1(e)?s0:X1[e.$$typeof]||K1}var Y1=Object.defineProperty,J1=Object.getOwnPropertyNames,Up=Object.getOwnPropertySymbols,eE=Object.getOwnPropertyDescriptor,tE=Object.getPrototypeOf,Hp=Object.prototype;function vc(e,n){if(typeof n!="string"){if(Hp){const u=tE(n);u&&u!==Hp&&vc(e,u)}let i=J1(n);Up&&(i=i.concat(Up(n)));const s=jp(e),l=jp(n);for(let u=0;u<i.length;++u){const d=i[u];if(!Z1[d]&&!(l&&l[d])&&!(s&&s[d])){const h=eE(n,d);try{Y1(e,d,h)}catch{}}}}return e}var wu=Symbol.for("react-redux-context"),Su=typeof globalThis<"u"?globalThis:{};function rE(){if(!B.createContext)return{};const e=Su[wu]??(Su[wu]=new Map);let n=e.get(B.createContext);return n||(n=B.createContext(null),e.set(B.createContext,n)),n}var Cr=rE(),nE=[null,null];function iE(e,n,i){Ys(()=>e(...n),i)}function oE(e,n,i,s,l,u){e.current=s,i.current=!1,l.current&&(l.current=null,u())}function sE(e,n,i,s,l,u,d,h,p,v,y){if(!e)return()=>{};let b=!1,m=null;const w=()=>{if(b||!h.current)return;const S=n.getState();let R,O;try{R=s(S,l.current)}catch(N){O=N,m=N}O||(m=null),R===u.current?d.current||v():(u.current=R,p.current=R,d.current=!0,y())};return i.onStateChange=w,i.trySubscribe(),w(),()=>{if(b=!0,i.tryUnsubscribe(),i.onStateChange=null,m)throw m}}function aE(e,n){return e===n}function lE(e,n,i,{pure:s,areStatesEqual:l=aE,areOwnPropsEqual:u=Eu,areStatePropsEqual:d=Eu,areMergedPropsEqual:h=Eu,forwardRef:p=!1,context:v=Cr}={}){const y=v,b=L1(e),m=F1(n),w=U1(i),_=!!e;return R=>{const O=R.displayName||R.name||"Component",N=`Connect(${O})`,x={shouldHandleStateChanges:_,displayName:N,wrappedComponentName:O,WrappedComponent:R,initMapStateToProps:b,initMapDispatchToProps:m,initMergeProps:w,areStatesEqual:l,areStatePropsEqual:d,areOwnPropsEqual:u,areMergedPropsEqual:h};function k(z){const[V,fe,te]=B.useMemo(()=>{const{reactReduxForwardedRef:ct,...Jt}=z;return[z.context,ct,Jt]},[z]),oe=B.useMemo(()=>{let ct=y;return V!=null&&V.Consumer,ct},[V,y]),pe=B.useContext(oe),ue=!!z.store&&!!z.store.getState&&!!z.store.dispatch,Ue=!!pe&&!!pe.store,Ie=ue?z.store:pe.store,$e=Ue?pe.getServerState:Ie.getState,Ne=B.useMemo(()=>P1(Ie.dispatch,x),[Ie]),[W,re]=B.useMemo(()=>{if(!_)return nE;const ct=o0(Ie,ue?void 0:pe.subscription),Jt=ct.notifyNestedSubs.bind(ct);return[ct,Jt]},[Ie,ue,pe]),Z=B.useMemo(()=>ue?pe:{...pe,subscription:W},[ue,pe,W]),D=B.useRef(void 0),j=B.useRef(te),ce=B.useRef(void 0),he=B.useRef(!1),ye=B.useRef(!1),ve=B.useRef(void 0);Ys(()=>(ye.current=!0,()=>{ye.current=!1}),[]);const ke=B.useMemo(()=>()=>ce.current&&te===j.current?ce.current:Ne(Ie.getState(),te),[Ie,te]),Te=B.useMemo(()=>Jt=>W?sE(_,Ie,W,Ne,j,D,he,ye,ce,re,Jt):()=>{},[W]);iE(oE,[j,D,he,te,ce,re]);let Re;try{Re=B.useSyncExternalStore(Te,ke,$e?()=>Ne($e(),te):ke)}catch(ct){throw ve.current&&(ct.message+=`
48
+ */var Pp;function g1(){if(Pp)return Eu;Pp=1;var e=Jn();function n(p,v){return p===v&&(p!==0||1/p===1/v)||p!==p&&v!==v}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 Eu.useSyncExternalStoreWithSelector=function(p,v,y,b,m){var w=l(null);if(w.current===null){var _={hasValue:!1,value:null};w.current=_}else _=w.current;w=d(function(){function R(T){if(!O){if(O=!0,N=T,T=b(T),m!==void 0&&_.hasValue){var F=_.value;if(m(F,T))return x=F}return x=T}if(F=x,i(N,T))return F;var z=b(T);return m!==void 0&&m(F,z)?(N=T,F):(N=T,x=z)}var O=!1,N,x,k=y===void 0?null:y;return[function(){return R(v())},k===null?void 0:function(){return R(k())}]},[v,y,b,m]);var S=s(p,w[0],w[1]);return u(function(){_.hasValue=!0,_.value=S},[S]),h(S),S},Eu}var Mp;function y1(){return Mp||(Mp=1,_u.exports=g1()),_u.exports}var v1=y1(),_1=B.version.startsWith("19"),E1=Symbol.for(_1?"react.transitional.element":"react.element"),w1=Symbol.for("react.portal"),S1=Symbol.for("react.fragment"),x1=Symbol.for("react.strict_mode"),b1=Symbol.for("react.profiler"),T1=Symbol.for("react.consumer"),C1=Symbol.for("react.context"),n0=Symbol.for("react.forward_ref"),k1=Symbol.for("react.suspense"),R1=Symbol.for("react.suspense_list"),Kc=Symbol.for("react.memo"),O1=Symbol.for("react.lazy"),N1=n0,A1=Kc;function I1(e){if(typeof e=="object"&&e!==null){const{$$typeof:n}=e;switch(n){case E1:switch(e=e.type,e){case S1:case b1:case x1:case k1:case R1:return e;default:switch(e=e&&e.$$typeof,e){case C1:case n0:case O1:case Kc:return e;case T1:return e;default:return n}}case w1:return n}}}function D1(e){return I1(e)===Kc}function P1(e,n,i,s,{areStatesEqual:l,areOwnPropsEqual:u,areStatePropsEqual:d}){let h=!1,p,v,y,b,m;function w(N,x){return p=N,v=x,y=e(p,v),b=n(s,v),m=i(y,b,v),h=!0,m}function _(){return y=e(p,v),n.dependsOnOwnProps&&(b=n(s,v)),m=i(y,b,v),m}function S(){return e.dependsOnOwnProps&&(y=e(p,v)),n.dependsOnOwnProps&&(b=n(s,v)),m=i(y,b,v),m}function R(){const N=e(p,v),x=!d(N,y);return y=N,x&&(m=i(y,b,v)),m}function O(N,x){const k=!u(x,v),T=!l(N,p,x,v);return p=N,v=x,k&&T?_():k?S():T?R():m}return function(x,k){return h?O(x,k):w(x,k)}}function M1(e,{initMapStateToProps:n,initMapDispatchToProps:i,initMergeProps:s,...l}){const u=n(e,l),d=i(e,l),h=s(e,l);return P1(u,d,h,e,l)}function F1(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 yc(e){return function(i){const s=e(i);function l(){return s}return l.dependsOnOwnProps=!1,l}}function Fp(e){return e.dependsOnOwnProps?!!e.dependsOnOwnProps:e.length!==1}function i0(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=Fp(e);let v=u(h,p);return typeof v=="function"&&(u.mapToProps=v,u.dependsOnOwnProps=Fp(v),v=u(h,p)),v},u}}function Zc(e,n){return(i,s)=>{throw new Error(`Invalid value of type ${typeof e} for ${n} argument when connecting component ${s.wrappedComponentName}.`)}}function L1(e){return e&&typeof e=="object"?yc(n=>F1(e,n)):e?typeof e=="function"?i0(e):Zc(e,"mapDispatchToProps"):yc(n=>({dispatch:n}))}function B1(e){return e?typeof e=="function"?i0(e):Zc(e,"mapStateToProps"):yc(()=>({}))}function j1(e,n,i){return{...i,...e,...n}}function U1(e){return function(i,{displayName:s,areMergedPropsEqual:l}){let u=!1,d;return function(p,v,y){const b=e(p,v,y);return u?l(b,d)||(d=b):(u=!0,d=b),d}}}function H1(e){return e?typeof e=="function"?U1(e):Zc(e,"mergeProps"):()=>j1}function z1(e){e()}function G1(){let e=null,n=null;return{clear(){e=null,n=null},notify(){z1(()=>{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 Lp={notify(){},get:()=>[]};function o0(e,n){let i,s=Lp,l=0,u=!1;function d(S){y();const R=s.subscribe(S);let O=!1;return()=>{O||(O=!0,R(),b())}}function h(){s.notify()}function p(){_.onStateChange&&_.onStateChange()}function v(){return u}function y(){l++,i||(i=n?n.addNestedSub(p):e.subscribe(p),s=G1())}function b(){l--,i&&l===0&&(i(),i=void 0,s.clear(),s=Lp)}function m(){u||(u=!0,y())}function w(){u&&(u=!1,b())}const _={addNestedSub:d,notifyNestedSubs:h,handleChangeWrapper:p,isSubscribed:v,trySubscribe:m,tryUnsubscribe:w,getListeners:()=>s};return _}var $1=()=>typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",q1=$1(),V1=()=>typeof navigator<"u"&&navigator.product==="ReactNative",W1=V1(),K1=()=>q1||W1?B.useLayoutEffect:B.useEffect,Js=K1();function Bp(e,n){return e===n?e!==0||n!==0||1/e===1/n:e!==e&&n!==n}function wu(e,n){if(Bp(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])||!Bp(e[i[l]],n[i[l]]))return!1;return!0}var Z1={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},X1={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},Q1={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s0={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Y1={[N1]:Q1,[A1]:s0};function jp(e){return D1(e)?s0:Y1[e.$$typeof]||Z1}var J1=Object.defineProperty,eE=Object.getOwnPropertyNames,Up=Object.getOwnPropertySymbols,tE=Object.getOwnPropertyDescriptor,rE=Object.getPrototypeOf,Hp=Object.prototype;function vc(e,n){if(typeof n!="string"){if(Hp){const u=rE(n);u&&u!==Hp&&vc(e,u)}let i=eE(n);Up&&(i=i.concat(Up(n)));const s=jp(e),l=jp(n);for(let u=0;u<i.length;++u){const d=i[u];if(!X1[d]&&!(l&&l[d])&&!(s&&s[d])){const h=tE(n,d);try{J1(e,d,h)}catch{}}}}return e}var Su=Symbol.for("react-redux-context"),xu=typeof globalThis<"u"?globalThis:{};function nE(){if(!B.createContext)return{};const e=xu[Su]??(xu[Su]=new Map);let n=e.get(B.createContext);return n||(n=B.createContext(null),e.set(B.createContext,n)),n}var Cr=nE(),iE=[null,null];function oE(e,n,i){Js(()=>e(...n),i)}function sE(e,n,i,s,l,u){e.current=s,i.current=!1,l.current&&(l.current=null,u())}function aE(e,n,i,s,l,u,d,h,p,v,y){if(!e)return()=>{};let b=!1,m=null;const w=()=>{if(b||!h.current)return;const S=n.getState();let R,O;try{R=s(S,l.current)}catch(N){O=N,m=N}O||(m=null),R===u.current?d.current||v():(u.current=R,p.current=R,d.current=!0,y())};return i.onStateChange=w,i.trySubscribe(),w(),()=>{if(b=!0,i.tryUnsubscribe(),i.onStateChange=null,m)throw m}}function lE(e,n){return e===n}function uE(e,n,i,{pure:s,areStatesEqual:l=lE,areOwnPropsEqual:u=wu,areStatePropsEqual:d=wu,areMergedPropsEqual:h=wu,forwardRef:p=!1,context:v=Cr}={}){const y=v,b=B1(e),m=L1(n),w=H1(i),_=!!e;return R=>{const O=R.displayName||R.name||"Component",N=`Connect(${O})`,x={shouldHandleStateChanges:_,displayName:N,wrappedComponentName:O,WrappedComponent:R,initMapStateToProps:b,initMapDispatchToProps:m,initMergeProps:w,areStatesEqual:l,areStatePropsEqual:d,areOwnPropsEqual:u,areMergedPropsEqual:h};function k(z){const[V,fe,te]=B.useMemo(()=>{const{reactReduxForwardedRef:ct,...Jt}=z;return[z.context,ct,Jt]},[z]),oe=B.useMemo(()=>{let ct=y;return V!=null&&V.Consumer,ct},[V,y]),pe=B.useContext(oe),ue=!!z.store&&!!z.store.getState&&!!z.store.dispatch,Ue=!!pe&&!!pe.store,Ie=ue?z.store:pe.store,$e=Ue?pe.getServerState:Ie.getState,Ne=B.useMemo(()=>M1(Ie.dispatch,x),[Ie]),[W,re]=B.useMemo(()=>{if(!_)return iE;const ct=o0(Ie,ue?void 0:pe.subscription),Jt=ct.notifyNestedSubs.bind(ct);return[ct,Jt]},[Ie,ue,pe]),Z=B.useMemo(()=>ue?pe:{...pe,subscription:W},[ue,pe,W]),D=B.useRef(void 0),j=B.useRef(te),ce=B.useRef(void 0),he=B.useRef(!1),ye=B.useRef(!1),ve=B.useRef(void 0);Js(()=>(ye.current=!0,()=>{ye.current=!1}),[]);const ke=B.useMemo(()=>()=>ce.current&&te===j.current?ce.current:Ne(Ie.getState(),te),[Ie,te]),Te=B.useMemo(()=>Jt=>W?aE(_,Ie,W,Ne,j,D,he,ye,ce,re,Jt):()=>{},[W]);oE(sE,[j,D,he,te,ce,re]);let Re;try{Re=B.useSyncExternalStore(Te,ke,$e?()=>Ne($e(),te):ke)}catch(ct){throw ve.current&&(ct.message+=`
49
49
  The error may be correlated with this previous error:
50
50
  ${ve.current.stack}
51
51
 
52
- `),ct}Ys(()=>{ve.current=void 0,ce.current=void 0,D.current=Re});const et=B.useMemo(()=>B.createElement(R,{...Re,ref:fe}),[fe,R,Re]);return B.useMemo(()=>_?B.createElement(oe.Provider,{value:Z},et):et,[oe,et,Z])}const F=B.memo(k);if(F.WrappedComponent=R,F.displayName=k.displayName=N,p){const V=B.forwardRef(function(te,oe){return B.createElement(F,{...te,reactReduxForwardedRef:oe})});return V.displayName=N,V.WrappedComponent=R,vc(V,R)}return vc(F,R)}}var uE=lE;function cE(e){const{children:n,context:i,serverState:s,store:l}=e,u=B.useMemo(()=>{const p=o0(l);return{store:l,subscription:p,getServerState:s?()=>s:void 0}},[l,s]),d=B.useMemo(()=>l.getState(),[l]);Ys(()=>{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 B.createElement(h.Provider,{value:u},n)}var fE=cE;function Qc(e=Cr){return function(){return B.useContext(e)}}var a0=Qc();function l0(e=Cr){const n=e===Cr?a0:Qc(e),i=()=>{const{store:s}=n();return s};return Object.assign(i,{withTypes:()=>i}),i}var dE=l0();function hE(e=Cr){const n=e===Cr?dE:l0(e),i=()=>n().dispatch;return Object.assign(i,{withTypes:()=>i}),i}var pE=hE(),mE=(e,n)=>e===n;function gE(e=Cr){const n=e===Cr?a0:Qc(e),i=(s,l={})=>{const{equalityFn:u=mE}=typeof l=="function"?{equalityFn:l}:l,d=n(),{store:h,subscription:p,getServerState:v}=d;B.useRef(!0);const y=B.useCallback({[s.name](m){return s(m)}}[s.name],[s]),b=y1.useSyncExternalStoreWithSelector(p.addNestedSub,h.getState,v||h.getState,y,u);return B.useDebugValue(b),b};return Object.assign(i,{withTypes:()=>i}),i}var yE=gE(),xu={exports:{}};/*!
52
+ `),ct}Js(()=>{ve.current=void 0,ce.current=void 0,D.current=Re});const et=B.useMemo(()=>B.createElement(R,{...Re,ref:fe}),[fe,R,Re]);return B.useMemo(()=>_?B.createElement(oe.Provider,{value:Z},et):et,[oe,et,Z])}const F=B.memo(k);if(F.WrappedComponent=R,F.displayName=k.displayName=N,p){const V=B.forwardRef(function(te,oe){return B.createElement(F,{...te,reactReduxForwardedRef:oe})});return V.displayName=N,V.WrappedComponent=R,vc(V,R)}return vc(F,R)}}var cE=uE;function fE(e){const{children:n,context:i,serverState:s,store:l}=e,u=B.useMemo(()=>{const p=o0(l);return{store:l,subscription:p,getServerState:s?()=>s:void 0}},[l,s]),d=B.useMemo(()=>l.getState(),[l]);Js(()=>{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 B.createElement(h.Provider,{value:u},n)}var dE=fE;function Xc(e=Cr){return function(){return B.useContext(e)}}var a0=Xc();function l0(e=Cr){const n=e===Cr?a0:Xc(e),i=()=>{const{store:s}=n();return s};return Object.assign(i,{withTypes:()=>i}),i}var hE=l0();function pE(e=Cr){const n=e===Cr?hE:l0(e),i=()=>n().dispatch;return Object.assign(i,{withTypes:()=>i}),i}var mE=pE(),gE=(e,n)=>e===n;function yE(e=Cr){const n=e===Cr?a0:Xc(e),i=(s,l={})=>{const{equalityFn:u=gE}=typeof l=="function"?{equalityFn:l}:l,d=n(),{store:h,subscription:p,getServerState:v}=d;B.useRef(!0);const y=B.useCallback({[s.name](m){return s(m)}}[s.name],[s]),b=v1.useSyncExternalStoreWithSelector(p.addNestedSub,h.getState,v||h.getState,y,u);return B.useDebugValue(b),b};return Object.assign(i,{withTypes:()=>i}),i}var vE=yE(),bu={exports:{}};/*!
53
53
  Copyright (c) 2018 Jed Watson.
54
54
  Licensed under the MIT License (MIT), see
55
55
  http://jedwatson.github.io/classnames
56
- */var zp;function vE(){return zp||(zp=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})()}(xu)),xu.exports}var _E=vE();const q=oa(_E);var _c=function(e,n){return _c=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])},_c(e,n)};function jt(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");_c(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 sa(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 ar(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 or(e,n){var i=n&&n.cache?n.cache:CE,s=n&&n.serializer?n.serializer:bE,l=n&&n.strategy?n.strategy:SE;return l(e,{cache:i,serializer:s})}function EE(e){return e==null||typeof e=="number"||typeof e=="boolean"}function wE(e,n,i,s){var l=EE(s)?s:i(s),u=n.get(l);return typeof u>"u"&&(u=e.call(this,s),n.set(l,u)),u}function u0(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 c0(e,n,i,s,l){return i.bind(n,e,s,l)}function SE(e,n){var i=e.length===1?wE:u0;return c0(e,this,i,n.cache.create(),n.serializer)}function xE(e,n){return c0(e,this,u0,n.cache.create(),n.serializer)}var bE=function(){return JSON.stringify(arguments)},TE=function(){function e(){this.cache=Object.create(null)}return e.prototype.get=function(n){return this.cache[n]},e.prototype.set=function(n,i){this.cache[n]=i},e}(),CE={create:function(){return new TE}},sr={variadic:xE},_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 Qn;(function(e){e[e.number=0]="number",e[e.dateTime=1]="dateTime"})(Qn||(Qn={}));function Gp(e){return e.type===Me.literal}function kE(e){return e.type===Me.argument}function f0(e){return e.type===Me.number}function d0(e){return e.type===Me.date}function h0(e){return e.type===Me.time}function p0(e){return e.type===Me.select}function m0(e){return e.type===Me.plural}function RE(e){return e.type===Me.pound}function g0(e){return e.type===Me.tag}function y0(e){return!!(e&&typeof e=="object"&&e.type===Qn.number)}function Ec(e){return!!(e&&typeof e=="object"&&e.type===Qn.dateTime)}var v0=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,OE=/(?:[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 NE(e){var n={};return e.replace(OE,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 AE=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function IE(e){if(e.length===0)throw new Error("Number skeleton cannot be empty");for(var n=e.split(AE).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),v=0,y=p;v<y.length;v++){var b=y[v];if(b.length===0)throw new Error("Invalid number skeleton")}i.push({stem:h,options:p})}return i}function DE(e){return e.replace(/^(.*?)-/,"")}var $p=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,_0=/^(@+)?(\+|#+)?[rs]?$/g,PE=/(\*)(0+)|(#+)(0+)|(0+)/g,E0=/^(0+)$/;function qp(e){var n={};return e[e.length-1]==="r"?n.roundingPriority="morePrecision":e[e.length-1]==="s"&&(n.roundingPriority="lessPrecision"),e.replace(_0,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 w0(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 ME(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)),!E0.test(e))throw new Error("Malformed concise eng/scientific notation");n.minimumIntegerDigits=e.length}return n}function Vp(e){var n={},i=w0(e);return i||n}function FE(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=DE(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,v){return J(J({},p),Vp(v))},{}));continue;case"engineering":n=J(J(J({},n),{notation:"engineering"}),l.options.reduce(function(p,v){return J(J({},p),Vp(v))},{}));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(PE,function(p,v,y,b,m,w){if(v)n.minimumIntegerDigits=y.length;else{if(b&&m)throw new Error("We currently do not support maximum integer digits");if(w)throw new Error("We currently do not support exact integer digits")}return""});continue}if(E0.test(l.stem)){n.minimumIntegerDigits=l.stem.length;continue}if($p.test(l.stem)){if(l.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");l.stem.replace($p,function(p,v,y,b,m,w){return y==="*"?n.minimumFractionDigits=v.length:b&&b[0]==="#"?n.maximumFractionDigits=b.length:m&&w?(n.minimumFractionDigits=m.length,n.maximumFractionDigits=m.length+w.length):(n.minimumFractionDigits=v.length,n.maximumFractionDigits=v.length),""});var u=l.options[0];u==="w"?n=J(J({},n),{trailingZeroDisplay:"stripIfInteger"}):u&&(n=J(J({},n),qp(u)));continue}if(_0.test(l.stem)){n=J(J({},n),qp(l.stem));continue}var d=w0(l.stem);d&&(n=J(J({},n),d));var h=ME(l.stem);h&&(n=J(J({},n),h))}return n}var Es={"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 LE(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",v=BE(n);for((v=="H"||v=="k")&&(h=0);h-- >0;)i+=p;for(;d-- >0;)i=v+i}else l==="J"?i+="H":i+=l}return i}function BE(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=Es[s||""]||Es[i||""]||Es["".concat(i,"-001")]||Es["001"];return l[0]}var bu,jE=new RegExp("^".concat(v0.source,"*")),UE=new RegExp("".concat(v0.source,"*$"));function we(e,n){return{start:e,end:n}}var HE=!!String.prototype.startsWith&&"_a".startsWith("a",1),zE=!!String.fromCodePoint,GE=!!Object.fromEntries,$E=!!String.prototype.codePointAt,qE=!!String.prototype.trimStart,VE=!!String.prototype.trimEnd,WE=!!Number.isSafeInteger,KE=WE?Number.isSafeInteger:function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},wc=!0;try{var ZE=x0("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");wc=((bu=ZE.exec("a"))===null||bu===void 0?void 0:bu[0])==="a"}catch{wc=!1}var Wp=HE?function(n,i,s){return n.startsWith(i,s)}:function(n,i,s){return n.slice(s,s+i.length)===i},Sc=zE?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},Kp=GE?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},S0=$E?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}},QE=qE?function(n){return n.trimStart()}:function(n){return n.replace(jE,"")},XE=VE?function(n){return n.trimEnd()}:function(n){return n.replace(UE,"")};function x0(e,n){return new RegExp(e,n)}var xc;if(wc){var Zp=x0("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");xc=function(n,i){var s;Zp.lastIndex=i;var l=Zp.exec(n);return(s=l[1])!==null&&s!==void 0?s:""}}else xc=function(n,i){for(var s=[];;){var l=S0(n,i);if(l===void 0||b0(l)||tw(l))break;s.push(l),i+=l>=65536?2:1}return Sc.apply(void 0,s)};var YE=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:we(h,this.clonePosition())})}else if(u===60&&!this.ignoreTag&&this.peek()===47){if(s)break;return this.error(_e.UNMATCHED_CLOSING_TAG,we(this.clonePosition(),this.clonePosition()))}else if(u===60&&!this.ignoreTag&&bc(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:we(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()||!bc(this.char()))return this.error(_e.INVALID_TAG,we(h,this.clonePosition()));var p=this.clonePosition(),v=this.parseTagName();return l!==v?this.error(_e.UNMATCHED_CLOSING_TAG,we(p,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:Me.tag,value:l,children:d,location:we(s,this.clonePosition())},err:null}:this.error(_e.INVALID_TAG,we(h,this.clonePosition())))}else return this.error(_e.UNCLOSED_TAG,we(s,this.clonePosition()))}else return this.error(_e.INVALID_TAG,we(s,this.clonePosition()))},e.prototype.parseTagName=function(){var n=this.offset();for(this.bump();!this.isEOF()&&ew(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=we(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||!JE(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 Sc.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(),Sc(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,we(s,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(_e.EMPTY_ARGUMENT,we(s,this.clonePosition()));var l=this.parseIdentifierIfPossible().value;if(!l)return this.error(_e.MALFORMED_ARGUMENT,we(s,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(_e.EXPECT_ARGUMENT_CLOSING_BRACE,we(s,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:Me.argument,value:l,location:we(s,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(_e.EXPECT_ARGUMENT_CLOSING_BRACE,we(s,this.clonePosition())):this.parseArgumentOptions(n,i,l,s);default:return this.error(_e.MALFORMED_ARGUMENT,we(s,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var n=this.clonePosition(),i=this.offset(),s=xc(this.message,i),l=i+s.length;this.bumpTo(l);var u=this.clonePosition(),d=we(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,we(d,p));case"number":case"date":case"time":{this.bumpSpace();var v=null;if(this.bumpIf(",")){this.bumpSpace();var y=this.clonePosition(),b=this.parseSimpleArgStyleIfPossible();if(b.err)return b;var m=XE(b.val);if(m.length===0)return this.error(_e.EXPECT_ARGUMENT_STYLE,we(this.clonePosition(),this.clonePosition()));var w=we(y,this.clonePosition());v={style:m,styleLocation:w}}var _=this.tryParseArgumentClose(l);if(_.err)return _;var S=we(l,this.clonePosition());if(v&&Wp(v==null?void 0:v.style,"::",0)){var R=QE(v.style.slice(2));if(h==="number"){var b=this.parseNumberSkeletonFromString(R,v.styleLocation);return b.err?b:{val:{type:Me.number,value:s,location:S,style:b.val},err:null}}else{if(R.length===0)return this.error(_e.EXPECT_DATE_TIME_SKELETON,S);var O=R;this.locale&&(O=LE(R,this.locale));var m={type:Qn.dateTime,pattern:O,location:v.styleLocation,parsedOptions:this.shouldParseSkeletons?NE(O):{}},N=h==="date"?Me.date:Me.time;return{val:{type:N,value:s,location:S,style:m},err:null}}}return{val:{type:h==="number"?Me.number:h==="date"?Me.date:Me.time,value:s,location:S,style:(u=v==null?void 0:v.style)!==null&&u!==void 0?u:null},err:null}}case"plural":case"selectordinal":case"select":{var x=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(_e.EXPECT_SELECT_ARGUMENT_OPTIONS,we(x,J({},x)));this.bumpSpace();var k=this.parseIdentifierIfPossible(),T=0;if(h!=="select"&&k.value==="offset"){if(!this.bumpIf(":"))return this.error(_e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,we(this.clonePosition(),this.clonePosition()));this.bumpSpace();var b=this.tryParseDecimalInteger(_e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,_e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(b.err)return b;this.bumpSpace(),k=this.parseIdentifierIfPossible(),T=b.val}var F=this.tryParsePluralOrSelectOptions(n,h,i,k);if(F.err)return F;var _=this.tryParseArgumentClose(l);if(_.err)return _;var z=we(l,this.clonePosition());return h==="select"?{val:{type:Me.select,value:s,options:Kp(F.val),location:z},err:null}:{val:{type:Me.plural,value:s,options:Kp(F.val),offset:T,pluralType:h==="plural"?"cardinal":"ordinal",location:z},err:null}}default:return this.error(_e.INVALID_ARGUMENT_TYPE,we(d,p))}},e.prototype.tryParseArgumentClose=function(n){return this.isEOF()||this.char()!==125?this.error(_e.EXPECT_ARGUMENT_CLOSING_BRACE,we(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,we(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=IE(n)}catch{return this.error(_e.INVALID_NUMBER_SKELETON,i)}return{val:{type:Qn.number,tokens:s,location:i,parsedOptions:this.shouldParseSkeletons?FE(s):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(n,i,s,l){for(var u,d=!1,h=[],p=new Set,v=l.value,y=l.location;;){if(v.length===0){var b=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=we(b,this.clonePosition()),v=this.message.slice(b.offset,this.offset())}else break}if(p.has(v))return this.error(i==="select"?_e.DUPLICATE_SELECT_ARGUMENT_SELECTOR:_e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,y);v==="other"&&(d=!0),this.bumpSpace();var w=this.clonePosition();if(!this.bumpIf("{"))return this.error(i==="select"?_e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:_e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,we(this.clonePosition(),this.clonePosition()));var _=this.parseMessage(n+1,i,s);if(_.err)return _;var S=this.tryParseArgumentClose(w);if(S.err)return S;h.push([v,{value:_.val,location:we(w,this.clonePosition())}]),p.add(v),this.bumpSpace(),u=this.parseIdentifierIfPossible(),v=u.value,y=u.location}return h.length===0?this.error(i==="select"?_e.EXPECT_SELECT_ARGUMENT_SELECTOR:_e.EXPECT_PLURAL_ARGUMENT_SELECTOR,we(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!d?this.error(_e.MISSING_OTHER_CLAUSE,we(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=we(l,this.clonePosition());return u?(d*=s,KE(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=S0(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(Wp(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()&&b0(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 bc(e){return e>=97&&e<=122||e>=65&&e<=90}function JE(e){return bc(e)||e===47}function ew(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 b0(e){return e>=9&&e<=13||e===32||e===133||e>=8206&&e<=8207||e===8232||e===8233}function tw(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 Tc(e){e.forEach(function(n){if(delete n.location,p0(n)||m0(n))for(var i in n.options)delete n.options[i].location,Tc(n.options[i].value);else f0(n)&&y0(n.style)||(d0(n)||h0(n))&&Ec(n.style)?delete n.style.location:g0(n)&&Tc(n.children)})}function rw(e,n){n===void 0&&(n={}),n=J({shouldParseSkeletons:!0,requiresOtherClause:!0},n);var i=new YE(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||Tc(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 Yr=function(e){jt(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),Qp=function(e){jt(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}(Yr),nw=function(e){jt(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}(Yr),iw=function(e){jt(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}(Yr),ht;(function(e){e[e.literal=0]="literal",e[e.object=1]="object"})(ht||(ht={}));function ow(e){return e.length<2?e:e.reduce(function(n,i){var s=n[n.length-1];return!s||s.type!==ht.literal||i.type!==ht.literal?n.push(i):s.value+=i.value,n},[])}function T0(e){return typeof e=="function"}function Vs(e,n,i,s,l,u,d){if(e.length===1&&Gp(e[0]))return[{type:ht.literal,value:e[0].value}];for(var h=[],p=0,v=e;p<v.length;p++){var y=v[p];if(Gp(y)){h.push({type:ht.literal,value:y.value});continue}if(RE(y)){typeof u=="number"&&h.push({type:ht.literal,value:i.getNumberFormat(n).format(u)});continue}var b=y.value;if(!(l&&b in l))throw new iw(b,d);var m=l[b];if(kE(y)){(!m||typeof m=="string"||typeof m=="number")&&(m=typeof m=="string"||typeof m=="number"?String(m):""),h.push({type:typeof m=="string"?ht.literal:ht.object,value:m});continue}if(d0(y)){var w=typeof y.style=="string"?s.date[y.style]:Ec(y.style)?y.style.parsedOptions:void 0;h.push({type:ht.literal,value:i.getDateTimeFormat(n,w).format(m)});continue}if(h0(y)){var w=typeof y.style=="string"?s.time[y.style]:Ec(y.style)?y.style.parsedOptions:s.time.medium;h.push({type:ht.literal,value:i.getDateTimeFormat(n,w).format(m)});continue}if(f0(y)){var w=typeof y.style=="string"?s.number[y.style]:y0(y.style)?y.style.parsedOptions:void 0;w&&w.scale&&(m=m*(w.scale||1)),h.push({type:ht.literal,value:i.getNumberFormat(n,w).format(m)});continue}if(g0(y)){var _=y.children,S=y.value,R=l[S];if(!T0(R))throw new nw(S,"function",d);var O=Vs(_,n,i,s,l,u),N=R(O.map(function(T){return T.value}));Array.isArray(N)||(N=[N]),h.push.apply(h,N.map(function(T){return{type:typeof T=="string"?ht.literal:ht.object,value:T}}))}if(p0(y)){var x=y.options[m]||y.options.other;if(!x)throw new Qp(y.value,m,Object.keys(y.options),d);h.push.apply(h,Vs(x.value,n,i,s,l));continue}if(m0(y)){var x=y.options["=".concat(m)];if(!x){if(!Intl.PluralRules)throw new Yr(`Intl.PluralRules is not available in this environment.
56
+ */var zp;function _E(){return zp||(zp=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 EE=_E();const q=sa(EE);var _c=function(e,n){return _c=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])},_c(e,n)};function jt(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");_c(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 aa(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 ar(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 or(e,n){var i=n&&n.cache?n.cache:kE,s=n&&n.serializer?n.serializer:TE,l=n&&n.strategy?n.strategy:xE;return l(e,{cache:i,serializer:s})}function wE(e){return e==null||typeof e=="number"||typeof e=="boolean"}function SE(e,n,i,s){var l=wE(s)?s:i(s),u=n.get(l);return typeof u>"u"&&(u=e.call(this,s),n.set(l,u)),u}function u0(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 c0(e,n,i,s,l){return i.bind(n,e,s,l)}function xE(e,n){var i=e.length===1?SE:u0;return c0(e,this,i,n.cache.create(),n.serializer)}function bE(e,n){return c0(e,this,u0,n.cache.create(),n.serializer)}var TE=function(){return JSON.stringify(arguments)},CE=function(){function e(){this.cache=Object.create(null)}return e.prototype.get=function(n){return this.cache[n]},e.prototype.set=function(n,i){this.cache[n]=i},e}(),kE={create:function(){return new CE}},sr={variadic:bE},_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 Xn;(function(e){e[e.number=0]="number",e[e.dateTime=1]="dateTime"})(Xn||(Xn={}));function Gp(e){return e.type===Me.literal}function RE(e){return e.type===Me.argument}function f0(e){return e.type===Me.number}function d0(e){return e.type===Me.date}function h0(e){return e.type===Me.time}function p0(e){return e.type===Me.select}function m0(e){return e.type===Me.plural}function OE(e){return e.type===Me.pound}function g0(e){return e.type===Me.tag}function y0(e){return!!(e&&typeof e=="object"&&e.type===Xn.number)}function Ec(e){return!!(e&&typeof e=="object"&&e.type===Xn.dateTime)}var v0=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,NE=/(?:[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 AE(e){var n={};return e.replace(NE,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 IE=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function DE(e){if(e.length===0)throw new Error("Number skeleton cannot be empty");for(var n=e.split(IE).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),v=0,y=p;v<y.length;v++){var b=y[v];if(b.length===0)throw new Error("Invalid number skeleton")}i.push({stem:h,options:p})}return i}function PE(e){return e.replace(/^(.*?)-/,"")}var $p=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,_0=/^(@+)?(\+|#+)?[rs]?$/g,ME=/(\*)(0+)|(#+)(0+)|(0+)/g,E0=/^(0+)$/;function qp(e){var n={};return e[e.length-1]==="r"?n.roundingPriority="morePrecision":e[e.length-1]==="s"&&(n.roundingPriority="lessPrecision"),e.replace(_0,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 w0(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 FE(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)),!E0.test(e))throw new Error("Malformed concise eng/scientific notation");n.minimumIntegerDigits=e.length}return n}function Vp(e){var n={},i=w0(e);return i||n}function LE(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=PE(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,v){return J(J({},p),Vp(v))},{}));continue;case"engineering":n=J(J(J({},n),{notation:"engineering"}),l.options.reduce(function(p,v){return J(J({},p),Vp(v))},{}));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(ME,function(p,v,y,b,m,w){if(v)n.minimumIntegerDigits=y.length;else{if(b&&m)throw new Error("We currently do not support maximum integer digits");if(w)throw new Error("We currently do not support exact integer digits")}return""});continue}if(E0.test(l.stem)){n.minimumIntegerDigits=l.stem.length;continue}if($p.test(l.stem)){if(l.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");l.stem.replace($p,function(p,v,y,b,m,w){return y==="*"?n.minimumFractionDigits=v.length:b&&b[0]==="#"?n.maximumFractionDigits=b.length:m&&w?(n.minimumFractionDigits=m.length,n.maximumFractionDigits=m.length+w.length):(n.minimumFractionDigits=v.length,n.maximumFractionDigits=v.length),""});var u=l.options[0];u==="w"?n=J(J({},n),{trailingZeroDisplay:"stripIfInteger"}):u&&(n=J(J({},n),qp(u)));continue}if(_0.test(l.stem)){n=J(J({},n),qp(l.stem));continue}var d=w0(l.stem);d&&(n=J(J({},n),d));var h=FE(l.stem);h&&(n=J(J({},n),h))}return n}var Es={"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 BE(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",v=jE(n);for((v=="H"||v=="k")&&(h=0);h-- >0;)i+=p;for(;d-- >0;)i=v+i}else l==="J"?i+="H":i+=l}return i}function jE(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=Es[s||""]||Es[i||""]||Es["".concat(i,"-001")]||Es["001"];return l[0]}var Tu,UE=new RegExp("^".concat(v0.source,"*")),HE=new RegExp("".concat(v0.source,"*$"));function we(e,n){return{start:e,end:n}}var zE=!!String.prototype.startsWith&&"_a".startsWith("a",1),GE=!!String.fromCodePoint,$E=!!Object.fromEntries,qE=!!String.prototype.codePointAt,VE=!!String.prototype.trimStart,WE=!!String.prototype.trimEnd,KE=!!Number.isSafeInteger,ZE=KE?Number.isSafeInteger:function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},wc=!0;try{var XE=x0("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");wc=((Tu=XE.exec("a"))===null||Tu===void 0?void 0:Tu[0])==="a"}catch{wc=!1}var Wp=zE?function(n,i,s){return n.startsWith(i,s)}:function(n,i,s){return n.slice(s,s+i.length)===i},Sc=GE?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},Kp=$E?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},S0=qE?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}},QE=VE?function(n){return n.trimStart()}:function(n){return n.replace(UE,"")},YE=WE?function(n){return n.trimEnd()}:function(n){return n.replace(HE,"")};function x0(e,n){return new RegExp(e,n)}var xc;if(wc){var Zp=x0("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");xc=function(n,i){var s;Zp.lastIndex=i;var l=Zp.exec(n);return(s=l[1])!==null&&s!==void 0?s:""}}else xc=function(n,i){for(var s=[];;){var l=S0(n,i);if(l===void 0||b0(l)||rw(l))break;s.push(l),i+=l>=65536?2:1}return Sc.apply(void 0,s)};var JE=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:we(h,this.clonePosition())})}else if(u===60&&!this.ignoreTag&&this.peek()===47){if(s)break;return this.error(_e.UNMATCHED_CLOSING_TAG,we(this.clonePosition(),this.clonePosition()))}else if(u===60&&!this.ignoreTag&&bc(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:we(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()||!bc(this.char()))return this.error(_e.INVALID_TAG,we(h,this.clonePosition()));var p=this.clonePosition(),v=this.parseTagName();return l!==v?this.error(_e.UNMATCHED_CLOSING_TAG,we(p,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:Me.tag,value:l,children:d,location:we(s,this.clonePosition())},err:null}:this.error(_e.INVALID_TAG,we(h,this.clonePosition())))}else return this.error(_e.UNCLOSED_TAG,we(s,this.clonePosition()))}else return this.error(_e.INVALID_TAG,we(s,this.clonePosition()))},e.prototype.parseTagName=function(){var n=this.offset();for(this.bump();!this.isEOF()&&tw(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=we(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||!ew(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 Sc.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(),Sc(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,we(s,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(_e.EMPTY_ARGUMENT,we(s,this.clonePosition()));var l=this.parseIdentifierIfPossible().value;if(!l)return this.error(_e.MALFORMED_ARGUMENT,we(s,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(_e.EXPECT_ARGUMENT_CLOSING_BRACE,we(s,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:Me.argument,value:l,location:we(s,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(_e.EXPECT_ARGUMENT_CLOSING_BRACE,we(s,this.clonePosition())):this.parseArgumentOptions(n,i,l,s);default:return this.error(_e.MALFORMED_ARGUMENT,we(s,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var n=this.clonePosition(),i=this.offset(),s=xc(this.message,i),l=i+s.length;this.bumpTo(l);var u=this.clonePosition(),d=we(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,we(d,p));case"number":case"date":case"time":{this.bumpSpace();var v=null;if(this.bumpIf(",")){this.bumpSpace();var y=this.clonePosition(),b=this.parseSimpleArgStyleIfPossible();if(b.err)return b;var m=YE(b.val);if(m.length===0)return this.error(_e.EXPECT_ARGUMENT_STYLE,we(this.clonePosition(),this.clonePosition()));var w=we(y,this.clonePosition());v={style:m,styleLocation:w}}var _=this.tryParseArgumentClose(l);if(_.err)return _;var S=we(l,this.clonePosition());if(v&&Wp(v==null?void 0:v.style,"::",0)){var R=QE(v.style.slice(2));if(h==="number"){var b=this.parseNumberSkeletonFromString(R,v.styleLocation);return b.err?b:{val:{type:Me.number,value:s,location:S,style:b.val},err:null}}else{if(R.length===0)return this.error(_e.EXPECT_DATE_TIME_SKELETON,S);var O=R;this.locale&&(O=BE(R,this.locale));var m={type:Xn.dateTime,pattern:O,location:v.styleLocation,parsedOptions:this.shouldParseSkeletons?AE(O):{}},N=h==="date"?Me.date:Me.time;return{val:{type:N,value:s,location:S,style:m},err:null}}}return{val:{type:h==="number"?Me.number:h==="date"?Me.date:Me.time,value:s,location:S,style:(u=v==null?void 0:v.style)!==null&&u!==void 0?u:null},err:null}}case"plural":case"selectordinal":case"select":{var x=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(_e.EXPECT_SELECT_ARGUMENT_OPTIONS,we(x,J({},x)));this.bumpSpace();var k=this.parseIdentifierIfPossible(),T=0;if(h!=="select"&&k.value==="offset"){if(!this.bumpIf(":"))return this.error(_e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,we(this.clonePosition(),this.clonePosition()));this.bumpSpace();var b=this.tryParseDecimalInteger(_e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,_e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(b.err)return b;this.bumpSpace(),k=this.parseIdentifierIfPossible(),T=b.val}var F=this.tryParsePluralOrSelectOptions(n,h,i,k);if(F.err)return F;var _=this.tryParseArgumentClose(l);if(_.err)return _;var z=we(l,this.clonePosition());return h==="select"?{val:{type:Me.select,value:s,options:Kp(F.val),location:z},err:null}:{val:{type:Me.plural,value:s,options:Kp(F.val),offset:T,pluralType:h==="plural"?"cardinal":"ordinal",location:z},err:null}}default:return this.error(_e.INVALID_ARGUMENT_TYPE,we(d,p))}},e.prototype.tryParseArgumentClose=function(n){return this.isEOF()||this.char()!==125?this.error(_e.EXPECT_ARGUMENT_CLOSING_BRACE,we(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,we(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=DE(n)}catch{return this.error(_e.INVALID_NUMBER_SKELETON,i)}return{val:{type:Xn.number,tokens:s,location:i,parsedOptions:this.shouldParseSkeletons?LE(s):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(n,i,s,l){for(var u,d=!1,h=[],p=new Set,v=l.value,y=l.location;;){if(v.length===0){var b=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=we(b,this.clonePosition()),v=this.message.slice(b.offset,this.offset())}else break}if(p.has(v))return this.error(i==="select"?_e.DUPLICATE_SELECT_ARGUMENT_SELECTOR:_e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,y);v==="other"&&(d=!0),this.bumpSpace();var w=this.clonePosition();if(!this.bumpIf("{"))return this.error(i==="select"?_e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:_e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,we(this.clonePosition(),this.clonePosition()));var _=this.parseMessage(n+1,i,s);if(_.err)return _;var S=this.tryParseArgumentClose(w);if(S.err)return S;h.push([v,{value:_.val,location:we(w,this.clonePosition())}]),p.add(v),this.bumpSpace(),u=this.parseIdentifierIfPossible(),v=u.value,y=u.location}return h.length===0?this.error(i==="select"?_e.EXPECT_SELECT_ARGUMENT_SELECTOR:_e.EXPECT_PLURAL_ARGUMENT_SELECTOR,we(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!d?this.error(_e.MISSING_OTHER_CLAUSE,we(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=we(l,this.clonePosition());return u?(d*=s,ZE(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=S0(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(Wp(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()&&b0(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 bc(e){return e>=97&&e<=122||e>=65&&e<=90}function ew(e){return bc(e)||e===47}function tw(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 b0(e){return e>=9&&e<=13||e===32||e===133||e>=8206&&e<=8207||e===8232||e===8233}function rw(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 Tc(e){e.forEach(function(n){if(delete n.location,p0(n)||m0(n))for(var i in n.options)delete n.options[i].location,Tc(n.options[i].value);else f0(n)&&y0(n.style)||(d0(n)||h0(n))&&Ec(n.style)?delete n.style.location:g0(n)&&Tc(n.children)})}function nw(e,n){n===void 0&&(n={}),n=J({shouldParseSkeletons:!0,requiresOtherClause:!0},n);var i=new JE(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||Tc(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 Yr=function(e){jt(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),Xp=function(e){jt(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}(Yr),iw=function(e){jt(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}(Yr),ow=function(e){jt(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}(Yr),ht;(function(e){e[e.literal=0]="literal",e[e.object=1]="object"})(ht||(ht={}));function sw(e){return e.length<2?e:e.reduce(function(n,i){var s=n[n.length-1];return!s||s.type!==ht.literal||i.type!==ht.literal?n.push(i):s.value+=i.value,n},[])}function T0(e){return typeof e=="function"}function Ws(e,n,i,s,l,u,d){if(e.length===1&&Gp(e[0]))return[{type:ht.literal,value:e[0].value}];for(var h=[],p=0,v=e;p<v.length;p++){var y=v[p];if(Gp(y)){h.push({type:ht.literal,value:y.value});continue}if(OE(y)){typeof u=="number"&&h.push({type:ht.literal,value:i.getNumberFormat(n).format(u)});continue}var b=y.value;if(!(l&&b in l))throw new ow(b,d);var m=l[b];if(RE(y)){(!m||typeof m=="string"||typeof m=="number")&&(m=typeof m=="string"||typeof m=="number"?String(m):""),h.push({type:typeof m=="string"?ht.literal:ht.object,value:m});continue}if(d0(y)){var w=typeof y.style=="string"?s.date[y.style]:Ec(y.style)?y.style.parsedOptions:void 0;h.push({type:ht.literal,value:i.getDateTimeFormat(n,w).format(m)});continue}if(h0(y)){var w=typeof y.style=="string"?s.time[y.style]:Ec(y.style)?y.style.parsedOptions:s.time.medium;h.push({type:ht.literal,value:i.getDateTimeFormat(n,w).format(m)});continue}if(f0(y)){var w=typeof y.style=="string"?s.number[y.style]:y0(y.style)?y.style.parsedOptions:void 0;w&&w.scale&&(m=m*(w.scale||1)),h.push({type:ht.literal,value:i.getNumberFormat(n,w).format(m)});continue}if(g0(y)){var _=y.children,S=y.value,R=l[S];if(!T0(R))throw new iw(S,"function",d);var O=Ws(_,n,i,s,l,u),N=R(O.map(function(T){return T.value}));Array.isArray(N)||(N=[N]),h.push.apply(h,N.map(function(T){return{type:typeof T=="string"?ht.literal:ht.object,value:T}}))}if(p0(y)){var x=y.options[m]||y.options.other;if(!x)throw new Xp(y.value,m,Object.keys(y.options),d);h.push.apply(h,Ws(x.value,n,i,s,l));continue}if(m0(y)){var x=y.options["=".concat(m)];if(!x){if(!Intl.PluralRules)throw new Yr(`Intl.PluralRules is not available in this environment.
57
57
  Try polyfilling it using "@formatjs/intl-pluralrules"
58
- `,cr.MISSING_INTL_API,d);var k=i.getPluralRules(n,{type:y.pluralType}).select(m-(y.offset||0));x=y.options[k]||y.options.other}if(!x)throw new Qp(y.value,m,Object.keys(y.options),d);h.push.apply(h,Vs(x.value,n,i,s,l,m-(y.offset||0)));continue}}return ow(h)}function sw(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 aw(e,n){return n?Object.keys(e).reduce(function(i,s){return i[s]=sw(e[s],n[s]),i},J({},e)):e}function Tu(e){return{create:function(){return{get:function(n){return e[n]},set:function(n,i){e[n]=i}}}}}function lw(e){return e===void 0&&(e={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:or(function(){for(var n,i=[],s=0;s<arguments.length;s++)i[s]=arguments[s];return new((n=Intl.NumberFormat).bind.apply(n,ar([void 0],i,!1)))},{cache:Tu(e.number),strategy:sr.variadic}),getDateTimeFormat:or(function(){for(var n,i=[],s=0;s<arguments.length;s++)i[s]=arguments[s];return new((n=Intl.DateTimeFormat).bind.apply(n,ar([void 0],i,!1)))},{cache:Tu(e.dateTime),strategy:sr.variadic}),getPluralRules:or(function(){for(var n,i=[],s=0;s<arguments.length;s++)i[s]=arguments[s];return new((n=Intl.PluralRules).bind.apply(n,ar([void 0],i,!1)))},{cache:Tu(e.pluralRules),strategy:sr.variadic})}}var C0=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 v=u.formatToParts(p);if(v.length===1)return v[0].value;var y=v.reduce(function(b,m){return!b.length||m.type!==ht.literal||typeof b[b.length-1]!="string"?b.push(m.value):b[b.length-1]+=m.value,b},[]);return y.length<=1?y[0]||"":y},this.formatToParts=function(p){return Vs(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=sa(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=aw(e.formats,s),this.formatters=l&&l.formatters||lw(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=rw,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}(),wn;(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"})(wn||(wn={}));var so=function(e){jt(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,`
58
+ `,cr.MISSING_INTL_API,d);var k=i.getPluralRules(n,{type:y.pluralType}).select(m-(y.offset||0));x=y.options[k]||y.options.other}if(!x)throw new Xp(y.value,m,Object.keys(y.options),d);h.push.apply(h,Ws(x.value,n,i,s,l,m-(y.offset||0)));continue}}return sw(h)}function aw(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 lw(e,n){return n?Object.keys(e).reduce(function(i,s){return i[s]=aw(e[s],n[s]),i},J({},e)):e}function Cu(e){return{create:function(){return{get:function(n){return e[n]},set:function(n,i){e[n]=i}}}}}function uw(e){return e===void 0&&(e={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:or(function(){for(var n,i=[],s=0;s<arguments.length;s++)i[s]=arguments[s];return new((n=Intl.NumberFormat).bind.apply(n,ar([void 0],i,!1)))},{cache:Cu(e.number),strategy:sr.variadic}),getDateTimeFormat:or(function(){for(var n,i=[],s=0;s<arguments.length;s++)i[s]=arguments[s];return new((n=Intl.DateTimeFormat).bind.apply(n,ar([void 0],i,!1)))},{cache:Cu(e.dateTime),strategy:sr.variadic}),getPluralRules:or(function(){for(var n,i=[],s=0;s<arguments.length;s++)i[s]=arguments[s];return new((n=Intl.PluralRules).bind.apply(n,ar([void 0],i,!1)))},{cache:Cu(e.pluralRules),strategy:sr.variadic})}}var C0=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 v=u.formatToParts(p);if(v.length===1)return v[0].value;var y=v.reduce(function(b,m){return!b.length||m.type!==ht.literal||typeof b[b.length-1]!="string"?b.push(m.value):b[b.length-1]+=m.value,b},[]);return y.length<=1?y[0]||"":y},this.formatToParts=function(p){return Ws(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=aa(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=lw(e.formats,s),this.formatters=l&&l.formatters||uw(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=nw,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}(),wn;(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"})(wn||(wn={}));var so=function(e){jt(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,`
59
59
  `).concat(d?`
60
60
  `.concat(d.message,`
61
- `).concat(d.stack):""))||this,u.code=i,typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(u,n),u}return n}(Error),uw=function(e){jt(n,e);function n(i,s){return e.call(this,wn.UNSUPPORTED_FORMATTER,i,s)||this}return n}(so),cw=function(e){jt(n,e);function n(i,s){return e.call(this,wn.INVALID_CONFIG,i,s)||this}return n}(so),Xp=function(e){jt(n,e);function n(i,s){return e.call(this,wn.MISSING_DATA,i,s)||this}return n}(so),Ut=function(e){jt(n,e);function n(i,s,l){var u=e.call(this,wn.FORMAT_ERROR,"".concat(i,`
61
+ `).concat(d.stack):""))||this,u.code=i,typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(u,n),u}return n}(Error),cw=function(e){jt(n,e);function n(i,s){return e.call(this,wn.UNSUPPORTED_FORMATTER,i,s)||this}return n}(so),fw=function(e){jt(n,e);function n(i,s){return e.call(this,wn.INVALID_CONFIG,i,s)||this}return n}(so),Qp=function(e){jt(n,e);function n(i,s){return e.call(this,wn.MISSING_DATA,i,s)||this}return n}(so),Ut=function(e){jt(n,e);function n(i,s,l){var u=e.call(this,wn.FORMAT_ERROR,"".concat(i,`
62
62
  Locale: `).concat(s,`
63
- `),l)||this;return u.locale=s,u}return n}(so),Cu=function(e){jt(n,e);function n(i,s,l,u){var d=e.call(this,"".concat(i,`
63
+ `),l)||this;return u.locale=s,u}return n}(so),ku=function(e){jt(n,e);function n(i,s,l,u){var d=e.call(this,"".concat(i,`
64
64
  MessageID: `).concat(l==null?void 0:l.id,`
65
65
  Default Message: `).concat(l==null?void 0:l.defaultMessage,`
66
66
  Description: `).concat(l==null?void 0:l.description,`
67
- `),s,u)||this;return d.descriptor=l,d.locale=s,d}return n}(Ut),fw=function(e){jt(n,e);function n(i,s){var l=e.call(this,wn.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}(so);function dw(e,n,i){if(i===void 0&&(i=Error),!e)throw new i(n)}function ei(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 hw=function(e){},pw=function(e){},k0={formats:{},messages:{},timeZone:void 0,defaultLocale:"en",defaultFormats:{},fallbackOnEmptyString:!0,onError:hw,onWarn:pw};function R0(){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 mw(e){e===void 0&&(e=R0());var n=Intl.RelativeTimeFormat,i=Intl.ListFormat,s=Intl.DisplayNames,l=or(function(){for(var h,p=[],v=0;v<arguments.length;v++)p[v]=arguments[v];return new((h=Intl.DateTimeFormat).bind.apply(h,ar([void 0],p,!1)))},{cache:hn(e.dateTime),strategy:sr.variadic}),u=or(function(){for(var h,p=[],v=0;v<arguments.length;v++)p[v]=arguments[v];return new((h=Intl.NumberFormat).bind.apply(h,ar([void 0],p,!1)))},{cache:hn(e.number),strategy:sr.variadic}),d=or(function(){for(var h,p=[],v=0;v<arguments.length;v++)p[v]=arguments[v];return new((h=Intl.PluralRules).bind.apply(h,ar([void 0],p,!1)))},{cache:hn(e.pluralRules),strategy:sr.variadic});return{getDateTimeFormat:l,getNumberFormat:u,getMessageFormat:or(function(h,p,v,y){return new C0(h,p,v,J({formatters:{getNumberFormat:u,getDateTimeFormat:l,getPluralRules:d}},y||{}))},{cache:hn(e.message),strategy:sr.variadic}),getRelativeTimeFormat:or(function(){for(var h=[],p=0;p<arguments.length;p++)h[p]=arguments[p];return new(n.bind.apply(n,ar([void 0],h,!1)))},{cache:hn(e.relativeTime),strategy:sr.variadic}),getPluralRules:d,getListFormat:or(function(){for(var h=[],p=0;p<arguments.length;p++)h[p]=arguments[p];return new(i.bind.apply(i,ar([void 0],h,!1)))},{cache:hn(e.list),strategy:sr.variadic}),getDisplayNames:or(function(){for(var h=[],p=0;p<arguments.length;p++)h[p]=arguments[p];return new(s.bind.apply(s,ar([void 0],h,!1)))},{cache:hn(e.displayNames),strategy:sr.variadic})}}function Xc(e,n,i,s){var l=e&&e[n],u;if(l&&(u=l[i]),u)return u;s(new uw("No ".concat(n," format named: ").concat(i)))}function ws(e,n){return Object.keys(e).reduce(function(i,s){return i[s]=J({timeZone:n},e[s]),i},{})}function Yp(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 Jp(e,n){if(!n)return e;var i=C0.formats;return J(J(J({},i),e),{date:Yp(ws(i.date,n),ws(e.date||{},n)),time:Yp(ws(i.time,n),ws(e.time||{},n))})}var Cc=function(e,n,i,s,l){var u=e.locale,d=e.formats,h=e.messages,p=e.defaultLocale,v=e.defaultFormats,y=e.fallbackOnEmptyString,b=e.onError,m=e.timeZone,w=e.defaultRichTextElements;i===void 0&&(i={id:""});var _=i.id,S=i.defaultMessage;dw(!!_,"[@formatjs/intl] An `id` must be provided to format a message. You can either:\n1. Configure your build toolchain with [babel-plugin-formatjs](https://formatjs.github.io/docs/tooling/babel-plugin)\nor [@formatjs/ts-transformer](https://formatjs.github.io/docs/tooling/ts-transformer) OR\n2. Configure your `eslint` config to include [eslint-plugin-formatjs](https://formatjs.github.io/docs/tooling/linter#enforce-id)\nto autofix this issue");var R=String(_),O=h&&Object.prototype.hasOwnProperty.call(h,R)&&h[R];if(Array.isArray(O)&&O.length===1&&O[0].type===Me.literal)return O[0].value;if(!s&&O&&typeof O=="string"&&!w)return O.replace(/'\{(.*?)\}'/gi,"{$1}");if(s=J(J({},w),s||{}),d=Jp(d,m),v=Jp(v,m),!O){if(y===!1&&O==="")return O;if((!S||u&&u.toLowerCase()!==p.toLowerCase())&&b(new fw(i,u)),S)try{var N=n.getMessageFormat(S,p,v,l);return N.format(s)}catch(x){return b(new Cu('Error formatting default message for: "'.concat(R,'", rendering default message verbatim'),u,i,x)),typeof S=="string"?S:R}return R}try{var N=n.getMessageFormat(O,u,d,J({formatters:n},l||{}));return N.format(s)}catch(x){b(new Cu('Error formatting message: "'.concat(R,'", using ').concat(S?"default message":"id"," as fallback."),u,i,x))}if(S)try{var N=n.getMessageFormat(S,p,v,l);return N.format(s)}catch(x){b(new Cu('Error formatting the default message for: "'.concat(R,'", rendering message verbatim'),u,i,x))}return typeof O=="string"?O:typeof S=="string"?S:R},gw=["formatMatcher","timeZone","hour12","weekday","era","year","month","day","hour","minute","second","timeZoneName","hourCycle","dateStyle","timeStyle","calendar","numberingSystem","fractionalSecondDigits"];function ao(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,v=J(J({},h&&{timeZone:h}),p&&Xc(u,n,p,d)),y=ei(s,gw,v);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 yw(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 ao(e,"date",n,d).format(h)}catch(p){e.onError(new Ut("Error formatting date.",e.locale,p))}return String(h)}function vw(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 ao(e,"time",n,d).format(h)}catch(p){e.onError(new Ut("Error formatting time.",e.locale,p))}return String(h)}function _w(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=typeof l=="string"?new Date(l||0):l,v=typeof u=="string"?new Date(u||0):u;try{return ao(e,"dateTimeRange",n,h).formatRange(p,v)}catch(y){e.onError(new Ut("Error formatting date time range.",e.locale,y))}return String(p)}function Ew(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 ao(e,"date",n,d).formatToParts(h)}catch(p){e.onError(new Ut("Error formatting date.",e.locale,p))}return[]}function ww(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 ao(e,"time",n,d).formatToParts(h)}catch(p){e.onError(new Ut("Error formatting time.",e.locale,p))}return[]}var Sw=["style","type","fallback","languageDisplay"];function xw(e,n,i,s){var l=e.locale,u=e.onError,d=Intl.DisplayNames;d||u(new Yr(`Intl.DisplayNames is not available in this environment.
67
+ `),s,u)||this;return d.descriptor=l,d.locale=s,d}return n}(Ut),dw=function(e){jt(n,e);function n(i,s){var l=e.call(this,wn.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}(so);function hw(e,n,i){if(i===void 0&&(i=Error),!e)throw new i(n)}function ei(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 pw=function(e){},mw=function(e){},k0={formats:{},messages:{},timeZone:void 0,defaultLocale:"en",defaultFormats:{},fallbackOnEmptyString:!0,onError:pw,onWarn:mw};function R0(){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 gw(e){e===void 0&&(e=R0());var n=Intl.RelativeTimeFormat,i=Intl.ListFormat,s=Intl.DisplayNames,l=or(function(){for(var h,p=[],v=0;v<arguments.length;v++)p[v]=arguments[v];return new((h=Intl.DateTimeFormat).bind.apply(h,ar([void 0],p,!1)))},{cache:hn(e.dateTime),strategy:sr.variadic}),u=or(function(){for(var h,p=[],v=0;v<arguments.length;v++)p[v]=arguments[v];return new((h=Intl.NumberFormat).bind.apply(h,ar([void 0],p,!1)))},{cache:hn(e.number),strategy:sr.variadic}),d=or(function(){for(var h,p=[],v=0;v<arguments.length;v++)p[v]=arguments[v];return new((h=Intl.PluralRules).bind.apply(h,ar([void 0],p,!1)))},{cache:hn(e.pluralRules),strategy:sr.variadic});return{getDateTimeFormat:l,getNumberFormat:u,getMessageFormat:or(function(h,p,v,y){return new C0(h,p,v,J({formatters:{getNumberFormat:u,getDateTimeFormat:l,getPluralRules:d}},y||{}))},{cache:hn(e.message),strategy:sr.variadic}),getRelativeTimeFormat:or(function(){for(var h=[],p=0;p<arguments.length;p++)h[p]=arguments[p];return new(n.bind.apply(n,ar([void 0],h,!1)))},{cache:hn(e.relativeTime),strategy:sr.variadic}),getPluralRules:d,getListFormat:or(function(){for(var h=[],p=0;p<arguments.length;p++)h[p]=arguments[p];return new(i.bind.apply(i,ar([void 0],h,!1)))},{cache:hn(e.list),strategy:sr.variadic}),getDisplayNames:or(function(){for(var h=[],p=0;p<arguments.length;p++)h[p]=arguments[p];return new(s.bind.apply(s,ar([void 0],h,!1)))},{cache:hn(e.displayNames),strategy:sr.variadic})}}function Qc(e,n,i,s){var l=e&&e[n],u;if(l&&(u=l[i]),u)return u;s(new cw("No ".concat(n," format named: ").concat(i)))}function ws(e,n){return Object.keys(e).reduce(function(i,s){return i[s]=J({timeZone:n},e[s]),i},{})}function Yp(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 Jp(e,n){if(!n)return e;var i=C0.formats;return J(J(J({},i),e),{date:Yp(ws(i.date,n),ws(e.date||{},n)),time:Yp(ws(i.time,n),ws(e.time||{},n))})}var Cc=function(e,n,i,s,l){var u=e.locale,d=e.formats,h=e.messages,p=e.defaultLocale,v=e.defaultFormats,y=e.fallbackOnEmptyString,b=e.onError,m=e.timeZone,w=e.defaultRichTextElements;i===void 0&&(i={id:""});var _=i.id,S=i.defaultMessage;hw(!!_,"[@formatjs/intl] An `id` must be provided to format a message. You can either:\n1. Configure your build toolchain with [babel-plugin-formatjs](https://formatjs.github.io/docs/tooling/babel-plugin)\nor [@formatjs/ts-transformer](https://formatjs.github.io/docs/tooling/ts-transformer) OR\n2. Configure your `eslint` config to include [eslint-plugin-formatjs](https://formatjs.github.io/docs/tooling/linter#enforce-id)\nto autofix this issue");var R=String(_),O=h&&Object.prototype.hasOwnProperty.call(h,R)&&h[R];if(Array.isArray(O)&&O.length===1&&O[0].type===Me.literal)return O[0].value;if(!s&&O&&typeof O=="string"&&!w)return O.replace(/'\{(.*?)\}'/gi,"{$1}");if(s=J(J({},w),s||{}),d=Jp(d,m),v=Jp(v,m),!O){if(y===!1&&O==="")return O;if((!S||u&&u.toLowerCase()!==p.toLowerCase())&&b(new dw(i,u)),S)try{var N=n.getMessageFormat(S,p,v,l);return N.format(s)}catch(x){return b(new ku('Error formatting default message for: "'.concat(R,'", rendering default message verbatim'),u,i,x)),typeof S=="string"?S:R}return R}try{var N=n.getMessageFormat(O,u,d,J({formatters:n},l||{}));return N.format(s)}catch(x){b(new ku('Error formatting message: "'.concat(R,'", using ').concat(S?"default message":"id"," as fallback."),u,i,x))}if(S)try{var N=n.getMessageFormat(S,p,v,l);return N.format(s)}catch(x){b(new ku('Error formatting the default message for: "'.concat(R,'", rendering message verbatim'),u,i,x))}return typeof O=="string"?O:typeof S=="string"?S:R},yw=["formatMatcher","timeZone","hour12","weekday","era","year","month","day","hour","minute","second","timeZoneName","hourCycle","dateStyle","timeStyle","calendar","numberingSystem","fractionalSecondDigits"];function ao(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,v=J(J({},h&&{timeZone:h}),p&&Qc(u,n,p,d)),y=ei(s,yw,v);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 vw(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 ao(e,"date",n,d).format(h)}catch(p){e.onError(new Ut("Error formatting date.",e.locale,p))}return String(h)}function _w(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 ao(e,"time",n,d).format(h)}catch(p){e.onError(new Ut("Error formatting time.",e.locale,p))}return String(h)}function Ew(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=typeof l=="string"?new Date(l||0):l,v=typeof u=="string"?new Date(u||0):u;try{return ao(e,"dateTimeRange",n,h).formatRange(p,v)}catch(y){e.onError(new Ut("Error formatting date time range.",e.locale,y))}return String(p)}function ww(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 ao(e,"date",n,d).formatToParts(h)}catch(p){e.onError(new Ut("Error formatting date.",e.locale,p))}return[]}function Sw(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 ao(e,"time",n,d).formatToParts(h)}catch(p){e.onError(new Ut("Error formatting time.",e.locale,p))}return[]}var xw=["style","type","fallback","languageDisplay"];function bw(e,n,i,s){var l=e.locale,u=e.onError,d=Intl.DisplayNames;d||u(new Yr(`Intl.DisplayNames is not available in this environment.
68
68
  Try polyfilling it using "@formatjs/intl-displaynames"
69
- `,cr.MISSING_INTL_API));var h=ei(s,Sw);try{return n(l,h).of(i)}catch(p){u(new Ut("Error formatting display name.",l,p))}}var bw=["type","style"],em=Date.now();function Tw(e){return"".concat(em,"_").concat(e,"_").concat(em)}function Cw(e,n,i,s){s===void 0&&(s={});var l=O0(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 O0(e,n,i,s){var l=e.locale,u=e.onError;s===void 0&&(s={});var d=Intl.ListFormat;d||u(new Yr(`Intl.ListFormat is not available in this environment.
69
+ `,cr.MISSING_INTL_API));var h=ei(s,xw);try{return n(l,h).of(i)}catch(p){u(new Ut("Error formatting display name.",l,p))}}var Tw=["type","style"],em=Date.now();function Cw(e){return"".concat(em,"_").concat(e,"_").concat(em)}function kw(e,n,i,s){s===void 0&&(s={});var l=O0(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 O0(e,n,i,s){var l=e.locale,u=e.onError;s===void 0&&(s={});var d=Intl.ListFormat;d||u(new Yr(`Intl.ListFormat is not available in this environment.
70
70
  Try polyfilling it using "@formatjs/intl-listformat"
71
- `,cr.MISSING_INTL_API));var h=ei(s,bw);try{var p={},v=i.map(function(y,b){if(typeof y=="object"){var m=Tw(b);return p[m]=y,m}return String(y)});return n(l,h).formatToParts(v).map(function(y){return y.type==="literal"?y:J(J({},y),{value:p[y.value]||y.value})})}catch(y){u(new Ut("Error formatting list.",l,y))}return i}var kw=["type"];function Rw(e,n,i,s){var l=e.locale,u=e.onError;s===void 0&&(s={}),Intl.PluralRules||u(new Yr(`Intl.PluralRules is not available in this environment.
71
+ `,cr.MISSING_INTL_API));var h=ei(s,Tw);try{var p={},v=i.map(function(y,b){if(typeof y=="object"){var m=Cw(b);return p[m]=y,m}return String(y)});return n(l,h).formatToParts(v).map(function(y){return y.type==="literal"?y:J(J({},y),{value:p[y.value]||y.value})})}catch(y){u(new Ut("Error formatting list.",l,y))}return i}var Rw=["type"];function Ow(e,n,i,s){var l=e.locale,u=e.onError;s===void 0&&(s={}),Intl.PluralRules||u(new Yr(`Intl.PluralRules is not available in this environment.
72
72
  Try polyfilling it using "@formatjs/intl-pluralrules"
73
- `,cr.MISSING_INTL_API));var d=ei(s,kw);try{return n(l,d).select(i)}catch(h){u(new Ut("Error formatting plural.",l,h))}return"other"}var Ow=["numeric","style"];function Nw(e,n,i){var s=e.locale,l=e.formats,u=e.onError;i===void 0&&(i={});var d=i.format,h=!!d&&Xc(l,"relative",d,u)||{},p=ei(i,Ow,h);return n(s,p)}function Aw(e,n,i,s,l){l===void 0&&(l={}),s||(s="second");var u=Intl.RelativeTimeFormat;u||e.onError(new Yr(`Intl.RelativeTimeFormat is not available in this environment.
73
+ `,cr.MISSING_INTL_API));var d=ei(s,Rw);try{return n(l,d).select(i)}catch(h){u(new Ut("Error formatting plural.",l,h))}return"other"}var Nw=["numeric","style"];function Aw(e,n,i){var s=e.locale,l=e.formats,u=e.onError;i===void 0&&(i={});var d=i.format,h=!!d&&Qc(l,"relative",d,u)||{},p=ei(i,Nw,h);return n(s,p)}function Iw(e,n,i,s,l){l===void 0&&(l={}),s||(s="second");var u=Intl.RelativeTimeFormat;u||e.onError(new Yr(`Intl.RelativeTimeFormat is not available in this environment.
74
74
  Try polyfilling it using "@formatjs/intl-relativetimeformat"
75
- `,cr.MISSING_INTL_API));try{return Nw(e,n,l).format(i,s)}catch(d){e.onError(new Ut("Error formatting relative time.",e.locale,d))}return String(i)}var Iw=["style","currency","unit","unitDisplay","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","currencyDisplay","currencySign","notation","signDisplay","unit","unitDisplay","numberingSystem","trailingZeroDisplay","roundingPriority","roundingIncrement","roundingMode"];function N0(e,n,i){var s=e.locale,l=e.formats,u=e.onError;i===void 0&&(i={});var d=i.format,h=d&&Xc(l,"number",d,u)||{},p=ei(i,Iw,h);return n(s,p)}function Dw(e,n,i,s){s===void 0&&(s={});try{return N0(e,n,s).format(i)}catch(l){e.onError(new Ut("Error formatting number.",e.locale,l))}return String(i)}function Pw(e,n,i,s){s===void 0&&(s={});try{return N0(e,n,s).formatToParts(i)}catch(l){e.onError(new Ut("Error formatting number.",e.locale,l))}return[]}function Mw(e){var n=e?e[Object.keys(e)[0]]:void 0;return typeof n=="string"}function Fw(e){e.onWarn&&e.defaultRichTextElements&&Mw(e.messages||{})&&e.onWarn(`[@formatjs/intl] "defaultRichTextElements" was specified but "message" was not pre-compiled.
75
+ `,cr.MISSING_INTL_API));try{return Aw(e,n,l).format(i,s)}catch(d){e.onError(new Ut("Error formatting relative time.",e.locale,d))}return String(i)}var Dw=["style","currency","unit","unitDisplay","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","currencyDisplay","currencySign","notation","signDisplay","unit","unitDisplay","numberingSystem","trailingZeroDisplay","roundingPriority","roundingIncrement","roundingMode"];function N0(e,n,i){var s=e.locale,l=e.formats,u=e.onError;i===void 0&&(i={});var d=i.format,h=d&&Qc(l,"number",d,u)||{},p=ei(i,Dw,h);return n(s,p)}function Pw(e,n,i,s){s===void 0&&(s={});try{return N0(e,n,s).format(i)}catch(l){e.onError(new Ut("Error formatting number.",e.locale,l))}return String(i)}function Mw(e,n,i,s){s===void 0&&(s={});try{return N0(e,n,s).formatToParts(i)}catch(l){e.onError(new Ut("Error formatting number.",e.locale,l))}return[]}function Fw(e){var n=e?e[Object.keys(e)[0]]:void 0;return typeof n=="string"}function Lw(e){e.onWarn&&e.defaultRichTextElements&&Fw(e.messages||{})&&e.onWarn(`[@formatjs/intl] "defaultRichTextElements" was specified but "message" was not pre-compiled.
76
76
  Please consider using "@formatjs/cli" to pre-compile your messages for performance.
77
- For more details see https://formatjs.github.io/docs/getting-started/message-distribution`)}function Lw(e,n){var i=mw(n),s=J(J({},k0),e),l=s.locale,u=s.defaultLocale,d=s.onError;return l?!Intl.NumberFormat.supportedLocalesOf(l).length&&d?d(new Xp('Missing locale data for locale: "'.concat(l,'" in Intl.NumberFormat. Using default locale: "').concat(u,'" as fallback. See https://formatjs.github.io/docs/react-intl#runtime-requirements for more details'))):!Intl.DateTimeFormat.supportedLocalesOf(l).length&&d&&d(new Xp('Missing locale data for locale: "'.concat(l,'" in Intl.DateTimeFormat. Using default locale: "').concat(u,'" as fallback. See https://formatjs.github.io/docs/react-intl#runtime-requirements for more details'))):(d&&d(new cw('"locale" was not configured, using "'.concat(u,'" as fallback. See https://formatjs.github.io/docs/react-intl/api#intlshape for more details'))),s.locale=s.defaultLocale||"en"),Fw(s),J(J({},s),{formatters:i,formatNumber:Dw.bind(null,s,i.getNumberFormat),formatNumberToParts:Pw.bind(null,s,i.getNumberFormat),formatRelativeTime:Aw.bind(null,s,i.getRelativeTimeFormat),formatDate:yw.bind(null,s,i.getDateTimeFormat),formatDateToParts:Ew.bind(null,s,i.getDateTimeFormat),formatTime:vw.bind(null,s,i.getDateTimeFormat),formatDateTimeRange:_w.bind(null,s,i.getDateTimeFormat),formatTimeToParts:ww.bind(null,s,i.getDateTimeFormat),formatPlural:Rw.bind(null,s,i.getPluralRules),formatMessage:Cc.bind(null,s,i),$t:Cc.bind(null,s,i),formatList:Cw.bind(null,s,i.getListFormat),formatListToParts:O0.bind(null,s,i.getListFormat),formatDisplayName:xw.bind(null,s,i.getDisplayNames)})}function Bw(e,n,i){if(i===void 0&&(i=Error),!e)throw new i(n)}function A0(e){Bw(e,"[React Intl] Could not find required `intl` object. <IntlProvider> needs to exist in the component ancestry.")}var I0=J(J({},k0),{textComponent:B.Fragment}),jw={key:42},Uw=function(e){return B.isValidElement(e)?B.createElement(B.Fragment,jw,e):e},Hw=function(e){var n;return(n=B.Children.map(e,Uw))!==null&&n!==void 0?n:[]};function zw(e){return function(n){return e(B.Children.toArray(n))}}function Gw(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 ku={exports:{}},Ce={};/** @license React v16.13.1
77
+ For more details see https://formatjs.github.io/docs/getting-started/message-distribution`)}function Bw(e,n){var i=gw(n),s=J(J({},k0),e),l=s.locale,u=s.defaultLocale,d=s.onError;return l?!Intl.NumberFormat.supportedLocalesOf(l).length&&d?d(new Qp('Missing locale data for locale: "'.concat(l,'" in Intl.NumberFormat. Using default locale: "').concat(u,'" as fallback. See https://formatjs.github.io/docs/react-intl#runtime-requirements for more details'))):!Intl.DateTimeFormat.supportedLocalesOf(l).length&&d&&d(new Qp('Missing locale data for locale: "'.concat(l,'" in Intl.DateTimeFormat. Using default locale: "').concat(u,'" as fallback. See https://formatjs.github.io/docs/react-intl#runtime-requirements for more details'))):(d&&d(new fw('"locale" was not configured, using "'.concat(u,'" as fallback. See https://formatjs.github.io/docs/react-intl/api#intlshape for more details'))),s.locale=s.defaultLocale||"en"),Lw(s),J(J({},s),{formatters:i,formatNumber:Pw.bind(null,s,i.getNumberFormat),formatNumberToParts:Mw.bind(null,s,i.getNumberFormat),formatRelativeTime:Iw.bind(null,s,i.getRelativeTimeFormat),formatDate:vw.bind(null,s,i.getDateTimeFormat),formatDateToParts:ww.bind(null,s,i.getDateTimeFormat),formatTime:_w.bind(null,s,i.getDateTimeFormat),formatDateTimeRange:Ew.bind(null,s,i.getDateTimeFormat),formatTimeToParts:Sw.bind(null,s,i.getDateTimeFormat),formatPlural:Ow.bind(null,s,i.getPluralRules),formatMessage:Cc.bind(null,s,i),$t:Cc.bind(null,s,i),formatList:kw.bind(null,s,i.getListFormat),formatListToParts:O0.bind(null,s,i.getListFormat),formatDisplayName:bw.bind(null,s,i.getDisplayNames)})}function jw(e,n,i){if(i===void 0&&(i=Error),!e)throw new i(n)}function A0(e){jw(e,"[React Intl] Could not find required `intl` object. <IntlProvider> needs to exist in the component ancestry.")}var I0=J(J({},k0),{textComponent:B.Fragment}),Uw={key:42},Hw=function(e){return B.isValidElement(e)?B.createElement(B.Fragment,Uw,e):e},zw=function(e){var n;return(n=B.Children.map(e,Hw))!==null&&n!==void 0?n:[]};function Gw(e){return function(n){return e(B.Children.toArray(n))}}function $w(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 Ru={exports:{}},Ce={};/** @license React v16.13.1
78
78
  * react-is.production.min.js
79
79
  *
80
80
  * Copyright (c) Facebook, Inc. and its affiliates.
81
81
  *
82
82
  * This source code is licensed under the MIT license found in the
83
83
  * LICENSE file in the root directory of this source tree.
84
- */var tm;function $w(){if(tm)return Ce;tm=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,v=e?Symbol.for("react.concurrent_mode"):60111,y=e?Symbol.for("react.forward_ref"):60112,b=e?Symbol.for("react.suspense"):60113,m=e?Symbol.for("react.suspense_list"):60120,w=e?Symbol.for("react.memo"):60115,_=e?Symbol.for("react.lazy"):60116,S=e?Symbol.for("react.block"):60121,R=e?Symbol.for("react.fundamental"):60117,O=e?Symbol.for("react.responder"):60118,N=e?Symbol.for("react.scope"):60119;function x(T){if(typeof T=="object"&&T!==null){var F=T.$$typeof;switch(F){case n:switch(T=T.type,T){case p:case v:case s:case u:case l:case b:return T;default:switch(T=T&&T.$$typeof,T){case h:case y:case _:case w:case d:return T;default:return F}}case i:return F}}}function k(T){return x(T)===v}return Ce.AsyncMode=p,Ce.ConcurrentMode=v,Ce.ContextConsumer=h,Ce.ContextProvider=d,Ce.Element=n,Ce.ForwardRef=y,Ce.Fragment=s,Ce.Lazy=_,Ce.Memo=w,Ce.Portal=i,Ce.Profiler=u,Ce.StrictMode=l,Ce.Suspense=b,Ce.isAsyncMode=function(T){return k(T)||x(T)===p},Ce.isConcurrentMode=k,Ce.isContextConsumer=function(T){return x(T)===h},Ce.isContextProvider=function(T){return x(T)===d},Ce.isElement=function(T){return typeof T=="object"&&T!==null&&T.$$typeof===n},Ce.isForwardRef=function(T){return x(T)===y},Ce.isFragment=function(T){return x(T)===s},Ce.isLazy=function(T){return x(T)===_},Ce.isMemo=function(T){return x(T)===w},Ce.isPortal=function(T){return x(T)===i},Ce.isProfiler=function(T){return x(T)===u},Ce.isStrictMode=function(T){return x(T)===l},Ce.isSuspense=function(T){return x(T)===b},Ce.isValidElementType=function(T){return typeof T=="string"||typeof T=="function"||T===s||T===v||T===u||T===l||T===b||T===m||typeof T=="object"&&T!==null&&(T.$$typeof===_||T.$$typeof===w||T.$$typeof===d||T.$$typeof===h||T.$$typeof===y||T.$$typeof===R||T.$$typeof===O||T.$$typeof===N||T.$$typeof===S)},Ce.typeOf=x,Ce}var rm;function qw(){return rm||(rm=1,ku.exports=$w()),ku.exports}var Ru,nm;function Vw(){if(nm)return Ru;nm=1;var e=qw(),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(_){return e.isMemo(_)?l:u[_.$$typeof]||n}var h=Object.defineProperty,p=Object.getOwnPropertyNames,v=Object.getOwnPropertySymbols,y=Object.getOwnPropertyDescriptor,b=Object.getPrototypeOf,m=Object.prototype;function w(_,S,R){if(typeof S!="string"){if(m){var O=b(S);O&&O!==m&&w(_,O,R)}var N=p(S);v&&(N=N.concat(v(S)));for(var x=d(_),k=d(S),T=0;T<N.length;++T){var F=N[T];if(!i[F]&&!(R&&R[F])&&!(k&&k[F])&&!(x&&x[F])){var z=y(S,F);try{h(_,F,z)}catch{}}}}return _}return Ru=w,Ru}Vw();var Yc=typeof window<"u"&&!window.__REACT_INTL_BYPASS_GLOBAL_CONTEXT__?window.__REACT_INTL_CONTEXT__||(window.__REACT_INTL_CONTEXT__=B.createContext(null)):B.createContext(null);Yc.Consumer;var Ww=Yc.Provider,Kw=Ww,Zw=Yc;function aa(){var e=B.useContext(Zw);return A0(e),e}var kc;(function(e){e.formatDate="FormattedDate",e.formatTime="FormattedTime",e.formatNumber="FormattedNumber",e.formatList="FormattedList",e.formatDisplayName="FormattedDisplayName"})(kc||(kc={}));var Rc;(function(e){e.formatDate="FormattedDateParts",e.formatTime="FormattedTimeParts",e.formatNumber="FormattedNumberParts",e.formatList="FormattedListParts"})(Rc||(Rc={}));function D0(e){var n=function(i){var s=aa(),l=i.value,u=i.children,d=sa(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=Rc[e],n}function lo(e){var n=function(i){var s=aa(),l=i.value,u=i.children,d=sa(i,["value","children"]),h=s[e](l,d);if(typeof u=="function")return u(h);var p=s.textComponent||B.Fragment;return B.createElement(p,null,h)};return n.displayName=kc[e],n}function P0(e){return e&&Object.keys(e).reduce(function(n,i){var s=e[i];return n[i]=T0(s)?zw(s):s,n},{})}var im=function(e,n,i,s){for(var l=[],u=4;u<arguments.length;u++)l[u-4]=arguments[u];var d=P0(s),h=Cc.apply(void 0,ar([e,n,i,d],l,!1));return Array.isArray(h)?Hw(h):h},om=function(e,n){var i=e.defaultRichTextElements,s=sa(e,["defaultRichTextElements"]),l=P0(i),u=Lw(J(J(J({},I0),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:im.bind(null,d,u.formatters),$t:im.bind(null,d,u.formatters)})};function Ou(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 Qw=function(e){jt(n,e);function n(){var i=e!==null&&e.apply(this,arguments)||this;return i.cache=R0(),i.state={cache:i.cache,intl:om(Ou(i.props),i.cache),prevConfig:Ou(i.props)},i}return n.getDerivedStateFromProps=function(i,s){var l=s.prevConfig,u=s.cache,d=Ou(i);return Gw(l,d)?null:{intl:om(d,u),prevConfig:d}},n.prototype.render=function(){return A0(this.state.intl),B.createElement(Kw,{value:this.state.intl},this.props.children)},n.displayName="IntlProvider",n.defaultProps=I0,n}(B.PureComponent);lo("formatDate");lo("formatTime");lo("formatNumber");lo("formatList");lo("formatDisplayName");D0("formatDate");D0("formatTime");const Xw="_app_1rj0t_1",Yw={app:Xw},ti=pE,Qr=yE,M0="%[a-f0-9]{2}",sm=new RegExp("("+M0+")|([^%]+?)","gi"),am=new RegExp("("+M0+")+","gi");function Oc(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([],Oc(i),Oc(s))}function Jw(e){try{return decodeURIComponent(e)}catch{let n=e.match(sm)||[];for(let i=1;i<n.length;i++)e=Oc(n,i).join(""),n=e.match(sm)||[];return e}}function eS(e){const n={"%FE%FF":"��","%FF%FE":"��"};let i=am.exec(e);for(;i;){try{n[i[0]]=decodeURIComponent(i[0])}catch{const l=Jw(i[0]);l!==i[0]&&(n[i[0]]=l)}i=am.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 tS(e){if(typeof e!="string")throw new TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof e+"`");try{return decodeURIComponent(e)}catch{return eS(e)}}function rS(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 F0(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 nS=e=>e==null,iS=e=>encodeURIComponent(e).replaceAll(/[!'()*]/g,n=>`%${n.charCodeAt(0).toString(16).toUpperCase()}`),Nc=Symbol("encodeFragmentIdentifier");function oS(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 sS(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&&xr(s,e).includes(e.arrayFormatSeparator);s=d?xr(s,e):s;const h=u||d?s.split(e.arrayFormatSeparator).map(p=>xr(p,e)):s===null?s:xr(s,e);l[i]=h};case"bracket-separator":return(i,s,l)=>{const u=/(\[])$/.test(i);if(i=i.replace(/\[]$/,""),!u){l[i]=s&&xr(s,e);return}const d=s===null?[]:xr(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 L0(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?iS(e):encodeURIComponent(e):e}function xr(e,n){return n.decode?tS(e):e}function B0(e){return Array.isArray(e)?e.sort():typeof e=="object"?B0(Object.keys(e)).sort((n,i)=>Number(n)-Number(i)).map(n=>e[n]):e}function j0(e){const n=e.indexOf("#");return n!==-1&&(e=e.slice(0,n)),e}function aS(e){let n="";const i=e.indexOf("#");return i!==-1&&(n=e.slice(i)),n}function lm(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 Jc(e){e=j0(e);const n=e.indexOf("?");return n===-1?"":e.slice(n+1)}function ef(e,n){n={decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1,types:Object.create(null),...n},L0(n.arrayFormatSeparator);const i=sS(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]=F0(u,"=");d===void 0&&(d=u),h=h===void 0?null:["comma","separator","bracket-separator"].includes(n.arrayFormat)?h:xr(h,n),i(xr(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]=lm(h,n,p)}else typeof u=="object"&&u!==null&&n.types[l]==="string"?s[l]=Object.values(u).join(n.arrayFormatSeparator):s[l]=lm(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)?B0(d):d,l},Object.create(null))}function U0(e,n){if(!e)return"";n={encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:",",...n},L0(n.arrayFormatSeparator);const i=d=>n.skipNull&&nS(e[d])||n.skipEmptyString&&e[d]==="",s=oS(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 H0(e,n){var l;n={decode:!0,...n};let[i,s]=F0(e,"#");return i===void 0&&(i=e),{url:((l=i==null?void 0:i.split("?"))==null?void 0:l[0])??"",query:ef(Jc(e),n),...n&&n.parseFragmentIdentifier&&s?{fragmentIdentifier:xr(s,n)}:{}}}function z0(e,n){n={encode:!0,strict:!0,[Nc]:!0,...n};const i=j0(e.url).split("?")[0]||"",s=Jc(e.url),l={...ef(s,{sort:!1}),...e.query};let u=U0(l,n);u&&(u=`?${u}`);let d=aS(e.url);if(typeof e.fragmentIdentifier=="string"){const h=new URL(i);h.hash=e.fragmentIdentifier,d=n[Nc]?h.hash:`#${e.fragmentIdentifier}`}return`${i}${u}${d}`}function G0(e,n,i){i={parseFragmentIdentifier:!0,[Nc]:!1,...i};const{url:s,query:l,fragmentIdentifier:u}=H0(e,i);return z0({url:s,query:rS(l,n),fragmentIdentifier:u},i)}function lS(e,n,i){const s=Array.isArray(n)?l=>!n.includes(l):(l,u)=>!n(l,u);return G0(e,s,i)}const la=Object.freeze(Object.defineProperty({__proto__:null,exclude:lS,extract:Jc,parse:ef,parseUrl:H0,pick:G0,stringify:U0,stringifyUrl:z0},Symbol.toStringTag,{value:"Module"}));var Kt={},Ct={},le={},um;function At(){return um||(um=1,Object.defineProperty(le,"__esModule",{value:!0}),le.GUEST_LOCALE_CHANGED=le.DRAWER_CLOSE=le.DRAWER_OPEN=le.CONVERSATION_RATING_FROM_GUEST=le.TRANSCRIPT_ITEM_GUEST_REACTION=le.TRANSCRIPT_MAIL_REQUEST=le.INBOX_CONNECT_REQUEST=le.RESTART_CHAT_REQUEST=le.EVENT_TO_GUEST=le.NLU_REQUEST_EVENT=le.EXPERTS_DISCONNECTED=le.EXPERTS_DISCONNECT_REQUEST=le.EXPERTS_CONNECTED=le.EXPERTS_CONNECT_REQUEST=le.MESSAGE_TO_GUEST=le.MESSAGE_WITHOUT_ANALYSIS_FROM_GUEST=le.MESSAGE_FROM_GUEST=le.GUEST_FEEDBACK_RESPONSE=le.GUEST_DISCONNECTED=le.GUEST_CONNECTED=le.TYPING_OFF=le.TYPING_ON=void 0,le.TYPING_ON="core.typing.on",le.TYPING_OFF="core.typing.off",le.GUEST_CONNECTED="core.guest.connected",le.GUEST_DISCONNECTED="core.guest.disconnected",le.GUEST_FEEDBACK_RESPONSE="core.guest.feedback.response",le.MESSAGE_FROM_GUEST="core.message.from.guest",le.MESSAGE_WITHOUT_ANALYSIS_FROM_GUEST="core.message.without.analysis.from.guest",le.MESSAGE_TO_GUEST="core.message.to.guest",le.EXPERTS_CONNECT_REQUEST="core.experts.connect.request",le.EXPERTS_CONNECTED="core.experts.connected",le.EXPERTS_DISCONNECT_REQUEST="core.experts.disconnect.request",le.EXPERTS_DISCONNECTED="core.experts.disconnected",le.NLU_REQUEST_EVENT="core.nlu.request.event",le.EVENT_TO_GUEST="core.event.to.guest",le.RESTART_CHAT_REQUEST="core.chat.restart.request",le.INBOX_CONNECT_REQUEST="core.inbox.connect.request",le.TRANSCRIPT_MAIL_REQUEST="core.transcript.mail.request",le.TRANSCRIPT_ITEM_GUEST_REACTION="core.transcript.item.guest.reaction",le.CONVERSATION_RATING_FROM_GUEST="core.conversation.rating.from.guest",le.DRAWER_OPEN="core.drawer.open",le.DRAWER_CLOSE="core.drawer.close",le.GUEST_LOCALE_CHANGED="core.guest.locale.changed"),le}var Nu={},cm;function uS(){return cm||(cm=1,Object.defineProperty(Nu,"__esModule",{value:!0})),Nu}var Ss={},fm;function cS(){if(fm)return Ss;fm=1,Object.defineProperty(Ss,"__esModule",{value:!0});const e=At(),n=()=>({type:e.DRAWER_CLOSE});return Ss.default=n,Ss}var xs={},dm;function fS(){if(dm)return xs;dm=1,Object.defineProperty(xs,"__esModule",{value:!0});const e=At(),n=(i,s)=>({type:e.GUEST_FEEDBACK_RESPONSE,payload:{satisfaction:i,intent:s}});return xs.default=n,xs}var bs={},hm;function dS(){if(hm)return bs;hm=1,Object.defineProperty(bs,"__esModule",{value:!0});const e=At(),n=i=>({type:e.GUEST_CONNECTED,payload:{sessionId:i}});return bs.default=n,bs}var Ts={},pm;function hS(){if(pm)return Ts;pm=1,Object.defineProperty(Ts,"__esModule",{value:!0});const e=At(),n=i=>({type:e.GUEST_DISCONNECTED,payload:{sessionId:i}});return Ts.default=n,Ts}var Cs={},mm;function pS(){if(mm)return Cs;mm=1,Object.defineProperty(Cs,"__esModule",{value:!0});const e=At(),n=(i,s)=>({type:e.GUEST_LOCALE_CHANGED,payload:{previousLocale:i,newLocale:s}});return Cs.default=n,Cs}var ks={},gm;function mS(){if(gm)return ks;gm=1,Object.defineProperty(ks,"__esModule",{value:!0});const e=At(),n=i=>({type:e.DRAWER_OPEN,payload:{parameters:{contentUrl:i}}});return ks.default=n,ks}var Rs={},je={},ym;function tf(){if(ym)return je;ym=1,Object.defineProperty(je,"__esModule",{value:!0}),je.getStringRepresentationFromMessage=je.MessageTypeEnum=je.AudioMessage=je.FileMessage=je.ImageMessage=je.VideoMessage=je.MarkdownMessage=je.DetailMessage=je.TextMessage=je.Message=void 0;class e{constructor(b,m){xe(this,"type");xe(this,"sender");xe(this,"quickReplies");this.type=b,this.sender=m,this.quickReplies=[]}addQuickReply(b,m){this.quickReplies.push({label:b,payload:m})}}je.Message=e;class n extends e{constructor(m,w){super(p.TEXT,w);xe(this,"text");this.text=m}}je.TextMessage=n;class i extends e{constructor(m,w){super(p.DETAIL,w);xe(this,"title");xe(this,"subtitle");xe(this,"text");xe(this,"imageUrl");xe(this,"itemUrl");xe(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)}}je.DetailMessage=i;class s extends e{constructor(m,w,_){super(p.MARKDOWN,_);xe(this,"markdown");xe(this,"excerpt");xe(this,"className");this.markdown=m,this.excerpt=w,this.className=""}setClassName(m){this.className=m}}je.MarkdownMessage=s;class l extends e{constructor(m,w){super(p.VIDEO,w);xe(this,"url");this.url=m}}je.VideoMessage=l;class u extends e{constructor(m,w){super(p.IMAGE,w);xe(this,"url");this.url=m}}je.ImageMessage=u;class d extends e{constructor(m,w){super(p.FILE,w);xe(this,"url");this.url=m}}je.FileMessage=d;class h extends e{constructor(m,w){super(p.AUDIO,w);xe(this,"url");this.url=m}}je.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||(je.MessageTypeEnum=p={}));const v=y=>{switch(y.type){case p.TEXT:return y.text;case p.DETAIL:{const b=y;return`${b.title} // ${b.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 je.getStringRepresentationFromMessage=v,je}var kt={},vm;function rf(){if(vm)return kt;vm=1,Object.defineProperty(kt,"__esModule",{value:!0}),kt.UserType=kt.PersonUser=kt.GuestUser=kt.BotUser=kt.User=void 0;class e{constructor(d,h,p,v){xe(this,"type");xe(this,"id");xe(this,"name");xe(this,"avatar");this.type=d,this.id=h,this.name=p,this.avatar=v}}kt.User=e;class n extends e{constructor(){super(l.BOT,null,"Chatbot","bot.svg")}}kt.BotUser=n;class i extends e{constructor(){super(l.GUEST,null,"Guest","visitor.svg")}}kt.GuestUser=i;class s extends e{constructor(d,h,p){super(l.PERSON,d,h,p)}}kt.PersonUser=s;var l;return function(u){u.GUEST="GUEST",u.BOT="BOT",u.PERSON="PERSON"}(l||(kt.UserType=l={})),kt}var _m;function gS(){if(_m)return Rs;_m=1,Object.defineProperty(Rs,"__esModule",{value:!0});const e=tf(),n=rf(),i=At(),s=l=>{const u=new e.TextMessage(l,new n.GuestUser);return{type:i.MESSAGE_FROM_GUEST,message:u}};return Rs.default=s,Rs}var Os={},Em;function yS(){if(Em)return Os;Em=1,Object.defineProperty(Os,"__esModule",{value:!0});const e=tf(),n=rf(),i=At(),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 Os.default=s,Os}var Ns={},wm;function vS(){if(wm)return Ns;wm=1,Object.defineProperty(Ns,"__esModule",{value:!0});const e=At(),n=i=>({type:e.NLU_REQUEST_EVENT,event:i});return Ns.default=n,Ns}var As={},Sm;function _S(){if(Sm)return As;Sm=1,Object.defineProperty(As,"__esModule",{value:!0});const e=At(),n=()=>({type:e.RESTART_CHAT_REQUEST});return As.default=n,As}var Is={},xm;function ES(){if(xm)return Is;xm=1,Object.defineProperty(Is,"__esModule",{value:!0});const e=At(),n=i=>({type:e.MESSAGE_TO_GUEST,message:i});return Is.default=n,Is}var Ds={},bm;function wS(){if(bm)return Ds;bm=1,Object.defineProperty(Ds,"__esModule",{value:!0});const e=At(),n=(i,s)=>({type:e.TRANSCRIPT_ITEM_GUEST_REACTION,payload:{actionId:i,reaction:s}});return Ds.default=n,Ds}var Tm;function Cm(){return Tm||(Tm=1,function(e){var n=Ct&&Ct.__createBinding||(Object.create?function(N,x,k,T){T===void 0&&(T=k);var F=Object.getOwnPropertyDescriptor(x,k);(!F||("get"in F?!x.__esModule:F.writable||F.configurable))&&(F={enumerable:!0,get:function(){return x[k]}}),Object.defineProperty(N,T,F)}:function(N,x,k,T){T===void 0&&(T=k),N[T]=x[k]}),i=Ct&&Ct.__setModuleDefault||(Object.create?function(N,x){Object.defineProperty(N,"default",{enumerable:!0,value:x})}:function(N,x){N.default=x}),s=Ct&&Ct.__importStar||function(){var N=function(x){return N=Object.getOwnPropertyNames||function(k){var T=[];for(var F in k)Object.prototype.hasOwnProperty.call(k,F)&&(T[T.length]=F);return T},N(x)};return function(x){if(x&&x.__esModule)return x;var k={};if(x!=null)for(var T=N(x),F=0;F<T.length;F++)T[F]!=="default"&&n(k,x,T[F]);return i(k,x),k}}(),l=Ct&&Ct.__exportStar||function(N,x){for(var k in N)k!=="default"&&!Object.prototype.hasOwnProperty.call(x,k)&&n(x,N,k)},u=Ct&&Ct.__importDefault||function(N){return N&&N.__esModule?N:{default:N}};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(At()),l(uS(),e);const d=u(cS());e.closeDrawer=d.default;const h=u(fS());e.feedbackFromGuestResponse=h.default;const p=u(dS());e.guestConnected=p.default;const v=u(hS());e.guestDisconnected=v.default;const y=u(pS());e.guestLocaleChanged=y.default;const b=u(mS());e.openDrawer=b.default;const m=u(gS());e.receiveTextMessageFromGuest=m.default;const w=u(yS());e.receiveTextMessageWithoutAnalysisFromGuest=w.default;const _=u(vS());e.requestNLUEvent=_.default;const S=u(_S());e.restartChatRequest=S.default;const R=u(ES());e.sendMessageToGuest=R.default;const O=u(wS());e.transcriptItemGuestReaction=O.default}(Ct)),Ct}var Rt={},Au={},km;function SS(){return km||(km=1,Object.defineProperty(Au,"__esModule",{value:!0})),Au}var $i={},Rm;function xS(){if(Rm)return $i;Rm=1,Object.defineProperty($i,"__esModule",{value:!0}),$i.NullableKnowledgeBaseAdapter=void 0;class e{async createApiKnowledgeBase(i){throw new Error("Method not implemented.")}async updateApiKnowledgeBase(i,s){throw new Error("Method not implemented.")}async deleteApiKnowledgeBase(i){throw new Error("Method not implemented.")}async upsertApiKnowledgeBase(i){throw new Error("Method not implemented.")}async findApiKnowledgeBaseById(i){throw new Error("Method not implemented.")}async findApiKnowledgeBaseByName(i){throw new Error("Method not implemented.")}async findApiKnowledgeBases(){throw new Error("Method not implemented.")}async deleteApiKnowledgeBaseByName(i){throw new Error("Method not implemented.")}async findKnowledgeBaseEntries(i){throw new Error("Method not implemented.")}async createKnowledgeBaseEntry(i,s){throw new Error("Method not implemented.")}async updateKnowledgeBaseEntry(i,s,l){throw new Error("Method not implemented.")}async deleteKnowledgeBaseEntry(i,s){throw new Error("Method not implemented.")}async upsertKnowledgeBaseEntry(i,s){throw new Error("Method not implemented.")}async retrieveKnowledgeBaseEntryConfig(i,s){throw new Error("Method not implemented.")}async deleteKnowledgeBaseEntriesIndexedBeforeDate(i,s){throw new Error("Method not implemented.")}async findKnowledgeBaseEntryAttachments(i,s){throw new Error("Method not implemented.")}async createKnowledgeBaseEntryAttachment(i,s,l){throw new Error("Method not implemented.")}async updateKnowledgeBaseEntryAttachment(i,s,l,u){throw new Error("Method not implemented.")}async deleteKnowledgeBaseEntryAttachment(i,s,l){throw new Error("Method not implemented.")}async setIndexingStatus(i,s){throw new Error("Method not implemented.")}async subscribeToReindex(i,s){throw new Error("Method not implemented.")}isContentTypeSupported(i){throw new Error("Method not implemented.")}}return $i.NullableKnowledgeBaseAdapter=e,$i}var Om;function bS(){if(Om)return Rt;Om=1;var e=Rt&&Rt.__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=Rt&&Rt.__setModuleDefault||(Object.create?function(l,u){Object.defineProperty(l,"default",{enumerable:!0,value:u})}:function(l,u){l.default=u}),i=Rt&&Rt.__importStar||function(){var l=function(u){return l=Object.getOwnPropertyNames||function(d){var h=[];for(var p in d)Object.prototype.hasOwnProperty.call(d,p)&&(h[h.length]=p);return h},l(u)};return function(u){if(u&&u.__esModule)return u;var d={};if(u!=null)for(var h=l(u),p=0;p<h.length;p++)h[p]!=="default"&&e(d,u,h[p]);return n(d,u),d}}();Object.defineProperty(Rt,"__esModule",{value:!0}),Rt.NullableCmsAdapter=Rt.KnowledgeBase=void 0,Rt.KnowledgeBase=i(SS());const s=xS();return Rt.NullableCmsAdapter={knowledgeBase:new s.NullableKnowledgeBaseAdapter},Rt}var pn={},Iu={},Nm;function TS(){return Nm||(Nm=1,Object.defineProperty(Iu,"__esModule",{value:!0})),Iu}var Zt={},Am;function CS(){if(Am)return Zt;Am=1,Object.defineProperty(Zt,"__esModule",{value:!0}),Zt.ButtonTypeEnum=Zt.PostbackButton=Zt.UrlButton=Zt.Button=void 0;class e{constructor(u,d){xe(this,"title");xe(this,"type");this.title=u,this.type=d}}Zt.Button=e;class n extends e{constructor(d,h){super(d,s.WEB_URL);xe(this,"url");this.url=h}}Zt.UrlButton=n;class i extends e{constructor(d,h){super(d,s.POSTBACK);xe(this,"payload");this.payload=h}}Zt.PostbackButton=i;var s;return function(l){l.WEB_URL="web_url",l.POSTBACK="postback"}(s||(Zt.ButtonTypeEnum=s={})),Zt}var Du={},Im;function kS(){return Im||(Im=1,Object.defineProperty(Du,"__esModule",{value:!0})),Du}var qi={},Dm;function RS(){if(Dm)return qi;Dm=1,Object.defineProperty(qi,"__esModule",{value:!0}),qi.SatisfactionEnum=void 0;var e;return function(n){n.GOOD="GOOD",n.BAD="BAD"}(e||(qi.SatisfactionEnum=e={})),qi}var Pm;function Mm(){return Pm||(Pm=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(TS(),e),i(CS(),e),i(kS(),e),i(RS(),e),i(tf(),e),i(rf(),e)}(pn)),pn}var Fm;function OS(){return Fm||(Fm=1,function(e){var n=Kt&&Kt.__createBinding||(Object.create?function(u,d,h,p){p===void 0&&(p=h);var v=Object.getOwnPropertyDescriptor(d,h);(!v||("get"in v?!d.__esModule:v.writable||v.configurable))&&(v={enumerable:!0,get:function(){return d[h]}}),Object.defineProperty(u,p,v)}:function(u,d,h,p){p===void 0&&(p=h),u[p]=d[h]}),i=Kt&&Kt.__setModuleDefault||(Object.create?function(u,d){Object.defineProperty(u,"default",{enumerable:!0,value:d})}:function(u,d){u.default=d}),s=Kt&&Kt.__exportStar||function(u,d){for(var h in u)h!=="default"&&!Object.prototype.hasOwnProperty.call(d,h)&&n(d,u,h)},l=Kt&&Kt.__importStar||function(){var u=function(d){return u=Object.getOwnPropertyNames||function(h){var p=[];for(var v in h)Object.prototype.hasOwnProperty.call(h,v)&&(p[p.length]=v);return p},u(d)};return function(d){if(d&&d.__esModule)return d;var h={};if(d!=null)for(var p=u(d),v=0;v<p.length;v++)p[v]!=="default"&&n(h,d,p[v]);return i(h,d),h}}();Object.defineProperty(e,"__esModule",{value:!0}),e.Model=e.CMS=e.Actions=void 0,s(Cm(),e),e.Actions=l(Cm()),e.CMS=l(bS()),s(Mm(),e),e.Model=l(Mm())}(Kt)),Kt}var ge=OS();const $0=e=>n=>(e.payload.type!==ge.ActionTypes.MESSAGE_FROM_GUEST&&n(ge.receiveTextMessageWithoutAnalysisFromGuest(e.label,e.payload)),n(e.payload)),q0=e=>(n,i)=>{const{quickReplies:s}=i().chat,l=s.find(u=>e.toLocaleLowerCase().indexOf(u.label.toLocaleLowerCase())>-1);return n(l?$0({...l,label:e}):ge.receiveTextMessageFromGuest(e))},nf="MESSAGE_TO_PARENT_PAGE",of="RESTORE_PREVIOUS_CHAT_MESSAGES",sf="AUDIO_MESSAGE_FROM_USER",af="ENABLE_SPEECH_SUPPORT",lf="ENABLE_TRANSCRIPT_EXPORT",NS="EXPORT_TRANSCRIPT",uf="RECEIVE_SPEECH_TRANSCRIPTION",cf="SHOW_GENERAL_CONDITIONS",ff="ENABLE_CONVERSATION_RATING",df="SET_COMMANDS",V0="LOAD_SOURCE_INFOS_RESPONSE",W0="LOAD_SOURCE_INFOS_ERROR",hf="LOAD_SOURCE_INFOS_REQUEST",pf="CLOSE_SOURCE_INFOS",AS="webclient.get.started",K0="webclient.window.expand",Z0="webclient.window.close",Q0="webclient.transcript.pdf.download",IS=[nf,of,sf,af,lf,NS,uf,cf,ff,df,hf,pf],DS=e=>({type:sf,buffer:e}),PS=()=>({type:af}),MS=e=>({type:uf,transcription:e}),FS=e=>({type:lf,methods:e}),LS=e=>({type:ge.ActionTypes.TRANSCRIPT_MAIL_REQUEST,payload:{parameters:{mailTo:e}}}),BS=()=>({type:cf}),jS=e=>({type:df,payload:{commands:e}}),US=()=>({type:Q0}),HS=({rating:e})=>({type:ff,payload:{rating:e}}),zS=(e,n)=>({type:ge.ActionTypes.CONVERSATION_RATING_FROM_GUEST,payload:{value:e,feedback:n}}),X0=e=>ge.requestNLUEvent(e),GS=e=>({type:of,messages:e}),$S=e=>{switch(e.type){case ge.ButtonTypeEnum.WEB_URL:return Y0(e.url);case ge.ButtonTypeEnum.POSTBACK:return e.payload;default:throw new Error(`unknown button type ${e.type}`)}},qS=e=>Y0(e),Y0=e=>({type:nf,message:{type:"webclient.change.url",url:e}});/*! js-cookie v3.0.5 | MIT */function Ps(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 VS={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 Ac(e,n){function i(l,u,d){if(!(typeof document>"u")){d=Ps({},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("="),v=p.slice(1).join("=");try{var y=decodeURIComponent(p[0]);if(d[y]=e.read(v,y),l===y)break}catch{}}return l?d[l]:d}}return Object.create({set:i,get:s,remove:function(l,u){i(l,"",Ps({},u,{expires:-1}))},withAttributes:function(l){return Ac(this.converter,Ps({},this.attributes,l))},withConverter:function(l){return Ac(Ps({},this.converter,l),this.attributes)}},{attributes:{value:Object.freeze(n)},converter:{value:Object.freeze(e)}})}var Pu=Ac(VS,{path:"/"});function it(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 WS=typeof Symbol=="function"&&Symbol.observable||"@@observable",Lm=WS,Mu=()=>Math.random().toString(36).substring(7).split("").join("."),KS={INIT:`@@redux/INIT${Mu()}`,REPLACE:`@@redux/REPLACE${Mu()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${Mu()}`},Js=KS;function mf(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 J0(e,n,i){if(typeof e!="function")throw new Error(it(2));if(typeof n=="function"&&typeof i=="function"||typeof i=="function"&&typeof arguments[3]=="function")throw new Error(it(0));if(typeof n=="function"&&typeof i>"u"&&(i=n,n=void 0),typeof i<"u"){if(typeof i!="function")throw new Error(it(1));return i(J0)(e,n)}let s=e,l=n,u=new Map,d=u,h=0,p=!1;function v(){d===u&&(d=new Map,u.forEach((R,O)=>{d.set(O,R)}))}function y(){if(p)throw new Error(it(3));return l}function b(R){if(typeof R!="function")throw new Error(it(4));if(p)throw new Error(it(5));let O=!0;v();const N=h++;return d.set(N,R),function(){if(O){if(p)throw new Error(it(6));O=!1,v(),d.delete(N),u=null}}}function m(R){if(!mf(R))throw new Error(it(7));if(typeof R.type>"u")throw new Error(it(8));if(typeof R.type!="string")throw new Error(it(17));if(p)throw new Error(it(9));try{p=!0,l=s(l,R)}finally{p=!1}return(u=d).forEach(N=>{N()}),R}function w(R){if(typeof R!="function")throw new Error(it(10));s=R,m({type:Js.REPLACE})}function _(){const R=b;return{subscribe(O){if(typeof O!="object"||O===null)throw new Error(it(11));function N(){const k=O;k.next&&k.next(y())}return N(),{unsubscribe:R(N)}},[Lm](){return this}}}return m({type:Js.INIT}),{dispatch:m,subscribe:b,getState:y,replaceReducer:w,[Lm]:_}}function ZS(e){Object.keys(e).forEach(n=>{const i=e[n];if(typeof i(void 0,{type:Js.INIT})>"u")throw new Error(it(12));if(typeof i(void 0,{type:Js.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(it(13))})}function ey(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{ZS(i)}catch(u){l=u}return function(d={},h){if(l)throw l;let p=!1;const v={};for(let y=0;y<s.length;y++){const b=s[y],m=i[b],w=d[b],_=m(w,h);if(typeof _>"u")throw h&&h.type,new Error(it(14));v[b]=_,p=p||_!==w}return p=p||s.length!==Object.keys(d).length,p?v:d}}function ea(...e){return e.length===0?n=>n:e.length===1?e[0]:e.reduce((n,i)=>(...s)=>n(i(...s)))}function QS(...e){return n=>(i,s)=>{const l=n(i,s);let u=()=>{throw new Error(it(15))};const d={getState:l.getState,dispatch:(p,...v)=>u(p,...v)},h=e.map(p=>p(d));return u=ea(...h)(l.dispatch),{...l,dispatch:u}}}function XS(e){return mf(e)&&"type"in e&&typeof e.type=="string"}var ty=Symbol.for("immer-nothing"),Bm=Symbol.for("immer-draftable"),Ot=Symbol.for("immer-state");function Yt(e,...n){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var Xn=Object.getPrototypeOf;function Sn(e){return!!e&&!!e[Ot]}function kr(e){var n;return e?ry(e)||Array.isArray(e)||!!e[Bm]||!!((n=e.constructor)!=null&&n[Bm])||ca(e)||fa(e):!1}var YS=Object.prototype.constructor.toString();function ry(e){if(!e||typeof e!="object")return!1;const n=Xn(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)===YS}function ta(e,n){ua(e)===0?Reflect.ownKeys(e).forEach(i=>{n(i,e[i],e)}):e.forEach((i,s)=>n(s,i,e))}function ua(e){const n=e[Ot];return n?n.type_:Array.isArray(e)?1:ca(e)?2:fa(e)?3:0}function Ic(e,n){return ua(e)===2?e.has(n):Object.prototype.hasOwnProperty.call(e,n)}function ny(e,n,i){const s=ua(e);s===2?e.set(n,i):s===3?e.add(i):e[n]=i}function JS(e,n){return e===n?e!==0||1/e===1/n:e!==e&&n!==n}function ca(e){return e instanceof Map}function fa(e){return e instanceof Set}function vn(e){return e.copy_||e.base_}function Dc(e,n){if(ca(e))return new Map(e);if(fa(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);const i=ry(e);if(n===!0||n==="class_only"&&!i){const s=Object.getOwnPropertyDescriptors(e);delete s[Ot];let l=Reflect.ownKeys(s);for(let u=0;u<l.length;u++){const d=l[u],h=s[d];h.writable===!1&&(h.writable=!0,h.configurable=!0),(h.get||h.set)&&(s[d]={configurable:!0,writable:!0,enumerable:h.enumerable,value:e[d]})}return Object.create(Xn(e),s)}else{const s=Xn(e);if(s!==null&&i)return{...e};const l=Object.create(s);return Object.assign(l,e)}}function gf(e,n=!1){return da(e)||Sn(e)||!kr(e)||(ua(e)>1&&(e.set=e.add=e.clear=e.delete=e2),Object.freeze(e),n&&Object.entries(e).forEach(([i,s])=>gf(s,!0))),e}function e2(){Yt(2)}function da(e){return Object.isFrozen(e)}var t2={};function xn(e){const n=t2[e];return n||Yt(0,e),n}var to;function iy(){return to}function r2(e,n){return{drafts_:[],parent_:e,immer_:n,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function jm(e,n){n&&(xn("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=n)}function Pc(e){Mc(e),e.drafts_.forEach(n2),e.drafts_=null}function Mc(e){e===to&&(to=e.parent_)}function Um(e){return to=r2(to,e)}function n2(e){const n=e[Ot];n.type_===0||n.type_===1?n.revoke_():n.revoked_=!0}function Hm(e,n){n.unfinalizedDrafts_=n.drafts_.length;const i=n.drafts_[0];return e!==void 0&&e!==i?(i[Ot].modified_&&(Pc(n),Yt(4)),kr(e)&&(e=ra(n,e),n.parent_||na(n,e)),n.patches_&&xn("Patches").generateReplacementPatches_(i[Ot].base_,e,n.patches_,n.inversePatches_)):e=ra(n,i,[]),Pc(n),n.patches_&&n.patchListener_(n.patches_,n.inversePatches_),e!==ty?e:void 0}function ra(e,n,i){if(da(n))return n;const s=n[Ot];if(!s)return ta(n,(l,u)=>zm(e,s,n,l,u,i)),n;if(s.scope_!==e)return n;if(!s.modified_)return na(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),ta(u,(h,p)=>zm(e,s,l,h,p,i,d)),na(e,l,!1),i&&e.patches_&&xn("Patches").generatePatches_(s,i,e.patches_,e.inversePatches_)}return s.copy_}function zm(e,n,i,s,l,u,d){if(Sn(l)){const h=u&&n&&n.type_!==3&&!Ic(n.assigned_,s)?u.concat(s):void 0,p=ra(e,l,h);if(ny(i,s,p),Sn(p))e.canAutoFreeze_=!1;else return}else d&&i.add(l);if(kr(l)&&!da(l)){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;ra(e,l),(!n||!n.scope_.parent_)&&typeof s!="symbol"&&Object.prototype.propertyIsEnumerable.call(i,s)&&na(e,l)}}function na(e,n,i=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&gf(n,i)}function i2(e,n){const i=Array.isArray(e),s={type_:i?1:0,scope_:n?n.scope_:iy(),modified_:!1,finalized_:!1,assigned_:{},parent_:n,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let l=s,u=yf;i&&(l=[s],u=ro);const{revoke:d,proxy:h}=Proxy.revocable(l,u);return s.draft_=h,s.revoke_=d,h}var yf={get(e,n){if(n===Ot)return e;const i=vn(e);if(!Ic(i,n))return o2(e,i,n);const s=i[n];return e.finalized_||!kr(s)?s:s===Fu(e.base_,n)?(Lu(e),e.copy_[n]=Lc(s,e)):s},has(e,n){return n in vn(e)},ownKeys(e){return Reflect.ownKeys(vn(e))},set(e,n,i){const s=oy(vn(e),n);if(s!=null&&s.set)return s.set.call(e.draft_,i),!0;if(!e.modified_){const l=Fu(vn(e),n),u=l==null?void 0:l[Ot];if(u&&u.base_===i)return e.copy_[n]=i,e.assigned_[n]=!1,!0;if(JS(i,l)&&(i!==void 0||Ic(e.base_,n)))return!0;Lu(e),Fc(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 Fu(e.base_,n)!==void 0||n in e.base_?(e.assigned_[n]=!1,Lu(e),Fc(e)):delete e.assigned_[n],e.copy_&&delete e.copy_[n],!0},getOwnPropertyDescriptor(e,n){const i=vn(e),s=Reflect.getOwnPropertyDescriptor(i,n);return s&&{writable:!0,configurable:e.type_!==1||n!=="length",enumerable:s.enumerable,value:i[n]}},defineProperty(){Yt(11)},getPrototypeOf(e){return Xn(e.base_)},setPrototypeOf(){Yt(12)}},ro={};ta(yf,(e,n)=>{ro[e]=function(){return arguments[0]=arguments[0][0],n.apply(this,arguments)}});ro.deleteProperty=function(e,n){return ro.set.call(this,e,n,void 0)};ro.set=function(e,n,i){return yf.set.call(this,e[0],n,i,e[0])};function Fu(e,n){const i=e[Ot];return(i?vn(i):e)[n]}function o2(e,n,i){var l;const s=oy(n,i);return s?"value"in s?s.value:(l=s.get)==null?void 0:l.call(e.draft_):void 0}function oy(e,n){if(!(n in e))return;let i=Xn(e);for(;i;){const s=Object.getOwnPropertyDescriptor(i,n);if(s)return s;i=Xn(i)}}function Fc(e){e.modified_||(e.modified_=!0,e.parent_&&Fc(e.parent_))}function Lu(e){e.copy_||(e.copy_=Dc(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var s2=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,...v){return d.produce(p,y=>i.call(this,y,...v))}}typeof i!="function"&&Yt(6),s!==void 0&&typeof s!="function"&&Yt(7);let l;if(kr(n)){const u=Um(this),d=Lc(n,void 0);let h=!0;try{l=i(d),h=!1}finally{h?Pc(u):Mc(u)}return jm(u,s),Hm(l,u)}else if(!n||typeof n!="object"){if(l=i(n),l===void 0&&(l=n),l===ty&&(l=void 0),this.autoFreeze_&&gf(l,!0),s){const u=[],d=[];xn("Patches").generateReplacementPatches_(n,l,u,d),s(u,d)}return l}else Yt(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)||Yt(8),Sn(e)&&(e=a2(e));const n=Um(this),i=Lc(e,void 0);return i[Ot].isManual_=!0,Mc(n),i}finishDraft(e,n){const i=e&&e[Ot];(!i||!i.isManual_)&&Yt(9);const{scope_:s}=i;return jm(s,n),Hm(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=xn("Patches").applyPatches_;return Sn(e)?s(e,n):this.produce(e,l=>s(l,n))}};function Lc(e,n){const i=ca(e)?xn("MapSet").proxyMap_(e,n):fa(e)?xn("MapSet").proxySet_(e,n):i2(e,n);return(n?n.scope_:iy()).drafts_.push(i),i}function a2(e){return Sn(e)||Yt(10,e),sy(e)}function sy(e){if(!kr(e)||da(e))return e;const n=e[Ot];let i;if(n){if(!n.modified_)return n.base_;n.finalized_=!0,i=Dc(e,n.scope_.immer_.useStrictShallowCopy_)}else i=Dc(e,!0);return ta(i,(s,l)=>{ny(i,s,sy(l))}),n&&(n.finalized_=!1),i}var Nt=new s2,ay=Nt.produce;Nt.produceWithPatches.bind(Nt);Nt.setAutoFreeze.bind(Nt);Nt.setUseStrictShallowCopy.bind(Nt);Nt.applyPatches.bind(Nt);Nt.createDraft.bind(Nt);Nt.finishDraft.bind(Nt);function ly(e){return({dispatch:i,getState:s})=>l=>u=>typeof u=="function"?u(i,s,e):l(u)}var l2=ly(),u2=ly,c2=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?ea:ea.apply(null,arguments)};function Gm(e,n){function i(...s){if(n){let l=n(...s);if(!l)throw new Error(br(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=>XS(s)&&s.type===e,i}var uy=class Xi extends Array{constructor(...n){super(...n),Object.setPrototypeOf(this,Xi.prototype)}static get[Symbol.species](){return Xi}concat(...n){return super.concat.apply(this,n)}prepend(...n){return n.length===1&&Array.isArray(n[0])?new Xi(...n[0].concat(this)):new Xi(...n.concat(this))}};function $m(e){return kr(e)?ay(e,()=>{}):e}function qm(e,n,i){return e.has(n)?e.get(n):e.set(n,i(n)).get(n)}function f2(e){return typeof e=="boolean"}var d2=()=>function(n){const{thunk:i=!0,immutableCheck:s=!0,serializableCheck:l=!0,actionCreatorCheck:u=!0}=n??{};let d=new uy;return i&&(f2(i)?d.push(l2):d.push(u2(i.extraArgument))),d},h2="RTK_autoBatch",Vm=e=>n=>{setTimeout(n,e)},p2=(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:Vm(10):e.type==="callback"?e.queueNotification:Vm(e.timeout),v=()=>{d=!1,u&&(u=!1,h.forEach(y=>y()))};return Object.assign({},s,{subscribe(y){const b=()=>l&&y(),m=s.subscribe(b);return h.add(y),()=>{m(),h.delete(y)}},dispatch(y){var b;try{return l=!((b=y==null?void 0:y.meta)!=null&&b[h2]),u=!l,u&&(d||(d=!0,p(v))),s.dispatch(y)}finally{l=!0}}})},m2=e=>function(i){const{autoBatch:s=!0}=i??{};let l=new uy(e);return s&&l.push(p2(typeof s=="object"?s:void 0)),l};function g2(e){const n=d2(),{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(mf(i))h=ey(i);else throw new Error(br(1));let p;typeof s=="function"?p=s(n):p=n();let v=ea;l&&(v=c2({trace:!1,...typeof l=="object"&&l}));const y=QS(...p),b=m2(y);let m=typeof d=="function"?d(b):b();const w=v(...m);return J0(h,u,w)}function cy(e){const n={},i=[];let s;const l={addCase(u,d){const h=typeof u=="string"?u:u.type;if(!h)throw new Error(br(28));if(h in n)throw new Error(br(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 y2(e){return typeof e=="function"}function v2(e,n){let[i,s,l]=cy(n),u;if(y2(e))u=()=>$m(e());else{const h=$m(e);u=()=>h}function d(h=u(),p){let v=[i[p.type],...s.filter(({matcher:y})=>y(p)).map(({reducer:y})=>y)];return v.filter(y=>!!y).length===0&&(v=[l]),v.reduce((y,b)=>{if(b)if(Sn(y)){const w=b(y,p);return w===void 0?y:w}else{if(kr(y))return ay(y,m=>b(m,p));{const m=b(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 _2=Symbol.for("rtk-slice-createasyncthunk");function E2(e,n){return`${e}/${n}`}function w2({creators:e}={}){var i;const n=(i=e==null?void 0:e.asyncThunk)==null?void 0:i[_2];return function(l){const{name:u,reducerPath:d=u}=l;if(!u)throw new Error(br(11));const h=(typeof l.reducers=="function"?l.reducers(x2()):l.reducers)||{},p=Object.keys(h),v={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},y={addCase(x,k){const T=typeof x=="string"?x:x.type;if(!T)throw new Error(br(12));if(T in v.sliceCaseReducersByType)throw new Error(br(13));return v.sliceCaseReducersByType[T]=k,y},addMatcher(x,k){return v.sliceMatchers.push({matcher:x,reducer:k}),y},exposeAction(x,k){return v.actionCreators[x]=k,y},exposeCaseReducer(x,k){return v.sliceCaseReducersByName[x]=k,y}};p.forEach(x=>{const k=h[x],T={reducerName:x,type:E2(u,x),createNotation:typeof l.reducers=="function"};T2(k)?k2(T,k,y,n):b2(T,k,y)});function b(){const[x={},k=[],T=void 0]=typeof l.extraReducers=="function"?cy(l.extraReducers):[l.extraReducers],F={...x,...v.sliceCaseReducersByType};return v2(l.initialState,z=>{for(let V in F)z.addCase(V,F[V]);for(let V of v.sliceMatchers)z.addMatcher(V.matcher,V.reducer);for(let V of k)z.addMatcher(V.matcher,V.reducer);T&&z.addDefaultCase(T)})}const m=x=>x,w=new Map;let _;function S(x,k){return _||(_=b()),_(x,k)}function R(){return _||(_=b()),_.getInitialState()}function O(x,k=!1){function T(z){let V=z[x];return typeof V>"u"&&k&&(V=R()),V}function F(z=m){const V=qm(w,k,()=>new WeakMap);return qm(V,z,()=>{const fe={};for(const[te,oe]of Object.entries(l.selectors??{}))fe[te]=S2(oe,z,R,k);return fe})}return{reducerPath:x,getSelectors:F,get selectors(){return F(T)},selectSlice:T}}const N={name:u,reducer:S,actions:v.actionCreators,caseReducers:v.sliceCaseReducersByName,getInitialState:R,...O(d),injectInto(x,{reducerPath:k,...T}={}){const F=k??d;return x.inject({reducerPath:F,reducer:S},T),{...N,...O(F,!0)}}};return N}}function S2(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 fy=w2();function x2(){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 b2({type:e,reducerName:n,createNotation:i},s,l){let u,d;if("reducer"in s){if(i&&!C2(s))throw new Error(br(17));u=s.reducer,d=s.prepare}else u=s;l.addCase(e,u).exposeCaseReducer(n,u).exposeAction(n,d?Gm(e,d):Gm(e))}function T2(e){return e._reducerDefinitionType==="asyncThunk"}function C2(e){return e._reducerDefinitionType==="reducerWithPrepare"}function k2({type:e,reducerName:n},i,s,l){if(!l)throw new Error(br(18));const{payloadCreator:u,fulfilled:d,pending:h,rejected:p,settled:v,options:y}=i,b=l(e,u,y);s.exposeAction(n,b),d&&s.addCase(b.fulfilled,d),h&&s.addCase(b.pending,h),p&&s.addCase(b.rejected,p),v&&s.addMatcher(b.settled,v),s.exposeCaseReducer(n,{fulfilled:d||Ms,pending:h||Ms,rejected:p||Ms,settled:v||Ms})}function Ms(){}function br(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 R2={useStartScreen:void 0,formValues:{}},dy=fy({name:"start-screen",initialState:R2,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:O2,disableStartScreen:N2,startChat:A2,showStartScreen:I2}=dy.actions,D2=dy.reducer,hy="RESET_CHAT_STATE",P2=()=>({type:Z0}),M2=()=>({type:hy}),Wm=e=>(n,i)=>{const s=i();return n({type:hf,payload:{chunkId:e}}),fetch(`/cms/public/vector-store/chunks/${e}`,{headers:{"Accept-Language":s.intl.locale}}).then(l=>{if(!l.ok)throw n({type:W0}),new Error(`HTTP error! Status: ${l.status}`);return l.json()}).then(l=>n({type:V0,payload:l}))},F2=()=>({type:pf}),nt=[];for(let e=0;e<256;++e)nt.push((e+256).toString(16).slice(1));function L2(e,n=0){return(nt[e[n+0]]+nt[e[n+1]]+nt[e[n+2]]+nt[e[n+3]]+"-"+nt[e[n+4]]+nt[e[n+5]]+"-"+nt[e[n+6]]+nt[e[n+7]]+"-"+nt[e[n+8]]+nt[e[n+9]]+"-"+nt[e[n+10]]+nt[e[n+11]]+nt[e[n+12]]+nt[e[n+13]]+nt[e[n+14]]+nt[e[n+15]]).toLowerCase()}let Bu;const B2=new Uint8Array(16);function j2(){if(!Bu){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");Bu=crypto.getRandomValues.bind(crypto)}return Bu(B2)}const U2=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),Km={randomUUID:U2};function Bc(e,n,i){var l;if(Km.randomUUID&&!e)return Km.randomUUID();e=e||{};const s=e.random??((l=e.rng)==null?void 0:l.call(e))??j2();if(s.length<16)throw new Error("Random bytes length must be >= 16");return s[6]=s[6]&15|64,s[8]=s[8]&63|128,L2(s)}const vf="CONNECT",_f="CONNECTING",Ef="CONNECTED",wf="DISCONNECTED",Sf="RECONNECTED",xf="RESTORE_SESSION_ID",ha="START",pa="CLEAR_SESSION_ID",H2=[vf,_f,Ef,wf,Sf,xf],z2=(e,n)=>({type:vf,clientName:e,querystrings:n}),G2=e=>({type:xf,sessionId:e}),$2=()=>({type:_f}),q2=()=>({type:Ef}),V2=()=>({type:wf}),W2=()=>({type:Sf}),py=(e,n)=>(i,s)=>{const l=s().connection,u=s().startScreen.formValues;let d=l.sessionId;d===void 0&&(d=Bc());let h=l.userId;if(h===void 0){const p=Pu.get("bubble-chat-userId")||Pu.get("bf-webclient-userId");h=p||Bc(),Pu.set("bubble-chat-userId",h)}i({type:ha,payload:{sessionId:d,userId:h,clientName:e,querystrings:{...n,...u}}})},ma=(e,n)=>(i,s)=>{const l=s().connection.sessionId||"";if(i(K2(l)),i(M2()),s().startScreen.useStartScreen)i(I2());else return i(py(e,n))},K2=e=>({type:pa,payload:{sessionId:e}}),Je=()=>{const e=aa();return i=>{const s=e.formatMessage({id:i});return s===i?void 0:s}};var En=(e=>(e[e.CONNECTING=0]="CONNECTING",e[e.CONNECTED=1]="CONNECTED",e[e.RECONNECTED=2]="RECONNECTED",e[e.DISCONNECTED=3]="DISCONNECTED",e))(En||{}),my=(e=>(e.GUEST="GUEST",e.BOT="BOT",e.PERSON="PERSON",e))(my||{});const Z2="_container_q2uun_1",Q2="_chatcontent_q2uun_6",X2="_accessabilityHidden_q2uun_12",ju={container:Z2,chatcontent:Q2,accessabilityHidden:X2},Y2="_messageContainer_1m8fy_1",J2="_messages_1m8fy_13",Zm={messageContainer:Y2,messages:J2};function _n(){return _n=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},_n.apply(this,arguments)}const ex=["children","options"],se={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",text:"27",textBolded:"28",textEmphasized:"29",textEscaped:"30",textMarked:"31",textStrikethroughed:"32",unorderedList:"33"};var Qm;(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"})(Qm||(Qm={}));const Xm=["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"}),Ym={amp:"&",apos:"'",gt:">",lt:"<",nbsp:" ",quot:"“"},tx=["style","script"],rx=/([-A-Z0-9_:]+)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|(?:\{((?:\\.|{[^}]*?}|[^}])*)\})))?/gi,nx=/mailto:/i,ix=/\n{2,}$/,gy=/^(\s*>[\s\S]*?)(?=\n\n|$)/,ox=/^ *> ?/gm,sx=/^(?:\[!([^\]]*)\]\n)?([\s\S]*)/,ax=/^ {2,}\n/,lx=/^(?:( *[-*_])){3,} *(?:\n *)+\n/,yy=/^(?: {1,3})?(`{3,}|~{3,}) *(\S+)? *([^\n]*?)?\n([\s\S]*?)(?:\1\n?|$)/,vy=/^(?: {4}[^\n]+\n*)+(?:\n *)+\n?/,ux=/^(`+)((?:\\`|[^`])+)\1/,cx=/^(?:\n *)*\n/,fx=/\r\n?/g,dx=/^\[\^([^\]]+)](:(.*)((\n+ {4,}.*)|(\n(?!\[\^).+))*)/,hx=/^\[\^([^\]]+)]/,px=/\f/g,mx=/^---[ \t]*\n(.|\n)*\n---[ \t]*\n/,gx=/^\s*?\[(x|\s)\]/,_y=/^ *(#{1,6}) *([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,Ey=/^ *(#{1,6}) +([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,wy=/^([^\n]+)\n *(=|-){3,} *(?:\n *)+\n/,jc=/^ *(?!<[a-z][^ >/]* ?\/>)<([a-z][^ >/]*) ?((?:[^>]*[^/])?)>\n?(\s*(?:<\1[^>]*?>[\s\S]*?<\/\1>|(?!<\1\b)[\s\S])*?)<\/\1>(?!<\/\1>)\n*/i,yx=/&([a-z0-9]+|#[0-9]{1,6}|#x[0-9a-fA-F]{1,6});/gi,Sy=/^<!--[\s\S]*?(?:-->)/,vx=/^(data|aria|x)-[a-z_][a-z\d_.-]*$/,Uc=/^ *<([a-z][a-z0-9:]*)(?:\s+((?:<.*?>|[^>])*))?\/?>(?!<\/\1>)(\s*\n)?/i,_x=/^\{.*\}$/,Ex=/^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/,wx=/^<([^ >]+@[^ >]+)>/,Sx=/^<([^ >]+:\/[^ >]+)>/,xx=/-([a-z])?/gi,xy=/^(\|.*)\n(?: *(\|? *[-:]+ *\|[-| :]*)\n((?:.*\|.*\n)*))?\n?/,bx=/^\[([^\]]*)\]:\s+<?([^\s>]+)>?\s*("([^"]*)")?/,Tx=/^!\[([^\]]*)\] ?\[([^\]]*)\]/,Cx=/^\[([^\]]*)\] ?\[([^\]]*)\]/,kx=/(\n|^[-*]\s|^#|^ {2,}|^-{2,}|^>\s)/,Rx=/\t/g,Ox=/(^ *\||\| *$)/g,Nx=/^ *:-+: *$/,Ax=/^ *:-+ *$/,Ix=/^ *-+: *$/,ga="((?:\\[.*?\\][([].*?[)\\]]|<.*?>(?:.*?<.*?>)?|`.*?`|\\\\\\1|[\\s\\S])+?)",Dx=new RegExp(`^([*_])\\1${ga}\\1\\1(?!\\1)`),Px=new RegExp(`^([*_])${ga}\\1(?!\\1)`),Mx=new RegExp(`^(==)${ga}\\1`),Fx=new RegExp(`^(~~)${ga}\\1`),Lx=/^\\([^0-9A-Za-z\s])/,Uu=/\\([^0-9A-Za-z\s])/g,Bx=/^([\s\S](?:(?! |[0-9]\.)[^*_~\-\n<`\\\[!])*)/,jx=/^\n+/,Ux=/^([ \t]*)/,Hx=/\\([^\\])/g,zx=/(?:^|\n)( *)$/,bf="(?:\\d+\\.)",Tf="(?:[*+-])";function by(e){return"( *)("+(e===1?bf:Tf)+") +"}const Ty=by(1),Cy=by(2);function ky(e){return new RegExp("^"+(e===1?Ty:Cy))}const Gx=ky(1),$x=ky(2);function Ry(e){return new RegExp("^"+(e===1?Ty:Cy)+"[^\\n]*(?:\\n(?!\\1"+(e===1?bf:Tf)+" )[^\\n]*)*(\\n|$)","gm")}const qx=Ry(1),Vx=Ry(2);function Oy(e){const n=e===1?bf:Tf;return new RegExp("^( *)("+n+") [\\s\\S]+?(?:\\n{2,}(?! )(?!\\1"+n+" (?!"+n+" ))\\n*|\\s*\\n*$)")}const Ny=Oy(1),Ay=Oy(2);function Jm(e,n){const i=n===1,s=i?Ny:Ay,l=i?qx:Vx,u=i?Gx:$x;return{match:Yn(function(d,h){const p=zx.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 v=i?+d[2]:void 0,y=d[0].replace(ix,`
84
+ */var tm;function qw(){if(tm)return Ce;tm=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,v=e?Symbol.for("react.concurrent_mode"):60111,y=e?Symbol.for("react.forward_ref"):60112,b=e?Symbol.for("react.suspense"):60113,m=e?Symbol.for("react.suspense_list"):60120,w=e?Symbol.for("react.memo"):60115,_=e?Symbol.for("react.lazy"):60116,S=e?Symbol.for("react.block"):60121,R=e?Symbol.for("react.fundamental"):60117,O=e?Symbol.for("react.responder"):60118,N=e?Symbol.for("react.scope"):60119;function x(T){if(typeof T=="object"&&T!==null){var F=T.$$typeof;switch(F){case n:switch(T=T.type,T){case p:case v:case s:case u:case l:case b:return T;default:switch(T=T&&T.$$typeof,T){case h:case y:case _:case w:case d:return T;default:return F}}case i:return F}}}function k(T){return x(T)===v}return Ce.AsyncMode=p,Ce.ConcurrentMode=v,Ce.ContextConsumer=h,Ce.ContextProvider=d,Ce.Element=n,Ce.ForwardRef=y,Ce.Fragment=s,Ce.Lazy=_,Ce.Memo=w,Ce.Portal=i,Ce.Profiler=u,Ce.StrictMode=l,Ce.Suspense=b,Ce.isAsyncMode=function(T){return k(T)||x(T)===p},Ce.isConcurrentMode=k,Ce.isContextConsumer=function(T){return x(T)===h},Ce.isContextProvider=function(T){return x(T)===d},Ce.isElement=function(T){return typeof T=="object"&&T!==null&&T.$$typeof===n},Ce.isForwardRef=function(T){return x(T)===y},Ce.isFragment=function(T){return x(T)===s},Ce.isLazy=function(T){return x(T)===_},Ce.isMemo=function(T){return x(T)===w},Ce.isPortal=function(T){return x(T)===i},Ce.isProfiler=function(T){return x(T)===u},Ce.isStrictMode=function(T){return x(T)===l},Ce.isSuspense=function(T){return x(T)===b},Ce.isValidElementType=function(T){return typeof T=="string"||typeof T=="function"||T===s||T===v||T===u||T===l||T===b||T===m||typeof T=="object"&&T!==null&&(T.$$typeof===_||T.$$typeof===w||T.$$typeof===d||T.$$typeof===h||T.$$typeof===y||T.$$typeof===R||T.$$typeof===O||T.$$typeof===N||T.$$typeof===S)},Ce.typeOf=x,Ce}var rm;function Vw(){return rm||(rm=1,Ru.exports=qw()),Ru.exports}var Ou,nm;function Ww(){if(nm)return Ou;nm=1;var e=Vw(),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(_){return e.isMemo(_)?l:u[_.$$typeof]||n}var h=Object.defineProperty,p=Object.getOwnPropertyNames,v=Object.getOwnPropertySymbols,y=Object.getOwnPropertyDescriptor,b=Object.getPrototypeOf,m=Object.prototype;function w(_,S,R){if(typeof S!="string"){if(m){var O=b(S);O&&O!==m&&w(_,O,R)}var N=p(S);v&&(N=N.concat(v(S)));for(var x=d(_),k=d(S),T=0;T<N.length;++T){var F=N[T];if(!i[F]&&!(R&&R[F])&&!(k&&k[F])&&!(x&&x[F])){var z=y(S,F);try{h(_,F,z)}catch{}}}}return _}return Ou=w,Ou}Ww();var Yc=typeof window<"u"&&!window.__REACT_INTL_BYPASS_GLOBAL_CONTEXT__?window.__REACT_INTL_CONTEXT__||(window.__REACT_INTL_CONTEXT__=B.createContext(null)):B.createContext(null);Yc.Consumer;var Kw=Yc.Provider,Zw=Kw,Xw=Yc;function la(){var e=B.useContext(Xw);return A0(e),e}var kc;(function(e){e.formatDate="FormattedDate",e.formatTime="FormattedTime",e.formatNumber="FormattedNumber",e.formatList="FormattedList",e.formatDisplayName="FormattedDisplayName"})(kc||(kc={}));var Rc;(function(e){e.formatDate="FormattedDateParts",e.formatTime="FormattedTimeParts",e.formatNumber="FormattedNumberParts",e.formatList="FormattedListParts"})(Rc||(Rc={}));function D0(e){var n=function(i){var s=la(),l=i.value,u=i.children,d=aa(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=Rc[e],n}function lo(e){var n=function(i){var s=la(),l=i.value,u=i.children,d=aa(i,["value","children"]),h=s[e](l,d);if(typeof u=="function")return u(h);var p=s.textComponent||B.Fragment;return B.createElement(p,null,h)};return n.displayName=kc[e],n}function P0(e){return e&&Object.keys(e).reduce(function(n,i){var s=e[i];return n[i]=T0(s)?Gw(s):s,n},{})}var im=function(e,n,i,s){for(var l=[],u=4;u<arguments.length;u++)l[u-4]=arguments[u];var d=P0(s),h=Cc.apply(void 0,ar([e,n,i,d],l,!1));return Array.isArray(h)?zw(h):h},om=function(e,n){var i=e.defaultRichTextElements,s=aa(e,["defaultRichTextElements"]),l=P0(i),u=Bw(J(J(J({},I0),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:im.bind(null,d,u.formatters),$t:im.bind(null,d,u.formatters)})};function Nu(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 Qw=function(e){jt(n,e);function n(){var i=e!==null&&e.apply(this,arguments)||this;return i.cache=R0(),i.state={cache:i.cache,intl:om(Nu(i.props),i.cache),prevConfig:Nu(i.props)},i}return n.getDerivedStateFromProps=function(i,s){var l=s.prevConfig,u=s.cache,d=Nu(i);return $w(l,d)?null:{intl:om(d,u),prevConfig:d}},n.prototype.render=function(){return A0(this.state.intl),B.createElement(Zw,{value:this.state.intl},this.props.children)},n.displayName="IntlProvider",n.defaultProps=I0,n}(B.PureComponent);lo("formatDate");lo("formatTime");lo("formatNumber");lo("formatList");lo("formatDisplayName");D0("formatDate");D0("formatTime");const Yw="_app_1rj0t_1",Jw={app:Yw},ti=mE,Xr=vE,M0="%[a-f0-9]{2}",sm=new RegExp("("+M0+")|([^%]+?)","gi"),am=new RegExp("("+M0+")+","gi");function Oc(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([],Oc(i),Oc(s))}function eS(e){try{return decodeURIComponent(e)}catch{let n=e.match(sm)||[];for(let i=1;i<n.length;i++)e=Oc(n,i).join(""),n=e.match(sm)||[];return e}}function tS(e){const n={"%FE%FF":"��","%FF%FE":"��"};let i=am.exec(e);for(;i;){try{n[i[0]]=decodeURIComponent(i[0])}catch{const l=eS(i[0]);l!==i[0]&&(n[i[0]]=l)}i=am.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 rS(e){if(typeof e!="string")throw new TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof e+"`");try{return decodeURIComponent(e)}catch{return tS(e)}}function nS(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 F0(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 iS=e=>e==null,oS=e=>encodeURIComponent(e).replaceAll(/[!'()*]/g,n=>`%${n.charCodeAt(0).toString(16).toUpperCase()}`),Nc=Symbol("encodeFragmentIdentifier");function sS(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 aS(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&&xr(s,e).includes(e.arrayFormatSeparator);s=d?xr(s,e):s;const h=u||d?s.split(e.arrayFormatSeparator).map(p=>xr(p,e)):s===null?s:xr(s,e);l[i]=h};case"bracket-separator":return(i,s,l)=>{const u=/(\[])$/.test(i);if(i=i.replace(/\[]$/,""),!u){l[i]=s&&xr(s,e);return}const d=s===null?[]:xr(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 L0(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?oS(e):encodeURIComponent(e):e}function xr(e,n){return n.decode?rS(e):e}function B0(e){return Array.isArray(e)?e.sort():typeof e=="object"?B0(Object.keys(e)).sort((n,i)=>Number(n)-Number(i)).map(n=>e[n]):e}function j0(e){const n=e.indexOf("#");return n!==-1&&(e=e.slice(0,n)),e}function lS(e){let n="";const i=e.indexOf("#");return i!==-1&&(n=e.slice(i)),n}function lm(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 Jc(e){e=j0(e);const n=e.indexOf("?");return n===-1?"":e.slice(n+1)}function ef(e,n){n={decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1,types:Object.create(null),...n},L0(n.arrayFormatSeparator);const i=aS(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]=F0(u,"=");d===void 0&&(d=u),h=h===void 0?null:["comma","separator","bracket-separator"].includes(n.arrayFormat)?h:xr(h,n),i(xr(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]=lm(h,n,p)}else typeof u=="object"&&u!==null&&n.types[l]==="string"?s[l]=Object.values(u).join(n.arrayFormatSeparator):s[l]=lm(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)?B0(d):d,l},Object.create(null))}function U0(e,n){if(!e)return"";n={encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:",",...n},L0(n.arrayFormatSeparator);const i=d=>n.skipNull&&iS(e[d])||n.skipEmptyString&&e[d]==="",s=sS(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 H0(e,n){var l;n={decode:!0,...n};let[i,s]=F0(e,"#");return i===void 0&&(i=e),{url:((l=i==null?void 0:i.split("?"))==null?void 0:l[0])??"",query:ef(Jc(e),n),...n&&n.parseFragmentIdentifier&&s?{fragmentIdentifier:xr(s,n)}:{}}}function z0(e,n){n={encode:!0,strict:!0,[Nc]:!0,...n};const i=j0(e.url).split("?")[0]||"",s=Jc(e.url),l={...ef(s,{sort:!1}),...e.query};let u=U0(l,n);u&&(u=`?${u}`);let d=lS(e.url);if(typeof e.fragmentIdentifier=="string"){const h=new URL(i);h.hash=e.fragmentIdentifier,d=n[Nc]?h.hash:`#${e.fragmentIdentifier}`}return`${i}${u}${d}`}function G0(e,n,i){i={parseFragmentIdentifier:!0,[Nc]:!1,...i};const{url:s,query:l,fragmentIdentifier:u}=H0(e,i);return z0({url:s,query:nS(l,n),fragmentIdentifier:u},i)}function uS(e,n,i){const s=Array.isArray(n)?l=>!n.includes(l):(l,u)=>!n(l,u);return G0(e,s,i)}const ua=Object.freeze(Object.defineProperty({__proto__:null,exclude:uS,extract:Jc,parse:ef,parseUrl:H0,pick:G0,stringify:U0,stringifyUrl:z0},Symbol.toStringTag,{value:"Module"}));var Kt={},Ct={},le={},um;function At(){return um||(um=1,Object.defineProperty(le,"__esModule",{value:!0}),le.GUEST_LOCALE_CHANGED=le.DRAWER_CLOSE=le.DRAWER_OPEN=le.CONVERSATION_RATING_FROM_GUEST=le.TRANSCRIPT_ITEM_GUEST_REACTION=le.TRANSCRIPT_MAIL_REQUEST=le.INBOX_CONNECT_REQUEST=le.RESTART_CHAT_REQUEST=le.EVENT_TO_GUEST=le.NLU_REQUEST_EVENT=le.EXPERTS_DISCONNECTED=le.EXPERTS_DISCONNECT_REQUEST=le.EXPERTS_CONNECTED=le.EXPERTS_CONNECT_REQUEST=le.MESSAGE_TO_GUEST=le.MESSAGE_WITHOUT_ANALYSIS_FROM_GUEST=le.MESSAGE_FROM_GUEST=le.GUEST_FEEDBACK_RESPONSE=le.GUEST_DISCONNECTED=le.GUEST_CONNECTED=le.TYPING_OFF=le.TYPING_ON=void 0,le.TYPING_ON="core.typing.on",le.TYPING_OFF="core.typing.off",le.GUEST_CONNECTED="core.guest.connected",le.GUEST_DISCONNECTED="core.guest.disconnected",le.GUEST_FEEDBACK_RESPONSE="core.guest.feedback.response",le.MESSAGE_FROM_GUEST="core.message.from.guest",le.MESSAGE_WITHOUT_ANALYSIS_FROM_GUEST="core.message.without.analysis.from.guest",le.MESSAGE_TO_GUEST="core.message.to.guest",le.EXPERTS_CONNECT_REQUEST="core.experts.connect.request",le.EXPERTS_CONNECTED="core.experts.connected",le.EXPERTS_DISCONNECT_REQUEST="core.experts.disconnect.request",le.EXPERTS_DISCONNECTED="core.experts.disconnected",le.NLU_REQUEST_EVENT="core.nlu.request.event",le.EVENT_TO_GUEST="core.event.to.guest",le.RESTART_CHAT_REQUEST="core.chat.restart.request",le.INBOX_CONNECT_REQUEST="core.inbox.connect.request",le.TRANSCRIPT_MAIL_REQUEST="core.transcript.mail.request",le.TRANSCRIPT_ITEM_GUEST_REACTION="core.transcript.item.guest.reaction",le.CONVERSATION_RATING_FROM_GUEST="core.conversation.rating.from.guest",le.DRAWER_OPEN="core.drawer.open",le.DRAWER_CLOSE="core.drawer.close",le.GUEST_LOCALE_CHANGED="core.guest.locale.changed"),le}var Au={},cm;function cS(){return cm||(cm=1,Object.defineProperty(Au,"__esModule",{value:!0})),Au}var Ss={},fm;function fS(){if(fm)return Ss;fm=1,Object.defineProperty(Ss,"__esModule",{value:!0});const e=At(),n=()=>({type:e.DRAWER_CLOSE});return Ss.default=n,Ss}var xs={},dm;function dS(){if(dm)return xs;dm=1,Object.defineProperty(xs,"__esModule",{value:!0});const e=At(),n=(i,s)=>({type:e.GUEST_FEEDBACK_RESPONSE,payload:{satisfaction:i,intent:s}});return xs.default=n,xs}var bs={},hm;function hS(){if(hm)return bs;hm=1,Object.defineProperty(bs,"__esModule",{value:!0});const e=At(),n=i=>({type:e.GUEST_CONNECTED,payload:{sessionId:i}});return bs.default=n,bs}var Ts={},pm;function pS(){if(pm)return Ts;pm=1,Object.defineProperty(Ts,"__esModule",{value:!0});const e=At(),n=i=>({type:e.GUEST_DISCONNECTED,payload:{sessionId:i}});return Ts.default=n,Ts}var Cs={},mm;function mS(){if(mm)return Cs;mm=1,Object.defineProperty(Cs,"__esModule",{value:!0});const e=At(),n=(i,s)=>({type:e.GUEST_LOCALE_CHANGED,payload:{previousLocale:i,newLocale:s}});return Cs.default=n,Cs}var ks={},gm;function gS(){if(gm)return ks;gm=1,Object.defineProperty(ks,"__esModule",{value:!0});const e=At(),n=i=>({type:e.DRAWER_OPEN,payload:{parameters:{contentUrl:i}}});return ks.default=n,ks}var Rs={},je={},ym;function tf(){if(ym)return je;ym=1,Object.defineProperty(je,"__esModule",{value:!0}),je.getStringRepresentationFromMessage=je.MessageTypeEnum=je.AudioMessage=je.FileMessage=je.ImageMessage=je.VideoMessage=je.MarkdownMessage=je.DetailMessage=je.TextMessage=je.Message=void 0;class e{constructor(b,m){xe(this,"type");xe(this,"sender");xe(this,"quickReplies");this.type=b,this.sender=m,this.quickReplies=[]}addQuickReply(b,m){this.quickReplies.push({label:b,payload:m})}}je.Message=e;class n extends e{constructor(m,w){super(p.TEXT,w);xe(this,"text");this.text=m}}je.TextMessage=n;class i extends e{constructor(m,w){super(p.DETAIL,w);xe(this,"title");xe(this,"subtitle");xe(this,"text");xe(this,"imageUrl");xe(this,"itemUrl");xe(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)}}je.DetailMessage=i;class s extends e{constructor(m,w,_){super(p.MARKDOWN,_);xe(this,"markdown");xe(this,"excerpt");xe(this,"className");this.markdown=m,this.excerpt=w,this.className=""}setClassName(m){this.className=m}}je.MarkdownMessage=s;class l extends e{constructor(m,w){super(p.VIDEO,w);xe(this,"url");this.url=m}}je.VideoMessage=l;class u extends e{constructor(m,w){super(p.IMAGE,w);xe(this,"url");this.url=m}}je.ImageMessage=u;class d extends e{constructor(m,w){super(p.FILE,w);xe(this,"url");this.url=m}}je.FileMessage=d;class h extends e{constructor(m,w){super(p.AUDIO,w);xe(this,"url");this.url=m}}je.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||(je.MessageTypeEnum=p={}));const v=y=>{switch(y.type){case p.TEXT:return y.text;case p.DETAIL:{const b=y;return`${b.title} // ${b.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 je.getStringRepresentationFromMessage=v,je}var kt={},vm;function rf(){if(vm)return kt;vm=1,Object.defineProperty(kt,"__esModule",{value:!0}),kt.UserType=kt.PersonUser=kt.GuestUser=kt.BotUser=kt.User=void 0;class e{constructor(d,h,p,v){xe(this,"type");xe(this,"id");xe(this,"name");xe(this,"avatar");this.type=d,this.id=h,this.name=p,this.avatar=v}}kt.User=e;class n extends e{constructor(){super(l.BOT,null,"Chatbot","bot.svg")}}kt.BotUser=n;class i extends e{constructor(){super(l.GUEST,null,"Guest","visitor.svg")}}kt.GuestUser=i;class s extends e{constructor(d,h,p){super(l.PERSON,d,h,p)}}kt.PersonUser=s;var l;return function(u){u.GUEST="GUEST",u.BOT="BOT",u.PERSON="PERSON"}(l||(kt.UserType=l={})),kt}var _m;function yS(){if(_m)return Rs;_m=1,Object.defineProperty(Rs,"__esModule",{value:!0});const e=tf(),n=rf(),i=At(),s=l=>{const u=new e.TextMessage(l,new n.GuestUser);return{type:i.MESSAGE_FROM_GUEST,message:u}};return Rs.default=s,Rs}var Os={},Em;function vS(){if(Em)return Os;Em=1,Object.defineProperty(Os,"__esModule",{value:!0});const e=tf(),n=rf(),i=At(),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 Os.default=s,Os}var Ns={},wm;function _S(){if(wm)return Ns;wm=1,Object.defineProperty(Ns,"__esModule",{value:!0});const e=At(),n=i=>({type:e.NLU_REQUEST_EVENT,event:i});return Ns.default=n,Ns}var As={},Sm;function ES(){if(Sm)return As;Sm=1,Object.defineProperty(As,"__esModule",{value:!0});const e=At(),n=()=>({type:e.RESTART_CHAT_REQUEST});return As.default=n,As}var Is={},xm;function wS(){if(xm)return Is;xm=1,Object.defineProperty(Is,"__esModule",{value:!0});const e=At(),n=i=>({type:e.MESSAGE_TO_GUEST,message:i});return Is.default=n,Is}var Ds={},bm;function SS(){if(bm)return Ds;bm=1,Object.defineProperty(Ds,"__esModule",{value:!0});const e=At(),n=(i,s)=>({type:e.TRANSCRIPT_ITEM_GUEST_REACTION,payload:{actionId:i,reaction:s}});return Ds.default=n,Ds}var Tm;function Cm(){return Tm||(Tm=1,function(e){var n=Ct&&Ct.__createBinding||(Object.create?function(N,x,k,T){T===void 0&&(T=k);var F=Object.getOwnPropertyDescriptor(x,k);(!F||("get"in F?!x.__esModule:F.writable||F.configurable))&&(F={enumerable:!0,get:function(){return x[k]}}),Object.defineProperty(N,T,F)}:function(N,x,k,T){T===void 0&&(T=k),N[T]=x[k]}),i=Ct&&Ct.__setModuleDefault||(Object.create?function(N,x){Object.defineProperty(N,"default",{enumerable:!0,value:x})}:function(N,x){N.default=x}),s=Ct&&Ct.__importStar||function(){var N=function(x){return N=Object.getOwnPropertyNames||function(k){var T=[];for(var F in k)Object.prototype.hasOwnProperty.call(k,F)&&(T[T.length]=F);return T},N(x)};return function(x){if(x&&x.__esModule)return x;var k={};if(x!=null)for(var T=N(x),F=0;F<T.length;F++)T[F]!=="default"&&n(k,x,T[F]);return i(k,x),k}}(),l=Ct&&Ct.__exportStar||function(N,x){for(var k in N)k!=="default"&&!Object.prototype.hasOwnProperty.call(x,k)&&n(x,N,k)},u=Ct&&Ct.__importDefault||function(N){return N&&N.__esModule?N:{default:N}};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(At()),l(cS(),e);const d=u(fS());e.closeDrawer=d.default;const h=u(dS());e.feedbackFromGuestResponse=h.default;const p=u(hS());e.guestConnected=p.default;const v=u(pS());e.guestDisconnected=v.default;const y=u(mS());e.guestLocaleChanged=y.default;const b=u(gS());e.openDrawer=b.default;const m=u(yS());e.receiveTextMessageFromGuest=m.default;const w=u(vS());e.receiveTextMessageWithoutAnalysisFromGuest=w.default;const _=u(_S());e.requestNLUEvent=_.default;const S=u(ES());e.restartChatRequest=S.default;const R=u(wS());e.sendMessageToGuest=R.default;const O=u(SS());e.transcriptItemGuestReaction=O.default}(Ct)),Ct}var Rt={},Iu={},km;function xS(){return km||(km=1,Object.defineProperty(Iu,"__esModule",{value:!0})),Iu}var $i={},Rm;function bS(){if(Rm)return $i;Rm=1,Object.defineProperty($i,"__esModule",{value:!0}),$i.NullableKnowledgeBaseAdapter=void 0;class e{async createApiKnowledgeBase(i){throw new Error("Method not implemented.")}async updateApiKnowledgeBase(i,s){throw new Error("Method not implemented.")}async deleteApiKnowledgeBase(i){throw new Error("Method not implemented.")}async upsertApiKnowledgeBase(i){throw new Error("Method not implemented.")}async findApiKnowledgeBaseById(i){throw new Error("Method not implemented.")}async findApiKnowledgeBaseByName(i){throw new Error("Method not implemented.")}async findApiKnowledgeBases(){throw new Error("Method not implemented.")}async deleteApiKnowledgeBaseByName(i){throw new Error("Method not implemented.")}async findKnowledgeBaseEntries(i){throw new Error("Method not implemented.")}async createKnowledgeBaseEntry(i,s){throw new Error("Method not implemented.")}async updateKnowledgeBaseEntry(i,s,l){throw new Error("Method not implemented.")}async deleteKnowledgeBaseEntry(i,s){throw new Error("Method not implemented.")}async upsertKnowledgeBaseEntry(i,s){throw new Error("Method not implemented.")}async retrieveKnowledgeBaseEntryConfig(i,s){throw new Error("Method not implemented.")}async deleteKnowledgeBaseEntriesIndexedBeforeDate(i,s){throw new Error("Method not implemented.")}async findKnowledgeBaseEntryAttachments(i,s){throw new Error("Method not implemented.")}async createKnowledgeBaseEntryAttachment(i,s,l){throw new Error("Method not implemented.")}async updateKnowledgeBaseEntryAttachment(i,s,l,u){throw new Error("Method not implemented.")}async deleteKnowledgeBaseEntryAttachment(i,s,l){throw new Error("Method not implemented.")}async setIndexingStatus(i,s){throw new Error("Method not implemented.")}async subscribeToReindex(i,s){throw new Error("Method not implemented.")}isContentTypeSupported(i){throw new Error("Method not implemented.")}}return $i.NullableKnowledgeBaseAdapter=e,$i}var Om;function TS(){if(Om)return Rt;Om=1;var e=Rt&&Rt.__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=Rt&&Rt.__setModuleDefault||(Object.create?function(l,u){Object.defineProperty(l,"default",{enumerable:!0,value:u})}:function(l,u){l.default=u}),i=Rt&&Rt.__importStar||function(){var l=function(u){return l=Object.getOwnPropertyNames||function(d){var h=[];for(var p in d)Object.prototype.hasOwnProperty.call(d,p)&&(h[h.length]=p);return h},l(u)};return function(u){if(u&&u.__esModule)return u;var d={};if(u!=null)for(var h=l(u),p=0;p<h.length;p++)h[p]!=="default"&&e(d,u,h[p]);return n(d,u),d}}();Object.defineProperty(Rt,"__esModule",{value:!0}),Rt.NullableCmsAdapter=Rt.KnowledgeBase=void 0,Rt.KnowledgeBase=i(xS());const s=bS();return Rt.NullableCmsAdapter={knowledgeBase:new s.NullableKnowledgeBaseAdapter},Rt}var pn={},Du={},Nm;function CS(){return Nm||(Nm=1,Object.defineProperty(Du,"__esModule",{value:!0})),Du}var Zt={},Am;function kS(){if(Am)return Zt;Am=1,Object.defineProperty(Zt,"__esModule",{value:!0}),Zt.ButtonTypeEnum=Zt.PostbackButton=Zt.UrlButton=Zt.Button=void 0;class e{constructor(u,d){xe(this,"title");xe(this,"type");this.title=u,this.type=d}}Zt.Button=e;class n extends e{constructor(d,h){super(d,s.WEB_URL);xe(this,"url");this.url=h}}Zt.UrlButton=n;class i extends e{constructor(d,h){super(d,s.POSTBACK);xe(this,"payload");this.payload=h}}Zt.PostbackButton=i;var s;return function(l){l.WEB_URL="web_url",l.POSTBACK="postback"}(s||(Zt.ButtonTypeEnum=s={})),Zt}var Pu={},Im;function RS(){return Im||(Im=1,Object.defineProperty(Pu,"__esModule",{value:!0})),Pu}var qi={},Dm;function OS(){if(Dm)return qi;Dm=1,Object.defineProperty(qi,"__esModule",{value:!0}),qi.SatisfactionEnum=void 0;var e;return function(n){n.GOOD="GOOD",n.BAD="BAD"}(e||(qi.SatisfactionEnum=e={})),qi}var Pm;function Mm(){return Pm||(Pm=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(CS(),e),i(kS(),e),i(RS(),e),i(OS(),e),i(tf(),e),i(rf(),e)}(pn)),pn}var Fm;function NS(){return Fm||(Fm=1,function(e){var n=Kt&&Kt.__createBinding||(Object.create?function(u,d,h,p){p===void 0&&(p=h);var v=Object.getOwnPropertyDescriptor(d,h);(!v||("get"in v?!d.__esModule:v.writable||v.configurable))&&(v={enumerable:!0,get:function(){return d[h]}}),Object.defineProperty(u,p,v)}:function(u,d,h,p){p===void 0&&(p=h),u[p]=d[h]}),i=Kt&&Kt.__setModuleDefault||(Object.create?function(u,d){Object.defineProperty(u,"default",{enumerable:!0,value:d})}:function(u,d){u.default=d}),s=Kt&&Kt.__exportStar||function(u,d){for(var h in u)h!=="default"&&!Object.prototype.hasOwnProperty.call(d,h)&&n(d,u,h)},l=Kt&&Kt.__importStar||function(){var u=function(d){return u=Object.getOwnPropertyNames||function(h){var p=[];for(var v in h)Object.prototype.hasOwnProperty.call(h,v)&&(p[p.length]=v);return p},u(d)};return function(d){if(d&&d.__esModule)return d;var h={};if(d!=null)for(var p=u(d),v=0;v<p.length;v++)p[v]!=="default"&&n(h,d,p[v]);return i(h,d),h}}();Object.defineProperty(e,"__esModule",{value:!0}),e.Model=e.CMS=e.Actions=void 0,s(Cm(),e),e.Actions=l(Cm()),e.CMS=l(TS()),s(Mm(),e),e.Model=l(Mm())}(Kt)),Kt}var ge=NS();const $0=e=>n=>(e.payload.type!==ge.ActionTypes.MESSAGE_FROM_GUEST&&n(ge.receiveTextMessageWithoutAnalysisFromGuest(e.label,e.payload)),n(e.payload)),q0=e=>(n,i)=>{const{quickReplies:s}=i().chat,l=s.find(u=>e.toLocaleLowerCase().indexOf(u.label.toLocaleLowerCase())>-1);return n(l?$0({...l,label:e}):ge.receiveTextMessageFromGuest(e))},nf="MESSAGE_TO_PARENT_PAGE",of="RESTORE_PREVIOUS_CHAT_MESSAGES",sf="AUDIO_MESSAGE_FROM_USER",af="ENABLE_SPEECH_SUPPORT",lf="ENABLE_TRANSCRIPT_EXPORT",AS="EXPORT_TRANSCRIPT",uf="RECEIVE_SPEECH_TRANSCRIPTION",cf="SHOW_GENERAL_CONDITIONS",ff="ENABLE_CONVERSATION_RATING",df="SET_COMMANDS",V0="LOAD_SOURCE_INFOS_RESPONSE",W0="LOAD_SOURCE_INFOS_ERROR",hf="LOAD_SOURCE_INFOS_REQUEST",pf="CLOSE_SOURCE_INFOS",IS="webclient.get.started",K0="webclient.window.expand",Z0="webclient.window.close",X0="webclient.transcript.pdf.download",DS=[nf,of,sf,af,lf,AS,uf,cf,ff,df,hf,pf],PS=e=>({type:sf,buffer:e}),MS=()=>({type:af}),FS=e=>({type:uf,transcription:e}),LS=e=>({type:lf,methods:e}),BS=e=>({type:ge.ActionTypes.TRANSCRIPT_MAIL_REQUEST,payload:{parameters:{mailTo:e}}}),jS=()=>({type:cf}),US=e=>({type:df,payload:{commands:e}}),HS=()=>({type:X0}),zS=({rating:e})=>({type:ff,payload:{rating:e}}),GS=(e,n)=>({type:ge.ActionTypes.CONVERSATION_RATING_FROM_GUEST,payload:{value:e,feedback:n}}),Q0=e=>ge.requestNLUEvent(e),$S=e=>({type:of,messages:e}),qS=e=>{switch(e.type){case ge.ButtonTypeEnum.WEB_URL:return Y0(e.url);case ge.ButtonTypeEnum.POSTBACK:return e.payload;default:throw new Error(`unknown button type ${e.type}`)}},VS=e=>Y0(e),Y0=e=>({type:nf,message:{type:"webclient.change.url",url:e}});/*! js-cookie v3.0.5 | MIT */function Ps(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 WS={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 Ac(e,n){function i(l,u,d){if(!(typeof document>"u")){d=Ps({},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("="),v=p.slice(1).join("=");try{var y=decodeURIComponent(p[0]);if(d[y]=e.read(v,y),l===y)break}catch{}}return l?d[l]:d}}return Object.create({set:i,get:s,remove:function(l,u){i(l,"",Ps({},u,{expires:-1}))},withAttributes:function(l){return Ac(this.converter,Ps({},this.attributes,l))},withConverter:function(l){return Ac(Ps({},this.converter,l),this.attributes)}},{attributes:{value:Object.freeze(n)},converter:{value:Object.freeze(e)}})}var Ms=Ac(WS,{path:"/"});const nt=[];for(let e=0;e<256;++e)nt.push((e+256).toString(16).slice(1));function KS(e,n=0){return(nt[e[n+0]]+nt[e[n+1]]+nt[e[n+2]]+nt[e[n+3]]+"-"+nt[e[n+4]]+nt[e[n+5]]+"-"+nt[e[n+6]]+nt[e[n+7]]+"-"+nt[e[n+8]]+nt[e[n+9]]+"-"+nt[e[n+10]]+nt[e[n+11]]+nt[e[n+12]]+nt[e[n+13]]+nt[e[n+14]]+nt[e[n+15]]).toLowerCase()}let Mu;const ZS=new Uint8Array(16);function XS(){if(!Mu){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");Mu=crypto.getRandomValues.bind(crypto)}return Mu(ZS)}const QS=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),Lm={randomUUID:QS};function Ic(e,n,i){var l;if(Lm.randomUUID&&!e)return Lm.randomUUID();e=e||{};const s=e.random??((l=e.rng)==null?void 0:l.call(e))??XS();if(s.length<16)throw new Error("Random bytes length must be >= 16");return s[6]=s[6]&15|64,s[8]=s[8]&63|128,KS(s)}function it(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 YS=typeof Symbol=="function"&&Symbol.observable||"@@observable",Bm=YS,Fu=()=>Math.random().toString(36).substring(7).split("").join("."),JS={INIT:`@@redux/INIT${Fu()}`,REPLACE:`@@redux/REPLACE${Fu()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${Fu()}`},ea=JS;function mf(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 J0(e,n,i){if(typeof e!="function")throw new Error(it(2));if(typeof n=="function"&&typeof i=="function"||typeof i=="function"&&typeof arguments[3]=="function")throw new Error(it(0));if(typeof n=="function"&&typeof i>"u"&&(i=n,n=void 0),typeof i<"u"){if(typeof i!="function")throw new Error(it(1));return i(J0)(e,n)}let s=e,l=n,u=new Map,d=u,h=0,p=!1;function v(){d===u&&(d=new Map,u.forEach((R,O)=>{d.set(O,R)}))}function y(){if(p)throw new Error(it(3));return l}function b(R){if(typeof R!="function")throw new Error(it(4));if(p)throw new Error(it(5));let O=!0;v();const N=h++;return d.set(N,R),function(){if(O){if(p)throw new Error(it(6));O=!1,v(),d.delete(N),u=null}}}function m(R){if(!mf(R))throw new Error(it(7));if(typeof R.type>"u")throw new Error(it(8));if(typeof R.type!="string")throw new Error(it(17));if(p)throw new Error(it(9));try{p=!0,l=s(l,R)}finally{p=!1}return(u=d).forEach(N=>{N()}),R}function w(R){if(typeof R!="function")throw new Error(it(10));s=R,m({type:ea.REPLACE})}function _(){const R=b;return{subscribe(O){if(typeof O!="object"||O===null)throw new Error(it(11));function N(){const k=O;k.next&&k.next(y())}return N(),{unsubscribe:R(N)}},[Bm](){return this}}}return m({type:ea.INIT}),{dispatch:m,subscribe:b,getState:y,replaceReducer:w,[Bm]:_}}function e2(e){Object.keys(e).forEach(n=>{const i=e[n];if(typeof i(void 0,{type:ea.INIT})>"u")throw new Error(it(12));if(typeof i(void 0,{type:ea.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(it(13))})}function ey(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{e2(i)}catch(u){l=u}return function(d={},h){if(l)throw l;let p=!1;const v={};for(let y=0;y<s.length;y++){const b=s[y],m=i[b],w=d[b],_=m(w,h);if(typeof _>"u")throw h&&h.type,new Error(it(14));v[b]=_,p=p||_!==w}return p=p||s.length!==Object.keys(d).length,p?v:d}}function ta(...e){return e.length===0?n=>n:e.length===1?e[0]:e.reduce((n,i)=>(...s)=>n(i(...s)))}function t2(...e){return n=>(i,s)=>{const l=n(i,s);let u=()=>{throw new Error(it(15))};const d={getState:l.getState,dispatch:(p,...v)=>u(p,...v)},h=e.map(p=>p(d));return u=ta(...h)(l.dispatch),{...l,dispatch:u}}}function r2(e){return mf(e)&&"type"in e&&typeof e.type=="string"}var ty=Symbol.for("immer-nothing"),jm=Symbol.for("immer-draftable"),Ot=Symbol.for("immer-state");function Yt(e,...n){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var Qn=Object.getPrototypeOf;function Sn(e){return!!e&&!!e[Ot]}function kr(e){var n;return e?ry(e)||Array.isArray(e)||!!e[jm]||!!((n=e.constructor)!=null&&n[jm])||fa(e)||da(e):!1}var n2=Object.prototype.constructor.toString();function ry(e){if(!e||typeof e!="object")return!1;const n=Qn(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)===n2}function ra(e,n){ca(e)===0?Reflect.ownKeys(e).forEach(i=>{n(i,e[i],e)}):e.forEach((i,s)=>n(s,i,e))}function ca(e){const n=e[Ot];return n?n.type_:Array.isArray(e)?1:fa(e)?2:da(e)?3:0}function Dc(e,n){return ca(e)===2?e.has(n):Object.prototype.hasOwnProperty.call(e,n)}function ny(e,n,i){const s=ca(e);s===2?e.set(n,i):s===3?e.add(i):e[n]=i}function i2(e,n){return e===n?e!==0||1/e===1/n:e!==e&&n!==n}function fa(e){return e instanceof Map}function da(e){return e instanceof Set}function vn(e){return e.copy_||e.base_}function Pc(e,n){if(fa(e))return new Map(e);if(da(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);const i=ry(e);if(n===!0||n==="class_only"&&!i){const s=Object.getOwnPropertyDescriptors(e);delete s[Ot];let l=Reflect.ownKeys(s);for(let u=0;u<l.length;u++){const d=l[u],h=s[d];h.writable===!1&&(h.writable=!0,h.configurable=!0),(h.get||h.set)&&(s[d]={configurable:!0,writable:!0,enumerable:h.enumerable,value:e[d]})}return Object.create(Qn(e),s)}else{const s=Qn(e);if(s!==null&&i)return{...e};const l=Object.create(s);return Object.assign(l,e)}}function gf(e,n=!1){return ha(e)||Sn(e)||!kr(e)||(ca(e)>1&&(e.set=e.add=e.clear=e.delete=o2),Object.freeze(e),n&&Object.entries(e).forEach(([i,s])=>gf(s,!0))),e}function o2(){Yt(2)}function ha(e){return Object.isFrozen(e)}var s2={};function xn(e){const n=s2[e];return n||Yt(0,e),n}var to;function iy(){return to}function a2(e,n){return{drafts_:[],parent_:e,immer_:n,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function Um(e,n){n&&(xn("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=n)}function Mc(e){Fc(e),e.drafts_.forEach(l2),e.drafts_=null}function Fc(e){e===to&&(to=e.parent_)}function Hm(e){return to=a2(to,e)}function l2(e){const n=e[Ot];n.type_===0||n.type_===1?n.revoke_():n.revoked_=!0}function zm(e,n){n.unfinalizedDrafts_=n.drafts_.length;const i=n.drafts_[0];return e!==void 0&&e!==i?(i[Ot].modified_&&(Mc(n),Yt(4)),kr(e)&&(e=na(n,e),n.parent_||ia(n,e)),n.patches_&&xn("Patches").generateReplacementPatches_(i[Ot].base_,e,n.patches_,n.inversePatches_)):e=na(n,i,[]),Mc(n),n.patches_&&n.patchListener_(n.patches_,n.inversePatches_),e!==ty?e:void 0}function na(e,n,i){if(ha(n))return n;const s=n[Ot];if(!s)return ra(n,(l,u)=>Gm(e,s,n,l,u,i)),n;if(s.scope_!==e)return n;if(!s.modified_)return ia(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),ra(u,(h,p)=>Gm(e,s,l,h,p,i,d)),ia(e,l,!1),i&&e.patches_&&xn("Patches").generatePatches_(s,i,e.patches_,e.inversePatches_)}return s.copy_}function Gm(e,n,i,s,l,u,d){if(Sn(l)){const h=u&&n&&n.type_!==3&&!Dc(n.assigned_,s)?u.concat(s):void 0,p=na(e,l,h);if(ny(i,s,p),Sn(p))e.canAutoFreeze_=!1;else return}else d&&i.add(l);if(kr(l)&&!ha(l)){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;na(e,l),(!n||!n.scope_.parent_)&&typeof s!="symbol"&&Object.prototype.propertyIsEnumerable.call(i,s)&&ia(e,l)}}function ia(e,n,i=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&gf(n,i)}function u2(e,n){const i=Array.isArray(e),s={type_:i?1:0,scope_:n?n.scope_:iy(),modified_:!1,finalized_:!1,assigned_:{},parent_:n,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let l=s,u=yf;i&&(l=[s],u=ro);const{revoke:d,proxy:h}=Proxy.revocable(l,u);return s.draft_=h,s.revoke_=d,h}var yf={get(e,n){if(n===Ot)return e;const i=vn(e);if(!Dc(i,n))return c2(e,i,n);const s=i[n];return e.finalized_||!kr(s)?s:s===Lu(e.base_,n)?(Bu(e),e.copy_[n]=Bc(s,e)):s},has(e,n){return n in vn(e)},ownKeys(e){return Reflect.ownKeys(vn(e))},set(e,n,i){const s=oy(vn(e),n);if(s!=null&&s.set)return s.set.call(e.draft_,i),!0;if(!e.modified_){const l=Lu(vn(e),n),u=l==null?void 0:l[Ot];if(u&&u.base_===i)return e.copy_[n]=i,e.assigned_[n]=!1,!0;if(i2(i,l)&&(i!==void 0||Dc(e.base_,n)))return!0;Bu(e),Lc(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 Lu(e.base_,n)!==void 0||n in e.base_?(e.assigned_[n]=!1,Bu(e),Lc(e)):delete e.assigned_[n],e.copy_&&delete e.copy_[n],!0},getOwnPropertyDescriptor(e,n){const i=vn(e),s=Reflect.getOwnPropertyDescriptor(i,n);return s&&{writable:!0,configurable:e.type_!==1||n!=="length",enumerable:s.enumerable,value:i[n]}},defineProperty(){Yt(11)},getPrototypeOf(e){return Qn(e.base_)},setPrototypeOf(){Yt(12)}},ro={};ra(yf,(e,n)=>{ro[e]=function(){return arguments[0]=arguments[0][0],n.apply(this,arguments)}});ro.deleteProperty=function(e,n){return ro.set.call(this,e,n,void 0)};ro.set=function(e,n,i){return yf.set.call(this,e[0],n,i,e[0])};function Lu(e,n){const i=e[Ot];return(i?vn(i):e)[n]}function c2(e,n,i){var l;const s=oy(n,i);return s?"value"in s?s.value:(l=s.get)==null?void 0:l.call(e.draft_):void 0}function oy(e,n){if(!(n in e))return;let i=Qn(e);for(;i;){const s=Object.getOwnPropertyDescriptor(i,n);if(s)return s;i=Qn(i)}}function Lc(e){e.modified_||(e.modified_=!0,e.parent_&&Lc(e.parent_))}function Bu(e){e.copy_||(e.copy_=Pc(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var f2=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,...v){return d.produce(p,y=>i.call(this,y,...v))}}typeof i!="function"&&Yt(6),s!==void 0&&typeof s!="function"&&Yt(7);let l;if(kr(n)){const u=Hm(this),d=Bc(n,void 0);let h=!0;try{l=i(d),h=!1}finally{h?Mc(u):Fc(u)}return Um(u,s),zm(l,u)}else if(!n||typeof n!="object"){if(l=i(n),l===void 0&&(l=n),l===ty&&(l=void 0),this.autoFreeze_&&gf(l,!0),s){const u=[],d=[];xn("Patches").generateReplacementPatches_(n,l,u,d),s(u,d)}return l}else Yt(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)||Yt(8),Sn(e)&&(e=d2(e));const n=Hm(this),i=Bc(e,void 0);return i[Ot].isManual_=!0,Fc(n),i}finishDraft(e,n){const i=e&&e[Ot];(!i||!i.isManual_)&&Yt(9);const{scope_:s}=i;return Um(s,n),zm(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=xn("Patches").applyPatches_;return Sn(e)?s(e,n):this.produce(e,l=>s(l,n))}};function Bc(e,n){const i=fa(e)?xn("MapSet").proxyMap_(e,n):da(e)?xn("MapSet").proxySet_(e,n):u2(e,n);return(n?n.scope_:iy()).drafts_.push(i),i}function d2(e){return Sn(e)||Yt(10,e),sy(e)}function sy(e){if(!kr(e)||ha(e))return e;const n=e[Ot];let i;if(n){if(!n.modified_)return n.base_;n.finalized_=!0,i=Pc(e,n.scope_.immer_.useStrictShallowCopy_)}else i=Pc(e,!0);return ra(i,(s,l)=>{ny(i,s,sy(l))}),n&&(n.finalized_=!1),i}var Nt=new f2,ay=Nt.produce;Nt.produceWithPatches.bind(Nt);Nt.setAutoFreeze.bind(Nt);Nt.setUseStrictShallowCopy.bind(Nt);Nt.applyPatches.bind(Nt);Nt.createDraft.bind(Nt);Nt.finishDraft.bind(Nt);function ly(e){return({dispatch:i,getState:s})=>l=>u=>typeof u=="function"?u(i,s,e):l(u)}var h2=ly(),p2=ly,m2=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?ta:ta.apply(null,arguments)};function $m(e,n){function i(...s){if(n){let l=n(...s);if(!l)throw new Error(br(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=>r2(s)&&s.type===e,i}var uy=class Qi extends Array{constructor(...n){super(...n),Object.setPrototypeOf(this,Qi.prototype)}static get[Symbol.species](){return Qi}concat(...n){return super.concat.apply(this,n)}prepend(...n){return n.length===1&&Array.isArray(n[0])?new Qi(...n[0].concat(this)):new Qi(...n.concat(this))}};function qm(e){return kr(e)?ay(e,()=>{}):e}function Vm(e,n,i){return e.has(n)?e.get(n):e.set(n,i(n)).get(n)}function g2(e){return typeof e=="boolean"}var y2=()=>function(n){const{thunk:i=!0,immutableCheck:s=!0,serializableCheck:l=!0,actionCreatorCheck:u=!0}=n??{};let d=new uy;return i&&(g2(i)?d.push(h2):d.push(p2(i.extraArgument))),d},v2="RTK_autoBatch",Wm=e=>n=>{setTimeout(n,e)},_2=(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:Wm(10):e.type==="callback"?e.queueNotification:Wm(e.timeout),v=()=>{d=!1,u&&(u=!1,h.forEach(y=>y()))};return Object.assign({},s,{subscribe(y){const b=()=>l&&y(),m=s.subscribe(b);return h.add(y),()=>{m(),h.delete(y)}},dispatch(y){var b;try{return l=!((b=y==null?void 0:y.meta)!=null&&b[v2]),u=!l,u&&(d||(d=!0,p(v))),s.dispatch(y)}finally{l=!0}}})},E2=e=>function(i){const{autoBatch:s=!0}=i??{};let l=new uy(e);return s&&l.push(_2(typeof s=="object"?s:void 0)),l};function w2(e){const n=y2(),{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(mf(i))h=ey(i);else throw new Error(br(1));let p;typeof s=="function"?p=s(n):p=n();let v=ta;l&&(v=m2({trace:!1,...typeof l=="object"&&l}));const y=t2(...p),b=E2(y);let m=typeof d=="function"?d(b):b();const w=v(...m);return J0(h,u,w)}function cy(e){const n={},i=[];let s;const l={addCase(u,d){const h=typeof u=="string"?u:u.type;if(!h)throw new Error(br(28));if(h in n)throw new Error(br(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 S2(e){return typeof e=="function"}function x2(e,n){let[i,s,l]=cy(n),u;if(S2(e))u=()=>qm(e());else{const h=qm(e);u=()=>h}function d(h=u(),p){let v=[i[p.type],...s.filter(({matcher:y})=>y(p)).map(({reducer:y})=>y)];return v.filter(y=>!!y).length===0&&(v=[l]),v.reduce((y,b)=>{if(b)if(Sn(y)){const w=b(y,p);return w===void 0?y:w}else{if(kr(y))return ay(y,m=>b(m,p));{const m=b(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 b2=Symbol.for("rtk-slice-createasyncthunk");function T2(e,n){return`${e}/${n}`}function C2({creators:e}={}){var i;const n=(i=e==null?void 0:e.asyncThunk)==null?void 0:i[b2];return function(l){const{name:u,reducerPath:d=u}=l;if(!u)throw new Error(br(11));const h=(typeof l.reducers=="function"?l.reducers(R2()):l.reducers)||{},p=Object.keys(h),v={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},y={addCase(x,k){const T=typeof x=="string"?x:x.type;if(!T)throw new Error(br(12));if(T in v.sliceCaseReducersByType)throw new Error(br(13));return v.sliceCaseReducersByType[T]=k,y},addMatcher(x,k){return v.sliceMatchers.push({matcher:x,reducer:k}),y},exposeAction(x,k){return v.actionCreators[x]=k,y},exposeCaseReducer(x,k){return v.sliceCaseReducersByName[x]=k,y}};p.forEach(x=>{const k=h[x],T={reducerName:x,type:T2(u,x),createNotation:typeof l.reducers=="function"};N2(k)?I2(T,k,y,n):O2(T,k,y)});function b(){const[x={},k=[],T=void 0]=typeof l.extraReducers=="function"?cy(l.extraReducers):[l.extraReducers],F={...x,...v.sliceCaseReducersByType};return x2(l.initialState,z=>{for(let V in F)z.addCase(V,F[V]);for(let V of v.sliceMatchers)z.addMatcher(V.matcher,V.reducer);for(let V of k)z.addMatcher(V.matcher,V.reducer);T&&z.addDefaultCase(T)})}const m=x=>x,w=new Map;let _;function S(x,k){return _||(_=b()),_(x,k)}function R(){return _||(_=b()),_.getInitialState()}function O(x,k=!1){function T(z){let V=z[x];return typeof V>"u"&&k&&(V=R()),V}function F(z=m){const V=Vm(w,k,()=>new WeakMap);return Vm(V,z,()=>{const fe={};for(const[te,oe]of Object.entries(l.selectors??{}))fe[te]=k2(oe,z,R,k);return fe})}return{reducerPath:x,getSelectors:F,get selectors(){return F(T)},selectSlice:T}}const N={name:u,reducer:S,actions:v.actionCreators,caseReducers:v.sliceCaseReducersByName,getInitialState:R,...O(d),injectInto(x,{reducerPath:k,...T}={}){const F=k??d;return x.inject({reducerPath:F,reducer:S},T),{...N,...O(F,!0)}}};return N}}function k2(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 fy=C2();function R2(){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 O2({type:e,reducerName:n,createNotation:i},s,l){let u,d;if("reducer"in s){if(i&&!A2(s))throw new Error(br(17));u=s.reducer,d=s.prepare}else u=s;l.addCase(e,u).exposeCaseReducer(n,u).exposeAction(n,d?$m(e,d):$m(e))}function N2(e){return e._reducerDefinitionType==="asyncThunk"}function A2(e){return e._reducerDefinitionType==="reducerWithPrepare"}function I2({type:e,reducerName:n},i,s,l){if(!l)throw new Error(br(18));const{payloadCreator:u,fulfilled:d,pending:h,rejected:p,settled:v,options:y}=i,b=l(e,u,y);s.exposeAction(n,b),d&&s.addCase(b.fulfilled,d),h&&s.addCase(b.pending,h),p&&s.addCase(b.rejected,p),v&&s.addMatcher(b.settled,v),s.exposeCaseReducer(n,{fulfilled:d||Fs,pending:h||Fs,rejected:p||Fs,settled:v||Fs})}function Fs(){}function br(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 D2={useStartScreen:void 0,formValues:{}},dy=fy({name:"start-screen",initialState:D2,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:P2,disableStartScreen:M2,startChat:F2,showStartScreen:L2}=dy.actions,B2=dy.reducer,hy="RESET_CHAT_STATE",j2=()=>({type:Z0}),U2=()=>({type:hy}),Km=e=>(n,i)=>{const s=i();return n({type:hf,payload:{chunkId:e}}),fetch(`/cms/public/vector-store/chunks/${e}`,{headers:{"Accept-Language":s.intl.locale}}).then(l=>{if(!l.ok)throw n({type:W0}),new Error(`HTTP error! Status: ${l.status}`);return l.json()}).then(l=>n({type:V0,payload:l}))},H2=()=>({type:pf}),vf="CONNECT",_f="CONNECTING",Ef="CONNECTED",wf="DISCONNECTED",Sf="RECONNECTED",xf="RESTORE_SESSION_ID",pa="START",ma="CLEAR_SESSION_ID",z2=[vf,_f,Ef,wf,Sf,xf],G2=(e,n)=>({type:vf,clientName:e,querystrings:n}),$2=e=>({type:xf,sessionId:e}),q2=()=>({type:_f}),V2=()=>({type:Ef}),W2=()=>({type:wf}),K2=()=>({type:Sf}),py=(e,n)=>(i,s)=>{const l=s().connection,u=s().startScreen.formValues;let d=l.sessionId;d===void 0&&(d=Ic());let h=l.userId;if(h===void 0){const p=Ms.get("bubble-chat-user-id")||Ms.get("bubble-chat-userId")||Ms.get("bf-webclient-userId");h=p||Ic(),Ms.set("bubble-chat-user-id",h)}i({type:pa,payload:{sessionId:d,userId:h,clientName:e,querystrings:{...n,...u}}})},ga=(e,n)=>(i,s)=>{const l=s().connection.sessionId||"";if(i(Z2(l)),i(U2()),s().startScreen.useStartScreen)i(L2());else return i(py(e,n))},Z2=e=>({type:ma,payload:{sessionId:e}}),Je=()=>{const e=la();return i=>{const s=e.formatMessage({id:i});return s===i?void 0:s}};var En=(e=>(e[e.CONNECTING=0]="CONNECTING",e[e.CONNECTED=1]="CONNECTED",e[e.RECONNECTED=2]="RECONNECTED",e[e.DISCONNECTED=3]="DISCONNECTED",e))(En||{}),my=(e=>(e.GUEST="GUEST",e.BOT="BOT",e.PERSON="PERSON",e))(my||{});const X2="_container_q2uun_1",Q2="_chatcontent_q2uun_6",Y2="_accessabilityHidden_q2uun_12",ju={container:X2,chatcontent:Q2,accessabilityHidden:Y2},J2="_messageContainer_1m8fy_1",ex="_messages_1m8fy_13",Zm={messageContainer:J2,messages:ex};function _n(){return _n=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},_n.apply(this,arguments)}const tx=["children","options"],se={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",text:"27",textBolded:"28",textEmphasized:"29",textEscaped:"30",textMarked:"31",textStrikethroughed:"32",unorderedList:"33"};var Xm;(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"})(Xm||(Xm={}));const Qm=["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"}),Ym={amp:"&",apos:"'",gt:">",lt:"<",nbsp:" ",quot:"“"},rx=["style","script"],nx=/([-A-Z0-9_:]+)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|(?:\{((?:\\.|{[^}]*?}|[^}])*)\})))?/gi,ix=/mailto:/i,ox=/\n{2,}$/,gy=/^(\s*>[\s\S]*?)(?=\n\n|$)/,sx=/^ *> ?/gm,ax=/^(?:\[!([^\]]*)\]\n)?([\s\S]*)/,lx=/^ {2,}\n/,ux=/^(?:( *[-*_])){3,} *(?:\n *)+\n/,yy=/^(?: {1,3})?(`{3,}|~{3,}) *(\S+)? *([^\n]*?)?\n([\s\S]*?)(?:\1\n?|$)/,vy=/^(?: {4}[^\n]+\n*)+(?:\n *)+\n?/,cx=/^(`+)((?:\\`|[^`])+)\1/,fx=/^(?:\n *)*\n/,dx=/\r\n?/g,hx=/^\[\^([^\]]+)](:(.*)((\n+ {4,}.*)|(\n(?!\[\^).+))*)/,px=/^\[\^([^\]]+)]/,mx=/\f/g,gx=/^---[ \t]*\n(.|\n)*\n---[ \t]*\n/,yx=/^\s*?\[(x|\s)\]/,_y=/^ *(#{1,6}) *([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,Ey=/^ *(#{1,6}) +([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,wy=/^([^\n]+)\n *(=|-){3,} *(?:\n *)+\n/,jc=/^ *(?!<[a-z][^ >/]* ?\/>)<([a-z][^ >/]*) ?((?:[^>]*[^/])?)>\n?(\s*(?:<\1[^>]*?>[\s\S]*?<\/\1>|(?!<\1\b)[\s\S])*?)<\/\1>(?!<\/\1>)\n*/i,vx=/&([a-z0-9]+|#[0-9]{1,6}|#x[0-9a-fA-F]{1,6});/gi,Sy=/^<!--[\s\S]*?(?:-->)/,_x=/^(data|aria|x)-[a-z_][a-z\d_.-]*$/,Uc=/^ *<([a-z][a-z0-9:]*)(?:\s+((?:<.*?>|[^>])*))?\/?>(?!<\/\1>)(\s*\n)?/i,Ex=/^\{.*\}$/,wx=/^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/,Sx=/^<([^ >]+@[^ >]+)>/,xx=/^<([^ >]+:\/[^ >]+)>/,bx=/-([a-z])?/gi,xy=/^(\|.*)\n(?: *(\|? *[-:]+ *\|[-| :]*)\n((?:.*\|.*\n)*))?\n?/,Tx=/^\[([^\]]*)\]:\s+<?([^\s>]+)>?\s*("([^"]*)")?/,Cx=/^!\[([^\]]*)\] ?\[([^\]]*)\]/,kx=/^\[([^\]]*)\] ?\[([^\]]*)\]/,Rx=/(\n|^[-*]\s|^#|^ {2,}|^-{2,}|^>\s)/,Ox=/\t/g,Nx=/(^ *\||\| *$)/g,Ax=/^ *:-+: *$/,Ix=/^ *:-+ *$/,Dx=/^ *-+: *$/,ya="((?:\\[.*?\\][([].*?[)\\]]|<.*?>(?:.*?<.*?>)?|`.*?`|\\\\\\1|[\\s\\S])+?)",Px=new RegExp(`^([*_])\\1${ya}\\1\\1(?!\\1)`),Mx=new RegExp(`^([*_])${ya}\\1(?!\\1)`),Fx=new RegExp(`^(==)${ya}\\1`),Lx=new RegExp(`^(~~)${ya}\\1`),Bx=/^\\([^0-9A-Za-z\s])/,Uu=/\\([^0-9A-Za-z\s])/g,jx=/^([\s\S](?:(?! |[0-9]\.)[^*_~\-\n<`\\\[!])*)/,Ux=/^\n+/,Hx=/^([ \t]*)/,zx=/\\([^\\])/g,Gx=/(?:^|\n)( *)$/,bf="(?:\\d+\\.)",Tf="(?:[*+-])";function by(e){return"( *)("+(e===1?bf:Tf)+") +"}const Ty=by(1),Cy=by(2);function ky(e){return new RegExp("^"+(e===1?Ty:Cy))}const $x=ky(1),qx=ky(2);function Ry(e){return new RegExp("^"+(e===1?Ty:Cy)+"[^\\n]*(?:\\n(?!\\1"+(e===1?bf:Tf)+" )[^\\n]*)*(\\n|$)","gm")}const Vx=Ry(1),Wx=Ry(2);function Oy(e){const n=e===1?bf:Tf;return new RegExp("^( *)("+n+") [\\s\\S]+?(?:\\n{2,}(?! )(?!\\1"+n+" (?!"+n+" ))\\n*|\\s*\\n*$)")}const Ny=Oy(1),Ay=Oy(2);function Jm(e,n){const i=n===1,s=i?Ny:Ay,l=i?Vx:Wx,u=i?$x:qx;return{match:Yn(function(d,h){const p=Gx.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 v=i?+d[2]:void 0,y=d[0].replace(ox,`
85
85
  `).match(l);let b=!1;return{items:y.map(function(m,w){const _=u.exec(m)[0].length,S=new RegExp("^ {1,"+_+"}","gm"),R=m.replace(S,"").replace(u,""),O=w===y.length-1,N=R.indexOf(`
86
86
 
87
87
  `)!==-1||O&&b;b=N;const x=p.inline,k=p.list;let T;p.list=!0,N?(p.inline=!1,T=no(R)+`
88
88
 
89
- `):(p.inline=!0,T=no(R));const F=h(T,p);return p.inline=x,p.list=k,F}),ordered:i,start:v}},render:(d,h,p)=>e(d.ordered?"ol":"ul",{key:p.key,start:d.type===se.orderedList?d.start:void 0},d.items.map(function(v,y){return e("li",{key:y},h(v,p))}))}}const Wx=new RegExp(`^\\[((?:\\[[^\\]]*\\]|[^\\[\\]]|\\](?=[^\\[]*\\]))*)\\]\\(\\s*<?((?:\\([^)]*\\)|[^\\s\\\\]|\\\\.)*?)>?(?:\\s+['"]([\\s\\S]*?)['"])?\\s*\\)`),Kx=/^!\[(.*?)\]\( *((?:\([^)]*\)|[^() ])*) *"?([^)"]*)?"?\)/,Iy=[gy,yy,vy,_y,wy,Ey,xy,Ny,Ay],Zx=[...Iy,/^[^\n]+(?: \n|\n{2,})/,jc,Sy,Uc];function no(e){let n=e.length;for(;n>0&&e[n-1]<=" ";)n--;return e.slice(0,n)}function Vi(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 Qx(e){return Ix.test(e)?"right":Nx.test(e)?"center":Ax.test(e)?"left":null}function eg(e,n,i,s){const l=i.inTable;i.inTable=!0;let u=[[]],d="";function h(){if(!d)return;const p=u[u.length-1];p.push.apply(p,n(d,i)),d=""}return e.trim().split(/(`[^`]*`|\\\||\|)/).filter(Boolean).forEach((p,v,y)=>{p.trim()==="|"&&(h(),s)?v!==0&&v!==y.length-1&&u.push([]):d+=p}),h(),i.inTable=l,u}function Xx(e,n,i){i.inline=!0;const s=e[2]?e[2].replace(Ox,"").split("|").map(Qx):[],l=e[3]?function(d,h,p){return d.trim().split(`
90
- `).map(function(v){return eg(v,h,p,!0)})}(e[3],n,i):[],u=eg(e[1],n,i,!!l.length);return i.inline=!1,l.length?{align:s,cells:l,header:u,type:se.table}:{children:u,type:se.paragraph}}function tg(e,n){return e.align[n]==null?{}:{textAlign:e.align[n]}}function Yn(e){return e.inline=1,e}function Wr(e){return Yn(function(n,i){return i.inline?e.exec(n):null})}function Kr(e){return Yn(function(n,i){return i.inline||i.simple?e.exec(n):null})}function wr(e){return function(n,i){return i.inline||i.simple?null:e.exec(n)}}function Wi(e){return Yn(function(n){return e.exec(n)})}function Yx(e,n){if(n.inline||n.simple)return null;let i="";e.split(`
89
+ `):(p.inline=!0,T=no(R));const F=h(T,p);return p.inline=x,p.list=k,F}),ordered:i,start:v}},render:(d,h,p)=>e(d.ordered?"ol":"ul",{key:p.key,start:d.type===se.orderedList?d.start:void 0},d.items.map(function(v,y){return e("li",{key:y},h(v,p))}))}}const Kx=new RegExp(`^\\[((?:\\[[^\\]]*\\]|[^\\[\\]]|\\](?=[^\\[]*\\]))*)\\]\\(\\s*<?((?:\\([^)]*\\)|[^\\s\\\\]|\\\\.)*?)>?(?:\\s+['"]([\\s\\S]*?)['"])?\\s*\\)`),Zx=/^!\[(.*?)\]\( *((?:\([^)]*\)|[^() ])*) *"?([^)"]*)?"?\)/,Iy=[gy,yy,vy,_y,wy,Ey,xy,Ny,Ay],Xx=[...Iy,/^[^\n]+(?: \n|\n{2,})/,jc,Sy,Uc];function no(e){let n=e.length;for(;n>0&&e[n-1]<=" ";)n--;return e.slice(0,n)}function Vi(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 Qx(e){return Dx.test(e)?"right":Ax.test(e)?"center":Ix.test(e)?"left":null}function eg(e,n,i,s){const l=i.inTable;i.inTable=!0;let u=[[]],d="";function h(){if(!d)return;const p=u[u.length-1];p.push.apply(p,n(d,i)),d=""}return e.trim().split(/(`[^`]*`|\\\||\|)/).filter(Boolean).forEach((p,v,y)=>{p.trim()==="|"&&(h(),s)?v!==0&&v!==y.length-1&&u.push([]):d+=p}),h(),i.inTable=l,u}function Yx(e,n,i){i.inline=!0;const s=e[2]?e[2].replace(Nx,"").split("|").map(Qx):[],l=e[3]?function(d,h,p){return d.trim().split(`
90
+ `).map(function(v){return eg(v,h,p,!0)})}(e[3],n,i):[],u=eg(e[1],n,i,!!l.length);return i.inline=!1,l.length?{align:s,cells:l,header:u,type:se.table}:{children:u,type:se.paragraph}}function tg(e,n){return e.align[n]==null?{}:{textAlign:e.align[n]}}function Yn(e){return e.inline=1,e}function Wr(e){return Yn(function(n,i){return i.inline?e.exec(n):null})}function Kr(e){return Yn(function(n,i){return i.inline||i.simple?e.exec(n):null})}function wr(e){return function(n,i){return i.inline||i.simple?null:e.exec(n)}}function Wi(e){return Yn(function(n){return e.exec(n)})}function Jx(e,n){if(n.inline||n.simple)return null;let i="";e.split(`
91
91
  `).every(l=>(l+=`
92
- `,!Iy.some(u=>u.test(l))&&(i+=l,!!l.trim())));const s=no(i);return s==""?null:[i,,s]}function Jx(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 rg(e){return e.replace(Hx,"$1")}function Ws(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 eb(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 tb(e,n,i){const s=i.inline||!1;i.inline=!1;const l=e(n,i);return i.inline=s,l}const Hu=(e,n,i)=>({children:Ws(n,e[2],i)});function zu(){return{}}function Gu(){return null}function rb(...e){return e.filter(Boolean).join(" ")}function $u(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 nb(e="",n={}){function i(m,w,..._){const S=$u(n.overrides,`${m}.props`,{});return n.createElement(function(R,O){const N=$u(O,R);return N?typeof N=="function"||typeof N=="object"&&"render"in N?N:$u(O,`${R}.component`,R):R}(m,n.overrides),_n({},w,S,{className:rb(w==null?void 0:w.className,S.className)||void 0}),..._)}function s(m){m=m.replace(mx,"");let w=!1;n.forceInline?w=!0:n.forceBlock||(w=kx.test(m)===!1);const _=v(p(w?m:`${no(m).replace(jx,"")}
92
+ `,!Iy.some(u=>u.test(l))&&(i+=l,!!l.trim())));const s=no(i);return s==""?null:[i,,s]}function eb(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 rg(e){return e.replace(zx,"$1")}function Ks(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 tb(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 rb(e,n,i){const s=i.inline||!1;i.inline=!1;const l=e(n,i);return i.inline=s,l}const Hu=(e,n,i)=>({children:Ks(n,e[2],i)});function zu(){return{}}function Gu(){return null}function nb(...e){return e.filter(Boolean).join(" ")}function $u(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 ib(e="",n={}){function i(m,w,..._){const S=$u(n.overrides,`${m}.props`,{});return n.createElement(function(R,O){const N=$u(O,R);return N?typeof N=="function"||typeof N=="object"&&"render"in N?N:$u(O,`${R}.component`,R):R}(m,n.overrides),_n({},w,S,{className:nb(w==null?void 0:w.className,S.className)||void 0}),..._)}function s(m){m=m.replace(gx,"");let w=!1;n.forceInline?w=!0:n.forceBlock||(w=Rx.test(m)===!1);const _=v(p(w?m:`${no(m).replace(Ux,"")}
93
93
 
94
- `,{inline:w}));for(;typeof _[_.length-1]=="string"&&!_[_.length-1].trim();)_.pop();if(n.wrapper===null)return _;const S=n.wrapper||(w?"span":"div");let R;if(_.length>1||n.forceWrapper)R=_;else{if(_.length===1)return R=_[0],typeof R=="string"?i("span",{key:"outer"},R):R;R=null}return n.createElement(S,{key:"outer"},R)}function l(m,w){const _=w.match(rx);return _?_.reduce(function(S,R){const O=R.indexOf("=");if(O!==-1){const N=function(F){return F.indexOf("-")!==-1&&F.match(vx)===null&&(F=F.replace(xx,function(z,V){return V.toUpperCase()})),F}(R.slice(0,O)).trim(),x=function(F){const z=F[0];return(z==='"'||z==="'")&&F.length>=2&&F[F.length-1]===z?F.slice(1,-1):F}(R.slice(O+1).trim()),k=Xm[N]||N;if(k==="ref")return S;const T=S[k]=function(F,z,V,fe){return z==="style"?V.split(/;\s?/).reduce(function(te,oe){const pe=oe.slice(0,oe.indexOf(":"));return te[pe.trim().replace(/(-[a-z])/g,ue=>ue[1].toUpperCase())]=oe.slice(pe.length+1).trim(),te},{}):z==="href"||z==="src"?fe(V,F,z):(V.match(_x)&&(V=V.slice(1,V.length-1)),V==="true"||V!=="false"&&V)}(m,N,x,n.sanitizer);typeof T=="string"&&(jc.test(T)||Uc.test(T))&&(S[k]=s(T.trim()))}else R!=="style"&&(S[Xm[R]||R]=!0);return S},{}):null}n.overrides=n.overrides||{},n.sanitizer=n.sanitizer||Jx,n.slugify=n.slugify||Vi,n.namedCodesToUnicode=n.namedCodesToUnicode?_n({},Ym,n.namedCodesToUnicode):Ym,n.createElement=n.createElement||B.createElement;const u=[],d={},h={[se.blockQuote]:{match:wr(gy),order:1,parse(m,w,_){const[,S,R]=m[0].replace(ox,"").match(sx);return{alert:S,children:w(R,_)}},render(m,w,_){const S={key:_.key};return m.alert&&(S.className="markdown-alert-"+n.slugify(m.alert.toLowerCase(),Vi),m.children.unshift({attrs:{},children:[{type:se.text,text:m.alert}],noInnerParse:!0,type:se.htmlBlock,tag:"header"})),i("blockquote",S,w(m.children,_))}},[se.breakLine]:{match:Wi(ax),order:1,parse:zu,render:(m,w,_)=>i("br",{key:_.key})},[se.breakThematic]:{match:wr(lx),order:1,parse:zu,render:(m,w,_)=>i("hr",{key:_.key})},[se.codeBlock]:{match:wr(vy),order:0,parse:m=>({lang:void 0,text:no(m[0].replace(/^ {4}/gm,"")).replace(Uu,"$1")}),render:(m,w,_)=>i("pre",{key:_.key},i("code",_n({},m.attrs,{className:m.lang?`lang-${m.lang}`:""}),m.text))},[se.codeFenced]:{match:wr(yy),order:0,parse:m=>({attrs:l("code",m[3]||""),lang:m[2]||void 0,text:m[4].replace(Uu,"$1"),type:se.codeBlock})},[se.codeInline]:{match:Kr(ux),order:3,parse:m=>({text:m[2].replace(Uu,"$1")}),render:(m,w,_)=>i("code",{key:_.key},m.text)},[se.footnote]:{match:wr(dx),order:0,parse:m=>(u.push({footnote:m[2],identifier:m[1]}),{}),render:Gu},[se.footnoteReference]:{match:Wr(hx),order:1,parse:m=>({target:`#${n.slugify(m[1],Vi)}`,text:m[1]}),render:(m,w,_)=>i("a",{key:_.key,href:n.sanitizer(m.target,"a","href")},i("sup",{key:_.key},m.text))},[se.gfmTask]:{match:Wr(gx),order:1,parse:m=>({completed:m[1].toLowerCase()==="x"}),render:(m,w,_)=>i("input",{checked:m.completed,key:_.key,readOnly:!0,type:"checkbox"})},[se.heading]:{match:wr(n.enforceAtxHeadings?Ey:_y),order:1,parse:(m,w,_)=>({children:Ws(w,m[2],_),id:n.slugify(m[2],Vi),level:m[1].length}),render:(m,w,_)=>i(`h${m.level}`,{id:m.id,key:_.key},w(m.children,_))},[se.headingSetext]:{match:wr(wy),order:0,parse:(m,w,_)=>({children:Ws(w,m[1],_),level:m[2]==="="?1:2,type:se.heading})},[se.htmlBlock]:{match:Wi(jc),order:1,parse(m,w,_){const[,S]=m[3].match(Ux),R=new RegExp(`^${S}`,"gm"),O=m[3].replace(R,""),N=(x=O,Zx.some(V=>V.test(x))?tb:Ws);var x;const k=m[1].toLowerCase(),T=tx.indexOf(k)!==-1,F=(T?k:m[1]).trim(),z={attrs:l(F,m[2]),noInnerParse:T,tag:F};return _.inAnchor=_.inAnchor||k==="a",T?z.text=m[3]:z.children=N(w,O,_),_.inAnchor=!1,z},render:(m,w,_)=>i(m.tag,_n({key:_.key},m.attrs),m.text||(m.children?w(m.children,_):""))},[se.htmlSelfClosing]:{match:Wi(Uc),order:1,parse(m){const w=m[1].trim();return{attrs:l(w,m[2]||""),tag:w}},render:(m,w,_)=>i(m.tag,_n({},m.attrs,{key:_.key}))},[se.htmlComment]:{match:Wi(Sy),order:1,parse:()=>({}),render:Gu},[se.image]:{match:Kr(Kx),order:1,parse:m=>({alt:m[1],target:rg(m[2]),title:m[3]}),render:(m,w,_)=>i("img",{key:_.key,alt:m.alt||void 0,title:m.title||void 0,src:n.sanitizer(m.target,"img","src")})},[se.link]:{match:Wr(Wx),order:3,parse:(m,w,_)=>({children:eb(w,m[1],_),target:rg(m[2]),title:m[3]}),render:(m,w,_)=>i("a",{key:_.key,href:n.sanitizer(m.target,"a","href"),title:m.title},w(m.children,_))},[se.linkAngleBraceStyleDetector]:{match:Wr(Sx),order:0,parse:m=>({children:[{text:m[1],type:se.text}],target:m[1],type:se.link})},[se.linkBareUrlDetector]:{match:Yn((m,w)=>w.inAnchor||n.disableAutoLink?null:Wr(Ex)(m,w)),order:0,parse:m=>({children:[{text:m[1],type:se.text}],target:m[1],title:void 0,type:se.link})},[se.linkMailtoDetector]:{match:Wr(wx),order:0,parse(m){let w=m[1],_=m[1];return nx.test(_)||(_="mailto:"+_),{children:[{text:w.replace("mailto:",""),type:se.text}],target:_,type:se.link}}},[se.orderedList]:Jm(i,1),[se.unorderedList]:Jm(i,2),[se.newlineCoalescer]:{match:wr(cx),order:3,parse:zu,render:()=>`
95
- `},[se.paragraph]:{match:Yn(Yx),order:3,parse:Hu,render:(m,w,_)=>i("p",{key:_.key},w(m.children,_))},[se.ref]:{match:Wr(bx),order:0,parse:m=>(d[m[1]]={target:m[2],title:m[4]},{}),render:Gu},[se.refImage]:{match:Kr(Tx),order:0,parse:m=>({alt:m[1]||void 0,ref:m[2]}),render:(m,w,_)=>d[m.ref]?i("img",{key:_.key,alt:m.alt,src:n.sanitizer(d[m.ref].target,"img","src"),title:d[m.ref].title}):null},[se.refLink]:{match:Wr(Cx),order:0,parse:(m,w,_)=>({children:w(m[1],_),fallbackChildren:m[0],ref:m[2]}),render:(m,w,_)=>d[m.ref]?i("a",{key:_.key,href:n.sanitizer(d[m.ref].target,"a","href"),title:d[m.ref].title},w(m.children,_)):i("span",{key:_.key},m.fallbackChildren)},[se.table]:{match:wr(xy),order:1,parse:Xx,render(m,w,_){const S=m;return i("table",{key:_.key},i("thead",null,i("tr",null,S.header.map(function(R,O){return i("th",{key:O,style:tg(S,O)},w(R,_))}))),i("tbody",null,S.cells.map(function(R,O){return i("tr",{key:O},R.map(function(N,x){return i("td",{key:x,style:tg(S,x)},w(N,_))}))})))}},[se.text]:{match:Wi(Bx),order:4,parse:m=>({text:m[0].replace(yx,(w,_)=>n.namedCodesToUnicode[_]?n.namedCodesToUnicode[_]:w)}),render:m=>m.text},[se.textBolded]:{match:Kr(Dx),order:2,parse:(m,w,_)=>({children:w(m[2],_)}),render:(m,w,_)=>i("strong",{key:_.key},w(m.children,_))},[se.textEmphasized]:{match:Kr(Px),order:3,parse:(m,w,_)=>({children:w(m[2],_)}),render:(m,w,_)=>i("em",{key:_.key},w(m.children,_))},[se.textEscaped]:{match:Kr(Lx),order:1,parse:m=>({text:m[1],type:se.text})},[se.textMarked]:{match:Kr(Mx),order:3,parse:Hu,render:(m,w,_)=>i("mark",{key:_.key},w(m.children,_))},[se.textStrikethroughed]:{match:Kr(Fx),order:3,parse:Hu,render:(m,w,_)=>i("del",{key:_.key},w(m.children,_))}};n.disableParsingRawHTML===!0&&(delete h[se.htmlBlock],delete h[se.htmlSelfClosing]);const p=function(m){let w=Object.keys(m);function _(S,R){let O,N,x=[],k="",T="";for(R.prevCapture=R.prevCapture||"";S;){let F=0;for(;F<w.length;){if(k=w[F],O=m[k],R.inline&&!O.match.inline){F++;continue}const z=O.match(S,R);if(z){T=z[0],R.prevCapture+=T,S=S.substring(T.length),N=O.parse(z,_,R),N.type==null&&(N.type=k),x.push(N);break}F++}}return R.prevCapture="",x}return w.sort(function(S,R){let O=m[S].order,N=m[R].order;return O!==N?O-N:S<R?-1:1}),function(S,R){return _(function(O){return O.replace(fx,`
96
- `).replace(px,"").replace(Rx," ")}(S),R)}}(h),v=(y=function(m,w){return function(_,S,R){const O=m[_.type].render;return w?w(()=>O(_,S,R),_,S,R):O(_,S,R)}}(h,n.renderRule),function m(w,_={}){if(Array.isArray(w)){const S=_.key,R=[];let O=!1;for(let N=0;N<w.length;N++){_.key=N;const x=m(w[N],_),k=typeof x=="string";k&&O?R[R.length-1]+=x:x!==null&&R.push(x),O=k}return _.key=S,R}return y(w,m,_)});var y;const b=s(e);return u.length?i("div",null,b,i("footer",{key:"footer"},u.map(function(m){return i("div",{id:n.slugify(m.identifier,Vi),key:m.identifier},m.identifier,v(p(m.footnote,{inline:!0})))}))):b}const lr=e=>{let{children:n="",options:i}=e,s=function(l,u){if(l==null)return{};var d,h,p={},v=Object.keys(l);for(h=0;h<v.length;h++)u.indexOf(d=v[h])>=0||(p[d]=l[d]);return p}(e,ex);return B.cloneElement(nb(n,i),s)},ib="_generalConditionsContainer_55hjg_1",ob="_generalConditions_55hjg_1",sb="_generalConditionsHeader_55hjg_15",ab="_generalConditionsBody_55hjg_26",lb="_generalConditionsAccept_55hjg_35",Ki={generalConditionsContainer:ib,generalConditions:ob,generalConditionsHeader:sb,generalConditionsBody:ab,generalConditionsAccept:lb},ub=()=>E.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"currentColor",viewBox:"0 0 256 256",children:E.jsx("path",{d:"M212.24,100.24l-80,80a6,6,0,0,1-8.48,0l-80-80a6,6,0,0,1,8.48-8.48L128,167.51l75.76-75.75a6,6,0,0,1,8.48,8.48Z"})}),cb=()=>E.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"currentColor",viewBox:"0 0 256 256",children:E.jsx("path",{d:"M212.24,164.24a6,6,0,0,1-8.48,0L128,88.49,52.24,164.24a6,6,0,0,1-8.48-8.48l80-80a6,6,0,0,1,8.48,0l80,80A6,6,0,0,1,212.24,164.24Z"})}),fb="general-conditions.header",db="general-conditions.body",ng="general-conditions.accept-conditions-note",hb=()=>{const e=Je(),[n,i]=B.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(fb),d=e(ng);return E.jsxs("div",{className:q(Ki.generalConditionsContainer,"chat__generalConditions"),children:[!!(u!=null&&u.length)&&E.jsxs("div",{className:Ki.generalConditions,children:[E.jsxs("div",{role:"button",onClick:s,onKeyDown:l,tabIndex:0,className:q(Ki.generalConditionsHeader,"chat__generalConditions__header"),"aria-controls":"general-conditions-body","aria-expanded":n?"true":"false","aria-pressed":n?"true":"false",children:[E.jsx(lr,{children:u}),n?E.jsx(cb,{}):E.jsx(ub,{})]}),E.jsx("div",{className:q(Ki.generalConditionsBody,"chat__generalConditions__body"),id:"general-conditions-body",role:"region",tabIndex:-1,children:n&&E.jsx(lr,{children:e(db)||""})})]}),!!(d!=null&&d.length)&&E.jsx("div",{className:q(Ki.generalConditionsAccept,"chat__generalConditions__accept"),tabIndex:0,children:E.jsx(lr,{children:e(ng)||""})})]})},pb="_message_1qom7_1",mb="_messageBot_1qom7_9",gb="_messageBotLast_1qom7_19",yb="_avatar_1qom7_19",vb="_messageBotFirst_1qom7_24",_b="_messageBotAnimated_1qom7_37",Eb="_messageGuest_1qom7_48",wb="_messageGuestFirst_1qom7_54",Sb="_messageGuestLast_1qom7_60",xb="_botAvatar_1qom7_74",bb="_agentAvatar_1qom7_78",Tb="_bubble_1qom7_82",Cb="_bubbleContent_1qom7_88",kb="_bubbleLeft_1qom7_102",Rb="_leftText_1qom7_113",Ob="_bubbleRight_1qom7_120",Nb="_rightText_1qom7_130",Ab="_sourceInfoReference_1qom7_162",de={message:pb,messageBot:mb,messageBotLast:gb,avatar:yb,messageBotFirst:vb,messageBotAnimated:_b,messageGuest:Eb,messageGuestFirst:wb,messageGuestLast:Sb,botAvatar:xb,agentAvatar:bb,bubble:Tb,bubbleContent:Cb,bubbleLeft:kb,leftText:Rb,bubbleRight:Ob,rightText:Nb,sourceInfoReference:Ab},Ib="_botMessageActions_1dl7x_1",Db="_alwaysVisible_1dl7x_22",Pb="_reported_1dl7x_29",Mb="_action_1dl7x_33",Zr={botMessageActions:Ib,alwaysVisible:Db,reported:Pb,action:Mb},Fb=({alwaysVisible:e,reaction:n,botMessageRef:i,onReaction:s})=>{const l=Je(),[u,d]=B.useState(!1),h=v=>()=>s(v),p=B.useCallback(async()=>{if(i.current)try{d(!0);const v=i.current.innerHTML,y=i.current.innerText;await navigator.clipboard.write([new ClipboardItem({"text/html":new Blob([v],{type:"text/html"}),"text/plain":new Blob([y],{type:"text/plain"})})]),await new Promise(b=>setTimeout(b,1500))}finally{d(!1)}},[i]);return E.jsxs("div",{className:q(Zr.botMessageActions,e&&Zr.alwaysVisible,n&&Zr.reported),children:[E.jsx("button",{className:q(Zr.action,n==="GOOD"&&Zr.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:E.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",children:n==="GOOD"?E.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"}):E.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"})})}),E.jsx("button",{className:q(Zr.action,n==="BAD"&&Zr.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:E.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",children:n==="BAD"?E.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"}):E.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"})})}),E.jsx("button",{className:q(Zr.action,"tooltip--right"),tabIndex:0,"aria-label":l("bot-bubble.copy"),"data-title":l("bot-bubble.copy"),onClick:p,children:E.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",children:u?E.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"}):E.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"})})})]})},Dy=B.forwardRef(({message:e,isAnimated:n,isLastMessage:i,isFirstMessageBySender:s,isLastMessageBySender:l,children:u,onReaction:d},h)=>{const p=Je(),v=B.useRef(null),y=e.sender.type===ge.UserType.BOT;return E.jsxs("li",{ref:h,className:q(de.message,de.messageBot,i&&de.lastMessage,s&&de.messageBotFirst,l&&de.messageBotLast,"chat__bubbleContainer",n&&de.messageBotAnimated,n&&"chat__bubbleContainer--animated",y?"chat__botBubbleContainer":"chat__agentBubbleContainer",s&&"chat__bubbleContainer--first",l&&"chat__bubbleContainer--last"),children:[E.jsx("img",{className:q(de.avatar,y?de.botAvatar:de.agentAvatar,"chat__avatar",y?"chat__botAvatar":"chat__agentAvatar"),src:`${e.sender.avatar}`,alt:y?"Bot":"Agent",referrerPolicy:"no-referrer"}),E.jsx("div",{ref:v,className:q(de.bubble,de.bubbleLeft,"chat__bubble",y?"chat__botBubble":"chat__agentBubble"),tabIndex:0,"aria-label":p(y?"bot-bubble.label":"agent-bubble.label"),children:E.jsx("div",{className:q(de.leftText),children:u})}),d&&E.jsx(Fb,{alwaysVisible:i&&l,reaction:e.reaction,botMessageRef:v,onReaction:d})]})}),Lb="_button_3ui4g_1",Bb="_buttonDefault_3ui4g_13",jb="_buttonPrimary_3ui4g_28",io={button:Lb,buttonDefault:Bb,buttonPrimary:jb},ya=({className:e,children:n,...i})=>E.jsx("button",{className:q(io.button,e),type:"button",...i,children:n}),Ub="_title_b904h_1",Hb="_subtitle_b904h_6",zb="_buttons_b904h_11",Gb="_button_b904h_11",$b="_imageContainer_b904h_34",qb="_image_b904h_34",Vb="_video_container_b904h_49",Wb="_video_b904h_49",Kb="_only_b904h_63",wt={title:Ub,subtitle:Hb,buttons:zb,button:Gb,imageContainer:$b,image:qb,video_container:Vb,video:Wb,only:Kb},Zb=({buttons:e,onButtonClick:n})=>E.jsx("div",{className:q(wt.buttons,"chat__bubbleButtons"),children:e.map((i,s)=>E.jsx(ya,{className:q(wt.button,"chat__bubbleButton"),onClick:()=>n(i),children:i.title},s))});var Fs={},Ls={},Bs={},ig;function Qb(){if(ig)return Bs;ig=1,Object.defineProperty(Bs,"__esModule",{value:!0});var e=Jn(),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 Bs.default=function(s,l,u){return n.createElement("a",{href:s,key:u},l)},Bs}var js={},og;function Xb(){return og||(og=1,Object.defineProperty(js,"__esModule",{value:!0}),js.default=function(e){return e}),js}var Us={},qu,sg;function Yb(){return sg||(sg=1,qu=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/),qu}var Vu,ag;function Jb(){return ag||(ag=1,Vu=/[\0-\x1F\x7F-\x9F]/),Vu}var Wu,lg;function eT(){return lg||(lg=1,Wu=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/),Wu}var Ku,ug;function tT(){return ug||(ug=1,Ku=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\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]/),Ku}var Zu,cg;function rT(){return cg||(cg=1,Zu=function(e){var n={};n.src_Any=Yb().source,n.src_Cc=Jb().source,n.src_Z=eT().source,n.src_P=tT().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 Qu,fg;function nT(){if(fg)return Qu;fg=1;function e(x){var k=Array.prototype.slice.call(arguments,1);return k.forEach(function(T){T&&Object.keys(T).forEach(function(F){x[F]=T[F]})}),x}function n(x){return Object.prototype.toString.call(x)}function i(x){return n(x)==="[object String]"}function s(x){return n(x)==="[object Object]"}function l(x){return n(x)==="[object RegExp]"}function u(x){return n(x)==="[object Function]"}function d(x){return x.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}var h={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};function p(x){return Object.keys(x||{}).reduce(function(k,T){return k||h.hasOwnProperty(T)},!1)}var v={"http:":{validate:function(x,k,T){var F=x.slice(k);return T.re.http||(T.re.http=new RegExp("^\\/\\/"+T.re.src_auth+T.re.src_host_port_strict+T.re.src_path,"i")),T.re.http.test(F)?F.match(T.re.http)[0].length:0}},"https:":"http:","ftp:":"http:","//":{validate:function(x,k,T){var F=x.slice(k);return T.re.no_http||(T.re.no_http=new RegExp("^"+T.re.src_auth+"(?:localhost|(?:(?:"+T.re.src_domain+")\\.)+"+T.re.src_domain_root+")"+T.re.src_port+T.re.src_host_terminator+T.re.src_path,"i")),T.re.no_http.test(F)?k>=3&&x[k-3]===":"||k>=3&&x[k-3]==="/"?0:F.match(T.re.no_http)[0].length:0}},"mailto:":{validate:function(x,k,T){var F=x.slice(k);return T.re.mailto||(T.re.mailto=new RegExp("^"+T.re.src_email_name+"@"+T.re.src_host_strict,"i")),T.re.mailto.test(F)?F.match(T.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]",b="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");function m(x){x.__index__=-1,x.__text_cache__=""}function w(x){return function(k,T){var F=k.slice(T);return x.test(F)?F.match(x)[0].length:0}}function _(){return function(x,k){k.normalize(x)}}function S(x){var k=x.re=rT()(x.__opts__),T=x.__tlds__.slice();x.onCompile(),x.__tlds_replaced__||T.push(y),T.push(k.src_xn),k.src_tlds=T.join("|");function F(te){return te.replace("%TLDS%",k.src_tlds)}k.email_fuzzy=RegExp(F(k.tpl_email_fuzzy),"i"),k.link_fuzzy=RegExp(F(k.tpl_link_fuzzy),"i"),k.link_no_ip_fuzzy=RegExp(F(k.tpl_link_no_ip_fuzzy),"i"),k.host_fuzzy_test=RegExp(F(k.tpl_host_fuzzy_test),"i");var z=[];x.__compiled__={};function V(te,oe){throw new Error('(LinkifyIt) Invalid schema "'+te+'": '+oe)}Object.keys(x.__schemas__).forEach(function(te){var oe=x.__schemas__[te];if(oe!==null){var pe={validate:null,link:null};if(x.__compiled__[te]=pe,s(oe)){l(oe.validate)?pe.validate=w(oe.validate):u(oe.validate)?pe.validate=oe.validate:V(te,oe),u(oe.normalize)?pe.normalize=oe.normalize:oe.normalize?V(te,oe):pe.normalize=_();return}if(i(oe)){z.push(te);return}V(te,oe)}}),z.forEach(function(te){x.__compiled__[x.__schemas__[te]]&&(x.__compiled__[te].validate=x.__compiled__[x.__schemas__[te]].validate,x.__compiled__[te].normalize=x.__compiled__[x.__schemas__[te]].normalize)}),x.__compiled__[""]={validate:null,normalize:_()};var fe=Object.keys(x.__compiled__).filter(function(te){return te.length>0&&x.__compiled__[te]}).map(d).join("|");x.re.schema_test=RegExp("(^|(?!_)(?:[><|]|"+k.src_ZPCc+"))("+fe+")","i"),x.re.schema_search=RegExp("(^|(?!_)(?:[><|]|"+k.src_ZPCc+"))("+fe+")","ig"),x.re.pretest=RegExp("("+x.re.schema_test.source+")|("+x.re.host_fuzzy_test.source+")|@","i"),m(x)}function R(x,k){var T=x.__index__,F=x.__last_index__,z=x.__text_cache__.slice(T,F);this.schema=x.__schema__.toLowerCase(),this.index=T+k,this.lastIndex=F+k,this.raw=z,this.text=z,this.url=z}function O(x,k){var T=new R(x,k);return x.__compiled__[T.schema].normalize(T,x),T}function N(x,k){if(!(this instanceof N))return new N(x,k);k||p(x)&&(k=x,x={}),this.__opts__=e({},h,k),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=e({},v,x),this.__compiled__={},this.__tlds__=b,this.__tlds_replaced__=!1,this.re={},S(this)}return N.prototype.add=function(k,T){return this.__schemas__[k]=T,S(this),this},N.prototype.set=function(k){return this.__opts__=e(this.__opts__,k),this},N.prototype.test=function(k){if(this.__text_cache__=k,this.__index__=-1,!k.length)return!1;var T,F,z,V,fe,te,oe,pe,ue;if(this.re.schema_test.test(k)){for(oe=this.re.schema_search,oe.lastIndex=0;(T=oe.exec(k))!==null;)if(V=this.testSchemaAt(k,T[2],oe.lastIndex),V){this.__schema__=T[2],this.__index__=T.index+T[1].length,this.__last_index__=T.index+T[0].length+V;break}}return this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&(pe=k.search(this.re.host_fuzzy_test),pe>=0&&(this.__index__<0||pe<this.__index__)&&(F=k.match(this.__opts__.fuzzyIP?this.re.link_fuzzy:this.re.link_no_ip_fuzzy))!==null&&(fe=F.index+F[1].length,(this.__index__<0||fe<this.__index__)&&(this.__schema__="",this.__index__=fe,this.__last_index__=F.index+F[0].length))),this.__opts__.fuzzyEmail&&this.__compiled__["mailto:"]&&(ue=k.indexOf("@"),ue>=0&&(z=k.match(this.re.email_fuzzy))!==null&&(fe=z.index+z[1].length,te=z.index+z[0].length,(this.__index__<0||fe<this.__index__||fe===this.__index__&&te>this.__last_index__)&&(this.__schema__="mailto:",this.__index__=fe,this.__last_index__=te))),this.__index__>=0},N.prototype.pretest=function(k){return this.re.pretest.test(k)},N.prototype.testSchemaAt=function(k,T,F){return this.__compiled__[T.toLowerCase()]?this.__compiled__[T.toLowerCase()].validate(k,F,this):0},N.prototype.match=function(k){var T=0,F=[];this.__index__>=0&&this.__text_cache__===k&&(F.push(O(this,T)),T=this.__last_index__);for(var z=T?k.slice(T):k;this.test(z);)F.push(O(this,T)),z=z.slice(this.__last_index__),T+=this.__last_index__;return F.length?F:null},N.prototype.tlds=function(k,T){return k=Array.isArray(k)?k:[k],T?(this.__tlds__=this.__tlds__.concat(k).sort().filter(function(F,z,V){return F!==V[z-1]}).reverse(),S(this),this):(this.__tlds__=k.slice(),this.__tlds_replaced__=!0,S(this),this)},N.prototype.normalize=function(k){k.schema||(k.url="http://"+k.url),k.schema==="mailto:"&&!/^mailto:/i.test(k.url)&&(k.url="mailto:"+k.url)},N.prototype.onCompile=function(){},Qu=N,Qu}const iT=JSON.parse('["aaa","aarp","abb","abbott","abbvie","abc","able","abogado","abudhabi","ac","academy","accenture","accountant","accountants","aco","actor","ad","ads","adult","ae","aeg","aero","aetna","af","afl","africa","ag","agakhan","agency","ai","aig","airbus","airforce","airtel","akdn","al","alibaba","alipay","allfinanz","allstate","ally","alsace","alstom","am","amazon","americanexpress","americanfamily","amex","amfam","amica","amsterdam","analytics","android","anquan","anz","ao","aol","apartments","app","apple","aq","aquarelle","ar","arab","aramco","archi","army","arpa","art","arte","as","asda","asia","associates","at","athleta","attorney","au","auction","audi","audible","audio","auspost","author","auto","autos","aw","aws","ax","axa","az","azure","ba","baby","baidu","banamex","band","bank","bar","barcelona","barclaycard","barclays","barefoot","bargains","baseball","basketball","bauhaus","bayern","bb","bbc","bbt","bbva","bcg","bcn","bd","be","beats","beauty","beer","bentley","berlin","best","bestbuy","bet","bf","bg","bh","bharti","bi","bible","bid","bike","bing","bingo","bio","biz","bj","black","blackfriday","blockbuster","blog","bloomberg","blue","bm","bms","bmw","bn","bnpparibas","bo","boats","boehringer","bofa","bom","bond","boo","book","booking","bosch","bostik","boston","bot","boutique","box","br","bradesco","bridgestone","broadway","broker","brother","brussels","bs","bt","build","builders","business","buy","buzz","bv","bw","by","bz","bzh","ca","cab","cafe","cal","call","calvinklein","cam","camera","camp","canon","capetown","capital","capitalone","car","caravan","cards","care","career","careers","cars","casa","case","cash","casino","cat","catering","catholic","cba","cbn","cbre","cc","cd","center","ceo","cern","cf","cfa","cfd","cg","ch","chanel","channel","charity","chase","chat","cheap","chintai","christmas","chrome","church","ci","cipriani","circle","cisco","citadel","citi","citic","city","ck","cl","claims","cleaning","click","clinic","clinique","clothing","cloud","club","clubmed","cm","cn","co","coach","codes","coffee","college","cologne","com","commbank","community","company","compare","computer","comsec","condos","construction","consulting","contact","contractors","cooking","cool","coop","corsica","country","coupon","coupons","courses","cpa","cr","credit","creditcard","creditunion","cricket","crown","crs","cruise","cruises","cu","cuisinella","cv","cw","cx","cy","cymru","cyou","cz","dad","dance","data","date","dating","datsun","day","dclk","dds","de","deal","dealer","deals","degree","delivery","dell","deloitte","delta","democrat","dental","dentist","desi","design","dev","dhl","diamonds","diet","digital","direct","directory","discount","discover","dish","diy","dj","dk","dm","dnp","do","docs","doctor","dog","domains","dot","download","drive","dtv","dubai","dunlop","dupont","durban","dvag","dvr","dz","earth","eat","ec","eco","edeka","edu","education","ee","eg","email","emerck","energy","engineer","engineering","enterprises","epson","equipment","er","ericsson","erni","es","esq","estate","et","eu","eurovision","eus","events","exchange","expert","exposed","express","extraspace","fage","fail","fairwinds","faith","family","fan","fans","farm","farmers","fashion","fast","fedex","feedback","ferrari","ferrero","fi","fidelity","fido","film","final","finance","financial","fire","firestone","firmdale","fish","fishing","fit","fitness","fj","fk","flickr","flights","flir","florist","flowers","fly","fm","fo","foo","food","football","ford","forex","forsale","forum","foundation","fox","fr","free","fresenius","frl","frogans","frontier","ftr","fujitsu","fun","fund","furniture","futbol","fyi","ga","gal","gallery","gallo","gallup","game","games","gap","garden","gay","gb","gbiz","gd","gdn","ge","gea","gent","genting","george","gf","gg","ggee","gh","gi","gift","gifts","gives","giving","gl","glass","gle","global","globo","gm","gmail","gmbh","gmo","gmx","gn","godaddy","gold","goldpoint","golf","goo","goodyear","goog","google","gop","got","gov","gp","gq","gr","grainger","graphics","gratis","green","gripe","grocery","group","gs","gt","gu","gucci","guge","guide","guitars","guru","gw","gy","hair","hamburg","hangout","haus","hbo","hdfc","hdfcbank","health","healthcare","help","helsinki","here","hermes","hiphop","hisamitsu","hitachi","hiv","hk","hkt","hm","hn","hockey","holdings","holiday","homedepot","homegoods","homes","homesense","honda","horse","hospital","host","hosting","hot","hotels","hotmail","house","how","hr","hsbc","ht","hu","hughes","hyatt","hyundai","ibm","icbc","ice","icu","id","ie","ieee","ifm","ikano","il","im","imamat","imdb","immo","immobilien","in","inc","industries","infiniti","info","ing","ink","institute","insurance","insure","int","international","intuit","investments","io","ipiranga","iq","ir","irish","is","ismaili","ist","istanbul","it","itau","itv","jaguar","java","jcb","je","jeep","jetzt","jewelry","jio","jll","jm","jmp","jnj","jo","jobs","joburg","jot","joy","jp","jpmorgan","jprs","juegos","juniper","kaufen","kddi","ke","kerryhotels","kerryproperties","kfh","kg","kh","ki","kia","kids","kim","kindle","kitchen","kiwi","km","kn","koeln","komatsu","kosher","kp","kpmg","kpn","kr","krd","kred","kuokgroup","kw","ky","kyoto","kz","la","lacaixa","lamborghini","lamer","lancaster","land","landrover","lanxess","lasalle","lat","latino","latrobe","law","lawyer","lb","lc","lds","lease","leclerc","lefrak","legal","lego","lexus","lgbt","li","lidl","life","lifeinsurance","lifestyle","lighting","like","lilly","limited","limo","lincoln","link","live","living","lk","llc","llp","loan","loans","locker","locus","lol","london","lotte","lotto","love","lpl","lplfinancial","lr","ls","lt","ltd","ltda","lu","lundbeck","luxe","luxury","lv","ly","ma","madrid","maif","maison","makeup","man","management","mango","map","market","marketing","markets","marriott","marshalls","mattel","mba","mc","mckinsey","md","me","med","media","meet","melbourne","meme","memorial","men","menu","merckmsd","mg","mh","miami","microsoft","mil","mini","mint","mit","mitsubishi","mk","ml","mlb","mls","mm","mma","mn","mo","mobi","mobile","moda","moe","moi","mom","monash","money","monster","mormon","mortgage","moscow","moto","motorcycles","mov","movie","mp","mq","mr","ms","msd","mt","mtn","mtr","mu","museum","music","mv","mw","mx","my","mz","na","nab","nagoya","name","navy","nba","nc","ne","nec","net","netbank","netflix","network","neustar","new","news","next","nextdirect","nexus","nf","nfl","ng","ngo","nhk","ni","nico","nike","nikon","ninja","nissan","nissay","nl","no","nokia","norton","now","nowruz","nowtv","np","nr","nra","nrw","ntt","nu","nyc","nz","obi","observer","office","okinawa","olayan","olayangroup","ollo","om","omega","one","ong","onl","online","ooo","open","oracle","orange","org","organic","origins","osaka","otsuka","ott","ovh","pa","page","panasonic","paris","pars","partners","parts","party","pay","pccw","pe","pet","pf","pfizer","pg","ph","pharmacy","phd","philips","phone","photo","photography","photos","physio","pics","pictet","pictures","pid","pin","ping","pink","pioneer","pizza","pk","pl","place","play","playstation","plumbing","plus","pm","pn","pnc","pohl","poker","politie","porn","post","pr","pramerica","praxi","press","prime","pro","prod","productions","prof","progressive","promo","properties","property","protection","pru","prudential","ps","pt","pub","pw","pwc","py","qa","qpon","quebec","quest","racing","radio","re","read","realestate","realtor","realty","recipes","red","redstone","redumbrella","rehab","reise","reisen","reit","reliance","ren","rent","rentals","repair","report","republican","rest","restaurant","review","reviews","rexroth","rich","richardli","ricoh","ril","rio","rip","ro","rocks","rodeo","rogers","room","rs","rsvp","ru","rugby","ruhr","run","rw","rwe","ryukyu","sa","saarland","safe","safety","sakura","sale","salon","samsclub","samsung","sandvik","sandvikcoromant","sanofi","sap","sarl","sas","save","saxo","sb","sbi","sbs","sc","scb","schaeffler","schmidt","scholarships","school","schule","schwarz","science","scot","sd","se","search","seat","secure","security","seek","select","sener","services","seven","sew","sex","sexy","sfr","sg","sh","shangrila","sharp","shell","shia","shiksha","shoes","shop","shopping","shouji","show","si","silk","sina","singles","site","sj","sk","ski","skin","sky","skype","sl","sling","sm","smart","smile","sn","sncf","so","soccer","social","softbank","software","sohu","solar","solutions","song","sony","soy","spa","space","sport","spot","sr","srl","ss","st","stada","staples","star","statebank","statefarm","stc","stcgroup","stockholm","storage","store","stream","studio","study","style","su","sucks","supplies","supply","support","surf","surgery","suzuki","sv","swatch","swiss","sx","sy","sydney","systems","sz","tab","taipei","talk","taobao","target","tatamotors","tatar","tattoo","tax","taxi","tc","tci","td","tdk","team","tech","technology","tel","temasek","tennis","teva","tf","tg","th","thd","theater","theatre","tiaa","tickets","tienda","tips","tires","tirol","tj","tjmaxx","tjx","tk","tkmaxx","tl","tm","tmall","tn","to","today","tokyo","tools","top","toray","toshiba","total","tours","town","toyota","toys","tr","trade","trading","training","travel","travelers","travelersinsurance","trust","trv","tt","tube","tui","tunes","tushu","tv","tvs","tw","tz","ua","ubank","ubs","ug","uk","unicom","university","uno","uol","ups","us","uy","uz","va","vacations","vana","vanguard","vc","ve","vegas","ventures","verisign","vermögensberater","vermögensberatung","versicherung","vet","vg","vi","viajes","video","vig","viking","villas","vin","vip","virgin","visa","vision","viva","vivo","vlaanderen","vn","vodka","volvo","vote","voting","voto","voyage","vu","wales","walmart","walter","wang","wanggou","watch","watches","weather","weatherchannel","webcam","weber","website","wed","wedding","weibo","weir","wf","whoswho","wien","wiki","williamhill","win","windows","wine","winners","wme","wolterskluwer","woodside","work","works","world","wow","ws","wtc","wtf","xbox","xerox","xihuan","xin","xxx","xyz","yachts","yahoo","yamaxun","yandex","ye","yodobashi","yoga","yokohama","you","youtube","yt","yun","za","zappos","zara","zero","zip","zm","zone","zuerich","zw","ελ","ευ","бг","бел","дети","ею","католик","ком","мкд","мон","москва","онлайн","орг","рус","рф","сайт","срб","укр","қаз","հայ","ישראל","קום","ابوظبي","ارامكو","الاردن","البحرين","الجزائر","السعودية","العليان","المغرب","امارات","ایران","بارت","بازار","بيتك","بھارت","تونس","سودان","سورية","شبكة","عراق","عرب","عمان","فلسطين","قطر","كاثوليك","كوم","مصر","مليسيا","موريتانيا","موقع","همراه","پاکستان","ڀارت","कॉम","नेट","भारत","भारतम्","भारोत","संगठन","বাংলা","ভারত","ভাৰত","ਭਾਰਤ","ભારત","ଭାରତ","இந்தியா","இலங்கை","சிங்கப்பூர்","భారత్","ಭಾರತ","ഭാരതം","ලංකා","คอม","ไทย","ລາວ","გე","みんな","アマゾン","クラウド","グーグル","コム","ストア","セール","ファッション","ポイント","世界","中信","中国","中國","中文网","亚马逊","企业","佛山","信息","健康","八卦","公司","公益","台湾","台灣","商城","商店","商标","嘉里","嘉里大酒店","在线","大拿","天主教","娱乐","家電","广东","微博","慈善","我爱你","手机","招聘","政务","政府","新加坡","新闻","时尚","書籍","机构","淡马锡","游戏","澳門","点看","移动","组织机构","网址","网店","网站","网络","联通","谷歌","购物","通販","集团","電訊盈科","飞利浦","食品","餐厅","香格里拉","香港","닷넷","닷컴","삼성","한국"]');var dg;function oT(){if(dg)return Us;dg=1,Object.defineProperty(Us,"__esModule",{value:!0});var e=nT(),n=l(e),i=iT,s=l(i);function l(d){return d&&d.__esModule?d:{default:d}}var u=new n.default;return u.tlds(s.default),Us.default=function(d){return u.match(d)},Us}var Hs={},hg;function sT(){return hg||(hg=1,Object.defineProperty(Hs,"__esModule",{value:!0}),Hs.default=function(e){return e}),Hs}var pg;function aT(){if(pg)return Ls;pg=1,Object.defineProperty(Ls,"__esModule",{value:!0});var e=function(){function O(N,x){for(var k=0;k<x.length;k++){var T=x[k];T.enumerable=T.enumerable||!1,T.configurable=!0,"value"in T&&(T.writable=!0),Object.defineProperty(N,T.key,T)}}return function(N,x,k){return x&&O(N.prototype,x),k&&O(N,k),N}}(),n=Jn(),i=m(n),s=Qb(),l=b(s),u=Xb(),d=b(u),h=oT(),p=b(h),v=sT(),y=b(v);function b(O){return O&&O.__esModule?O:{default:O}}function m(O){if(O&&O.__esModule)return O;var N={};if(O!=null)for(var x in O)Object.prototype.hasOwnProperty.call(O,x)&&(N[x]=O[x]);return N.default=O,N}function w(O,N){if(!(O instanceof N))throw new TypeError("Cannot call a class as a function")}function _(O,N){if(!O)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return N&&(typeof N=="object"||typeof N=="function")?N:O}function S(O,N){if(typeof N!="function"&&N!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof N);O.prototype=Object.create(N&&N.prototype,{constructor:{value:O,enumerable:!1,writable:!0,configurable:!0}}),N&&(Object.setPrototypeOf?Object.setPrototypeOf(O,N):O.__proto__=N)}var R=function(O){S(N,O);function N(){return w(this,N),_(this,(N.__proto__||Object.getPrototypeOf(N)).apply(this,arguments))}return e(N,[{key:"parseString",value:function(k){var T=this;if(k==="")return k;var F=this.props.matchDecorator(k);if(!F)return k;var z=[],V=0;return F.forEach(function(fe,te){fe.index>V&&z.push(k.substring(V,fe.index));var oe=T.props.hrefDecorator(fe.url),pe=T.props.textDecorator(fe.text),ue=T.props.componentDecorator(oe,pe,te);z.push(ue),V=fe.lastIndex}),k.length>V&&z.push(k.substring(V)),z.length===1?z[0]:z}},{key:"parse",value:function(k){var T=this,F=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return typeof k=="string"?this.parseString(k):i.isValidElement(k)&&k.type!=="a"&&k.type!=="button"?i.cloneElement(k,{key:F},this.parse(k.props.children)):Array.isArray(k)?k.map(function(z,V){return T.parse(z,V)}):k}},{key:"render",value:function(){return i.createElement(i.Fragment,null,this.parse(this.props.children))}}]),N}(i.Component);return R.defaultProps={componentDecorator:l.default,hrefDecorator:d.default,matchDecorator:p.default,textDecorator:y.default},Ls.default=R,Ls}var mg;function lT(){if(mg)return Fs;mg=1,Object.defineProperty(Fs,"__esModule",{value:!0});var e=aT(),n=i(e);function i(s){return s&&s.__esModule?s:{default:s}}return Fs.default=n.default,Fs}var uT=lT();const cT=oa(uT),fT="_text_gp0s0_1",dT="_command_gp0s0_5",gg={text:fT,command:dT},Py=({text:e,commands:n=[],onLinkClick:i})=>{const s=h=>p=>(p.preventDefault(),h&&i(h),!1),l=(h,p,v)=>E.jsx("a",{onClick:s(h),role:"button",children:p},v),u=n.find(h=>e.startsWith(`/${h}`)),d=u?e.slice(u.length+1):e;return E.jsxs("div",{children:[u&&E.jsxs("code",{className:gg.command,children:["/",u]}),d.split(`
97
- `).map((h,p)=>E.jsxs("span",{className:gg.text,children:[E.jsx(cT,{componentDecorator:l,children:h}),E.jsx("br",{})]},p))]})},hT=({subtitle:e,onLinkClick:n})=>e?E.jsx("div",{className:wt.subtitle,children:E.jsx(Py,{text:e,onLinkClick:n})}):null,yg="newtab#",My=({markdown:e,markdownOptions:n={},onLinkClick:i})=>{const s=u=>d=>(d.preventDefault(),u&&i(u),!1),l=({title:u,href:d,children:h})=>d.indexOf(yg)===0?E.jsx("a",{href:d.slice(yg.length),title:u,target:"_blank",rel:"noopener noreferrer",children:h}):E.jsx("a",{onClick:s(d),title:u,href:d,children:h});return E.jsx(lr,{options:{...n,overrides:{a:l}},children:e})},pT=({text:e,onLinkClick:n})=>e?E.jsx("div",{children:E.jsx(My,{markdown:e,onLinkClick:n})}):null,mT=({title:e})=>e?E.jsx("h1",{className:wt.title,children:e}):null,gT=({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)?E.jsxs("div",{className:q(de.bubbleContent),children:[E.jsx(mT,{title:e}),E.jsx(pT,{text:n,onLinkClick:u}),E.jsx(hT,{subtitle:i,onLinkClick:u}),E.jsx(Zb,{buttons:s,onButtonClick:l})]}):null,yT=({alt:e,imageUrl:n,itemUrl:i,hasBody:s})=>n?i?i.indexOf("youtube.com")>-1?E.jsx("div",{className:wt.video_container,children:E.jsx("iframe",{className:q(wt.video,{[wt.only]:!s}),title:"Youtube",width:"100%",src:i+"?rel=0",frameBorder:"0",allowFullScreen:!0})}):E.jsx("a",{href:i,target:"_blank",rel:"noopener noreferrer",children:E.jsx("div",{className:wt.imageContainer,children:E.jsx("img",{className:q(wt.image,{[wt.only]:!s}),src:n,alt:e})})}):E.jsx("div",{className:wt.imageContainer,children:E.jsx("img",{className:q(wt.image,{[wt.only]:!s}),src:n,alt:e})}):null,vT=({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 E.jsxs("div",{className:q(wt.detailMessage),children:[E.jsx(yT,{hasBody:p,imageUrl:s,itemUrl:l,alt:e||i}),p&&E.jsx(gT,{title:e,text:n,subtitle:i,buttons:u,onLinkClick:h,onButtonClick:d})]})},_T=B.forwardRef(({isFirstMessageBySender:e,isLastMessageBySender:n,children:i},s)=>{const l=Je();return E.jsx("li",{ref:s,className:q(de.message,de.messageGuest,e&&de.messageGuestFirst,n&&de.messageGuestLast,"chat__bubbleContainer","chat__guestBubbleContainer",e&&"chat__bubbleContainer--first",n&&"chat__bubbleContainer--last"),children:E.jsx("div",{className:q(de.bubble,de.bubbleRight,"chat__bubble","chat__guestBubble"),tabIndex:0,"aria-label":l("guest-bubble.label"),children:E.jsx("div",{className:q(de.rightText),children:i})})})}),ET="_markdown_nw7vg_1",Fy={markdown:ET},zs="source-info-reference",wT=({markdown:e,className:n,onLinkClick:i})=>{const s=ti(),l=ST(),u=h=>p=>{const v=p.key;(v==="ArrowDown"||v==="ArrowRight"||v==="Enter"||v===" "||v==="Space")&&(p.stopPropagation(),s(Wm(h)))},d=h=>()=>{s(Wm(h))};return B.useLayoutEffect(()=>{document.querySelectorAll(`.${zs}`).forEach(h=>{var y,b,m,w;const p=h.previousSibling;p&&p.nodeType===Node.TEXT_NODE&&((y=p.textContent)!=null&&y.endsWith(" "))&&((b=p.textContent)!=null&&b.trim().length)&&h.classList.add(`${zs}--before-space`);const v=h.nextSibling;v&&v.nodeType===Node.TEXT_NODE&&((m=v.textContent)!=null&&m.startsWith(" "))&&((w=v.textContent)!=null&&w.trim().length)&&h.classList.add(`${zs}--after-space`)})},[e]),E.jsx("div",{className:q(de.bubbleContent,Fy.markdown,n),children:E.jsx(My,{markdown:e,onLinkClick:i,markdownOptions:{renderRule(h,p,v,y){return p.type===se.footnoteReference?E.jsx("span",{className:q(de.sourceInfoReference,zs),children:E.jsx("a",{type:"button",tabIndex:0,onClick:d(p.text),onKeyDown:u(p.text),children:l(p.text)})},y.key):h()}}})})},ST=()=>{const e=[];return i=>{const s=e.indexOf(i);return s>-1?s+1:(e.push(i),e.length)}},xT=({text:e,commands:n,onLinkClick:i})=>E.jsx("div",{className:de.bubbleContent,children:E.jsx(Py,{text:e,commands:n,onLinkClick:i})}),bT=B.forwardRef(({message:e,commands:n,isLastMessage:i,isFirstMessageBySender:s,isLastMessageBySender:l,onReaction:u,onButtonClick:d,onLinkClick:h},p)=>{const v=TT(e,n,d,h);switch(e.sender.type){case ge.UserType.GUEST:return E.jsx(_T,{ref:p,isFirstMessageBySender:s,isLastMessageBySender:l,children:v});default:{const y=b=>u(e._id,b);return E.jsx(Dy,{ref:p,message:e,isAnimated:!1,isLastMessage:i,isFirstMessageBySender:s,isLastMessageBySender:l,onReaction:y,children:v})}}}),TT=(e,n,i,s)=>{switch(e.type){case ge.MessageTypeEnum.TEXT:{const l=e;return E.jsx(xT,{text:l.text,commands:n,onLinkClick:s})}case ge.MessageTypeEnum.DETAIL:{const l=e;return E.jsx(vT,{title:l.title,text:l.text,subtitle:l.subtitle,imageUrl:l.imageUrl,itemUrl:l.itemUrl,buttons:l.buttons,onButtonClick:i,onLinkClick:s})}case ge.MessageTypeEnum.MARKDOWN:{const l=e;return E.jsx(wT,{markdown:l.markdown,className:l.className,onLinkClick:s})}}},CT=(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,kT=r0.memo(bT,CT),RT="_ticontainer_xg0dn_1",OT="_tiblock_xg0dn_5",NT="_tidot_xg0dn_12",Zi={ticontainer:RT,tiblock:OT,tidot:NT},AT=({isTyping:e=!1})=>E.jsx("div",{className:Zi.ticontainer,children:E.jsx("div",{className:Zi.tiblock,children:e?E.jsxs(E.Fragment,{children:[E.jsx("div",{className:q(Zi.tidot,"chat__typingIndicator")}),E.jsx("div",{className:q(Zi.tidot,"chat__typingIndicator")}),E.jsx("div",{className:q(Zi.tidot,"chat__typingIndicator")})]}):null})}),IT=Object.assign({_id:"typing-indicator"},new ge.TextMessage("",new ge.BotUser)),DT=({messages:e,isBotTyping:n,showGeneralConditions:i,commands:s,onTranscriptItemReaction:l,onButtonClick:u,onLinkClick:d})=>{const h=B.useRef(0),p=B.useRef(!0),v=B.useRef(null),y=B.useRef(null),b=B.useRef(null);B.useLayoutEffect(()=>{if(e.length&&v.current&&(h.current<e.length||n)){if(y.current){const _=y.current.offsetTop;v.current.scrollTop=_}else if(b.current){const _=b.current.offsetTop;v.current.scrollTop=_}p.current&&(p.current=!1),h.current=e.length}},[e,p,n]);let m;const w=e.length;return E.jsxs("div",{ref:v,className:q(Zm.messageContainer,"chat__messageContainer"),style:{scrollBehavior:e.length&&p.current?"auto":"smooth"},id:"MessageContainer",role:"log","aria-live":"polite",children:[i&&E.jsx(hb,{}),E.jsxs("ul",{className:Zm.messages,children:[e.map((_,S)=>{const R=PT(_,m),O=MT(_,S,e,n);m=_.sender.type;const N=S+1===w;return E.jsx(kT,{ref:N?b:null,message:_,commands:s,isLastMessage:N,isFirstMessageBySender:R,isLastMessageBySender:O,onButtonClick:u,onLinkClick:d,onReaction:l},N&&!n?"last":_._id)}),n&&E.jsx(Dy,{ref:y,message:IT,isLastMessage:!1,isAnimated:!0,isFirstMessageBySender:m!==ge.UserType.BOT,isLastMessageBySender:!0,children:E.jsx(AT,{isTyping:!0})},"last")]})]})},PT=(e,n)=>!n||n!==e.sender.type,MT=(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)},FT="_bottomSheet_jp8dl_1",LT="_bottomSheetOpen_jp8dl_15",BT="_bottomSheetClose_jp8dl_20",Tr={bottomSheet:FT,bottomSheetOpen:LT,bottomSheetClose:BT},jT="_container_xc2nx_1",vg={container:jT},UT=({contentUrl:e})=>{const n=Qr(u=>u.connection.sessionId),[i,s]=B.useState(!1);B.useEffect(()=>{s(u=>u||!!e)},[e]);const l=B.useMemo(()=>{if(e&&n){const u=new URL(e,document.baseURI);return u.searchParams.set("sessionId",n),u.toString()}else return},[e,n]);return E.jsx("div",{className:q(vg.container,Tr.bottomSheet,{[Tr.bottomSheetOpen]:!!e,[Tr.bottomSheetClose]:i&&!e}),children:l&&E.jsx("iframe",{title:"Drawer",src:l,className:vg.iframe})})},HT="_container_tr4tn_1",zT={container:HT},GT=({title:e,href:n,children:i})=>E.jsx("a",{href:n,title:e,target:"_blank",rel:"noopener noreferrer",children:i}),$T=()=>{const n=Je()("powered-by");return n&&n.length?E.jsx("div",{className:q(zT.container,"chat__poweredBy"),children:E.jsx(lr,{options:{overrides:{a:GT}},children:n})}):null},_g=({className:e,children:n,...i})=>E.jsx(ya,{className:q(io.buttonDefault,e),type:"button",...i,children:n}),oo=({className:e,children:n,...i})=>E.jsx(ya,{className:q(io.buttonPrimary,e),...i,children:n}),qT="_container_h23mk_1",VT="_formContainer_h23mk_17",WT="_emailInput_h23mk_22",KT="_description_h23mk_52",ZT="_actions_h23mk_57",QT="_validationError_h23mk_67",XT="_submitted_h23mk_74",Sr={container:qT,formContainer:VT,emailInput:WT,description:KT,actions:ZT,validationError:QT,submitted:XT},YT=({visible:e,methods:n,onEmailExport:i,onPdfExport:s,onClose:l})=>{const u=Je(),[d,h]=B.useState(void 0),[p,v]=B.useState(!1),[y,b]=B.useState(!1),[m,w]=B.useState(void 0),_=B.useRef(null);B.useEffect(()=>{var N;e?((N=_.current)==null||N.focus(),v(!1),b(!1),h(e)):d===!0&&h(!1)},[e,d]);const S=N=>{N.preventDefault(),m&&m.length>0&&(i(m),v(!0),setTimeout(l,3*1e3))},R=N=>{const x=N.target.value.trim(),k=/^\w+([.-]?\w+)*@\w+([.-]?\w+)*(\.\w{2,3})+$/.test(x);w(k?x:"")},O=()=>{b(!0),s(),setTimeout(l,3*1e3)};return E.jsxs("div",{className:q(Sr.container,Tr.bottomSheet,{[Tr.bottomSheetOpen]:d===!0,[Tr.bottomSheetClose]:d===!1}),children:[n.pdf&&E.jsxs(E.Fragment,{children:[E.jsx("h2",{children:u("export-transcript.pdf.title")}),E.jsx(lr,{className:Sr.description,children:u("export-transcript.pdf.description")||""}),E.jsxs("div",{className:Sr.actions,children:[E.jsx(_g,{onClick:l,children:u("export-transcript.pdf.cancel")}),E.jsx(oo,{onClick:O,disabled:y,children:u("export-transcript.pdf.download")})]})]}),n.email&&E.jsxs(E.Fragment,{children:[E.jsx("h2",{children:u("export-transcript.email.title")}),E.jsx(lr,{className:Sr.description,children:u("export-transcript.email.description")||""}),E.jsxs("form",{onSubmit:S,className:Sr.formContainer,children:[E.jsxs("div",{children:[E.jsx("input",{disabled:p,ref:_,type:"email",placeholder:u("export-transcript.email.placeholder"),className:Sr.emailInput,onChange:R}),(m==null?void 0:m.length)===0?E.jsx("div",{className:Sr.validationError,children:u("export-transcript.email.invalid")}):null]}),E.jsxs("div",{className:Sr.actions,children:[E.jsx(_g,{onClick:l,children:u("export-transcript.email.cancel")}),E.jsx(oo,{type:"submit",disabled:p||m===void 0||m.length===0,children:u("export-transcript.email.send")})]})]}),p&&E.jsx("div",{className:Sr.submitted,children:u("export-transcript.email.success")})]})]})},JT="_inputContainer_fi5ao_1",eC={inputContainer:JT},tC="_blockUserInput_mjy87_1",rC={blockUserInput:tC},nC=({visible:e})=>{const n=Je();return e?E.jsx("div",{className:q(rC.blockUserInput,"chat__blockUserInput"),children:n("block-user-input.title")}):null},iC="_commandsDropdown_5ytuv_1",oC="_commands_5ytuv_1",sC="_command_5ytuv_1",aC="_commandActive_5ytuv_46",lC="_commandsSelections_5ytuv_55",Yi={commandsDropdown:iC,commands:oC,command:sC,commandActive:aC,commandsSelections:lC},uC=(e,n)=>{B.useEffect(()=>{const i=s=>{e.current&&!e.current.contains(s.target)&&n()};return document.addEventListener("mousedown",i),()=>document.removeEventListener("mousedown",i)},[e,n])},cC=(e,n,i,s,l)=>{B.useEffect(()=>{const u=d=>{if(e.length)switch(d.key){case"Enter":i(e[n]);break;case"ArrowUp":s(h=>h>0?h-1:e.length-1);break;case"ArrowDown":s(h=>h<e.length-1?h+1:0);break;case"Escape":l([]);break}};return document.addEventListener("keydown",u),()=>{document.removeEventListener("keydown",u)}},[e,n,i,s,l])},fC=({text:e,commands:n,onSelectCommand:i,onVisibilityChange:s})=>{const l=B.useRef(null),u=Je(),[d,h]=B.useState([]),[p,v]=B.useState(Eg(n)),[y,b]=B.useState(0),m=w=>i(`/${w}`);return uC(l,()=>h([])),cC(d,y,m,b,h),B.useEffect(()=>{v(Eg(n))},[n]),B.useEffect(()=>{const w=e.length||0;w===0||w>p||!e.startsWith("/")?h([]):h(n.filter(dC(e))),b(0)},[n,e,p]),B.useEffect(()=>{s(!!d.length)},[d,s]),d.length?E.jsx("div",{ref:l,className:Yi.commandsDropdown,children:E.jsx("ul",{className:Yi.commands,role:"listbox",children:d.map((w,_)=>E.jsxs("li",{className:q([Yi.command,y===_&&Yi.commandActive]),role:"option",onClick:()=>m(w),onMouseOver:()=>b(_),children:[E.jsxs("h1",{children:["/",w]}),E.jsx("p",{children:u(`commands.${w}`)})]},w))})}):null},Eg=e=>Math.max(...e.map(n=>n.length+1)),dC=e=>n=>{const i=`/${n}`;return i.startsWith(e)&&i.length>=e.length},wg=3,hC=({commands:e,onSelectCommand:n})=>{const i=Je(),[s,l]=B.useState(!1),u=v=>()=>{n(`/${v}`),l(!1)},d=()=>{l(!0)},h=()=>{l(!1)},p=s?e:e.slice(0,wg);return E.jsxs("div",{className:Yi.commandsSelections,children:[p.map(v=>E.jsxs("button",{onClick:u(v),children:["/",v]})),p.length<e.length?E.jsx("button",{"aria-label":i("commands.show-more.tooltip"),"data-title":i("commands.show-more.tooltip"),tabIndex:0,onClick:d,children:i("commands.show-more.action")},"show-more"):p.length>wg?E.jsx("button",{"aria-label":i("commands.show-less.tooltip"),"data-title":i("commands.show-less.tooltip"),tabIndex:0,onClick:h,children:i("commands.show-less.action")},"show-less"):null]})},pC="_callToActionContainer_bkfcm_1",mC="_callToActionTitle_bkfcm_23",gC="_rateOverlay_bkfcm_30",yC="_body_bkfcm_52",vC="_footer_bkfcm_60",_C="_actions_bkfcm_73",EC="_bubbles_bkfcm_101",wC="_stars_bkfcm_203",SC="_starsSmall_bkfcm_215",xC="_starsLarge_bkfcm_219",bC="_star_bkfcm_203",TC="_starReadonly_bkfcm_236",CC="_starIcon_bkfcm_246",kC="_starsDescriptionContainer_bkfcm_264",RC="_starsDescription_bkfcm_264",pt={callToActionContainer:pC,callToActionTitle:mC,rateOverlay:gC,body:yC,footer:vC,actions:_C,bubbles:EC,stars:wC,starsSmall:SC,starsLarge:xC,star:bC,starReadonly:TC,starIcon:CC,starsDescriptionContainer:kC,starsDescription:RC},OC=({value:e,index:n,count:i,readonly:s,onHover:l,onClick:u})=>{const d=h=>{u&&h.key==="Enter"&&u()};return E.jsx("li",{className:q(pt.star,{[pt.starReadonly]:s},"chat__conversationRating__star"),children:E.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:E.jsx("span",{role:"img","aria-label":"Star",className:q(pt.starIcon),children:E.jsx("svg",{viewBox:"64 64 896 896",focusable:"false","data-icon":"star",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",children:E.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"})})})})})},Sg=5,Ly=({value:e,size:n,readonly:i=!1,onChange:s})=>{const[l,u]=B.useState(void 0),d=()=>{u(void 0)},h=v=>()=>{if(!i){const y=v+1;u(y)}},p=v=>()=>{s&&!i&&(s(v===0&&e===1?0:v+1),u(void 0))};return E.jsx("ul",{tabIndex:0,role:"radiogroup",className:q(pt.stars,{[pt.starsSmall]:n==="small",[pt.starsLarge]:n==="large"},"chat__conversationRating__stars",{chat__conversationRating__stars__small:n==="small",chat__conversationRating__stars__large:n==="large"}),onMouseOut:d,children:Array(Sg).fill(0).map((v,y)=>E.jsx(OC,{value:l===void 0?e:l,index:y,count:Sg,readonly:i,onHover:h(y),onClick:p(y)},y))})},NC=({visible:e,onRate:n})=>{const i=Je();return e?E.jsxs("div",{className:q(pt.callToActionContainer,"chat__conversationRating__callToAction"),children:[E.jsx("div",{className:q(pt.callToActionTitle,"chat__conversationRating__callToAction__title"),children:i("conversation-rating.call-to-action.title")}),E.jsx(Ly,{value:0,size:"small",onChange:n})]}):null},Xu=({isFirstMessageBySender:e,isLastMessageBySender:n,children:i})=>E.jsxs("div",{className:q(de.message,de.messageBot,e&&de.messageBotFirst,n&&de.messageBotLast,"chat__bubbleContainer","chat__botBubbleContainer",e&&"chat__bubbleContainer--first",n&&"chat__bubbleContainer--last"),children:[E.jsx("img",{className:q(de.avatar,de.botAvatar),src:"bot.svg",alt:"Bot"}),E.jsx("div",{className:q(de.bubble,de.bubbleLeft,"chat__bubble","chat__botBubble"),children:E.jsx("div",{className:q(de.leftText,de.bubbleContent),children:i})})]}),AC=({children:e})=>E.jsx("div",{className:q(de.message,de.messageGuest,de.messageGuestFirst,de.messageGuestLast,"chat__bubbleContainer","chat__guestBubbleContainer","chat__bubbleContainer--first","chat__bubbleContainer--last"),children:E.jsx("div",{className:q(de.bubble,de.bubbleRight,"chat__bubble","chat__guestBubble"),children:E.jsx("div",{className:q(de.rightText,de.bubbleContent),children:e})})}),IC=({visible:e,rating:n,onRate:i,onClose:s})=>{const l=Je(),[u,d]=B.useState(n),[h,p]=B.useState(void 0),[v,y]=B.useState(void 0),[b,m]=B.useState({submitted:!1,feedback:""}),[w,_]=B.useState(!1),S=B.useRef(null);B.useEffect(()=>{e?(m({submitted:!1,feedback:""}),y(e)):v===!0&&y(!1)},[e,v]),B.useEffect(()=>{d(n)},[n]),B.useEffect(()=>{const O=l(`conversation-rating.overlay.bot-message.rate-feedback.value-${u}`);p(O!=null&&O.length?O:void 0)},[u,l]),B.useEffect(()=>{b.submitted?setTimeout(()=>_(!0),b.feedback.length?500:0):_(!1)},[b]);const R=O=>{var x,k;O.preventDefault();const N=((k=(x=S.current)==null?void 0:x.value)==null?void 0:k.trim())||"";i(u,N),m({submitted:!0,feedback:N})};return E.jsx("div",{className:q(pt.rateOverlay,Tr.bottomSheet,"chat__conversationRating__overlay",{[Tr.bottomSheetOpen]:v===!0,[Tr.bottomSheetClose]:v===!1}),children:E.jsxs("form",{onSubmit:R,children:[E.jsxs("div",{className:q(pt.body,"chat__conversationRating__overlay__body"),children:[E.jsx("div",{}),E.jsx("div",{className:q(pt.bubbles),children:e&&h&&E.jsxs(E.Fragment,{children:[E.jsxs(Xu,{isFirstMessageBySender:!0,isLastMessageBySender:!1,children:[E.jsx("h2",{children:l("conversation-rating.overlay.title")}),E.jsxs("div",{className:q(pt.starsDescriptionContainer),children:[E.jsx(Ly,{value:u,size:"large",readonly:b.submitted,onChange:d}),E.jsxs("div",{className:q(pt.starsDescription),children:[E.jsx("div",{children:l("conversation-rating.overlay.star.very-bad")}),E.jsx("div",{children:l("conversation-rating.overlay.star.very-good")})]})]})]}),E.jsx(Xu,{isFirstMessageBySender:!1,isLastMessageBySender:!w||!!b.feedback.length,children:E.jsx("div",{children:h})}),!!b.feedback.length&&E.jsx(AC,{children:b.feedback}),w&&E.jsx(Xu,{isFirstMessageBySender:!!b.feedback.length,isLastMessageBySender:!0,children:E.jsx("div",{children:l("conversation-rating.overlay.bot-message.submit-feedback")})})]})})]}),E.jsxs("div",{className:q(pt.footer,"chat__conversationRating__overlay__footer"),children:[!b.submitted&&E.jsx("input",{ref:S,placeholder:l("conversation-rating.overlay.guest-feedback.input-placeholder")}),E.jsx("div",{className:q(pt.actions,"chat__conversationRating__overlay__footer__actions"),children:b.submitted?E.jsx(oo,{type:"button",onClick:s,children:l("conversation-rating.overlay.action.close")}):E.jsx(oo,{type:"submit",children:l("conversation-rating.overlay.action.submit")})})]})]})})},DC=({conversationRating:{enabled:e,rating:n},numberOfMessagesFromGuest:i,showRatingOverlay:s,setShowRatingOverlay:l,onRate:u})=>{const[d,h]=B.useState(0),p=b=>{h(b),l(!0)},v=()=>l(!1),y=!n&&i>=1;return e?E.jsxs(E.Fragment,{children:[E.jsx(NC,{visible:y,onRate:p}),E.jsx(IC,{visible:s,rating:d,onRate:u,onClose:v})]}):null},PC="_inputWrapper_e3h44_1",MC="_withOpenCommands_e3h44_14",FC="_messageInputWrapper_e3h44_20",LC="_messageInput_e3h44_20",BC="_buttons_e3h44_44",jC="_button_e3h44_44",mn={inputWrapper:PC,withOpenCommands:MC,messageInputWrapper:FC,messageInput:LC,buttons:BC,button:jC},UC="_audioRecorder_g845f_1",HC="_audioButton_g845f_6",zC="_recorderIcon_g845f_37",GC="_spinning_g845f_60",gn={audioRecorder:UC,audioButton:HC,recorderIcon:zC,spinning:GC},xg=2048,ia=16e3;class $C extends r0.Component{constructor(i){super(i);xe(this,"audioInput",null);xe(this,"volume",null);xe(this,"leftchannel",[]);xe(this,"recorder",null);xe(this,"recordingLength",0);xe(this,"sampleRate",null);xe(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(xg,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+=xg}}handleClickSubmitAudio(){const i=VC(this.leftchannel,this.recordingLength),s=WC(i,this.sampleRate||0),l=qC(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 E.jsxs("div",{className:gn.audioRecorder,children:[this.state.recordingState==="none"&&E.jsx("button",{className:q(gn.audioButton,"chat__button"),type:"submit","aria-label":this.props.translate("message-input.actions.start-audio-recording.label"),"data-title":this.props.translate("message-input.actions.start-audio-recording.label"),tabIndex:0,onClick:this.triggerAudioRecording,children:E.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",children:[E.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"}),E.jsx("path",{d:"M0 0h24v24H0z",fill:"none"})]})}),this.state.recordingState==="connecting"&&E.jsxs("svg",{className:gn.spinning,xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",children:[E.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"}),E.jsx("path",{d:"M0 0h24v24H0z",fill:"none"})]}),this.state.recordingState==="recording"&&E.jsxs("div",{className:gn.audioRecorder,children:[E.jsx("button",{className:q(gn.audioButton),onClick:this.handleClickStopAudio,"aria-label":this.props.translate("message-input.actions.stop-audio-recording.label"),tabIndex:0,children:E.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",children:[E.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"}),E.jsx("path",{d:"M0 0h24v24H0z",fill:"none"})]})}),E.jsx("div",{className:gn.recorderIcon}),E.jsx("button",{className:q(gn.audioButton),type:"submit",onClick:this.handleClickSubmitAudio,"aria-label":this.props.translate("message-input.actions.submit-audio-recording.label"),tabIndex:0,autoFocus:!0,children:E.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",children:[E.jsx("path",{d:"M0 0h24v24H0z",fill:"none"}),E.jsx("path",{d:"M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"})]})})]})]})}}const qC=e=>{const n=new ArrayBuffer(44+e.length*2),i=new DataView(n);Gs(i,0,"RIFF"),i.setUint32(4,44+e.length*2,!0),Gs(i,8,"WAVE"),Gs(i,12,"fmt "),i.setUint32(16,16,!0),i.setUint16(20,1,!0),i.setUint16(22,1,!0),i.setUint32(24,ia,!0),i.setUint32(28,ia*4,!0),i.setUint16(32,4,!0),i.setUint16(34,16,!0),Gs(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"})},Gs=(e,n,i)=>{for(let s=0;s<i.length;s++)e.setUint8(n+s,i.charCodeAt(s))},VC=(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},WC=(e,n)=>{if(ia===n)return e;const i=n/ia,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,v=0;for(let y=d;y<h&&y<e.length;y++)p+=e[y],v++;l[u]=p/v,u++,d=h}return l},KC=({speechSupport:e,transcriptExportEnabled:n,disabled:i,textInput:s,commandsVisible:l,onTextInput:u,onTextInputSubmit:d,onAudioRecorded:h,onOpenTranscriptExportModal:p})=>{const v=Je(),y=B.useRef(null);B.useEffect(()=>{var S;(S=y.current)==null||S.focus()},[s]);const b=()=>{const S=y.current;S&&s.trim().length>=1&&d(s.trim())&&(S.value="",S.style.height="",S.focus())},m=S=>{S.preventDefault(),b()},w=S=>{const R=S.target.value;u(R),S.target.style.height="";const{scrollHeight:O}=S.target;S.target.style.height=`${O>150?150:O}px`},_=S=>{S.code==="Enter"&&!S.shiftKey?(S.repeat||b(),S.preventDefault()):l&&(S.code==="ArrowUp"||S.code==="ArrowDown")&&S.preventDefault()};return E.jsxs("form",{className:q(mn.inputWrapper,l&&mn.withOpenCommands,"chat__textInput"),onSubmit:m,children:[E.jsx("div",{className:mn.messageInputWrapper,children:E.jsx("textarea",{id:"user_input",ref:y,className:mn.messageInput,tabIndex:0,placeholder:v("message-input-placeholder"),value:s,onChange:w,onKeyDown:_,"aria-label":v("message-input-label"),"aria-controls":"command-list","aria-haspopup":"listbox"})}),E.jsxs("div",{className:q(mn.buttons,"chat__buttons"),children:[!s.length&&n&&E.jsx("button",{type:"button",className:q(mn.button,"chat__button"),"aria-label":v("message-input.actions.export-transcript.label"),"data-title":v("message-input.actions.export-transcript.label"),tabIndex:0,onClick:p,children:E.jsx("svg",{viewBox:"64 64 896 896",focusable:"false",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",children:E.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"})})}),s.length||!e||navigator.mediaDevices===void 0?E.jsx("button",{className:q(mn.button,"chat__button"),type:"submit","aria-label":v("message-input.actions.submit.label"),"data-title":v("message-input.actions.submit.label"),tabIndex:0,disabled:i,children:E.jsx("svg",{viewBox:"64 64 896 896",focusable:"false",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",children:E.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&&E.jsx($C,{translate:v,onAudioRecorded:h})]})]})},ZC="_quickReplies_83npe_1",QC="_quickReply_83npe_9",bg={quickReplies:ZC,quickReply:QC},XC=({quickReplies:e,onQuickReplyClick:n})=>e.length?E.jsx("div",{className:q(bg.quickReplies,"chat__quickReplies"),children:e.map(i=>E.jsx(ya,{tabIndex:0,className:q(bg.quickReply,"chat__button","chat__quickReply"),onClick:()=>n(i),children:i.label},i.label))}):null,Tg=5e3,YC=1e3,JC=({isBotTyping:e,quickReplies:n,speechSupport:i,transcriptExportEnabled:s,conversationRating:l,numberOfMessagesFromGuest:u,showRatingOverlay:d,commands:h,setShowRatingOverlay:p,onTextInput:v,onRate:y,onQuickReplyClick:b,onAudioRecorded:m,onOpenTranscriptExportModal:w})=>{const[_,S]=B.useState(""),[R,O]=B.useState(!1),[N,x]=B.useState(!1),k=B.useRef(),T=B.useRef(0);B.useEffect(()=>{if(R&&!e){const V=k.current?Date.now()-k.current:0;V>Tg?O(!1):setTimeout(()=>{O(!1)},Tg-V)}},[R,e]),B.useEffect(()=>{R&&(k.current=Date.now())},[R]);const F=V=>{const fe=Date.now()-T.current<YC;return N?!1:e||fe?(O(!0),!1):(v(V),S(""),T.current=Date.now(),!0)},z=V=>{S(V+" ")};return E.jsxs("div",{className:q(eC.inputContainer),children:[E.jsx(XC,{quickReplies:n,onQuickReplyClick:b}),E.jsx(nC,{visible:R}),!R&&E.jsx(DC,{conversationRating:l,numberOfMessagesFromGuest:u,onRate:y,showRatingOverlay:d,setShowRatingOverlay:p}),!!(h!=null&&h.length)&&E.jsx(fC,{text:_,commands:h,onSelectCommand:z,onVisibilityChange:x}),E.jsx(KC,{textInput:_,speechSupport:i,transcriptExportEnabled:s,disabled:R,commandsVisible:N,onTextInput:S,onTextInputSubmit:F,onOpenTranscriptExportModal:w,onAudioRecorded:m}),!!(h!=null&&h.length)&&E.jsx(hC,{commands:h,onSelectCommand:S})]})},ek=({clientName:e,messages:n,quickReplies:i,isBotTyping:s,drawerContentUrl:l,speechSupport:u,transcriptExportEnabled:d,conversationRating:h,showGeneralConditions:p,commands:v,onMessageFromUser:y,onRate:b,onQuickReplyClick:m,onButtonClick:w,onLinkClick:_,onAudioRecorded:S,onTranscriptExport:R,onPdfExport:O,onTranscriptItemReaction:N})=>{const x=ti(),k=Qr(oe=>oe.connection.connectionState),[T,F]=B.useState(!1),[z,V]=B.useState(!1),fe=d.email||d.pdf,te=n.filter(oe=>oe.sender.type===my.GUEST).length;return B.useEffect(()=>{if(k===En.CONNECTED){const oe=la.parse(window.location.search);x(py(e,oe))}},[e,k,x]),E.jsxs("div",{className:ju.container,children:[E.jsxs("div",{className:q([ju.chatcontent,(T||z)&&ju.accessabilityHidden]),children:[E.jsx(DT,{messages:n,isBotTyping:s,showGeneralConditions:p,commands:v,onButtonClick:w,onLinkClick:_,onTranscriptItemReaction:N}),E.jsx(JC,{isBotTyping:s,quickReplies:s?[]:i,numberOfMessagesFromGuest:te,speechSupport:u,transcriptExportEnabled:fe,conversationRating:T?{enabled:!1}:h,showRatingOverlay:z,setShowRatingOverlay:V,commands:v,onRate:b,onQuickReplyClick:m,onTextInput:y,onAudioRecorded:S,onOpenTranscriptExportModal:()=>F(!T)}),E.jsx($T,{})]}),fe&&E.jsx(YT,{methods:d,visible:T,onEmailExport:R,onPdfExport:O,onClose:()=>F(!1)}),E.jsx(UT,{contentUrl:l})]})},tk=e=>{const{messages:n,quickReplies:i,isBotTyping:s,drawerContentUrl:l,speechSupport:u,transcriptExportEnabled:d,conversationRating:h,showGeneralConditions:p,commands:v}=e.chat;return{messages:n,quickReplies:i,isBotTyping:s,drawerContentUrl:l,speechSupport:u,transcriptExportEnabled:d,conversationRating:h,showGeneralConditions:p,commands:v}},rk=e=>({onRestartChat:(n,i)=>e(ma(n,i)),onMessageFromUser:n=>e(q0(n)),onRate:(n,i)=>e(zS(n,i)),onAudioRecorded:n=>e(DS(n)),onActionFromUser:n=>e(n),onQuickReplyClick:n=>e($0(n)),onNluEvent:n=>e(X0(n)),onButtonClick:n=>e($S(n)),onLinkClick:n=>e(qS(n)),onTranscriptExport:n=>e(LS(n)),onPdfExport:()=>e(US()),onTranscriptItemReaction:(n,i)=>e(ge.transcriptItemGuestReaction(n,i||null))}),nk=uE(tk,rk)(ek),By=()=>ik(window.location.pathname),ik=e=>{const n=e.split("/"),i=e.endsWith("/");return n[n.length-(i?2:1)]},jy=()=>B.useMemo(()=>By(),[]),ok="_header_19p33_1",sk="_logoContainer_19p33_13",ak="_logo_19p33_13",lk="_actions_19p33_26",uk="_closeButton_19p33_72",Ji={header:ok,logoContainer:sk,logo:ak,actions:lk,closeButton:uk},Uy=e=>n=>{const i=n.key;(i==="ArrowDown"||i==="ArrowRight"||i==="Enter"||i===" "||i==="Space")&&(n.stopPropagation(),e())},ck=({onClick:e})=>{const n=Je();return E.jsx("button",{className:q(Ji.closeButton,"tooltip--bottom"),"aria-label":n("header.close-chat"),"data-title":n("header.close-chat"),tabIndex:0,onClick:e,onKeyDown:Uy(e),children:E.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",children:E.jsx("path",{d:"M205.66,194.34a8,8,0,0,1-11.32,11.32L128,139.31,61.66,205.66a8,8,0,0,1-11.32-11.32L116.69,128,50.34,61.66A8,8,0,0,1,61.66,50.34L128,116.69l66.34-66.35a8,8,0,0,1,11.32,11.32L139.31,128Z"})})})},fk=({onClick:e})=>{const n=Je();return E.jsx("button",{className:"tooltip--bottom","aria-label":n("header.restart-chat"),"data-title":n("header.restart-chat"),tabIndex:0,onClick:e,onKeyDown:Uy(e),children:E.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 32 32",children:[E.jsx("path",{d:"M14.506,23.578l-5.511,0l-3.993,3.501l-0.007,0.006c-0.302,0.261 -0.687,0.405 -1.084,0.405c-0.245,-0.001 -0.488,-0.055 -0.711,-0.161c-0.595,-0.277 -0.978,-0.886 -0.974,-1.551l-0,-19.558c-0,-0.939 0.761,-1.711 1.685,-1.711l21.189,-0c0.924,-0 1.685,0.772 1.685,1.711l0,5.104l-1.444,0l-0,-5.104c-0,-0.134 -0.109,-0.244 -0.241,-0.244l-21.189,-0c-0.132,-0 -0.24,0.11 -0.24,0.244l-0,19.558c0.001,0.133 0.109,0.242 0.24,0.242c0.056,-0 0.109,-0.019 0.152,-0.055l4.192,-3.675c0.131,-0.115 0.299,-0.179 0.472,-0.179l5.779,0l-0,1.467Z"}),E.jsx("path",{d:"M29.869,20.148c0,4.137 -3.373,7.556 -7.509,7.612l-0.102,-0c-1.943,0.004 -3.814,-0.741 -5.223,-2.078c-0.183,-0.172 -0.286,-0.412 -0.286,-0.664c-0,-0.501 0.412,-0.913 0.913,-0.913c0.233,-0 0.458,0.089 0.627,0.249c1.074,1.014 2.495,1.579 3.971,1.579c3.174,-0 5.785,-2.612 5.785,-5.785c-0,-3.173 -2.611,-5.784 -5.785,-5.784c-1.533,-0 -3.006,0.61 -4.09,1.694c-0.01,0.01 -0.019,0.019 -0.03,0.028l-1.447,1.322l1.302,0c0.502,0 0.914,0.413 0.914,0.914c-0,0.501 -0.412,0.913 -0.914,0.913l-3.653,0c-0.501,0 -0.913,-0.412 -0.913,-0.913l-0,-3.654c-0,-0.501 0.412,-0.913 0.913,-0.913c0.501,0 0.913,0.412 0.913,0.913l0,1.577l1.635,-1.496c1.426,-1.418 3.357,-2.215 5.368,-2.215c4.175,0 7.611,3.436 7.611,7.611c-0,0.001 -0,0.002 -0,0.003Z"})]})})},Cg=({className:e,withActions:n=!0,...i})=>{const s=ti(),l=jy(),u=()=>{const h=la.parse(window.location.search);s(ma(l,h))},d=()=>{s(P2())};return E.jsxs("div",{className:q([Ji.header,e]),...i,children:[E.jsx("div",{className:Ji.logoContainer,children:E.jsx("div",{className:Ji.logo})}),E.jsxs("div",{className:Ji.actions,children:[n&&E.jsx(fk,{onClick:u}),E.jsx(ck,{onClick:d})]})]})},dk="_chatwindow_6v6ob_1",hk="_chatwindowWithAside_6v6ob_46",kg={chatwindow:dk,chatwindowWithAside:hk},pk="_sourceInfos_1qwkt_1",mk="_sourceDetails_1qwkt_16",gk="_sourceHeader_1qwkt_23",yk="_sourceHeaderIcon_1qwkt_43",vk="_openSourceButton_1qwkt_47",_k="_closeSourceInfosButton_1qwkt_70",Ek="_sourceContent_1qwkt_85",wk="_loadingSourceInfos_1qwkt_108",Sk="_loading_1qwkt_108",xk="_loadingError_1qwkt_122",fr={sourceInfos:pk,sourceDetails:mk,sourceHeader:gk,sourceHeaderIcon:yk,openSourceButton:vk,closeSourceInfosButton:_k,sourceContent:Ek,loadingSourceInfos:wk,loading:Sk,loadingError:xk},bk=({onClick:e})=>{const n=Je();return E.jsx("button",{className:q(fr.closeSourceInfosButton,"tooltip--bottom"),"aria-label":n("source-infos.close"),"data-title":n("source-infos.close"),tabIndex:0,onClick:e,children:E.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",children:E.jsx("path",{d:"M205.66,194.34a8,8,0,0,1-11.32,11.32L128,139.31,61.66,205.66a8,8,0,0,1-11.32-11.32L116.69,128,50.34,61.66A8,8,0,0,1,61.66,50.34L128,116.69l66.34-66.35a8,8,0,0,1,11.32,11.32L139.31,128Z"})})})},Tk=({type:e})=>{switch(e){case"WEBSITE":return E.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",children:E.jsx("path",{d:"M128,26A102,102,0,1,0,230,128,102.12,102.12,0,0,0,128,26Zm81.57,64H169.19a132.58,132.58,0,0,0-25.73-50.67A90.29,90.29,0,0,1,209.57,90ZM218,128a89.7,89.7,0,0,1-3.83,26H171.81a155.43,155.43,0,0,0,0-52h42.36A89.7,89.7,0,0,1,218,128Zm-90,87.83a110,110,0,0,1-15.19-19.45A124.24,124.24,0,0,1,99.35,166h57.3a124.24,124.24,0,0,1-13.46,30.38A110,110,0,0,1,128,215.83ZM96.45,154a139.18,139.18,0,0,1,0-52h63.1a139.18,139.18,0,0,1,0,52ZM38,128a89.7,89.7,0,0,1,3.83-26H84.19a155.43,155.43,0,0,0,0,52H41.83A89.7,89.7,0,0,1,38,128Zm90-87.83a110,110,0,0,1,15.19,19.45A124.24,124.24,0,0,1,156.65,90H99.35a124.24,124.24,0,0,1,13.46-30.38A110,110,0,0,1,128,40.17Zm-15.46-.84A132.58,132.58,0,0,0,86.81,90H46.43A90.29,90.29,0,0,1,112.54,39.33ZM46.43,166H86.81a132.58,132.58,0,0,0,25.73,50.67A90.29,90.29,0,0,1,46.43,166Zm97,50.67A132.58,132.58,0,0,0,169.19,166h40.38A90.29,90.29,0,0,1,143.46,216.67Z"})});case"PDF":return E.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",children:E.jsx("path",{d:"M222,152a6,6,0,0,1-6,6H190v20h18a6,6,0,0,1,0,12H190v18a6,6,0,0,1-12,0V152a6,6,0,0,1,6-6h32A6,6,0,0,1,222,152ZM90,172a26,26,0,0,1-26,26H54v10a6,6,0,0,1-12,0V152a6,6,0,0,1,6-6H64A26,26,0,0,1,90,172Zm-12,0a14,14,0,0,0-14-14H54v28H64A14,14,0,0,0,78,172Zm84,8a34,34,0,0,1-34,34H112a6,6,0,0,1-6-6V152a6,6,0,0,1,6-6h16A34,34,0,0,1,162,180Zm-12,0a22,22,0,0,0-22-22H118v44h10A22,22,0,0,0,150,180ZM42,112V40A14,14,0,0,1,56,26h96a6,6,0,0,1,4.25,1.76l56,56A6,6,0,0,1,214,88v24a6,6,0,0,1-12,0V94H152a6,6,0,0,1-6-6V38H56a2,2,0,0,0-2,2v72a6,6,0,0,1-12,0ZM158,82h35.52L158,46.48Z"})});case"DOCX":return E.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",children:E.jsx("path",{d:"M52,146H36a6,6,0,0,0-6,6v56a6,6,0,0,0,6,6H52a34,34,0,0,0,0-68Zm0,56H42V158H52a22,22,0,0,1,0,44Zm168.15-5.46a6,6,0,0,1,.18,8.48A28.06,28.06,0,0,1,200,214c-16.54,0-30-15.25-30-34s13.46-34,30-34a28.06,28.06,0,0,1,20.33,9,6,6,0,0,1-8.66,8.3A16.23,16.23,0,0,0,200,158c-9.93,0-18,9.87-18,22s8.07,22,18,22a16.23,16.23,0,0,0,11.67-5.28A6,6,0,0,1,220.15,196.54ZM128,146c-16.54,0-30,15.25-30,34s13.46,34,30,34,30-15.25,30-34S144.54,146,128,146Zm0,56c-9.93,0-18-9.87-18-22s8.07-22,18-22,18,9.87,18,22S137.93,202,128,202ZM48,118a6,6,0,0,0,6-6V40a2,2,0,0,1,2-2h90V88a6,6,0,0,0,6,6h50v18a6,6,0,0,0,12,0V88a6,6,0,0,0-1.76-4.24l-56-56A6,6,0,0,0,152,26H56A14,14,0,0,0,42,40v72A6,6,0,0,0,48,118ZM158,46.48,193.52,82H158Z"})});case"TEXT":return E.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",children:E.jsx("path",{d:"M52,146H36a6,6,0,0,0-6,6v56a6,6,0,0,0,6,6H52a34,34,0,0,0,0-68Zm0,56H42V158H52a22,22,0,0,1,0,44Zm168.15-5.46a6,6,0,0,1,.18,8.48A28.06,28.06,0,0,1,200,214c-16.54,0-30-15.25-30-34s13.46-34,30-34a28.06,28.06,0,0,1,20.33,9,6,6,0,0,1-8.66,8.3A16.23,16.23,0,0,0,200,158c-9.93,0-18,9.87-18,22s8.07,22,18,22a16.23,16.23,0,0,0,11.67-5.28A6,6,0,0,1,220.15,196.54ZM128,146c-16.54,0-30,15.25-30,34s13.46,34,30,34,30-15.25,30-34S144.54,146,128,146Zm0,56c-9.93,0-18-9.87-18-22s8.07-22,18-22,18,9.87,18,22S137.93,202,128,202ZM48,118a6,6,0,0,0,6-6V40a2,2,0,0,1,2-2h90V88a6,6,0,0,0,6,6h50v18a6,6,0,0,0,12,0V88a6,6,0,0,0-1.76-4.24l-56-56A6,6,0,0,0,152,26H56A14,14,0,0,0,42,40v72A6,6,0,0,0,48,118ZM158,46.48,193.52,82H158Z"})});default:return E.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",children:E.jsx("path",{d:"M212.24,83.76l-56-56A6,6,0,0,0,152,26H56A14,14,0,0,0,42,40V216a14,14,0,0,0,14,14H200a14,14,0,0,0,14-14V88A6,6,0,0,0,212.24,83.76ZM158,46.48,193.52,82H158ZM200,218H56a2,2,0,0,1-2-2V40a2,2,0,0,1,2-2h90V88a6,6,0,0,0,6,6h50V216A2,2,0,0,1,200,218Z"})})}},Ck=({sourceInfos:e,onClose:n})=>E.jsxs("div",{className:fr.sourceHeader,children:[E.jsx("div",{className:fr.sourceHeaderIcon,children:e&&E.jsx(Tk,{type:e.knowledgeBaseType})}),E.jsx("div",{children:e&&E.jsx("h1",{children:e.title})}),E.jsx(bk,{onClick:n})]}),kk=({title:e,href:n,children:i})=>E.jsx("a",{href:n,title:e,target:"_blank",rel:"noopener noreferrer",children:i}),Rk=({className:e,children:n,...i})=>E.jsx("a",{className:q(io.button,io.buttonPrimary,e),type:"button",...i,children:n}),Ok=({label:e,url:n})=>E.jsxs(Rk,{className:fr.openSourceButton,href:n,target:"_blank",children:[E.jsx("p",{children:e}),E.jsx("div",{children:E.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"#000000",viewBox:"0 0 256 256",children:E.jsx("path",{d:"M222,104a6,6,0,0,1-12,0V54.49l-69.75,69.75a6,6,0,0,1-8.48-8.48L201.51,46H152a6,6,0,0,1,0-12h64a6,6,0,0,1,6,6Zm-38,26a6,6,0,0,0-6,6v72a2,2,0,0,1-2,2H48a2,2,0,0,1-2-2V80a2,2,0,0,1,2-2h72a6,6,0,0,0,0-12H48A14,14,0,0,0,34,80V208a14,14,0,0,0,14,14H176a14,14,0,0,0,14-14V136A6,6,0,0,0,184,130Z"})})})]}),Nk=({sourceInfos:e})=>E.jsxs(E.Fragment,{children:[E.jsx("div",{className:q(fr.sourceContent,Fy.markdown),children:E.jsx(lr,{options:{overrides:{a:kk}},children:e.content})}),E.jsx(Ok,{label:e.title,url:e.url})]}),Ak=""+new URL("undraw_fixing-bugs-D_eYxJc6.svg",import.meta.url).href,Ik=()=>{const e=Je();return E.jsxs("div",{className:fr.loadingError,children:[E.jsx("h1",{children:e("source-infos.error.title")}),E.jsx("img",{src:Ak,title:e("source-infos.error.title")}),E.jsx("p",{children:e("source-infos.error.info")})]})},Dk=()=>E.jsx("div",{className:fr.loadingSourceInfos,children:E.jsx("svg",{className:fr.loading,xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",children:E.jsx("path",{d:"M230,128a102,102,0,0,1-204,0c0-40.18,23.35-76.86,59.5-93.45a6,6,0,0,1,5,10.9C58.61,60.09,38,92.49,38,128a90,90,0,0,0,180,0c0-35.51-20.61-67.91-52.5-82.55a6,6,0,0,1,5-10.9C206.65,51.14,230,87.82,230,128Z"})})}),Pk=()=>{const e=ti(),n=Qr(s=>s.chat.sourceInfos),i=()=>{e(F2())};return n?E.jsxs("div",{className:fr.sourceInfos,children:[E.jsx("div",{className:fr.sourceDetails,children:E.jsx(Ck,{sourceInfos:n.type==="loaded"?n:void 0,onClose:i})}),n.type==="loading"?E.jsx(Dk,{}):n.type==="loading-error"?E.jsx(Ik,{}):E.jsx(Nk,{sourceInfos:n})]}):null},Mk="_container_114wy_1",Fk="_body_114wy_7",Lk="_intro_114wy_14",Bk="_footer_114wy_39",jk="_footnote_114wy_43",Uk="_containerWithFootnote_114wy_58",Hk="_startChatButton_114wy_73",zk="_formFields_114wy_77",Gk="_formField_114wy_77",$k="_radio_114wy_89",qk="_checkbox_114wy_96",Vk="_input_114wy_104",Wk="_inputLabel_114wy_138",Kk="_selectWrapper_114wy_142",Zk="_select_114wy_142",Qk="_selectLabel_114wy_188",ot={container:Mk,body:Fk,intro:Lk,footer:Bk,footnote:jk,containerWithFootnote:Uk,startChatButton:Hk,formFields:zk,formField:Gk,radio:$k,checkbox:qk,input:Vk,inputLabel:Wk,selectWrapper:Kk,select:Zk,selectLabel:Qk},Xk=({name:e,label:n,defaultValue:i,required:s,onChange:l})=>{const u=d=>{l(d.currentTarget.checked?"true":"false")};return E.jsxs("label",{className:q(ot.checkbox,"chat__startScreen__checkbox"),htmlFor:e,children:[E.jsx("input",{type:"checkbox",id:e,name:e,defaultChecked:i==="true",required:s,onChange:u}),E.jsx("div",{children:n})]})},Yk=({type:e,name:n,label:i,defaultValue:s,placeholder:l,required:u,multiple:d,min:h,max:p,pattern:v,onChange:y})=>{const b=m=>{y(m.target.value)};return E.jsxs("label",{className:q(ot.input,"chat__startScreen__input"),htmlFor:n,children:[E.jsx("div",{className:q(ot.inputLabel),children:i}),E.jsx("input",{type:e,id:n,name:n,defaultValue:s,placeholder:l,required:u,multiple:d,min:h,max:p,pattern:v,onChange:b})]})},Jk=({name:e,value:n,label:i,defaultChecked:s,required:l,onChange:u})=>{const d=`${e}-${n}`,h=p=>{u(p.target.value)};return E.jsxs("label",{className:q(ot.radio,"chat__startScreen__radio"),htmlFor:d,children:[E.jsx("input",{id:d,type:"radio",name:e,value:n,defaultChecked:s,required:l,onChange:h}),E.jsx("span",{className:q(ot.label),children:i})]})},eR=({name:e,label:n,defaultValue:i,required:s,multiple:l,options:u,onChange:d})=>{const h=p=>{d(p.target.value)};return E.jsxs("label",{className:q(ot.select,"chat__startScreen__select"),htmlFor:e,children:[E.jsx("div",{className:q(ot.selectLabel),children:n}),E.jsx("div",{className:q(ot.selectWrapper),children:E.jsx("select",{id:e,name:e,defaultValue:i,required:s,multiple:l,onChange:h,children:Object.entries(u||{}).map(([p,v])=>E.jsx("option",{value:p,selected:v===i,children:v}))})})]})},tR="start-screen.intro",rR="start-screen.start-chat",nR="start-screen.footnote",Qt="start-screen.form",Rg=`${Qt}.fields`,iR=()=>{const e=Je(),n=ti(),[i,s]=B.useState({}),l=()=>{const b=Object.entries(i).reduce((m,[w,_])=>({...m,[w]:_.value}),{});n(A2(b))},u=e(tR),d=e(rR),h=e(nR),p=B.useMemo(()=>{var b;return((b=e(Rg))==null?void 0:b.split(";").map(m=>m.trim()))??[]},[e(Rg)]);B.useEffect(()=>{p.length&&Object.keys(i).length===0&&s(p.reduce((b,m)=>({...b,[m]:oR(m,e)}),{}))},[e,p,i]);const v=b=>{b.preventDefault(),l()},y=b=>m=>{s(w=>({...w,[b]:{...w[b],value:m}}))};return E.jsxs("form",{onSubmit:v,className:q(ot.container,h&&ot.containerWithFootnote,"chat__startScreen"),children:[E.jsxs("div",{className:q(ot.body,"chat__startScreen__body"),children:[u&&E.jsx("div",{className:q(ot.intro,"chat__startScreen__intro"),children:E.jsx(lr,{options:{overrides:{a:Og}},children:u})}),E.jsx("div",{className:q(ot.formFields,"chat__startScreen__fields"),children:Object.values(i).map(({type:b,name:m,label:w,placeholder:_,defaultValue:S,options:R,required:O,multiple:N,min:x,max:k,pattern:T})=>E.jsx("div",{className:q(ot.formField,"chat__startScreen__field"),children:(()=>{switch(b){case"radio":return E.jsxs(E.Fragment,{children:[E.jsx("div",{children:w}),Object.entries(R||{}).map(([F,z])=>E.jsx(Jk,{name:m,value:F,label:z,defaultChecked:F===S,required:O,onChange:y(m)}))]});case"checkbox":return E.jsx(Xk,{name:m,label:w,defaultValue:S,required:O,onChange:y(m)});case"select":return E.jsx(eR,{name:m,label:w,defaultValue:S,required:O,multiple:N,options:R,onChange:y(m)});default:return E.jsx(Yk,{type:b,name:m,label:w,placeholder:_,defaultValue:S,required:O,multiple:N,min:x,max:k,pattern:T,onChange:y(m)})}})()},m))})]}),E.jsxs("div",{className:q(ot.footer,"chat__startScreen__footer"),children:[E.jsx(oo,{type:"submit",className:ot.startChatButton,children:d}),h&&E.jsx("div",{className:ot.footnote,children:E.jsx(lr,{options:{overrides:{a:Og}},children:h})})]})]})},Og=({title:e,href:n,children:i})=>E.jsx("a",{href:n,title:e,target:"_blank",rel:"noopener noreferrer",children:i}),oR=(e,n)=>{const i=n(`${Qt}.${e}.type`)||"text",s=n(`${Qt}.${e}.required`)==="true",l=n(`${Qt}.${e}.multiple`)==="true",u=n(`${Qt}.${e}.placeholder`),d=n(`${Qt}.${e}.label`)||"",h=n(`${Qt}.${e}.defaultValue`),p=n(`${Qt}.${e}.min`),v=n(`${Qt}.${e}.max`),y=n(`${Qt}.${e}.pattern`),b=aR(n(`${Qt}.${e}.options`));return{name:e,label:d,placeholder:u,value:sR(i,h,b)||"",defaultValue:h,options:b,type:i,required:s,multiple:l,min:p,max:v,pattern:y}},sR=(e,n,i)=>n||e==="select"&&Object.keys(i)[0]||"",aR=(e="")=>e.split(";").map(n=>n.trim()).reduce((n,i)=>{const[s,l]=i.split(":").map(u=>u.trim());return{...n,[s]:l}},{}),lR=()=>{const e=aa();B.useEffect(()=>{window.document.documentElement.lang=e.locale},[e.locale])},Zn={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"},uR=({clientName:e})=>{lR();const n=ti(),i=Qr(y=>y.intl.messages),s=Je(),l=Qr(y=>y.startScreen.useStartScreen),u=Qr(y=>y.startScreen.startScreenStatus),[d,h]=B.useState(void 0);B.useEffect(()=>{const y=la.parse(window.location.search);y.cssClassName&&h(y.cssClassName);const b=m=>{switch(m.data.type){case Zn.TRIGGER_ACTION:n(m.data.action);break;case Zn.TRIGGER_STORY:n(X0(m.data.story));break;case Zn.ON_CHAT_WINDOW_OPEN:n({type:"webclient.chatwindow.opened"});break;case Zn.ON_CHAT_WINDOW_CLOSE:n({type:"webclient.chatwindow.closed"});break;case Zn.CHAT_MESSAGE_FROM_GUEST:n(q0(m.data.text));break;case Zn.RESTART_CHAT:n(ma(e,y));break}};return n(z2(e,y)),window.addEventListener("message",m=>b(m),!1),()=>window.removeEventListener("message",b)},[e,n]),B.useEffect(()=>{const y=s("page.title");y&&document&&(document.title=y)},[i,s]);const p=l===void 0,v=l===!1||u==="HIDDEN";return E.jsx("div",{className:q(kg.chatwindow,v&&kg.chatwindowWithAside,"chat__chatwindow",d),children:p?null:v?E.jsxs(E.Fragment,{children:[E.jsx("header",{children:E.jsx(Cg,{})}),E.jsx("main",{children:E.jsx(nk,{clientName:e})}),E.jsx("aside",{children:E.jsx(Pk,{})})]}):E.jsxs(E.Fragment,{children:[E.jsx("header",{children:E.jsx(Cg,{withActions:!1})}),E.jsx("main",{children:E.jsx(iR,{})})]})})},cR=1024,fR=()=>{const e=jy(),n=Qr(u=>u.intl.locale),i=Qr(u=>u.intl.messages),[s,l]=B.useState(Ng());return B.useEffect(()=>{const u=()=>{l(Ng())};return window.addEventListener("resize",u),()=>window.removeEventListener("resize",u)},[]),E.jsx(Qw,{locale:n,messages:i,children:E.jsx("div",{className:q([Yw.app,s?"chat__large":"chat__small"]),children:E.jsx(uR,{clientName:e})})})},Ng=()=>window.innerWidth>=cR;var Yu,Ag;function Cf(){if(Ag)return Yu;Ag=1;function e(n){var i=typeof n;return n!=null&&(i=="object"||i=="function")}return Yu=e,Yu}var Ju,Ig;function dR(){if(Ig)return Ju;Ig=1;var e=typeof vs=="object"&&vs&&vs.Object===Object&&vs;return Ju=e,Ju}var ec,Dg;function Hy(){if(Dg)return ec;Dg=1;var e=dR(),n=typeof self=="object"&&self&&self.Object===Object&&self,i=e||n||Function("return this")();return ec=i,ec}var tc,Pg;function hR(){if(Pg)return tc;Pg=1;var e=Hy(),n=function(){return e.Date.now()};return tc=n,tc}var rc,Mg;function pR(){if(Mg)return rc;Mg=1;var e=/\s/;function n(i){for(var s=i.length;s--&&e.test(i.charAt(s)););return s}return rc=n,rc}var nc,Fg;function mR(){if(Fg)return nc;Fg=1;var e=pR(),n=/^\s+/;function i(s){return s&&s.slice(0,e(s)+1).replace(n,"")}return nc=i,nc}var ic,Lg;function zy(){if(Lg)return ic;Lg=1;var e=Hy(),n=e.Symbol;return ic=n,ic}var oc,Bg;function gR(){if(Bg)return oc;Bg=1;var e=zy(),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 v=!0}catch{}var y=s.call(d);return v&&(h?d[l]=p:delete d[l]),y}return oc=u,oc}var sc,jg;function yR(){if(jg)return sc;jg=1;var e=Object.prototype,n=e.toString;function i(s){return n.call(s)}return sc=i,sc}var ac,Ug;function vR(){if(Ug)return ac;Ug=1;var e=zy(),n=gR(),i=yR(),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 ac=d,ac}var lc,Hg;function _R(){if(Hg)return lc;Hg=1;function e(n){return n!=null&&typeof n=="object"}return lc=e,lc}var uc,zg;function ER(){if(zg)return uc;zg=1;var e=vR(),n=_R(),i="[object Symbol]";function s(l){return typeof l=="symbol"||n(l)&&e(l)==i}return uc=s,uc}var cc,Gg;function wR(){if(Gg)return cc;Gg=1;var e=mR(),n=Cf(),i=ER(),s=NaN,l=/^[-+]0x[0-9a-f]+$/i,u=/^0b[01]+$/i,d=/^0o[0-7]+$/i,h=parseInt;function p(v){if(typeof v=="number")return v;if(i(v))return s;if(n(v)){var y=typeof v.valueOf=="function"?v.valueOf():v;v=n(y)?y+"":y}if(typeof v!="string")return v===0?v:+v;v=e(v);var b=u.test(v);return b||d.test(v)?h(v.slice(2),b?2:8):l.test(v)?s:+v}return cc=p,cc}var fc,$g;function SR(){if($g)return fc;$g=1;var e=Cf(),n=hR(),i=wR(),s="Expected a function",l=Math.max,u=Math.min;function d(h,p,v){var y,b,m,w,_,S,R=0,O=!1,N=!1,x=!0;if(typeof h!="function")throw new TypeError(s);p=i(p)||0,e(v)&&(O=!!v.leading,N="maxWait"in v,m=N?l(i(v.maxWait)||0,p):m,x="trailing"in v?!!v.trailing:x);function k(ue){var Ue=y,Ie=b;return y=b=void 0,R=ue,w=h.apply(Ie,Ue),w}function T(ue){return R=ue,_=setTimeout(V,p),O?k(ue):w}function F(ue){var Ue=ue-S,Ie=ue-R,$e=p-Ue;return N?u($e,m-Ie):$e}function z(ue){var Ue=ue-S,Ie=ue-R;return S===void 0||Ue>=p||Ue<0||N&&Ie>=m}function V(){var ue=n();if(z(ue))return fe(ue);_=setTimeout(V,F(ue))}function fe(ue){return _=void 0,x&&y?k(ue):(y=b=void 0,w)}function te(){_!==void 0&&clearTimeout(_),R=0,y=S=b=_=void 0}function oe(){return _===void 0?w:fe(n())}function pe(){var ue=n(),Ue=z(ue);if(y=arguments,b=this,S=ue,Ue){if(_===void 0)return T(S);if(N)return clearTimeout(_),_=setTimeout(V,p),k(S)}return _===void 0&&(_=setTimeout(V,p)),w}return pe.cancel=te,pe.flush=oe,pe}return fc=d,fc}var dc,qg;function xR(){if(qg)return dc;qg=1;var e=SR(),n=Cf(),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 dc=s,dc}var bR=xR();const TR=oa(bR);var hc,Vg;function CR(){if(Vg)return hc;Vg=1;function e(w,_){var S,R;if(typeof _=="function")R=_(w),R!==void 0&&(w=R);else if(Array.isArray(_))for(S=0;S<_.length;S++)R=_[S](w),R!==void 0&&(w=R);return w}function n(w,_){return w[0]==="-"&&Array.isArray(_)&&/^-\d+$/.test(w)?_.length+parseInt(w,10):w}function i(w){return/^\d+$/.test(w)}function s(w){return Object.prototype.toString.call(w)==="[object Object]"}function l(w){return Object(w)===w}function u(w){return Object.keys(w).length===0}var d=["__proto__","prototype","constructor"],h=function(w){return d.indexOf(w)===-1};function p(w,_){w.indexOf("[")>=0&&(w=w.replace(/\[/g,_).replace(/]/g,""));var S=w.split(_),R=S.filter(h);if(R.length!==S.length)throw Error("Refusing to update blacklisted property "+w);return S}var v=Object.prototype.hasOwnProperty;function y(w,_,S,R){if(!(this instanceof y))return new y(w,_,S,R);typeof _>"u"&&(_=!1),typeof S>"u"&&(S=!0),typeof R>"u"&&(R=!0),this.separator=w||".",this.override=_,this.useArray=S,this.useBrackets=R,this.keepArray=!1,this.cleanup=[]}var b=new y(".",!1,!0,!0);function m(w){return function(){return b[w].apply(b,arguments)}}return y.prototype._fill=function(w,_,S,R){var O=w.shift();if(w.length>0){if(_[O]=_[O]||(this.useArray&&i(w[0])?[]:{}),!l(_[O]))if(this.override)_[O]={};else{if(!(l(S)&&u(S)))throw new Error("Trying to redefine `"+O+"` which is a "+typeof _[O]);return}this._fill(w,_[O],S,R)}else{if(!this.override&&l(_[O])&&!u(_[O])){if(!(l(S)&&u(S)))throw new Error("Trying to redefine non-empty obj['"+O+"']");return}_[O]=e(S,R)}},y.prototype.object=function(w,_){var S=this;return Object.keys(w).forEach(function(R){var O=_===void 0?null:_[R],N=p(R,S.separator).join(S.separator);N.indexOf(S.separator)!==-1?(S._fill(N.split(S.separator),w,w[R],O),delete w[R]):w[R]=e(w[R],O)}),w},y.prototype.str=function(w,_,S,R){var O=p(w,this.separator).join(this.separator);return w.indexOf(this.separator)!==-1?this._fill(O.split(this.separator),S,_,R):S[w]=e(_,R),S},y.prototype.pick=function(w,_,S,R){var O,N,x,k,T;for(N=p(w,this.separator),O=0;O<N.length;O++)if(k=n(N[O],_),_&&typeof _=="object"&&k in _){if(O===N.length-1)return S?(x=_[k],R&&Array.isArray(_)?_.splice(k,1):delete _[k],Array.isArray(_)&&(T=N.slice(0,-1).join("."),this.cleanup.indexOf(T)===-1&&this.cleanup.push(T)),x):_[k];_=_[k]}else return;return S&&Array.isArray(_)&&(_=_.filter(function(F){return F!==void 0})),_},y.prototype.delete=function(w,_){return this.remove(w,_,!0)},y.prototype.remove=function(w,_,S){var R;if(this.cleanup=[],Array.isArray(w)){for(R=0;R<w.length;R++)this.pick(w[R],_,!0,S);return S||this._cleanup(_),_}else return this.pick(w,_,!0,S)},y.prototype._cleanup=function(w){var _,S,R,O;if(this.cleanup.length){for(S=0;S<this.cleanup.length;S++)R=this.cleanup[S].split("."),O=R.splice(0,-1).join("."),_=O?this.pick(O,w):w,_=_[R[0]].filter(function(N){return N!==void 0}),this.set(this.cleanup[S],_,w);this.cleanup=[]}},y.prototype.del=y.prototype.remove,y.prototype.move=function(w,_,S,R,O){return typeof R=="function"||Array.isArray(R)?this.set(_,e(this.pick(w,S,!0),R),S,O):(O=R,this.set(_,this.pick(w,S,!0),S,O)),S},y.prototype.transfer=function(w,_,S,R,O,N){return typeof O=="function"||Array.isArray(O)?this.set(_,e(this.pick(w,S,!0),O),R,N):(N=O,this.set(_,this.pick(w,S,!0),R,N)),R},y.prototype.copy=function(w,_,S,R,O,N){return typeof O=="function"||Array.isArray(O)?this.set(_,e(JSON.parse(JSON.stringify(this.pick(w,S,!1))),O),R,N):(N=O,this.set(_,this.pick(w,S,!1),R,N)),R},y.prototype.set=function(w,_,S,R){var O,N,x,k;if(typeof _>"u")return S;for(x=p(w,this.separator),O=0;O<x.length;O++){if(k=x[O],O===x.length-1)if(R&&s(_)&&s(S[k]))for(N in _)v.call(_,N)&&(S[k][N]=_[N]);else if(R&&Array.isArray(S[k])&&Array.isArray(_))for(var T=0;T<_.length;T++)S[x[O]].push(_[T]);else S[k]=_;else(!v.call(S,k)||!s(S[k])&&!Array.isArray(S[k]))&&(/^\d+$/.test(x[O+1])?S[k]=[]:S[k]={});S=S[k]}return S},y.prototype.transform=function(w,_,S){return _=_||{},S=S||{},Object.keys(w).forEach((function(R){this.set(w[R],this.pick(R,_),S)}).bind(this)),S},y.prototype.dot=function(w,_,S){_=_||{},S=S||[];var R=Array.isArray(w);return Object.keys(w).forEach((function(O){var N=R&&this.useBrackets?"["+O+"]":O;if(l(w[O])&&(s(w[O])&&!u(w[O])||Array.isArray(w[O])&&!this.keepArray&&w[O].length!==0))if(R&&this.useBrackets){var x=S[S.length-1]||"";return this.dot(w[O],_,S.slice(0,-1).concat(x+N))}else return this.dot(w[O],_,S.concat(N));else R&&this.useBrackets?_[S.join(this.separator).concat("["+O+"]")]=w[O]:_[S.concat(N).join(this.separator)]=w[O]}).bind(this)),_},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(w){Object.defineProperty(y,w,{get:function(){return b.override},set:function(_){b.override=!!_}})}),["useArray","keepArray","useBrackets"].forEach(function(w){Object.defineProperty(y,w,{get:function(){return b[w]},set:function(_){b[w]=_}})}),y._process=e,hc=y,hc}var kR=CR();const Gy={"page.title":"Bubble Chat Chatbot","message-input-label":"Benutzereingabe","message-input-placeholder":"Nachricht","message-input.actions.submit.label":"Nachricht senden","message-input.actions.export-transcript.label":"Konversation exportieren","message-input.actions.start-audio-recording.label":"Spracheingabe starten","message-input.actions.stop-audio-recording.label":"Spracheingabe stoppen","message-input.actions.submit-audio-recording.label":"Spracheingabe übermitteln","guest-bubble.label":"Ihre Nachricht","bot-bubble.label":"Nachricht des Chatbots","bot-bubble.reaction.good":"Gefällt mir","bot-bubble.reaction.bad":"Gefällt mir nicht","bot-bubble.reaction.remove":"Markierung entfernen","bot-bubble.copy":"Kopieren","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:
94
+ `,{inline:w}));for(;typeof _[_.length-1]=="string"&&!_[_.length-1].trim();)_.pop();if(n.wrapper===null)return _;const S=n.wrapper||(w?"span":"div");let R;if(_.length>1||n.forceWrapper)R=_;else{if(_.length===1)return R=_[0],typeof R=="string"?i("span",{key:"outer"},R):R;R=null}return n.createElement(S,{key:"outer"},R)}function l(m,w){const _=w.match(nx);return _?_.reduce(function(S,R){const O=R.indexOf("=");if(O!==-1){const N=function(F){return F.indexOf("-")!==-1&&F.match(_x)===null&&(F=F.replace(bx,function(z,V){return V.toUpperCase()})),F}(R.slice(0,O)).trim(),x=function(F){const z=F[0];return(z==='"'||z==="'")&&F.length>=2&&F[F.length-1]===z?F.slice(1,-1):F}(R.slice(O+1).trim()),k=Qm[N]||N;if(k==="ref")return S;const T=S[k]=function(F,z,V,fe){return z==="style"?V.split(/;\s?/).reduce(function(te,oe){const pe=oe.slice(0,oe.indexOf(":"));return te[pe.trim().replace(/(-[a-z])/g,ue=>ue[1].toUpperCase())]=oe.slice(pe.length+1).trim(),te},{}):z==="href"||z==="src"?fe(V,F,z):(V.match(Ex)&&(V=V.slice(1,V.length-1)),V==="true"||V!=="false"&&V)}(m,N,x,n.sanitizer);typeof T=="string"&&(jc.test(T)||Uc.test(T))&&(S[k]=s(T.trim()))}else R!=="style"&&(S[Qm[R]||R]=!0);return S},{}):null}n.overrides=n.overrides||{},n.sanitizer=n.sanitizer||eb,n.slugify=n.slugify||Vi,n.namedCodesToUnicode=n.namedCodesToUnicode?_n({},Ym,n.namedCodesToUnicode):Ym,n.createElement=n.createElement||B.createElement;const u=[],d={},h={[se.blockQuote]:{match:wr(gy),order:1,parse(m,w,_){const[,S,R]=m[0].replace(sx,"").match(ax);return{alert:S,children:w(R,_)}},render(m,w,_){const S={key:_.key};return m.alert&&(S.className="markdown-alert-"+n.slugify(m.alert.toLowerCase(),Vi),m.children.unshift({attrs:{},children:[{type:se.text,text:m.alert}],noInnerParse:!0,type:se.htmlBlock,tag:"header"})),i("blockquote",S,w(m.children,_))}},[se.breakLine]:{match:Wi(lx),order:1,parse:zu,render:(m,w,_)=>i("br",{key:_.key})},[se.breakThematic]:{match:wr(ux),order:1,parse:zu,render:(m,w,_)=>i("hr",{key:_.key})},[se.codeBlock]:{match:wr(vy),order:0,parse:m=>({lang:void 0,text:no(m[0].replace(/^ {4}/gm,"")).replace(Uu,"$1")}),render:(m,w,_)=>i("pre",{key:_.key},i("code",_n({},m.attrs,{className:m.lang?`lang-${m.lang}`:""}),m.text))},[se.codeFenced]:{match:wr(yy),order:0,parse:m=>({attrs:l("code",m[3]||""),lang:m[2]||void 0,text:m[4].replace(Uu,"$1"),type:se.codeBlock})},[se.codeInline]:{match:Kr(cx),order:3,parse:m=>({text:m[2].replace(Uu,"$1")}),render:(m,w,_)=>i("code",{key:_.key},m.text)},[se.footnote]:{match:wr(hx),order:0,parse:m=>(u.push({footnote:m[2],identifier:m[1]}),{}),render:Gu},[se.footnoteReference]:{match:Wr(px),order:1,parse:m=>({target:`#${n.slugify(m[1],Vi)}`,text:m[1]}),render:(m,w,_)=>i("a",{key:_.key,href:n.sanitizer(m.target,"a","href")},i("sup",{key:_.key},m.text))},[se.gfmTask]:{match:Wr(yx),order:1,parse:m=>({completed:m[1].toLowerCase()==="x"}),render:(m,w,_)=>i("input",{checked:m.completed,key:_.key,readOnly:!0,type:"checkbox"})},[se.heading]:{match:wr(n.enforceAtxHeadings?Ey:_y),order:1,parse:(m,w,_)=>({children:Ks(w,m[2],_),id:n.slugify(m[2],Vi),level:m[1].length}),render:(m,w,_)=>i(`h${m.level}`,{id:m.id,key:_.key},w(m.children,_))},[se.headingSetext]:{match:wr(wy),order:0,parse:(m,w,_)=>({children:Ks(w,m[1],_),level:m[2]==="="?1:2,type:se.heading})},[se.htmlBlock]:{match:Wi(jc),order:1,parse(m,w,_){const[,S]=m[3].match(Hx),R=new RegExp(`^${S}`,"gm"),O=m[3].replace(R,""),N=(x=O,Xx.some(V=>V.test(x))?rb:Ks);var x;const k=m[1].toLowerCase(),T=rx.indexOf(k)!==-1,F=(T?k:m[1]).trim(),z={attrs:l(F,m[2]),noInnerParse:T,tag:F};return _.inAnchor=_.inAnchor||k==="a",T?z.text=m[3]:z.children=N(w,O,_),_.inAnchor=!1,z},render:(m,w,_)=>i(m.tag,_n({key:_.key},m.attrs),m.text||(m.children?w(m.children,_):""))},[se.htmlSelfClosing]:{match:Wi(Uc),order:1,parse(m){const w=m[1].trim();return{attrs:l(w,m[2]||""),tag:w}},render:(m,w,_)=>i(m.tag,_n({},m.attrs,{key:_.key}))},[se.htmlComment]:{match:Wi(Sy),order:1,parse:()=>({}),render:Gu},[se.image]:{match:Kr(Zx),order:1,parse:m=>({alt:m[1],target:rg(m[2]),title:m[3]}),render:(m,w,_)=>i("img",{key:_.key,alt:m.alt||void 0,title:m.title||void 0,src:n.sanitizer(m.target,"img","src")})},[se.link]:{match:Wr(Kx),order:3,parse:(m,w,_)=>({children:tb(w,m[1],_),target:rg(m[2]),title:m[3]}),render:(m,w,_)=>i("a",{key:_.key,href:n.sanitizer(m.target,"a","href"),title:m.title},w(m.children,_))},[se.linkAngleBraceStyleDetector]:{match:Wr(xx),order:0,parse:m=>({children:[{text:m[1],type:se.text}],target:m[1],type:se.link})},[se.linkBareUrlDetector]:{match:Yn((m,w)=>w.inAnchor||n.disableAutoLink?null:Wr(wx)(m,w)),order:0,parse:m=>({children:[{text:m[1],type:se.text}],target:m[1],title:void 0,type:se.link})},[se.linkMailtoDetector]:{match:Wr(Sx),order:0,parse(m){let w=m[1],_=m[1];return ix.test(_)||(_="mailto:"+_),{children:[{text:w.replace("mailto:",""),type:se.text}],target:_,type:se.link}}},[se.orderedList]:Jm(i,1),[se.unorderedList]:Jm(i,2),[se.newlineCoalescer]:{match:wr(fx),order:3,parse:zu,render:()=>`
95
+ `},[se.paragraph]:{match:Yn(Jx),order:3,parse:Hu,render:(m,w,_)=>i("p",{key:_.key},w(m.children,_))},[se.ref]:{match:Wr(Tx),order:0,parse:m=>(d[m[1]]={target:m[2],title:m[4]},{}),render:Gu},[se.refImage]:{match:Kr(Cx),order:0,parse:m=>({alt:m[1]||void 0,ref:m[2]}),render:(m,w,_)=>d[m.ref]?i("img",{key:_.key,alt:m.alt,src:n.sanitizer(d[m.ref].target,"img","src"),title:d[m.ref].title}):null},[se.refLink]:{match:Wr(kx),order:0,parse:(m,w,_)=>({children:w(m[1],_),fallbackChildren:m[0],ref:m[2]}),render:(m,w,_)=>d[m.ref]?i("a",{key:_.key,href:n.sanitizer(d[m.ref].target,"a","href"),title:d[m.ref].title},w(m.children,_)):i("span",{key:_.key},m.fallbackChildren)},[se.table]:{match:wr(xy),order:1,parse:Yx,render(m,w,_){const S=m;return i("table",{key:_.key},i("thead",null,i("tr",null,S.header.map(function(R,O){return i("th",{key:O,style:tg(S,O)},w(R,_))}))),i("tbody",null,S.cells.map(function(R,O){return i("tr",{key:O},R.map(function(N,x){return i("td",{key:x,style:tg(S,x)},w(N,_))}))})))}},[se.text]:{match:Wi(jx),order:4,parse:m=>({text:m[0].replace(vx,(w,_)=>n.namedCodesToUnicode[_]?n.namedCodesToUnicode[_]:w)}),render:m=>m.text},[se.textBolded]:{match:Kr(Px),order:2,parse:(m,w,_)=>({children:w(m[2],_)}),render:(m,w,_)=>i("strong",{key:_.key},w(m.children,_))},[se.textEmphasized]:{match:Kr(Mx),order:3,parse:(m,w,_)=>({children:w(m[2],_)}),render:(m,w,_)=>i("em",{key:_.key},w(m.children,_))},[se.textEscaped]:{match:Kr(Bx),order:1,parse:m=>({text:m[1],type:se.text})},[se.textMarked]:{match:Kr(Fx),order:3,parse:Hu,render:(m,w,_)=>i("mark",{key:_.key},w(m.children,_))},[se.textStrikethroughed]:{match:Kr(Lx),order:3,parse:Hu,render:(m,w,_)=>i("del",{key:_.key},w(m.children,_))}};n.disableParsingRawHTML===!0&&(delete h[se.htmlBlock],delete h[se.htmlSelfClosing]);const p=function(m){let w=Object.keys(m);function _(S,R){let O,N,x=[],k="",T="";for(R.prevCapture=R.prevCapture||"";S;){let F=0;for(;F<w.length;){if(k=w[F],O=m[k],R.inline&&!O.match.inline){F++;continue}const z=O.match(S,R);if(z){T=z[0],R.prevCapture+=T,S=S.substring(T.length),N=O.parse(z,_,R),N.type==null&&(N.type=k),x.push(N);break}F++}}return R.prevCapture="",x}return w.sort(function(S,R){let O=m[S].order,N=m[R].order;return O!==N?O-N:S<R?-1:1}),function(S,R){return _(function(O){return O.replace(dx,`
96
+ `).replace(mx,"").replace(Ox," ")}(S),R)}}(h),v=(y=function(m,w){return function(_,S,R){const O=m[_.type].render;return w?w(()=>O(_,S,R),_,S,R):O(_,S,R)}}(h,n.renderRule),function m(w,_={}){if(Array.isArray(w)){const S=_.key,R=[];let O=!1;for(let N=0;N<w.length;N++){_.key=N;const x=m(w[N],_),k=typeof x=="string";k&&O?R[R.length-1]+=x:x!==null&&R.push(x),O=k}return _.key=S,R}return y(w,m,_)});var y;const b=s(e);return u.length?i("div",null,b,i("footer",{key:"footer"},u.map(function(m){return i("div",{id:n.slugify(m.identifier,Vi),key:m.identifier},m.identifier,v(p(m.footnote,{inline:!0})))}))):b}const lr=e=>{let{children:n="",options:i}=e,s=function(l,u){if(l==null)return{};var d,h,p={},v=Object.keys(l);for(h=0;h<v.length;h++)u.indexOf(d=v[h])>=0||(p[d]=l[d]);return p}(e,tx);return B.cloneElement(ib(n,i),s)},ob="_generalConditionsContainer_55hjg_1",sb="_generalConditions_55hjg_1",ab="_generalConditionsHeader_55hjg_15",lb="_generalConditionsBody_55hjg_26",ub="_generalConditionsAccept_55hjg_35",Ki={generalConditionsContainer:ob,generalConditions:sb,generalConditionsHeader:ab,generalConditionsBody:lb,generalConditionsAccept:ub},cb=()=>E.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"currentColor",viewBox:"0 0 256 256",children:E.jsx("path",{d:"M212.24,100.24l-80,80a6,6,0,0,1-8.48,0l-80-80a6,6,0,0,1,8.48-8.48L128,167.51l75.76-75.75a6,6,0,0,1,8.48,8.48Z"})}),fb=()=>E.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"currentColor",viewBox:"0 0 256 256",children:E.jsx("path",{d:"M212.24,164.24a6,6,0,0,1-8.48,0L128,88.49,52.24,164.24a6,6,0,0,1-8.48-8.48l80-80a6,6,0,0,1,8.48,0l80,80A6,6,0,0,1,212.24,164.24Z"})}),db="general-conditions.header",hb="general-conditions.body",ng="general-conditions.accept-conditions-note",pb=()=>{const e=Je(),[n,i]=B.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(db),d=e(ng);return E.jsxs("div",{className:q(Ki.generalConditionsContainer,"chat__generalConditions"),children:[!!(u!=null&&u.length)&&E.jsxs("div",{className:Ki.generalConditions,children:[E.jsxs("div",{role:"button",onClick:s,onKeyDown:l,tabIndex:0,className:q(Ki.generalConditionsHeader,"chat__generalConditions__header"),"aria-controls":"general-conditions-body","aria-expanded":n?"true":"false","aria-pressed":n?"true":"false",children:[E.jsx(lr,{children:u}),n?E.jsx(fb,{}):E.jsx(cb,{})]}),E.jsx("div",{className:q(Ki.generalConditionsBody,"chat__generalConditions__body"),id:"general-conditions-body",role:"region",tabIndex:-1,children:n&&E.jsx(lr,{children:e(hb)||""})})]}),!!(d!=null&&d.length)&&E.jsx("div",{className:q(Ki.generalConditionsAccept,"chat__generalConditions__accept"),tabIndex:0,children:E.jsx(lr,{children:e(ng)||""})})]})},mb="_message_1qom7_1",gb="_messageBot_1qom7_9",yb="_messageBotLast_1qom7_19",vb="_avatar_1qom7_19",_b="_messageBotFirst_1qom7_24",Eb="_messageBotAnimated_1qom7_37",wb="_messageGuest_1qom7_48",Sb="_messageGuestFirst_1qom7_54",xb="_messageGuestLast_1qom7_60",bb="_botAvatar_1qom7_74",Tb="_agentAvatar_1qom7_78",Cb="_bubble_1qom7_82",kb="_bubbleContent_1qom7_88",Rb="_bubbleLeft_1qom7_102",Ob="_leftText_1qom7_113",Nb="_bubbleRight_1qom7_120",Ab="_rightText_1qom7_130",Ib="_sourceInfoReference_1qom7_162",de={message:mb,messageBot:gb,messageBotLast:yb,avatar:vb,messageBotFirst:_b,messageBotAnimated:Eb,messageGuest:wb,messageGuestFirst:Sb,messageGuestLast:xb,botAvatar:bb,agentAvatar:Tb,bubble:Cb,bubbleContent:kb,bubbleLeft:Rb,leftText:Ob,bubbleRight:Nb,rightText:Ab,sourceInfoReference:Ib},Db="_botMessageActions_1dl7x_1",Pb="_alwaysVisible_1dl7x_22",Mb="_reported_1dl7x_29",Fb="_action_1dl7x_33",Zr={botMessageActions:Db,alwaysVisible:Pb,reported:Mb,action:Fb},Lb=({alwaysVisible:e,reaction:n,botMessageRef:i,onReaction:s})=>{const l=Je(),[u,d]=B.useState(!1),h=v=>()=>s(v),p=B.useCallback(async()=>{if(i.current)try{d(!0);const v=i.current.innerHTML,y=i.current.innerText;await navigator.clipboard.write([new ClipboardItem({"text/html":new Blob([v],{type:"text/html"}),"text/plain":new Blob([y],{type:"text/plain"})})]),await new Promise(b=>setTimeout(b,1500))}finally{d(!1)}},[i]);return E.jsxs("div",{className:q(Zr.botMessageActions,e&&Zr.alwaysVisible,n&&Zr.reported),children:[E.jsx("button",{className:q(Zr.action,n==="GOOD"&&Zr.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:E.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",children:n==="GOOD"?E.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"}):E.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"})})}),E.jsx("button",{className:q(Zr.action,n==="BAD"&&Zr.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:E.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",children:n==="BAD"?E.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"}):E.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"})})}),E.jsx("button",{className:q(Zr.action,"tooltip--right"),tabIndex:0,"aria-label":l("bot-bubble.copy"),"data-title":l("bot-bubble.copy"),onClick:p,children:E.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",children:u?E.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"}):E.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"})})})]})},Dy=B.forwardRef(({message:e,isAnimated:n,isLastMessage:i,isFirstMessageBySender:s,isLastMessageBySender:l,children:u,onReaction:d},h)=>{const p=Je(),v=B.useRef(null),y=e.sender.type===ge.UserType.BOT;return E.jsxs("li",{ref:h,className:q(de.message,de.messageBot,i&&de.lastMessage,s&&de.messageBotFirst,l&&de.messageBotLast,"chat__bubbleContainer",n&&de.messageBotAnimated,n&&"chat__bubbleContainer--animated",y?"chat__botBubbleContainer":"chat__agentBubbleContainer",s&&"chat__bubbleContainer--first",l&&"chat__bubbleContainer--last"),children:[E.jsx("img",{className:q(de.avatar,y?de.botAvatar:de.agentAvatar,"chat__avatar",y?"chat__botAvatar":"chat__agentAvatar"),src:`${e.sender.avatar}`,alt:y?"Bot":"Agent",referrerPolicy:"no-referrer"}),E.jsx("div",{ref:v,className:q(de.bubble,de.bubbleLeft,"chat__bubble",y?"chat__botBubble":"chat__agentBubble"),tabIndex:0,"aria-label":p(y?"bot-bubble.label":"agent-bubble.label"),children:E.jsx("div",{className:q(de.leftText),children:u})}),d&&E.jsx(Lb,{alwaysVisible:i&&l,reaction:e.reaction,botMessageRef:v,onReaction:d})]})}),Bb="_button_3ui4g_1",jb="_buttonDefault_3ui4g_13",Ub="_buttonPrimary_3ui4g_28",io={button:Bb,buttonDefault:jb,buttonPrimary:Ub},va=({className:e,children:n,...i})=>E.jsx("button",{className:q(io.button,e),type:"button",...i,children:n}),Hb="_title_b904h_1",zb="_subtitle_b904h_6",Gb="_buttons_b904h_11",$b="_button_b904h_11",qb="_imageContainer_b904h_34",Vb="_image_b904h_34",Wb="_video_container_b904h_49",Kb="_video_b904h_49",Zb="_only_b904h_63",wt={title:Hb,subtitle:zb,buttons:Gb,button:$b,imageContainer:qb,image:Vb,video_container:Wb,video:Kb,only:Zb},Xb=({buttons:e,onButtonClick:n})=>E.jsx("div",{className:q(wt.buttons,"chat__bubbleButtons"),children:e.map((i,s)=>E.jsx(va,{className:q(wt.button,"chat__bubbleButton"),onClick:()=>n(i),children:i.title},s))});var Ls={},Bs={},js={},ig;function Qb(){if(ig)return js;ig=1,Object.defineProperty(js,"__esModule",{value:!0});var e=Jn(),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 js.default=function(s,l,u){return n.createElement("a",{href:s,key:u},l)},js}var Us={},og;function Yb(){return og||(og=1,Object.defineProperty(Us,"__esModule",{value:!0}),Us.default=function(e){return e}),Us}var Hs={},qu,sg;function Jb(){return sg||(sg=1,qu=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/),qu}var Vu,ag;function eT(){return ag||(ag=1,Vu=/[\0-\x1F\x7F-\x9F]/),Vu}var Wu,lg;function tT(){return lg||(lg=1,Wu=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/),Wu}var Ku,ug;function rT(){return ug||(ug=1,Ku=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\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]/),Ku}var Zu,cg;function nT(){return cg||(cg=1,Zu=function(e){var n={};n.src_Any=Jb().source,n.src_Cc=eT().source,n.src_Z=tT().source,n.src_P=rT().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 Xu,fg;function iT(){if(fg)return Xu;fg=1;function e(x){var k=Array.prototype.slice.call(arguments,1);return k.forEach(function(T){T&&Object.keys(T).forEach(function(F){x[F]=T[F]})}),x}function n(x){return Object.prototype.toString.call(x)}function i(x){return n(x)==="[object String]"}function s(x){return n(x)==="[object Object]"}function l(x){return n(x)==="[object RegExp]"}function u(x){return n(x)==="[object Function]"}function d(x){return x.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}var h={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};function p(x){return Object.keys(x||{}).reduce(function(k,T){return k||h.hasOwnProperty(T)},!1)}var v={"http:":{validate:function(x,k,T){var F=x.slice(k);return T.re.http||(T.re.http=new RegExp("^\\/\\/"+T.re.src_auth+T.re.src_host_port_strict+T.re.src_path,"i")),T.re.http.test(F)?F.match(T.re.http)[0].length:0}},"https:":"http:","ftp:":"http:","//":{validate:function(x,k,T){var F=x.slice(k);return T.re.no_http||(T.re.no_http=new RegExp("^"+T.re.src_auth+"(?:localhost|(?:(?:"+T.re.src_domain+")\\.)+"+T.re.src_domain_root+")"+T.re.src_port+T.re.src_host_terminator+T.re.src_path,"i")),T.re.no_http.test(F)?k>=3&&x[k-3]===":"||k>=3&&x[k-3]==="/"?0:F.match(T.re.no_http)[0].length:0}},"mailto:":{validate:function(x,k,T){var F=x.slice(k);return T.re.mailto||(T.re.mailto=new RegExp("^"+T.re.src_email_name+"@"+T.re.src_host_strict,"i")),T.re.mailto.test(F)?F.match(T.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]",b="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");function m(x){x.__index__=-1,x.__text_cache__=""}function w(x){return function(k,T){var F=k.slice(T);return x.test(F)?F.match(x)[0].length:0}}function _(){return function(x,k){k.normalize(x)}}function S(x){var k=x.re=nT()(x.__opts__),T=x.__tlds__.slice();x.onCompile(),x.__tlds_replaced__||T.push(y),T.push(k.src_xn),k.src_tlds=T.join("|");function F(te){return te.replace("%TLDS%",k.src_tlds)}k.email_fuzzy=RegExp(F(k.tpl_email_fuzzy),"i"),k.link_fuzzy=RegExp(F(k.tpl_link_fuzzy),"i"),k.link_no_ip_fuzzy=RegExp(F(k.tpl_link_no_ip_fuzzy),"i"),k.host_fuzzy_test=RegExp(F(k.tpl_host_fuzzy_test),"i");var z=[];x.__compiled__={};function V(te,oe){throw new Error('(LinkifyIt) Invalid schema "'+te+'": '+oe)}Object.keys(x.__schemas__).forEach(function(te){var oe=x.__schemas__[te];if(oe!==null){var pe={validate:null,link:null};if(x.__compiled__[te]=pe,s(oe)){l(oe.validate)?pe.validate=w(oe.validate):u(oe.validate)?pe.validate=oe.validate:V(te,oe),u(oe.normalize)?pe.normalize=oe.normalize:oe.normalize?V(te,oe):pe.normalize=_();return}if(i(oe)){z.push(te);return}V(te,oe)}}),z.forEach(function(te){x.__compiled__[x.__schemas__[te]]&&(x.__compiled__[te].validate=x.__compiled__[x.__schemas__[te]].validate,x.__compiled__[te].normalize=x.__compiled__[x.__schemas__[te]].normalize)}),x.__compiled__[""]={validate:null,normalize:_()};var fe=Object.keys(x.__compiled__).filter(function(te){return te.length>0&&x.__compiled__[te]}).map(d).join("|");x.re.schema_test=RegExp("(^|(?!_)(?:[><|]|"+k.src_ZPCc+"))("+fe+")","i"),x.re.schema_search=RegExp("(^|(?!_)(?:[><|]|"+k.src_ZPCc+"))("+fe+")","ig"),x.re.pretest=RegExp("("+x.re.schema_test.source+")|("+x.re.host_fuzzy_test.source+")|@","i"),m(x)}function R(x,k){var T=x.__index__,F=x.__last_index__,z=x.__text_cache__.slice(T,F);this.schema=x.__schema__.toLowerCase(),this.index=T+k,this.lastIndex=F+k,this.raw=z,this.text=z,this.url=z}function O(x,k){var T=new R(x,k);return x.__compiled__[T.schema].normalize(T,x),T}function N(x,k){if(!(this instanceof N))return new N(x,k);k||p(x)&&(k=x,x={}),this.__opts__=e({},h,k),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=e({},v,x),this.__compiled__={},this.__tlds__=b,this.__tlds_replaced__=!1,this.re={},S(this)}return N.prototype.add=function(k,T){return this.__schemas__[k]=T,S(this),this},N.prototype.set=function(k){return this.__opts__=e(this.__opts__,k),this},N.prototype.test=function(k){if(this.__text_cache__=k,this.__index__=-1,!k.length)return!1;var T,F,z,V,fe,te,oe,pe,ue;if(this.re.schema_test.test(k)){for(oe=this.re.schema_search,oe.lastIndex=0;(T=oe.exec(k))!==null;)if(V=this.testSchemaAt(k,T[2],oe.lastIndex),V){this.__schema__=T[2],this.__index__=T.index+T[1].length,this.__last_index__=T.index+T[0].length+V;break}}return this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&(pe=k.search(this.re.host_fuzzy_test),pe>=0&&(this.__index__<0||pe<this.__index__)&&(F=k.match(this.__opts__.fuzzyIP?this.re.link_fuzzy:this.re.link_no_ip_fuzzy))!==null&&(fe=F.index+F[1].length,(this.__index__<0||fe<this.__index__)&&(this.__schema__="",this.__index__=fe,this.__last_index__=F.index+F[0].length))),this.__opts__.fuzzyEmail&&this.__compiled__["mailto:"]&&(ue=k.indexOf("@"),ue>=0&&(z=k.match(this.re.email_fuzzy))!==null&&(fe=z.index+z[1].length,te=z.index+z[0].length,(this.__index__<0||fe<this.__index__||fe===this.__index__&&te>this.__last_index__)&&(this.__schema__="mailto:",this.__index__=fe,this.__last_index__=te))),this.__index__>=0},N.prototype.pretest=function(k){return this.re.pretest.test(k)},N.prototype.testSchemaAt=function(k,T,F){return this.__compiled__[T.toLowerCase()]?this.__compiled__[T.toLowerCase()].validate(k,F,this):0},N.prototype.match=function(k){var T=0,F=[];this.__index__>=0&&this.__text_cache__===k&&(F.push(O(this,T)),T=this.__last_index__);for(var z=T?k.slice(T):k;this.test(z);)F.push(O(this,T)),z=z.slice(this.__last_index__),T+=this.__last_index__;return F.length?F:null},N.prototype.tlds=function(k,T){return k=Array.isArray(k)?k:[k],T?(this.__tlds__=this.__tlds__.concat(k).sort().filter(function(F,z,V){return F!==V[z-1]}).reverse(),S(this),this):(this.__tlds__=k.slice(),this.__tlds_replaced__=!0,S(this),this)},N.prototype.normalize=function(k){k.schema||(k.url="http://"+k.url),k.schema==="mailto:"&&!/^mailto:/i.test(k.url)&&(k.url="mailto:"+k.url)},N.prototype.onCompile=function(){},Xu=N,Xu}const oT=JSON.parse('["aaa","aarp","abb","abbott","abbvie","abc","able","abogado","abudhabi","ac","academy","accenture","accountant","accountants","aco","actor","ad","ads","adult","ae","aeg","aero","aetna","af","afl","africa","ag","agakhan","agency","ai","aig","airbus","airforce","airtel","akdn","al","alibaba","alipay","allfinanz","allstate","ally","alsace","alstom","am","amazon","americanexpress","americanfamily","amex","amfam","amica","amsterdam","analytics","android","anquan","anz","ao","aol","apartments","app","apple","aq","aquarelle","ar","arab","aramco","archi","army","arpa","art","arte","as","asda","asia","associates","at","athleta","attorney","au","auction","audi","audible","audio","auspost","author","auto","autos","aw","aws","ax","axa","az","azure","ba","baby","baidu","banamex","band","bank","bar","barcelona","barclaycard","barclays","barefoot","bargains","baseball","basketball","bauhaus","bayern","bb","bbc","bbt","bbva","bcg","bcn","bd","be","beats","beauty","beer","bentley","berlin","best","bestbuy","bet","bf","bg","bh","bharti","bi","bible","bid","bike","bing","bingo","bio","biz","bj","black","blackfriday","blockbuster","blog","bloomberg","blue","bm","bms","bmw","bn","bnpparibas","bo","boats","boehringer","bofa","bom","bond","boo","book","booking","bosch","bostik","boston","bot","boutique","box","br","bradesco","bridgestone","broadway","broker","brother","brussels","bs","bt","build","builders","business","buy","buzz","bv","bw","by","bz","bzh","ca","cab","cafe","cal","call","calvinklein","cam","camera","camp","canon","capetown","capital","capitalone","car","caravan","cards","care","career","careers","cars","casa","case","cash","casino","cat","catering","catholic","cba","cbn","cbre","cc","cd","center","ceo","cern","cf","cfa","cfd","cg","ch","chanel","channel","charity","chase","chat","cheap","chintai","christmas","chrome","church","ci","cipriani","circle","cisco","citadel","citi","citic","city","ck","cl","claims","cleaning","click","clinic","clinique","clothing","cloud","club","clubmed","cm","cn","co","coach","codes","coffee","college","cologne","com","commbank","community","company","compare","computer","comsec","condos","construction","consulting","contact","contractors","cooking","cool","coop","corsica","country","coupon","coupons","courses","cpa","cr","credit","creditcard","creditunion","cricket","crown","crs","cruise","cruises","cu","cuisinella","cv","cw","cx","cy","cymru","cyou","cz","dad","dance","data","date","dating","datsun","day","dclk","dds","de","deal","dealer","deals","degree","delivery","dell","deloitte","delta","democrat","dental","dentist","desi","design","dev","dhl","diamonds","diet","digital","direct","directory","discount","discover","dish","diy","dj","dk","dm","dnp","do","docs","doctor","dog","domains","dot","download","drive","dtv","dubai","dunlop","dupont","durban","dvag","dvr","dz","earth","eat","ec","eco","edeka","edu","education","ee","eg","email","emerck","energy","engineer","engineering","enterprises","epson","equipment","er","ericsson","erni","es","esq","estate","et","eu","eurovision","eus","events","exchange","expert","exposed","express","extraspace","fage","fail","fairwinds","faith","family","fan","fans","farm","farmers","fashion","fast","fedex","feedback","ferrari","ferrero","fi","fidelity","fido","film","final","finance","financial","fire","firestone","firmdale","fish","fishing","fit","fitness","fj","fk","flickr","flights","flir","florist","flowers","fly","fm","fo","foo","food","football","ford","forex","forsale","forum","foundation","fox","fr","free","fresenius","frl","frogans","frontier","ftr","fujitsu","fun","fund","furniture","futbol","fyi","ga","gal","gallery","gallo","gallup","game","games","gap","garden","gay","gb","gbiz","gd","gdn","ge","gea","gent","genting","george","gf","gg","ggee","gh","gi","gift","gifts","gives","giving","gl","glass","gle","global","globo","gm","gmail","gmbh","gmo","gmx","gn","godaddy","gold","goldpoint","golf","goo","goodyear","goog","google","gop","got","gov","gp","gq","gr","grainger","graphics","gratis","green","gripe","grocery","group","gs","gt","gu","gucci","guge","guide","guitars","guru","gw","gy","hair","hamburg","hangout","haus","hbo","hdfc","hdfcbank","health","healthcare","help","helsinki","here","hermes","hiphop","hisamitsu","hitachi","hiv","hk","hkt","hm","hn","hockey","holdings","holiday","homedepot","homegoods","homes","homesense","honda","horse","hospital","host","hosting","hot","hotels","hotmail","house","how","hr","hsbc","ht","hu","hughes","hyatt","hyundai","ibm","icbc","ice","icu","id","ie","ieee","ifm","ikano","il","im","imamat","imdb","immo","immobilien","in","inc","industries","infiniti","info","ing","ink","institute","insurance","insure","int","international","intuit","investments","io","ipiranga","iq","ir","irish","is","ismaili","ist","istanbul","it","itau","itv","jaguar","java","jcb","je","jeep","jetzt","jewelry","jio","jll","jm","jmp","jnj","jo","jobs","joburg","jot","joy","jp","jpmorgan","jprs","juegos","juniper","kaufen","kddi","ke","kerryhotels","kerryproperties","kfh","kg","kh","ki","kia","kids","kim","kindle","kitchen","kiwi","km","kn","koeln","komatsu","kosher","kp","kpmg","kpn","kr","krd","kred","kuokgroup","kw","ky","kyoto","kz","la","lacaixa","lamborghini","lamer","lancaster","land","landrover","lanxess","lasalle","lat","latino","latrobe","law","lawyer","lb","lc","lds","lease","leclerc","lefrak","legal","lego","lexus","lgbt","li","lidl","life","lifeinsurance","lifestyle","lighting","like","lilly","limited","limo","lincoln","link","live","living","lk","llc","llp","loan","loans","locker","locus","lol","london","lotte","lotto","love","lpl","lplfinancial","lr","ls","lt","ltd","ltda","lu","lundbeck","luxe","luxury","lv","ly","ma","madrid","maif","maison","makeup","man","management","mango","map","market","marketing","markets","marriott","marshalls","mattel","mba","mc","mckinsey","md","me","med","media","meet","melbourne","meme","memorial","men","menu","merckmsd","mg","mh","miami","microsoft","mil","mini","mint","mit","mitsubishi","mk","ml","mlb","mls","mm","mma","mn","mo","mobi","mobile","moda","moe","moi","mom","monash","money","monster","mormon","mortgage","moscow","moto","motorcycles","mov","movie","mp","mq","mr","ms","msd","mt","mtn","mtr","mu","museum","music","mv","mw","mx","my","mz","na","nab","nagoya","name","navy","nba","nc","ne","nec","net","netbank","netflix","network","neustar","new","news","next","nextdirect","nexus","nf","nfl","ng","ngo","nhk","ni","nico","nike","nikon","ninja","nissan","nissay","nl","no","nokia","norton","now","nowruz","nowtv","np","nr","nra","nrw","ntt","nu","nyc","nz","obi","observer","office","okinawa","olayan","olayangroup","ollo","om","omega","one","ong","onl","online","ooo","open","oracle","orange","org","organic","origins","osaka","otsuka","ott","ovh","pa","page","panasonic","paris","pars","partners","parts","party","pay","pccw","pe","pet","pf","pfizer","pg","ph","pharmacy","phd","philips","phone","photo","photography","photos","physio","pics","pictet","pictures","pid","pin","ping","pink","pioneer","pizza","pk","pl","place","play","playstation","plumbing","plus","pm","pn","pnc","pohl","poker","politie","porn","post","pr","pramerica","praxi","press","prime","pro","prod","productions","prof","progressive","promo","properties","property","protection","pru","prudential","ps","pt","pub","pw","pwc","py","qa","qpon","quebec","quest","racing","radio","re","read","realestate","realtor","realty","recipes","red","redstone","redumbrella","rehab","reise","reisen","reit","reliance","ren","rent","rentals","repair","report","republican","rest","restaurant","review","reviews","rexroth","rich","richardli","ricoh","ril","rio","rip","ro","rocks","rodeo","rogers","room","rs","rsvp","ru","rugby","ruhr","run","rw","rwe","ryukyu","sa","saarland","safe","safety","sakura","sale","salon","samsclub","samsung","sandvik","sandvikcoromant","sanofi","sap","sarl","sas","save","saxo","sb","sbi","sbs","sc","scb","schaeffler","schmidt","scholarships","school","schule","schwarz","science","scot","sd","se","search","seat","secure","security","seek","select","sener","services","seven","sew","sex","sexy","sfr","sg","sh","shangrila","sharp","shell","shia","shiksha","shoes","shop","shopping","shouji","show","si","silk","sina","singles","site","sj","sk","ski","skin","sky","skype","sl","sling","sm","smart","smile","sn","sncf","so","soccer","social","softbank","software","sohu","solar","solutions","song","sony","soy","spa","space","sport","spot","sr","srl","ss","st","stada","staples","star","statebank","statefarm","stc","stcgroup","stockholm","storage","store","stream","studio","study","style","su","sucks","supplies","supply","support","surf","surgery","suzuki","sv","swatch","swiss","sx","sy","sydney","systems","sz","tab","taipei","talk","taobao","target","tatamotors","tatar","tattoo","tax","taxi","tc","tci","td","tdk","team","tech","technology","tel","temasek","tennis","teva","tf","tg","th","thd","theater","theatre","tiaa","tickets","tienda","tips","tires","tirol","tj","tjmaxx","tjx","tk","tkmaxx","tl","tm","tmall","tn","to","today","tokyo","tools","top","toray","toshiba","total","tours","town","toyota","toys","tr","trade","trading","training","travel","travelers","travelersinsurance","trust","trv","tt","tube","tui","tunes","tushu","tv","tvs","tw","tz","ua","ubank","ubs","ug","uk","unicom","university","uno","uol","ups","us","uy","uz","va","vacations","vana","vanguard","vc","ve","vegas","ventures","verisign","vermögensberater","vermögensberatung","versicherung","vet","vg","vi","viajes","video","vig","viking","villas","vin","vip","virgin","visa","vision","viva","vivo","vlaanderen","vn","vodka","volvo","vote","voting","voto","voyage","vu","wales","walmart","walter","wang","wanggou","watch","watches","weather","weatherchannel","webcam","weber","website","wed","wedding","weibo","weir","wf","whoswho","wien","wiki","williamhill","win","windows","wine","winners","wme","wolterskluwer","woodside","work","works","world","wow","ws","wtc","wtf","xbox","xerox","xihuan","xin","xxx","xyz","yachts","yahoo","yamaxun","yandex","ye","yodobashi","yoga","yokohama","you","youtube","yt","yun","za","zappos","zara","zero","zip","zm","zone","zuerich","zw","ελ","ευ","бг","бел","дети","ею","католик","ком","мкд","мон","москва","онлайн","орг","рус","рф","сайт","срб","укр","қаз","հայ","ישראל","קום","ابوظبي","ارامكو","الاردن","البحرين","الجزائر","السعودية","العليان","المغرب","امارات","ایران","بارت","بازار","بيتك","بھارت","تونس","سودان","سورية","شبكة","عراق","عرب","عمان","فلسطين","قطر","كاثوليك","كوم","مصر","مليسيا","موريتانيا","موقع","همراه","پاکستان","ڀارت","कॉम","नेट","भारत","भारतम्","भारोत","संगठन","বাংলা","ভারত","ভাৰত","ਭਾਰਤ","ભારત","ଭାରତ","இந்தியா","இலங்கை","சிங்கப்பூர்","భారత్","ಭಾರತ","ഭാരതം","ලංකා","คอม","ไทย","ລາວ","გე","みんな","アマゾン","クラウド","グーグル","コム","ストア","セール","ファッション","ポイント","世界","中信","中国","中國","中文网","亚马逊","企业","佛山","信息","健康","八卦","公司","公益","台湾","台灣","商城","商店","商标","嘉里","嘉里大酒店","在线","大拿","天主教","娱乐","家電","广东","微博","慈善","我爱你","手机","招聘","政务","政府","新加坡","新闻","时尚","書籍","机构","淡马锡","游戏","澳門","点看","移动","组织机构","网址","网店","网站","网络","联通","谷歌","购物","通販","集团","電訊盈科","飞利浦","食品","餐厅","香格里拉","香港","닷넷","닷컴","삼성","한국"]');var dg;function sT(){if(dg)return Hs;dg=1,Object.defineProperty(Hs,"__esModule",{value:!0});var e=iT(),n=l(e),i=oT,s=l(i);function l(d){return d&&d.__esModule?d:{default:d}}var u=new n.default;return u.tlds(s.default),Hs.default=function(d){return u.match(d)},Hs}var zs={},hg;function aT(){return hg||(hg=1,Object.defineProperty(zs,"__esModule",{value:!0}),zs.default=function(e){return e}),zs}var pg;function lT(){if(pg)return Bs;pg=1,Object.defineProperty(Bs,"__esModule",{value:!0});var e=function(){function O(N,x){for(var k=0;k<x.length;k++){var T=x[k];T.enumerable=T.enumerable||!1,T.configurable=!0,"value"in T&&(T.writable=!0),Object.defineProperty(N,T.key,T)}}return function(N,x,k){return x&&O(N.prototype,x),k&&O(N,k),N}}(),n=Jn(),i=m(n),s=Qb(),l=b(s),u=Yb(),d=b(u),h=sT(),p=b(h),v=aT(),y=b(v);function b(O){return O&&O.__esModule?O:{default:O}}function m(O){if(O&&O.__esModule)return O;var N={};if(O!=null)for(var x in O)Object.prototype.hasOwnProperty.call(O,x)&&(N[x]=O[x]);return N.default=O,N}function w(O,N){if(!(O instanceof N))throw new TypeError("Cannot call a class as a function")}function _(O,N){if(!O)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return N&&(typeof N=="object"||typeof N=="function")?N:O}function S(O,N){if(typeof N!="function"&&N!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof N);O.prototype=Object.create(N&&N.prototype,{constructor:{value:O,enumerable:!1,writable:!0,configurable:!0}}),N&&(Object.setPrototypeOf?Object.setPrototypeOf(O,N):O.__proto__=N)}var R=function(O){S(N,O);function N(){return w(this,N),_(this,(N.__proto__||Object.getPrototypeOf(N)).apply(this,arguments))}return e(N,[{key:"parseString",value:function(k){var T=this;if(k==="")return k;var F=this.props.matchDecorator(k);if(!F)return k;var z=[],V=0;return F.forEach(function(fe,te){fe.index>V&&z.push(k.substring(V,fe.index));var oe=T.props.hrefDecorator(fe.url),pe=T.props.textDecorator(fe.text),ue=T.props.componentDecorator(oe,pe,te);z.push(ue),V=fe.lastIndex}),k.length>V&&z.push(k.substring(V)),z.length===1?z[0]:z}},{key:"parse",value:function(k){var T=this,F=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return typeof k=="string"?this.parseString(k):i.isValidElement(k)&&k.type!=="a"&&k.type!=="button"?i.cloneElement(k,{key:F},this.parse(k.props.children)):Array.isArray(k)?k.map(function(z,V){return T.parse(z,V)}):k}},{key:"render",value:function(){return i.createElement(i.Fragment,null,this.parse(this.props.children))}}]),N}(i.Component);return R.defaultProps={componentDecorator:l.default,hrefDecorator:d.default,matchDecorator:p.default,textDecorator:y.default},Bs.default=R,Bs}var mg;function uT(){if(mg)return Ls;mg=1,Object.defineProperty(Ls,"__esModule",{value:!0});var e=lT(),n=i(e);function i(s){return s&&s.__esModule?s:{default:s}}return Ls.default=n.default,Ls}var cT=uT();const fT=sa(cT),dT="_text_gp0s0_1",hT="_command_gp0s0_5",gg={text:dT,command:hT},Py=({text:e,commands:n=[],onLinkClick:i})=>{const s=h=>p=>(p.preventDefault(),h&&i(h),!1),l=(h,p,v)=>E.jsx("a",{onClick:s(h),role:"button",children:p},v),u=n.find(h=>e.startsWith(`/${h}`)),d=u?e.slice(u.length+1):e;return E.jsxs("div",{children:[u&&E.jsxs("code",{className:gg.command,children:["/",u]}),d.split(`
97
+ `).map((h,p)=>E.jsxs("span",{className:gg.text,children:[E.jsx(fT,{componentDecorator:l,children:h}),E.jsx("br",{})]},p))]})},pT=({subtitle:e,onLinkClick:n})=>e?E.jsx("div",{className:wt.subtitle,children:E.jsx(Py,{text:e,onLinkClick:n})}):null,yg="newtab#",My=({markdown:e,markdownOptions:n={},onLinkClick:i})=>{const s=u=>d=>(d.preventDefault(),u&&i(u),!1),l=({title:u,href:d,children:h})=>d.indexOf(yg)===0?E.jsx("a",{href:d.slice(yg.length),title:u,target:"_blank",rel:"noopener noreferrer",children:h}):E.jsx("a",{onClick:s(d),title:u,href:d,children:h});return E.jsx(lr,{options:{...n,overrides:{a:l}},children:e})},mT=({text:e,onLinkClick:n})=>e?E.jsx("div",{children:E.jsx(My,{markdown:e,onLinkClick:n})}):null,gT=({title:e})=>e?E.jsx("h1",{className:wt.title,children:e}):null,yT=({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)?E.jsxs("div",{className:q(de.bubbleContent),children:[E.jsx(gT,{title:e}),E.jsx(mT,{text:n,onLinkClick:u}),E.jsx(pT,{subtitle:i,onLinkClick:u}),E.jsx(Xb,{buttons:s,onButtonClick:l})]}):null,vT=({alt:e,imageUrl:n,itemUrl:i,hasBody:s})=>n?i?i.indexOf("youtube.com")>-1?E.jsx("div",{className:wt.video_container,children:E.jsx("iframe",{className:q(wt.video,{[wt.only]:!s}),title:"Youtube",width:"100%",src:i+"?rel=0",frameBorder:"0",allowFullScreen:!0})}):E.jsx("a",{href:i,target:"_blank",rel:"noopener noreferrer",children:E.jsx("div",{className:wt.imageContainer,children:E.jsx("img",{className:q(wt.image,{[wt.only]:!s}),src:n,alt:e})})}):E.jsx("div",{className:wt.imageContainer,children:E.jsx("img",{className:q(wt.image,{[wt.only]:!s}),src:n,alt:e})}):null,_T=({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 E.jsxs("div",{className:q(wt.detailMessage),children:[E.jsx(vT,{hasBody:p,imageUrl:s,itemUrl:l,alt:e||i}),p&&E.jsx(yT,{title:e,text:n,subtitle:i,buttons:u,onLinkClick:h,onButtonClick:d})]})},ET=B.forwardRef(({isFirstMessageBySender:e,isLastMessageBySender:n,children:i},s)=>{const l=Je();return E.jsx("li",{ref:s,className:q(de.message,de.messageGuest,e&&de.messageGuestFirst,n&&de.messageGuestLast,"chat__bubbleContainer","chat__guestBubbleContainer",e&&"chat__bubbleContainer--first",n&&"chat__bubbleContainer--last"),children:E.jsx("div",{className:q(de.bubble,de.bubbleRight,"chat__bubble","chat__guestBubble"),tabIndex:0,"aria-label":l("guest-bubble.label"),children:E.jsx("div",{className:q(de.rightText),children:i})})})}),wT="_markdown_nw7vg_1",Fy={markdown:wT},Gs="source-info-reference",ST=({markdown:e,className:n,onLinkClick:i})=>{const s=ti(),l=xT(),u=h=>p=>{const v=p.key;(v==="ArrowDown"||v==="ArrowRight"||v==="Enter"||v===" "||v==="Space")&&(p.stopPropagation(),s(Km(h)))},d=h=>()=>{s(Km(h))};return B.useLayoutEffect(()=>{document.querySelectorAll(`.${Gs}`).forEach(h=>{var y,b,m,w;const p=h.previousSibling;p&&p.nodeType===Node.TEXT_NODE&&((y=p.textContent)!=null&&y.endsWith(" "))&&((b=p.textContent)!=null&&b.trim().length)&&h.classList.add(`${Gs}--before-space`);const v=h.nextSibling;v&&v.nodeType===Node.TEXT_NODE&&((m=v.textContent)!=null&&m.startsWith(" "))&&((w=v.textContent)!=null&&w.trim().length)&&h.classList.add(`${Gs}--after-space`)})},[e]),E.jsx("div",{className:q(de.bubbleContent,Fy.markdown,n),children:E.jsx(My,{markdown:e,onLinkClick:i,markdownOptions:{renderRule(h,p,v,y){return p.type===se.footnoteReference?E.jsx("span",{className:q(de.sourceInfoReference,Gs),children:E.jsx("a",{type:"button",tabIndex:0,onClick:d(p.text),onKeyDown:u(p.text),children:l(p.text)})},y.key):h()}}})})},xT=()=>{const e=[];return i=>{const s=e.indexOf(i);return s>-1?s+1:(e.push(i),e.length)}},bT=({text:e,commands:n,onLinkClick:i})=>E.jsx("div",{className:de.bubbleContent,children:E.jsx(Py,{text:e,commands:n,onLinkClick:i})}),TT=B.forwardRef(({message:e,commands:n,isLastMessage:i,isFirstMessageBySender:s,isLastMessageBySender:l,onReaction:u,onButtonClick:d,onLinkClick:h},p)=>{const v=CT(e,n,d,h);switch(e.sender.type){case ge.UserType.GUEST:return E.jsx(ET,{ref:p,isFirstMessageBySender:s,isLastMessageBySender:l,children:v});default:{const y=b=>u(e._id,b);return E.jsx(Dy,{ref:p,message:e,isAnimated:!1,isLastMessage:i,isFirstMessageBySender:s,isLastMessageBySender:l,onReaction:y,children:v})}}}),CT=(e,n,i,s)=>{switch(e.type){case ge.MessageTypeEnum.TEXT:{const l=e;return E.jsx(bT,{text:l.text,commands:n,onLinkClick:s})}case ge.MessageTypeEnum.DETAIL:{const l=e;return E.jsx(_T,{title:l.title,text:l.text,subtitle:l.subtitle,imageUrl:l.imageUrl,itemUrl:l.itemUrl,buttons:l.buttons,onButtonClick:i,onLinkClick:s})}case ge.MessageTypeEnum.MARKDOWN:{const l=e;return E.jsx(ST,{markdown:l.markdown,className:l.className,onLinkClick:s})}}},kT=(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,RT=r0.memo(TT,kT),OT="_ticontainer_xg0dn_1",NT="_tiblock_xg0dn_5",AT="_tidot_xg0dn_12",Zi={ticontainer:OT,tiblock:NT,tidot:AT},IT=({isTyping:e=!1})=>E.jsx("div",{className:Zi.ticontainer,children:E.jsx("div",{className:Zi.tiblock,children:e?E.jsxs(E.Fragment,{children:[E.jsx("div",{className:q(Zi.tidot,"chat__typingIndicator")}),E.jsx("div",{className:q(Zi.tidot,"chat__typingIndicator")}),E.jsx("div",{className:q(Zi.tidot,"chat__typingIndicator")})]}):null})}),DT=Object.assign({_id:"typing-indicator"},new ge.TextMessage("",new ge.BotUser)),PT=({messages:e,isBotTyping:n,showGeneralConditions:i,commands:s,onTranscriptItemReaction:l,onButtonClick:u,onLinkClick:d})=>{const h=B.useRef(0),p=B.useRef(!0),v=B.useRef(null),y=B.useRef(null),b=B.useRef(null);B.useLayoutEffect(()=>{if(e.length&&v.current&&(h.current<e.length||n)){if(y.current){const _=y.current.offsetTop;v.current.scrollTop=_}else if(b.current){const _=b.current.offsetTop;v.current.scrollTop=_}p.current&&(p.current=!1),h.current=e.length}},[e,p,n]);let m;const w=e.length;return E.jsxs("div",{ref:v,className:q(Zm.messageContainer,"chat__messageContainer"),style:{scrollBehavior:e.length&&p.current?"auto":"smooth"},id:"MessageContainer",role:"log","aria-live":"polite",children:[i&&E.jsx(pb,{}),E.jsxs("ul",{className:Zm.messages,children:[e.map((_,S)=>{const R=MT(_,m),O=FT(_,S,e,n);m=_.sender.type;const N=S+1===w;return E.jsx(RT,{ref:N?b:null,message:_,commands:s,isLastMessage:N,isFirstMessageBySender:R,isLastMessageBySender:O,onButtonClick:u,onLinkClick:d,onReaction:l},N&&!n?"last":_._id)}),n&&E.jsx(Dy,{ref:y,message:DT,isLastMessage:!1,isAnimated:!0,isFirstMessageBySender:m!==ge.UserType.BOT,isLastMessageBySender:!0,children:E.jsx(IT,{isTyping:!0})},"last")]})]})},MT=(e,n)=>!n||n!==e.sender.type,FT=(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)},LT="_bottomSheet_jp8dl_1",BT="_bottomSheetOpen_jp8dl_15",jT="_bottomSheetClose_jp8dl_20",Tr={bottomSheet:LT,bottomSheetOpen:BT,bottomSheetClose:jT},UT="_container_xc2nx_1",vg={container:UT},HT=({contentUrl:e})=>{const n=Xr(u=>u.connection.sessionId),[i,s]=B.useState(!1);B.useEffect(()=>{s(u=>u||!!e)},[e]);const l=B.useMemo(()=>{if(e&&n){const u=new URL(e,document.baseURI);return u.searchParams.set("sessionId",n),u.toString()}else return},[e,n]);return E.jsx("div",{className:q(vg.container,Tr.bottomSheet,{[Tr.bottomSheetOpen]:!!e,[Tr.bottomSheetClose]:i&&!e}),children:l&&E.jsx("iframe",{title:"Drawer",src:l,className:vg.iframe})})},zT="_container_tr4tn_1",GT={container:zT},$T=({title:e,href:n,children:i})=>E.jsx("a",{href:n,title:e,target:"_blank",rel:"noopener noreferrer",children:i}),qT=()=>{const n=Je()("powered-by");return n&&n.length?E.jsx("div",{className:q(GT.container,"chat__poweredBy"),children:E.jsx(lr,{options:{overrides:{a:$T}},children:n})}):null},_g=({className:e,children:n,...i})=>E.jsx(va,{className:q(io.buttonDefault,e),type:"button",...i,children:n}),oo=({className:e,children:n,...i})=>E.jsx(va,{className:q(io.buttonPrimary,e),...i,children:n}),VT="_container_h23mk_1",WT="_formContainer_h23mk_17",KT="_emailInput_h23mk_22",ZT="_description_h23mk_52",XT="_actions_h23mk_57",QT="_validationError_h23mk_67",YT="_submitted_h23mk_74",Sr={container:VT,formContainer:WT,emailInput:KT,description:ZT,actions:XT,validationError:QT,submitted:YT},JT=({visible:e,methods:n,onEmailExport:i,onPdfExport:s,onClose:l})=>{const u=Je(),[d,h]=B.useState(void 0),[p,v]=B.useState(!1),[y,b]=B.useState(!1),[m,w]=B.useState(void 0),_=B.useRef(null);B.useEffect(()=>{var N;e?((N=_.current)==null||N.focus(),v(!1),b(!1),h(e)):d===!0&&h(!1)},[e,d]);const S=N=>{N.preventDefault(),m&&m.length>0&&(i(m),v(!0),setTimeout(l,3*1e3))},R=N=>{const x=N.target.value.trim(),k=/^\w+([.-]?\w+)*@\w+([.-]?\w+)*(\.\w{2,3})+$/.test(x);w(k?x:"")},O=()=>{b(!0),s(),setTimeout(l,3*1e3)};return E.jsxs("div",{className:q(Sr.container,Tr.bottomSheet,{[Tr.bottomSheetOpen]:d===!0,[Tr.bottomSheetClose]:d===!1}),children:[n.pdf&&E.jsxs(E.Fragment,{children:[E.jsx("h2",{children:u("export-transcript.pdf.title")}),E.jsx(lr,{className:Sr.description,children:u("export-transcript.pdf.description")||""}),E.jsxs("div",{className:Sr.actions,children:[E.jsx(_g,{onClick:l,children:u("export-transcript.pdf.cancel")}),E.jsx(oo,{onClick:O,disabled:y,children:u("export-transcript.pdf.download")})]})]}),n.email&&E.jsxs(E.Fragment,{children:[E.jsx("h2",{children:u("export-transcript.email.title")}),E.jsx(lr,{className:Sr.description,children:u("export-transcript.email.description")||""}),E.jsxs("form",{onSubmit:S,className:Sr.formContainer,children:[E.jsxs("div",{children:[E.jsx("input",{disabled:p,ref:_,type:"email",placeholder:u("export-transcript.email.placeholder"),className:Sr.emailInput,onChange:R}),(m==null?void 0:m.length)===0?E.jsx("div",{className:Sr.validationError,children:u("export-transcript.email.invalid")}):null]}),E.jsxs("div",{className:Sr.actions,children:[E.jsx(_g,{onClick:l,children:u("export-transcript.email.cancel")}),E.jsx(oo,{type:"submit",disabled:p||m===void 0||m.length===0,children:u("export-transcript.email.send")})]})]}),p&&E.jsx("div",{className:Sr.submitted,children:u("export-transcript.email.success")})]})]})},eC="_inputContainer_fi5ao_1",tC={inputContainer:eC},rC="_blockUserInput_mjy87_1",nC={blockUserInput:rC},iC=({visible:e})=>{const n=Je();return e?E.jsx("div",{className:q(nC.blockUserInput,"chat__blockUserInput"),children:n("block-user-input.title")}):null},oC="_commandsDropdown_5ytuv_1",sC="_commands_5ytuv_1",aC="_command_5ytuv_1",lC="_commandActive_5ytuv_46",uC="_commandsSelections_5ytuv_55",Yi={commandsDropdown:oC,commands:sC,command:aC,commandActive:lC,commandsSelections:uC},cC=(e,n)=>{B.useEffect(()=>{const i=s=>{e.current&&!e.current.contains(s.target)&&n()};return document.addEventListener("mousedown",i),()=>document.removeEventListener("mousedown",i)},[e,n])},fC=(e,n,i,s,l)=>{B.useEffect(()=>{const u=d=>{if(e.length)switch(d.key){case"Enter":i(e[n]);break;case"ArrowUp":s(h=>h>0?h-1:e.length-1);break;case"ArrowDown":s(h=>h<e.length-1?h+1:0);break;case"Escape":l([]);break}};return document.addEventListener("keydown",u),()=>{document.removeEventListener("keydown",u)}},[e,n,i,s,l])},dC=({text:e,commands:n,onSelectCommand:i,onVisibilityChange:s})=>{const l=B.useRef(null),u=Je(),[d,h]=B.useState([]),[p,v]=B.useState(Eg(n)),[y,b]=B.useState(0),m=w=>i(`/${w}`);return cC(l,()=>h([])),fC(d,y,m,b,h),B.useEffect(()=>{v(Eg(n))},[n]),B.useEffect(()=>{const w=e.length||0;w===0||w>p||!e.startsWith("/")?h([]):h(n.filter(hC(e))),b(0)},[n,e,p]),B.useEffect(()=>{s(!!d.length)},[d,s]),d.length?E.jsx("div",{ref:l,className:Yi.commandsDropdown,children:E.jsx("ul",{className:Yi.commands,role:"listbox",children:d.map((w,_)=>E.jsxs("li",{className:q([Yi.command,y===_&&Yi.commandActive]),role:"option",onClick:()=>m(w),onMouseOver:()=>b(_),children:[E.jsxs("h1",{children:["/",w]}),E.jsx("p",{children:u(`commands.${w}`)})]},w))})}):null},Eg=e=>Math.max(...e.map(n=>n.length+1)),hC=e=>n=>{const i=`/${n}`;return i.startsWith(e)&&i.length>=e.length},wg=3,pC=({commands:e,onSelectCommand:n})=>{const i=Je(),[s,l]=B.useState(!1),u=v=>()=>{n(`/${v}`),l(!1)},d=()=>{l(!0)},h=()=>{l(!1)},p=s?e:e.slice(0,wg);return E.jsxs("div",{className:Yi.commandsSelections,children:[p.map(v=>E.jsxs("button",{onClick:u(v),children:["/",v]})),p.length<e.length?E.jsx("button",{"aria-label":i("commands.show-more.tooltip"),"data-title":i("commands.show-more.tooltip"),tabIndex:0,onClick:d,children:i("commands.show-more.action")},"show-more"):p.length>wg?E.jsx("button",{"aria-label":i("commands.show-less.tooltip"),"data-title":i("commands.show-less.tooltip"),tabIndex:0,onClick:h,children:i("commands.show-less.action")},"show-less"):null]})},mC="_callToActionContainer_bkfcm_1",gC="_callToActionTitle_bkfcm_23",yC="_rateOverlay_bkfcm_30",vC="_body_bkfcm_52",_C="_footer_bkfcm_60",EC="_actions_bkfcm_73",wC="_bubbles_bkfcm_101",SC="_stars_bkfcm_203",xC="_starsSmall_bkfcm_215",bC="_starsLarge_bkfcm_219",TC="_star_bkfcm_203",CC="_starReadonly_bkfcm_236",kC="_starIcon_bkfcm_246",RC="_starsDescriptionContainer_bkfcm_264",OC="_starsDescription_bkfcm_264",pt={callToActionContainer:mC,callToActionTitle:gC,rateOverlay:yC,body:vC,footer:_C,actions:EC,bubbles:wC,stars:SC,starsSmall:xC,starsLarge:bC,star:TC,starReadonly:CC,starIcon:kC,starsDescriptionContainer:RC,starsDescription:OC},NC=({value:e,index:n,count:i,readonly:s,onHover:l,onClick:u})=>{const d=h=>{u&&h.key==="Enter"&&u()};return E.jsx("li",{className:q(pt.star,{[pt.starReadonly]:s},"chat__conversationRating__star"),children:E.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:E.jsx("span",{role:"img","aria-label":"Star",className:q(pt.starIcon),children:E.jsx("svg",{viewBox:"64 64 896 896",focusable:"false","data-icon":"star",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",children:E.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"})})})})})},Sg=5,Ly=({value:e,size:n,readonly:i=!1,onChange:s})=>{const[l,u]=B.useState(void 0),d=()=>{u(void 0)},h=v=>()=>{if(!i){const y=v+1;u(y)}},p=v=>()=>{s&&!i&&(s(v===0&&e===1?0:v+1),u(void 0))};return E.jsx("ul",{tabIndex:0,role:"radiogroup",className:q(pt.stars,{[pt.starsSmall]:n==="small",[pt.starsLarge]:n==="large"},"chat__conversationRating__stars",{chat__conversationRating__stars__small:n==="small",chat__conversationRating__stars__large:n==="large"}),onMouseOut:d,children:Array(Sg).fill(0).map((v,y)=>E.jsx(NC,{value:l===void 0?e:l,index:y,count:Sg,readonly:i,onHover:h(y),onClick:p(y)},y))})},AC=({visible:e,onRate:n})=>{const i=Je();return e?E.jsxs("div",{className:q(pt.callToActionContainer,"chat__conversationRating__callToAction"),children:[E.jsx("div",{className:q(pt.callToActionTitle,"chat__conversationRating__callToAction__title"),children:i("conversation-rating.call-to-action.title")}),E.jsx(Ly,{value:0,size:"small",onChange:n})]}):null},Qu=({isFirstMessageBySender:e,isLastMessageBySender:n,children:i})=>E.jsxs("div",{className:q(de.message,de.messageBot,e&&de.messageBotFirst,n&&de.messageBotLast,"chat__bubbleContainer","chat__botBubbleContainer",e&&"chat__bubbleContainer--first",n&&"chat__bubbleContainer--last"),children:[E.jsx("img",{className:q(de.avatar,de.botAvatar),src:"bot.svg",alt:"Bot"}),E.jsx("div",{className:q(de.bubble,de.bubbleLeft,"chat__bubble","chat__botBubble"),children:E.jsx("div",{className:q(de.leftText,de.bubbleContent),children:i})})]}),IC=({children:e})=>E.jsx("div",{className:q(de.message,de.messageGuest,de.messageGuestFirst,de.messageGuestLast,"chat__bubbleContainer","chat__guestBubbleContainer","chat__bubbleContainer--first","chat__bubbleContainer--last"),children:E.jsx("div",{className:q(de.bubble,de.bubbleRight,"chat__bubble","chat__guestBubble"),children:E.jsx("div",{className:q(de.rightText,de.bubbleContent),children:e})})}),DC=({visible:e,rating:n,onRate:i,onClose:s})=>{const l=Je(),[u,d]=B.useState(n),[h,p]=B.useState(void 0),[v,y]=B.useState(void 0),[b,m]=B.useState({submitted:!1,feedback:""}),[w,_]=B.useState(!1),S=B.useRef(null);B.useEffect(()=>{e?(m({submitted:!1,feedback:""}),y(e)):v===!0&&y(!1)},[e,v]),B.useEffect(()=>{d(n)},[n]),B.useEffect(()=>{const O=l(`conversation-rating.overlay.bot-message.rate-feedback.value-${u}`);p(O!=null&&O.length?O:void 0)},[u,l]),B.useEffect(()=>{b.submitted?setTimeout(()=>_(!0),b.feedback.length?500:0):_(!1)},[b]);const R=O=>{var x,k;O.preventDefault();const N=((k=(x=S.current)==null?void 0:x.value)==null?void 0:k.trim())||"";i(u,N),m({submitted:!0,feedback:N})};return E.jsx("div",{className:q(pt.rateOverlay,Tr.bottomSheet,"chat__conversationRating__overlay",{[Tr.bottomSheetOpen]:v===!0,[Tr.bottomSheetClose]:v===!1}),children:E.jsxs("form",{onSubmit:R,children:[E.jsxs("div",{className:q(pt.body,"chat__conversationRating__overlay__body"),children:[E.jsx("div",{}),E.jsx("div",{className:q(pt.bubbles),children:e&&h&&E.jsxs(E.Fragment,{children:[E.jsxs(Qu,{isFirstMessageBySender:!0,isLastMessageBySender:!1,children:[E.jsx("h2",{children:l("conversation-rating.overlay.title")}),E.jsxs("div",{className:q(pt.starsDescriptionContainer),children:[E.jsx(Ly,{value:u,size:"large",readonly:b.submitted,onChange:d}),E.jsxs("div",{className:q(pt.starsDescription),children:[E.jsx("div",{children:l("conversation-rating.overlay.star.very-bad")}),E.jsx("div",{children:l("conversation-rating.overlay.star.very-good")})]})]})]}),E.jsx(Qu,{isFirstMessageBySender:!1,isLastMessageBySender:!w||!!b.feedback.length,children:E.jsx("div",{children:h})}),!!b.feedback.length&&E.jsx(IC,{children:b.feedback}),w&&E.jsx(Qu,{isFirstMessageBySender:!!b.feedback.length,isLastMessageBySender:!0,children:E.jsx("div",{children:l("conversation-rating.overlay.bot-message.submit-feedback")})})]})})]}),E.jsxs("div",{className:q(pt.footer,"chat__conversationRating__overlay__footer"),children:[!b.submitted&&E.jsx("input",{ref:S,placeholder:l("conversation-rating.overlay.guest-feedback.input-placeholder")}),E.jsx("div",{className:q(pt.actions,"chat__conversationRating__overlay__footer__actions"),children:b.submitted?E.jsx(oo,{type:"button",onClick:s,children:l("conversation-rating.overlay.action.close")}):E.jsx(oo,{type:"submit",children:l("conversation-rating.overlay.action.submit")})})]})]})})},PC=({conversationRating:{enabled:e,rating:n},numberOfMessagesFromGuest:i,showRatingOverlay:s,setShowRatingOverlay:l,onRate:u})=>{const[d,h]=B.useState(0),p=b=>{h(b),l(!0)},v=()=>l(!1),y=!n&&i>=1;return e?E.jsxs(E.Fragment,{children:[E.jsx(AC,{visible:y,onRate:p}),E.jsx(DC,{visible:s,rating:d,onRate:u,onClose:v})]}):null},MC="_inputWrapper_e3h44_1",FC="_withOpenCommands_e3h44_14",LC="_messageInputWrapper_e3h44_20",BC="_messageInput_e3h44_20",jC="_buttons_e3h44_44",UC="_button_e3h44_44",mn={inputWrapper:MC,withOpenCommands:FC,messageInputWrapper:LC,messageInput:BC,buttons:jC,button:UC},HC="_audioRecorder_g845f_1",zC="_audioButton_g845f_6",GC="_recorderIcon_g845f_37",$C="_spinning_g845f_60",gn={audioRecorder:HC,audioButton:zC,recorderIcon:GC,spinning:$C},xg=2048,oa=16e3;class qC extends r0.Component{constructor(i){super(i);xe(this,"audioInput",null);xe(this,"volume",null);xe(this,"leftchannel",[]);xe(this,"recorder",null);xe(this,"recordingLength",0);xe(this,"sampleRate",null);xe(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(xg,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+=xg}}handleClickSubmitAudio(){const i=WC(this.leftchannel,this.recordingLength),s=KC(i,this.sampleRate||0),l=VC(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 E.jsxs("div",{className:gn.audioRecorder,children:[this.state.recordingState==="none"&&E.jsx("button",{className:q(gn.audioButton,"chat__button"),type:"submit","aria-label":this.props.translate("message-input.actions.start-audio-recording.label"),"data-title":this.props.translate("message-input.actions.start-audio-recording.label"),tabIndex:0,onClick:this.triggerAudioRecording,children:E.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",children:[E.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"}),E.jsx("path",{d:"M0 0h24v24H0z",fill:"none"})]})}),this.state.recordingState==="connecting"&&E.jsxs("svg",{className:gn.spinning,xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",children:[E.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"}),E.jsx("path",{d:"M0 0h24v24H0z",fill:"none"})]}),this.state.recordingState==="recording"&&E.jsxs("div",{className:gn.audioRecorder,children:[E.jsx("button",{className:q(gn.audioButton),onClick:this.handleClickStopAudio,"aria-label":this.props.translate("message-input.actions.stop-audio-recording.label"),tabIndex:0,children:E.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",children:[E.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"}),E.jsx("path",{d:"M0 0h24v24H0z",fill:"none"})]})}),E.jsx("div",{className:gn.recorderIcon}),E.jsx("button",{className:q(gn.audioButton),type:"submit",onClick:this.handleClickSubmitAudio,"aria-label":this.props.translate("message-input.actions.submit-audio-recording.label"),tabIndex:0,autoFocus:!0,children:E.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",children:[E.jsx("path",{d:"M0 0h24v24H0z",fill:"none"}),E.jsx("path",{d:"M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"})]})})]})]})}}const VC=e=>{const n=new ArrayBuffer(44+e.length*2),i=new DataView(n);$s(i,0,"RIFF"),i.setUint32(4,44+e.length*2,!0),$s(i,8,"WAVE"),$s(i,12,"fmt "),i.setUint32(16,16,!0),i.setUint16(20,1,!0),i.setUint16(22,1,!0),i.setUint32(24,oa,!0),i.setUint32(28,oa*4,!0),i.setUint16(32,4,!0),i.setUint16(34,16,!0),$s(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"})},$s=(e,n,i)=>{for(let s=0;s<i.length;s++)e.setUint8(n+s,i.charCodeAt(s))},WC=(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},KC=(e,n)=>{if(oa===n)return e;const i=n/oa,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,v=0;for(let y=d;y<h&&y<e.length;y++)p+=e[y],v++;l[u]=p/v,u++,d=h}return l},ZC=({speechSupport:e,transcriptExportEnabled:n,disabled:i,textInput:s,commandsVisible:l,onTextInput:u,onTextInputSubmit:d,onAudioRecorded:h,onOpenTranscriptExportModal:p})=>{const v=Je(),y=B.useRef(null);B.useEffect(()=>{var S;(S=y.current)==null||S.focus()},[s]);const b=()=>{const S=y.current;S&&s.trim().length>=1&&d(s.trim())&&(S.value="",S.style.height="",S.focus())},m=S=>{S.preventDefault(),b()},w=S=>{const R=S.target.value;u(R),S.target.style.height="";const{scrollHeight:O}=S.target;S.target.style.height=`${O>150?150:O}px`},_=S=>{S.code==="Enter"&&!S.shiftKey?(S.repeat||b(),S.preventDefault()):l&&(S.code==="ArrowUp"||S.code==="ArrowDown")&&S.preventDefault()};return E.jsxs("form",{className:q(mn.inputWrapper,l&&mn.withOpenCommands,"chat__textInput"),onSubmit:m,children:[E.jsx("div",{className:mn.messageInputWrapper,children:E.jsx("textarea",{id:"user_input",ref:y,className:mn.messageInput,tabIndex:0,placeholder:v("message-input-placeholder"),value:s,onChange:w,onKeyDown:_,"aria-label":v("message-input-label"),"aria-controls":"command-list","aria-haspopup":"listbox"})}),E.jsxs("div",{className:q(mn.buttons,"chat__buttons"),children:[!s.length&&n&&E.jsx("button",{type:"button",className:q(mn.button,"chat__button"),"aria-label":v("message-input.actions.export-transcript.label"),"data-title":v("message-input.actions.export-transcript.label"),tabIndex:0,onClick:p,children:E.jsx("svg",{viewBox:"64 64 896 896",focusable:"false",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",children:E.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"})})}),s.length||!e||navigator.mediaDevices===void 0?E.jsx("button",{className:q(mn.button,"chat__button"),type:"submit","aria-label":v("message-input.actions.submit.label"),"data-title":v("message-input.actions.submit.label"),tabIndex:0,disabled:i,children:E.jsx("svg",{viewBox:"64 64 896 896",focusable:"false",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",children:E.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&&E.jsx(qC,{translate:v,onAudioRecorded:h})]})]})},XC="_quickReplies_83npe_1",QC="_quickReply_83npe_9",bg={quickReplies:XC,quickReply:QC},YC=({quickReplies:e,onQuickReplyClick:n})=>e.length?E.jsx("div",{className:q(bg.quickReplies,"chat__quickReplies"),children:e.map(i=>E.jsx(va,{tabIndex:0,className:q(bg.quickReply,"chat__button","chat__quickReply"),onClick:()=>n(i),children:i.label},i.label))}):null,Tg=5e3,JC=1e3,ek=({isBotTyping:e,quickReplies:n,speechSupport:i,transcriptExportEnabled:s,conversationRating:l,numberOfMessagesFromGuest:u,showRatingOverlay:d,commands:h,setShowRatingOverlay:p,onTextInput:v,onRate:y,onQuickReplyClick:b,onAudioRecorded:m,onOpenTranscriptExportModal:w})=>{const[_,S]=B.useState(""),[R,O]=B.useState(!1),[N,x]=B.useState(!1),k=B.useRef(),T=B.useRef(0);B.useEffect(()=>{if(R&&!e){const V=k.current?Date.now()-k.current:0;V>Tg?O(!1):setTimeout(()=>{O(!1)},Tg-V)}},[R,e]),B.useEffect(()=>{R&&(k.current=Date.now())},[R]);const F=V=>{const fe=Date.now()-T.current<JC;return N?!1:e||fe?(O(!0),!1):(v(V),S(""),T.current=Date.now(),!0)},z=V=>{S(V+" ")};return E.jsxs("div",{className:q(tC.inputContainer),children:[E.jsx(YC,{quickReplies:n,onQuickReplyClick:b}),E.jsx(iC,{visible:R}),!R&&E.jsx(PC,{conversationRating:l,numberOfMessagesFromGuest:u,onRate:y,showRatingOverlay:d,setShowRatingOverlay:p}),!!(h!=null&&h.length)&&E.jsx(dC,{text:_,commands:h,onSelectCommand:z,onVisibilityChange:x}),E.jsx(ZC,{textInput:_,speechSupport:i,transcriptExportEnabled:s,disabled:R,commandsVisible:N,onTextInput:S,onTextInputSubmit:F,onOpenTranscriptExportModal:w,onAudioRecorded:m}),!!(h!=null&&h.length)&&E.jsx(pC,{commands:h,onSelectCommand:S})]})},tk=({clientName:e,messages:n,quickReplies:i,isBotTyping:s,drawerContentUrl:l,speechSupport:u,transcriptExportEnabled:d,conversationRating:h,showGeneralConditions:p,commands:v,onMessageFromUser:y,onRate:b,onQuickReplyClick:m,onButtonClick:w,onLinkClick:_,onAudioRecorded:S,onTranscriptExport:R,onPdfExport:O,onTranscriptItemReaction:N})=>{const x=ti(),k=Xr(oe=>oe.connection.connectionState),[T,F]=B.useState(!1),[z,V]=B.useState(!1),fe=d.email||d.pdf,te=n.filter(oe=>oe.sender.type===my.GUEST).length;return B.useEffect(()=>{if(k===En.CONNECTED){const oe=ua.parse(window.location.search);x(py(e,oe))}},[e,k,x]),E.jsxs("div",{className:ju.container,children:[E.jsxs("div",{className:q([ju.chatcontent,(T||z)&&ju.accessabilityHidden]),children:[E.jsx(PT,{messages:n,isBotTyping:s,showGeneralConditions:p,commands:v,onButtonClick:w,onLinkClick:_,onTranscriptItemReaction:N}),E.jsx(ek,{isBotTyping:s,quickReplies:s?[]:i,numberOfMessagesFromGuest:te,speechSupport:u,transcriptExportEnabled:fe,conversationRating:T?{enabled:!1}:h,showRatingOverlay:z,setShowRatingOverlay:V,commands:v,onRate:b,onQuickReplyClick:m,onTextInput:y,onAudioRecorded:S,onOpenTranscriptExportModal:()=>F(!T)}),E.jsx(qT,{})]}),fe&&E.jsx(JT,{methods:d,visible:T,onEmailExport:R,onPdfExport:O,onClose:()=>F(!1)}),E.jsx(HT,{contentUrl:l})]})},rk=e=>{const{messages:n,quickReplies:i,isBotTyping:s,drawerContentUrl:l,speechSupport:u,transcriptExportEnabled:d,conversationRating:h,showGeneralConditions:p,commands:v}=e.chat;return{messages:n,quickReplies:i,isBotTyping:s,drawerContentUrl:l,speechSupport:u,transcriptExportEnabled:d,conversationRating:h,showGeneralConditions:p,commands:v}},nk=e=>({onRestartChat:(n,i)=>e(ga(n,i)),onMessageFromUser:n=>e(q0(n)),onRate:(n,i)=>e(GS(n,i)),onAudioRecorded:n=>e(PS(n)),onActionFromUser:n=>e(n),onQuickReplyClick:n=>e($0(n)),onNluEvent:n=>e(Q0(n)),onButtonClick:n=>e(qS(n)),onLinkClick:n=>e(VS(n)),onTranscriptExport:n=>e(BS(n)),onPdfExport:()=>e(HS()),onTranscriptItemReaction:(n,i)=>e(ge.transcriptItemGuestReaction(n,i||null))}),ik=cE(rk,nk)(tk),By=()=>ok(window.location.pathname),ok=e=>{const n=e.split("/"),i=e.endsWith("/");return n[n.length-(i?2:1)]},jy=()=>B.useMemo(()=>By(),[]),sk="_header_19p33_1",ak="_logoContainer_19p33_13",lk="_logo_19p33_13",uk="_actions_19p33_26",ck="_closeButton_19p33_72",Ji={header:sk,logoContainer:ak,logo:lk,actions:uk,closeButton:ck},Uy=e=>n=>{const i=n.key;(i==="ArrowDown"||i==="ArrowRight"||i==="Enter"||i===" "||i==="Space")&&(n.stopPropagation(),e())},fk=({onClick:e})=>{const n=Je();return E.jsx("button",{className:q(Ji.closeButton,"tooltip--bottom"),"aria-label":n("header.close-chat"),"data-title":n("header.close-chat"),tabIndex:0,onClick:e,onKeyDown:Uy(e),children:E.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",children:E.jsx("path",{d:"M205.66,194.34a8,8,0,0,1-11.32,11.32L128,139.31,61.66,205.66a8,8,0,0,1-11.32-11.32L116.69,128,50.34,61.66A8,8,0,0,1,61.66,50.34L128,116.69l66.34-66.35a8,8,0,0,1,11.32,11.32L139.31,128Z"})})})},dk=({onClick:e})=>{const n=Je();return E.jsx("button",{className:"tooltip--bottom","aria-label":n("header.restart-chat"),"data-title":n("header.restart-chat"),tabIndex:0,onClick:e,onKeyDown:Uy(e),children:E.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 32 32",children:[E.jsx("path",{d:"M14.506,23.578l-5.511,0l-3.993,3.501l-0.007,0.006c-0.302,0.261 -0.687,0.405 -1.084,0.405c-0.245,-0.001 -0.488,-0.055 -0.711,-0.161c-0.595,-0.277 -0.978,-0.886 -0.974,-1.551l-0,-19.558c-0,-0.939 0.761,-1.711 1.685,-1.711l21.189,-0c0.924,-0 1.685,0.772 1.685,1.711l0,5.104l-1.444,0l-0,-5.104c-0,-0.134 -0.109,-0.244 -0.241,-0.244l-21.189,-0c-0.132,-0 -0.24,0.11 -0.24,0.244l-0,19.558c0.001,0.133 0.109,0.242 0.24,0.242c0.056,-0 0.109,-0.019 0.152,-0.055l4.192,-3.675c0.131,-0.115 0.299,-0.179 0.472,-0.179l5.779,0l-0,1.467Z"}),E.jsx("path",{d:"M29.869,20.148c0,4.137 -3.373,7.556 -7.509,7.612l-0.102,-0c-1.943,0.004 -3.814,-0.741 -5.223,-2.078c-0.183,-0.172 -0.286,-0.412 -0.286,-0.664c-0,-0.501 0.412,-0.913 0.913,-0.913c0.233,-0 0.458,0.089 0.627,0.249c1.074,1.014 2.495,1.579 3.971,1.579c3.174,-0 5.785,-2.612 5.785,-5.785c-0,-3.173 -2.611,-5.784 -5.785,-5.784c-1.533,-0 -3.006,0.61 -4.09,1.694c-0.01,0.01 -0.019,0.019 -0.03,0.028l-1.447,1.322l1.302,0c0.502,0 0.914,0.413 0.914,0.914c-0,0.501 -0.412,0.913 -0.914,0.913l-3.653,0c-0.501,0 -0.913,-0.412 -0.913,-0.913l-0,-3.654c-0,-0.501 0.412,-0.913 0.913,-0.913c0.501,0 0.913,0.412 0.913,0.913l0,1.577l1.635,-1.496c1.426,-1.418 3.357,-2.215 5.368,-2.215c4.175,0 7.611,3.436 7.611,7.611c-0,0.001 -0,0.002 -0,0.003Z"})]})})},Cg=({className:e,withActions:n=!0,...i})=>{const s=ti(),l=jy(),u=()=>{const h=ua.parse(window.location.search);s(ga(l,h))},d=()=>{s(j2())};return E.jsxs("div",{className:q([Ji.header,e]),...i,children:[E.jsx("div",{className:Ji.logoContainer,children:E.jsx("div",{className:Ji.logo})}),E.jsxs("div",{className:Ji.actions,children:[n&&E.jsx(dk,{onClick:u}),E.jsx(fk,{onClick:d})]})]})},hk="_chatwindow_6v6ob_1",pk="_chatwindowWithAside_6v6ob_46",kg={chatwindow:hk,chatwindowWithAside:pk},mk="_sourceInfos_1qwkt_1",gk="_sourceDetails_1qwkt_16",yk="_sourceHeader_1qwkt_23",vk="_sourceHeaderIcon_1qwkt_43",_k="_openSourceButton_1qwkt_47",Ek="_closeSourceInfosButton_1qwkt_70",wk="_sourceContent_1qwkt_85",Sk="_loadingSourceInfos_1qwkt_108",xk="_loading_1qwkt_108",bk="_loadingError_1qwkt_122",fr={sourceInfos:mk,sourceDetails:gk,sourceHeader:yk,sourceHeaderIcon:vk,openSourceButton:_k,closeSourceInfosButton:Ek,sourceContent:wk,loadingSourceInfos:Sk,loading:xk,loadingError:bk},Tk=({onClick:e})=>{const n=Je();return E.jsx("button",{className:q(fr.closeSourceInfosButton,"tooltip--bottom"),"aria-label":n("source-infos.close"),"data-title":n("source-infos.close"),tabIndex:0,onClick:e,children:E.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",children:E.jsx("path",{d:"M205.66,194.34a8,8,0,0,1-11.32,11.32L128,139.31,61.66,205.66a8,8,0,0,1-11.32-11.32L116.69,128,50.34,61.66A8,8,0,0,1,61.66,50.34L128,116.69l66.34-66.35a8,8,0,0,1,11.32,11.32L139.31,128Z"})})})},Ck=({type:e})=>{switch(e){case"WEBSITE":return E.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",children:E.jsx("path",{d:"M128,26A102,102,0,1,0,230,128,102.12,102.12,0,0,0,128,26Zm81.57,64H169.19a132.58,132.58,0,0,0-25.73-50.67A90.29,90.29,0,0,1,209.57,90ZM218,128a89.7,89.7,0,0,1-3.83,26H171.81a155.43,155.43,0,0,0,0-52h42.36A89.7,89.7,0,0,1,218,128Zm-90,87.83a110,110,0,0,1-15.19-19.45A124.24,124.24,0,0,1,99.35,166h57.3a124.24,124.24,0,0,1-13.46,30.38A110,110,0,0,1,128,215.83ZM96.45,154a139.18,139.18,0,0,1,0-52h63.1a139.18,139.18,0,0,1,0,52ZM38,128a89.7,89.7,0,0,1,3.83-26H84.19a155.43,155.43,0,0,0,0,52H41.83A89.7,89.7,0,0,1,38,128Zm90-87.83a110,110,0,0,1,15.19,19.45A124.24,124.24,0,0,1,156.65,90H99.35a124.24,124.24,0,0,1,13.46-30.38A110,110,0,0,1,128,40.17Zm-15.46-.84A132.58,132.58,0,0,0,86.81,90H46.43A90.29,90.29,0,0,1,112.54,39.33ZM46.43,166H86.81a132.58,132.58,0,0,0,25.73,50.67A90.29,90.29,0,0,1,46.43,166Zm97,50.67A132.58,132.58,0,0,0,169.19,166h40.38A90.29,90.29,0,0,1,143.46,216.67Z"})});case"PDF":return E.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",children:E.jsx("path",{d:"M222,152a6,6,0,0,1-6,6H190v20h18a6,6,0,0,1,0,12H190v18a6,6,0,0,1-12,0V152a6,6,0,0,1,6-6h32A6,6,0,0,1,222,152ZM90,172a26,26,0,0,1-26,26H54v10a6,6,0,0,1-12,0V152a6,6,0,0,1,6-6H64A26,26,0,0,1,90,172Zm-12,0a14,14,0,0,0-14-14H54v28H64A14,14,0,0,0,78,172Zm84,8a34,34,0,0,1-34,34H112a6,6,0,0,1-6-6V152a6,6,0,0,1,6-6h16A34,34,0,0,1,162,180Zm-12,0a22,22,0,0,0-22-22H118v44h10A22,22,0,0,0,150,180ZM42,112V40A14,14,0,0,1,56,26h96a6,6,0,0,1,4.25,1.76l56,56A6,6,0,0,1,214,88v24a6,6,0,0,1-12,0V94H152a6,6,0,0,1-6-6V38H56a2,2,0,0,0-2,2v72a6,6,0,0,1-12,0ZM158,82h35.52L158,46.48Z"})});case"DOCX":return E.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",children:E.jsx("path",{d:"M52,146H36a6,6,0,0,0-6,6v56a6,6,0,0,0,6,6H52a34,34,0,0,0,0-68Zm0,56H42V158H52a22,22,0,0,1,0,44Zm168.15-5.46a6,6,0,0,1,.18,8.48A28.06,28.06,0,0,1,200,214c-16.54,0-30-15.25-30-34s13.46-34,30-34a28.06,28.06,0,0,1,20.33,9,6,6,0,0,1-8.66,8.3A16.23,16.23,0,0,0,200,158c-9.93,0-18,9.87-18,22s8.07,22,18,22a16.23,16.23,0,0,0,11.67-5.28A6,6,0,0,1,220.15,196.54ZM128,146c-16.54,0-30,15.25-30,34s13.46,34,30,34,30-15.25,30-34S144.54,146,128,146Zm0,56c-9.93,0-18-9.87-18-22s8.07-22,18-22,18,9.87,18,22S137.93,202,128,202ZM48,118a6,6,0,0,0,6-6V40a2,2,0,0,1,2-2h90V88a6,6,0,0,0,6,6h50v18a6,6,0,0,0,12,0V88a6,6,0,0,0-1.76-4.24l-56-56A6,6,0,0,0,152,26H56A14,14,0,0,0,42,40v72A6,6,0,0,0,48,118ZM158,46.48,193.52,82H158Z"})});case"TEXT":return E.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",children:E.jsx("path",{d:"M52,146H36a6,6,0,0,0-6,6v56a6,6,0,0,0,6,6H52a34,34,0,0,0,0-68Zm0,56H42V158H52a22,22,0,0,1,0,44Zm168.15-5.46a6,6,0,0,1,.18,8.48A28.06,28.06,0,0,1,200,214c-16.54,0-30-15.25-30-34s13.46-34,30-34a28.06,28.06,0,0,1,20.33,9,6,6,0,0,1-8.66,8.3A16.23,16.23,0,0,0,200,158c-9.93,0-18,9.87-18,22s8.07,22,18,22a16.23,16.23,0,0,0,11.67-5.28A6,6,0,0,1,220.15,196.54ZM128,146c-16.54,0-30,15.25-30,34s13.46,34,30,34,30-15.25,30-34S144.54,146,128,146Zm0,56c-9.93,0-18-9.87-18-22s8.07-22,18-22,18,9.87,18,22S137.93,202,128,202ZM48,118a6,6,0,0,0,6-6V40a2,2,0,0,1,2-2h90V88a6,6,0,0,0,6,6h50v18a6,6,0,0,0,12,0V88a6,6,0,0,0-1.76-4.24l-56-56A6,6,0,0,0,152,26H56A14,14,0,0,0,42,40v72A6,6,0,0,0,48,118ZM158,46.48,193.52,82H158Z"})});default:return E.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",children:E.jsx("path",{d:"M212.24,83.76l-56-56A6,6,0,0,0,152,26H56A14,14,0,0,0,42,40V216a14,14,0,0,0,14,14H200a14,14,0,0,0,14-14V88A6,6,0,0,0,212.24,83.76ZM158,46.48,193.52,82H158ZM200,218H56a2,2,0,0,1-2-2V40a2,2,0,0,1,2-2h90V88a6,6,0,0,0,6,6h50V216A2,2,0,0,1,200,218Z"})})}},kk=({sourceInfos:e,onClose:n})=>E.jsxs("div",{className:fr.sourceHeader,children:[E.jsx("div",{className:fr.sourceHeaderIcon,children:e&&E.jsx(Ck,{type:e.knowledgeBaseType})}),E.jsx("div",{children:e&&E.jsx("h1",{children:e.title})}),E.jsx(Tk,{onClick:n})]}),Rk=({title:e,href:n,children:i})=>E.jsx("a",{href:n,title:e,target:"_blank",rel:"noopener noreferrer",children:i}),Ok=({className:e,children:n,...i})=>E.jsx("a",{className:q(io.button,io.buttonPrimary,e),type:"button",...i,children:n}),Nk=({label:e,url:n})=>E.jsxs(Ok,{className:fr.openSourceButton,href:n,target:"_blank",children:[E.jsx("p",{children:e}),E.jsx("div",{children:E.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"#000000",viewBox:"0 0 256 256",children:E.jsx("path",{d:"M222,104a6,6,0,0,1-12,0V54.49l-69.75,69.75a6,6,0,0,1-8.48-8.48L201.51,46H152a6,6,0,0,1,0-12h64a6,6,0,0,1,6,6Zm-38,26a6,6,0,0,0-6,6v72a2,2,0,0,1-2,2H48a2,2,0,0,1-2-2V80a2,2,0,0,1,2-2h72a6,6,0,0,0,0-12H48A14,14,0,0,0,34,80V208a14,14,0,0,0,14,14H176a14,14,0,0,0,14-14V136A6,6,0,0,0,184,130Z"})})})]}),Ak=({sourceInfos:e})=>E.jsxs(E.Fragment,{children:[E.jsx("div",{className:q(fr.sourceContent,Fy.markdown),children:E.jsx(lr,{options:{overrides:{a:Rk}},children:e.content})}),E.jsx(Nk,{label:e.title,url:e.url})]}),Ik=""+new URL("undraw_fixing-bugs-D_eYxJc6.svg",import.meta.url).href,Dk=()=>{const e=Je();return E.jsxs("div",{className:fr.loadingError,children:[E.jsx("h1",{children:e("source-infos.error.title")}),E.jsx("img",{src:Ik,title:e("source-infos.error.title")}),E.jsx("p",{children:e("source-infos.error.info")})]})},Pk=()=>E.jsx("div",{className:fr.loadingSourceInfos,children:E.jsx("svg",{className:fr.loading,xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",children:E.jsx("path",{d:"M230,128a102,102,0,0,1-204,0c0-40.18,23.35-76.86,59.5-93.45a6,6,0,0,1,5,10.9C58.61,60.09,38,92.49,38,128a90,90,0,0,0,180,0c0-35.51-20.61-67.91-52.5-82.55a6,6,0,0,1,5-10.9C206.65,51.14,230,87.82,230,128Z"})})}),Mk=()=>{const e=ti(),n=Xr(s=>s.chat.sourceInfos),i=()=>{e(H2())};return n?E.jsxs("div",{className:fr.sourceInfos,children:[E.jsx("div",{className:fr.sourceDetails,children:E.jsx(kk,{sourceInfos:n.type==="loaded"?n:void 0,onClose:i})}),n.type==="loading"?E.jsx(Pk,{}):n.type==="loading-error"?E.jsx(Dk,{}):E.jsx(Ak,{sourceInfos:n})]}):null},Fk="_container_114wy_1",Lk="_body_114wy_7",Bk="_intro_114wy_14",jk="_footer_114wy_39",Uk="_footnote_114wy_43",Hk="_containerWithFootnote_114wy_58",zk="_startChatButton_114wy_73",Gk="_formFields_114wy_77",$k="_formField_114wy_77",qk="_radio_114wy_89",Vk="_checkbox_114wy_96",Wk="_input_114wy_104",Kk="_inputLabel_114wy_138",Zk="_selectWrapper_114wy_142",Xk="_select_114wy_142",Qk="_selectLabel_114wy_188",ot={container:Fk,body:Lk,intro:Bk,footer:jk,footnote:Uk,containerWithFootnote:Hk,startChatButton:zk,formFields:Gk,formField:$k,radio:qk,checkbox:Vk,input:Wk,inputLabel:Kk,selectWrapper:Zk,select:Xk,selectLabel:Qk},Yk=({name:e,label:n,defaultValue:i,required:s,onChange:l})=>{const u=d=>{l(d.currentTarget.checked?"true":"false")};return E.jsxs("label",{className:q(ot.checkbox,"chat__startScreen__checkbox"),htmlFor:e,children:[E.jsx("input",{type:"checkbox",id:e,name:e,defaultChecked:i==="true",required:s,onChange:u}),E.jsx("div",{children:n})]})},Jk=({type:e,name:n,label:i,defaultValue:s,placeholder:l,required:u,multiple:d,min:h,max:p,pattern:v,onChange:y})=>{const b=m=>{y(m.target.value)};return E.jsxs("label",{className:q(ot.input,"chat__startScreen__input"),htmlFor:n,children:[E.jsx("div",{className:q(ot.inputLabel),children:i}),E.jsx("input",{type:e,id:n,name:n,defaultValue:s,placeholder:l,required:u,multiple:d,min:h,max:p,pattern:v,onChange:b})]})},eR=({name:e,value:n,label:i,defaultChecked:s,required:l,onChange:u})=>{const d=`${e}-${n}`,h=p=>{u(p.target.value)};return E.jsxs("label",{className:q(ot.radio,"chat__startScreen__radio"),htmlFor:d,children:[E.jsx("input",{id:d,type:"radio",name:e,value:n,defaultChecked:s,required:l,onChange:h}),E.jsx("span",{className:q(ot.label),children:i})]})},tR=({name:e,label:n,defaultValue:i,required:s,multiple:l,options:u,onChange:d})=>{const h=p=>{d(p.target.value)};return E.jsxs("label",{className:q(ot.select,"chat__startScreen__select"),htmlFor:e,children:[E.jsx("div",{className:q(ot.selectLabel),children:n}),E.jsx("div",{className:q(ot.selectWrapper),children:E.jsx("select",{id:e,name:e,defaultValue:i,required:s,multiple:l,onChange:h,children:Object.entries(u||{}).map(([p,v])=>E.jsx("option",{value:p,selected:v===i,children:v}))})})]})},rR="start-screen.intro",nR="start-screen.start-chat",iR="start-screen.footnote",Xt="start-screen.form",Rg=`${Xt}.fields`,oR=()=>{const e=Je(),n=ti(),[i,s]=B.useState({}),l=()=>{const b=Object.entries(i).reduce((m,[w,_])=>({...m,[w]:_.value}),{});n(F2(b))},u=e(rR),d=e(nR),h=e(iR),p=B.useMemo(()=>{var b;return((b=e(Rg))==null?void 0:b.split(";").map(m=>m.trim()))??[]},[e(Rg)]);B.useEffect(()=>{p.length&&Object.keys(i).length===0&&s(p.reduce((b,m)=>({...b,[m]:sR(m,e)}),{}))},[e,p,i]);const v=b=>{b.preventDefault(),l()},y=b=>m=>{s(w=>({...w,[b]:{...w[b],value:m}}))};return E.jsxs("form",{onSubmit:v,className:q(ot.container,h&&ot.containerWithFootnote,"chat__startScreen"),children:[E.jsxs("div",{className:q(ot.body,"chat__startScreen__body"),children:[u&&E.jsx("div",{className:q(ot.intro,"chat__startScreen__intro"),children:E.jsx(lr,{options:{overrides:{a:Og}},children:u})}),E.jsx("div",{className:q(ot.formFields,"chat__startScreen__fields"),children:Object.values(i).map(({type:b,name:m,label:w,placeholder:_,defaultValue:S,options:R,required:O,multiple:N,min:x,max:k,pattern:T})=>E.jsx("div",{className:q(ot.formField,"chat__startScreen__field"),children:(()=>{switch(b){case"radio":return E.jsxs(E.Fragment,{children:[E.jsx("div",{children:w}),Object.entries(R||{}).map(([F,z])=>E.jsx(eR,{name:m,value:F,label:z,defaultChecked:F===S,required:O,onChange:y(m)}))]});case"checkbox":return E.jsx(Yk,{name:m,label:w,defaultValue:S,required:O,onChange:y(m)});case"select":return E.jsx(tR,{name:m,label:w,defaultValue:S,required:O,multiple:N,options:R,onChange:y(m)});default:return E.jsx(Jk,{type:b,name:m,label:w,placeholder:_,defaultValue:S,required:O,multiple:N,min:x,max:k,pattern:T,onChange:y(m)})}})()},m))})]}),E.jsxs("div",{className:q(ot.footer,"chat__startScreen__footer"),children:[E.jsx(oo,{type:"submit",className:ot.startChatButton,children:d}),h&&E.jsx("div",{className:ot.footnote,children:E.jsx(lr,{options:{overrides:{a:Og}},children:h})})]})]})},Og=({title:e,href:n,children:i})=>E.jsx("a",{href:n,title:e,target:"_blank",rel:"noopener noreferrer",children:i}),sR=(e,n)=>{const i=n(`${Xt}.${e}.type`)||"text",s=n(`${Xt}.${e}.required`)==="true",l=n(`${Xt}.${e}.multiple`)==="true",u=n(`${Xt}.${e}.placeholder`),d=n(`${Xt}.${e}.label`)||"",h=n(`${Xt}.${e}.defaultValue`),p=n(`${Xt}.${e}.min`),v=n(`${Xt}.${e}.max`),y=n(`${Xt}.${e}.pattern`),b=lR(n(`${Xt}.${e}.options`));return{name:e,label:d,placeholder:u,value:aR(i,h,b)||"",defaultValue:h,options:b,type:i,required:s,multiple:l,min:p,max:v,pattern:y}},aR=(e,n,i)=>n||e==="select"&&Object.keys(i)[0]||"",lR=(e="")=>e.split(";").map(n=>n.trim()).reduce((n,i)=>{const[s,l]=i.split(":").map(u=>u.trim());return{...n,[s]:l}},{}),uR=()=>{const e=la();B.useEffect(()=>{window.document.documentElement.lang=e.locale},[e.locale])},Zn={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"},cR=({clientName:e})=>{uR();const n=ti(),i=Xr(y=>y.intl.messages),s=Je(),l=Xr(y=>y.startScreen.useStartScreen),u=Xr(y=>y.startScreen.startScreenStatus),[d,h]=B.useState(void 0);B.useEffect(()=>{const y=ua.parse(window.location.search);y.cssClassName&&h(y.cssClassName);const b=m=>{switch(m.data.type){case Zn.TRIGGER_ACTION:n(m.data.action);break;case Zn.TRIGGER_STORY:n(Q0(m.data.story));break;case Zn.ON_CHAT_WINDOW_OPEN:n({type:"webclient.chatwindow.opened"});break;case Zn.ON_CHAT_WINDOW_CLOSE:n({type:"webclient.chatwindow.closed"});break;case Zn.CHAT_MESSAGE_FROM_GUEST:n(q0(m.data.text));break;case Zn.RESTART_CHAT:n(ga(e,y));break}};return n(G2(e,y)),window.addEventListener("message",m=>b(m),!1),()=>window.removeEventListener("message",b)},[e,n]),B.useEffect(()=>{const y=s("page.title");y&&document&&(document.title=y)},[i,s]);const p=l===void 0,v=l===!1||u==="HIDDEN";return E.jsx("div",{className:q(kg.chatwindow,v&&kg.chatwindowWithAside,"chat__chatwindow",d),children:p?null:v?E.jsxs(E.Fragment,{children:[E.jsx("header",{children:E.jsx(Cg,{})}),E.jsx("main",{children:E.jsx(ik,{clientName:e})}),E.jsx("aside",{children:E.jsx(Mk,{})})]}):E.jsxs(E.Fragment,{children:[E.jsx("header",{children:E.jsx(Cg,{withActions:!1})}),E.jsx("main",{children:E.jsx(oR,{})})]})})},fR=1024,dR=()=>{const e=jy(),n=Xr(u=>u.intl.locale),i=Xr(u=>u.intl.messages),[s,l]=B.useState(Ng());return B.useEffect(()=>{const u=()=>{l(Ng())};return window.addEventListener("resize",u),()=>window.removeEventListener("resize",u)},[]),E.jsx(Qw,{locale:n,messages:i,children:E.jsx("div",{className:q([Jw.app,s?"chat__large":"chat__small"]),children:E.jsx(cR,{clientName:e})})})},Ng=()=>window.innerWidth>=fR;var Yu,Ag;function Cf(){if(Ag)return Yu;Ag=1;function e(n){var i=typeof n;return n!=null&&(i=="object"||i=="function")}return Yu=e,Yu}var Ju,Ig;function hR(){if(Ig)return Ju;Ig=1;var e=typeof vs=="object"&&vs&&vs.Object===Object&&vs;return Ju=e,Ju}var ec,Dg;function Hy(){if(Dg)return ec;Dg=1;var e=hR(),n=typeof self=="object"&&self&&self.Object===Object&&self,i=e||n||Function("return this")();return ec=i,ec}var tc,Pg;function pR(){if(Pg)return tc;Pg=1;var e=Hy(),n=function(){return e.Date.now()};return tc=n,tc}var rc,Mg;function mR(){if(Mg)return rc;Mg=1;var e=/\s/;function n(i){for(var s=i.length;s--&&e.test(i.charAt(s)););return s}return rc=n,rc}var nc,Fg;function gR(){if(Fg)return nc;Fg=1;var e=mR(),n=/^\s+/;function i(s){return s&&s.slice(0,e(s)+1).replace(n,"")}return nc=i,nc}var ic,Lg;function zy(){if(Lg)return ic;Lg=1;var e=Hy(),n=e.Symbol;return ic=n,ic}var oc,Bg;function yR(){if(Bg)return oc;Bg=1;var e=zy(),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 v=!0}catch{}var y=s.call(d);return v&&(h?d[l]=p:delete d[l]),y}return oc=u,oc}var sc,jg;function vR(){if(jg)return sc;jg=1;var e=Object.prototype,n=e.toString;function i(s){return n.call(s)}return sc=i,sc}var ac,Ug;function _R(){if(Ug)return ac;Ug=1;var e=zy(),n=yR(),i=vR(),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 ac=d,ac}var lc,Hg;function ER(){if(Hg)return lc;Hg=1;function e(n){return n!=null&&typeof n=="object"}return lc=e,lc}var uc,zg;function wR(){if(zg)return uc;zg=1;var e=_R(),n=ER(),i="[object Symbol]";function s(l){return typeof l=="symbol"||n(l)&&e(l)==i}return uc=s,uc}var cc,Gg;function SR(){if(Gg)return cc;Gg=1;var e=gR(),n=Cf(),i=wR(),s=NaN,l=/^[-+]0x[0-9a-f]+$/i,u=/^0b[01]+$/i,d=/^0o[0-7]+$/i,h=parseInt;function p(v){if(typeof v=="number")return v;if(i(v))return s;if(n(v)){var y=typeof v.valueOf=="function"?v.valueOf():v;v=n(y)?y+"":y}if(typeof v!="string")return v===0?v:+v;v=e(v);var b=u.test(v);return b||d.test(v)?h(v.slice(2),b?2:8):l.test(v)?s:+v}return cc=p,cc}var fc,$g;function xR(){if($g)return fc;$g=1;var e=Cf(),n=pR(),i=SR(),s="Expected a function",l=Math.max,u=Math.min;function d(h,p,v){var y,b,m,w,_,S,R=0,O=!1,N=!1,x=!0;if(typeof h!="function")throw new TypeError(s);p=i(p)||0,e(v)&&(O=!!v.leading,N="maxWait"in v,m=N?l(i(v.maxWait)||0,p):m,x="trailing"in v?!!v.trailing:x);function k(ue){var Ue=y,Ie=b;return y=b=void 0,R=ue,w=h.apply(Ie,Ue),w}function T(ue){return R=ue,_=setTimeout(V,p),O?k(ue):w}function F(ue){var Ue=ue-S,Ie=ue-R,$e=p-Ue;return N?u($e,m-Ie):$e}function z(ue){var Ue=ue-S,Ie=ue-R;return S===void 0||Ue>=p||Ue<0||N&&Ie>=m}function V(){var ue=n();if(z(ue))return fe(ue);_=setTimeout(V,F(ue))}function fe(ue){return _=void 0,x&&y?k(ue):(y=b=void 0,w)}function te(){_!==void 0&&clearTimeout(_),R=0,y=S=b=_=void 0}function oe(){return _===void 0?w:fe(n())}function pe(){var ue=n(),Ue=z(ue);if(y=arguments,b=this,S=ue,Ue){if(_===void 0)return T(S);if(N)return clearTimeout(_),_=setTimeout(V,p),k(S)}return _===void 0&&(_=setTimeout(V,p)),w}return pe.cancel=te,pe.flush=oe,pe}return fc=d,fc}var dc,qg;function bR(){if(qg)return dc;qg=1;var e=xR(),n=Cf(),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 dc=s,dc}var TR=bR();const CR=sa(TR);var hc,Vg;function kR(){if(Vg)return hc;Vg=1;function e(w,_){var S,R;if(typeof _=="function")R=_(w),R!==void 0&&(w=R);else if(Array.isArray(_))for(S=0;S<_.length;S++)R=_[S](w),R!==void 0&&(w=R);return w}function n(w,_){return w[0]==="-"&&Array.isArray(_)&&/^-\d+$/.test(w)?_.length+parseInt(w,10):w}function i(w){return/^\d+$/.test(w)}function s(w){return Object.prototype.toString.call(w)==="[object Object]"}function l(w){return Object(w)===w}function u(w){return Object.keys(w).length===0}var d=["__proto__","prototype","constructor"],h=function(w){return d.indexOf(w)===-1};function p(w,_){w.indexOf("[")>=0&&(w=w.replace(/\[/g,_).replace(/]/g,""));var S=w.split(_),R=S.filter(h);if(R.length!==S.length)throw Error("Refusing to update blacklisted property "+w);return S}var v=Object.prototype.hasOwnProperty;function y(w,_,S,R){if(!(this instanceof y))return new y(w,_,S,R);typeof _>"u"&&(_=!1),typeof S>"u"&&(S=!0),typeof R>"u"&&(R=!0),this.separator=w||".",this.override=_,this.useArray=S,this.useBrackets=R,this.keepArray=!1,this.cleanup=[]}var b=new y(".",!1,!0,!0);function m(w){return function(){return b[w].apply(b,arguments)}}return y.prototype._fill=function(w,_,S,R){var O=w.shift();if(w.length>0){if(_[O]=_[O]||(this.useArray&&i(w[0])?[]:{}),!l(_[O]))if(this.override)_[O]={};else{if(!(l(S)&&u(S)))throw new Error("Trying to redefine `"+O+"` which is a "+typeof _[O]);return}this._fill(w,_[O],S,R)}else{if(!this.override&&l(_[O])&&!u(_[O])){if(!(l(S)&&u(S)))throw new Error("Trying to redefine non-empty obj['"+O+"']");return}_[O]=e(S,R)}},y.prototype.object=function(w,_){var S=this;return Object.keys(w).forEach(function(R){var O=_===void 0?null:_[R],N=p(R,S.separator).join(S.separator);N.indexOf(S.separator)!==-1?(S._fill(N.split(S.separator),w,w[R],O),delete w[R]):w[R]=e(w[R],O)}),w},y.prototype.str=function(w,_,S,R){var O=p(w,this.separator).join(this.separator);return w.indexOf(this.separator)!==-1?this._fill(O.split(this.separator),S,_,R):S[w]=e(_,R),S},y.prototype.pick=function(w,_,S,R){var O,N,x,k,T;for(N=p(w,this.separator),O=0;O<N.length;O++)if(k=n(N[O],_),_&&typeof _=="object"&&k in _){if(O===N.length-1)return S?(x=_[k],R&&Array.isArray(_)?_.splice(k,1):delete _[k],Array.isArray(_)&&(T=N.slice(0,-1).join("."),this.cleanup.indexOf(T)===-1&&this.cleanup.push(T)),x):_[k];_=_[k]}else return;return S&&Array.isArray(_)&&(_=_.filter(function(F){return F!==void 0})),_},y.prototype.delete=function(w,_){return this.remove(w,_,!0)},y.prototype.remove=function(w,_,S){var R;if(this.cleanup=[],Array.isArray(w)){for(R=0;R<w.length;R++)this.pick(w[R],_,!0,S);return S||this._cleanup(_),_}else return this.pick(w,_,!0,S)},y.prototype._cleanup=function(w){var _,S,R,O;if(this.cleanup.length){for(S=0;S<this.cleanup.length;S++)R=this.cleanup[S].split("."),O=R.splice(0,-1).join("."),_=O?this.pick(O,w):w,_=_[R[0]].filter(function(N){return N!==void 0}),this.set(this.cleanup[S],_,w);this.cleanup=[]}},y.prototype.del=y.prototype.remove,y.prototype.move=function(w,_,S,R,O){return typeof R=="function"||Array.isArray(R)?this.set(_,e(this.pick(w,S,!0),R),S,O):(O=R,this.set(_,this.pick(w,S,!0),S,O)),S},y.prototype.transfer=function(w,_,S,R,O,N){return typeof O=="function"||Array.isArray(O)?this.set(_,e(this.pick(w,S,!0),O),R,N):(N=O,this.set(_,this.pick(w,S,!0),R,N)),R},y.prototype.copy=function(w,_,S,R,O,N){return typeof O=="function"||Array.isArray(O)?this.set(_,e(JSON.parse(JSON.stringify(this.pick(w,S,!1))),O),R,N):(N=O,this.set(_,this.pick(w,S,!1),R,N)),R},y.prototype.set=function(w,_,S,R){var O,N,x,k;if(typeof _>"u")return S;for(x=p(w,this.separator),O=0;O<x.length;O++){if(k=x[O],O===x.length-1)if(R&&s(_)&&s(S[k]))for(N in _)v.call(_,N)&&(S[k][N]=_[N]);else if(R&&Array.isArray(S[k])&&Array.isArray(_))for(var T=0;T<_.length;T++)S[x[O]].push(_[T]);else S[k]=_;else(!v.call(S,k)||!s(S[k])&&!Array.isArray(S[k]))&&(/^\d+$/.test(x[O+1])?S[k]=[]:S[k]={});S=S[k]}return S},y.prototype.transform=function(w,_,S){return _=_||{},S=S||{},Object.keys(w).forEach((function(R){this.set(w[R],this.pick(R,_),S)}).bind(this)),S},y.prototype.dot=function(w,_,S){_=_||{},S=S||[];var R=Array.isArray(w);return Object.keys(w).forEach((function(O){var N=R&&this.useBrackets?"["+O+"]":O;if(l(w[O])&&(s(w[O])&&!u(w[O])||Array.isArray(w[O])&&!this.keepArray&&w[O].length!==0))if(R&&this.useBrackets){var x=S[S.length-1]||"";return this.dot(w[O],_,S.slice(0,-1).concat(x+N))}else return this.dot(w[O],_,S.concat(N));else R&&this.useBrackets?_[S.join(this.separator).concat("["+O+"]")]=w[O]:_[S.concat(N).join(this.separator)]=w[O]}).bind(this)),_},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(w){Object.defineProperty(y,w,{get:function(){return b.override},set:function(_){b.override=!!_}})}),["useArray","keepArray","useBrackets"].forEach(function(w){Object.defineProperty(y,w,{get:function(){return b[w]},set:function(_){b[w]=_}})}),y._process=e,hc=y,hc}var RR=kR();const Gy={"page.title":"Bubble Chat Chatbot","message-input-label":"Benutzereingabe","message-input-placeholder":"Nachricht","message-input.actions.submit.label":"Nachricht senden","message-input.actions.export-transcript.label":"Konversation exportieren","message-input.actions.start-audio-recording.label":"Spracheingabe starten","message-input.actions.stop-audio-recording.label":"Spracheingabe stoppen","message-input.actions.submit-audio-recording.label":"Spracheingabe übermitteln","guest-bubble.label":"Ihre Nachricht","bot-bubble.label":"Nachricht des Chatbots","bot-bubble.reaction.good":"Gefällt mir","bot-bubble.reaction.bad":"Gefällt mir nicht","bot-bubble.reaction.remove":"Markierung entfernen","bot-bubble.copy":"Kopieren","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
98
 
99
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","source-infos.close":"Schliessen","source-infos.error.title":"Fehler","source-infos.error.info":"Oops! Etwas ist schiefgelaufen. Bitte versuche es erneut oder kontaktiere den Support, falls das Problem weiterhin besteht.","commands.show-more.action":"Weitere ...","commands.show-more.tooltip":"Weitere Befehle anzeigen","commands.show-less.action":"Weniger ...","commands.show-less.tooltip":"Weniger Befehle anzeigen"},RR={"page.title":"Bubble Chat Chatbot","message-input-label":"User input","message-input-placeholder":"Message","message-input.actions.submit.label":"Send message","message-input.actions.export-transcript.label":"Export conversation","message-input.actions.start-audio-recording.label":"Start voice input","message-input.actions.stop-audio-recording.label":"Stop voice input","message-input.actions.submit-audio-recording.label":"Transmit voice input","guest-bubble.label":"Your message","bot-bubble.label":"Message from the chatbot","bot-bubble.reaction.good":"I like","bot-bubble.reaction.bad":"I don't like it","bot-bubble.reaction.remove":"Remove marker","bot-bubble.copy":"Copy","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:
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","source-infos.close":"Schliessen","source-infos.error.title":"Fehler","source-infos.error.info":"Oops! Etwas ist schiefgelaufen. Bitte versuche es erneut oder kontaktiere den Support, falls das Problem weiterhin besteht.","commands.show-more.action":"Weitere ...","commands.show-more.tooltip":"Weitere Befehle anzeigen","commands.show-less.action":"Weniger ...","commands.show-less.tooltip":"Weniger Befehle anzeigen"},OR={"page.title":"Bubble Chat Chatbot","message-input-label":"User input","message-input-placeholder":"Message","message-input.actions.submit.label":"Send message","message-input.actions.export-transcript.label":"Export conversation","message-input.actions.start-audio-recording.label":"Start voice input","message-input.actions.stop-audio-recording.label":"Stop voice input","message-input.actions.submit-audio-recording.label":"Transmit voice input","guest-bubble.label":"Your message","bot-bubble.label":"Message from the chatbot","bot-bubble.reaction.good":"I like","bot-bubble.reaction.bad":"I don't like it","bot-bubble.reaction.remove":"Remove marker","bot-bubble.copy":"Copy","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
101
 
102
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","source-infos.close":"Close","source-infos.error.title":"Error","source-infos.error.info":"Oops! Something went wrong. Please try again or contact support if the problem persists.","commands.show-more.action":"More","commands.show-more.tooltip":"Show more commands","commands.show-less.action":"Less","commands.show-less.tooltip":"Show less commands"},OR={"page.title":"Bubble Chat Chatbot","message-input-label":"Input dell'utente","message-input-placeholder":"Entrée utilisateur","message-input.actions.submit.label":"Envoyer un message","message-input.actions.export-transcript.label":"Exporter la conversation","message-input.actions.start-audio-recording.label":"Démarrer la saisie vocale","message-input.actions.stop-audio-recording.label":"Arrêt de la saisie vocale","message-input.actions.submit-audio-recording.label":"Transmettre une entrée vocale","guest-bubble.label":"Votre message","bot-bubble.label":"Message du chatbot","bot-bubble.reaction.good":"J'aime bien","bot-bubble.reaction.bad":"Je n'aime pas","bot-bubble.reaction.remove":"Retirer le marqueur","bot-bubble.copy":"Copie","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:
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","source-infos.close":"Close","source-infos.error.title":"Error","source-infos.error.info":"Oops! Something went wrong. Please try again or contact support if the problem persists.","commands.show-more.action":"More","commands.show-more.tooltip":"Show more commands","commands.show-less.action":"Less","commands.show-less.tooltip":"Show less commands"},NR={"page.title":"Bubble Chat Chatbot","message-input-label":"Input dell'utente","message-input-placeholder":"Entrée utilisateur","message-input.actions.submit.label":"Envoyer un message","message-input.actions.export-transcript.label":"Exporter la conversation","message-input.actions.start-audio-recording.label":"Démarrer la saisie vocale","message-input.actions.stop-audio-recording.label":"Arrêt de la saisie vocale","message-input.actions.submit-audio-recording.label":"Transmettre une entrée vocale","guest-bubble.label":"Votre message","bot-bubble.label":"Message du chatbot","bot-bubble.reaction.good":"J'aime bien","bot-bubble.reaction.bad":"Je n'aime pas","bot-bubble.reaction.remove":"Retirer le marqueur","bot-bubble.copy":"Copie","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
104
 
105
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","source-infos.close":"Fermer","source-infos.error.title":"Erreur","source-infos.error.info":"Oups ! Quelque chose s'est mal passé. Merci de réessayer ou de contacter le support si le problème persiste.","commands.show-more.action":"Plus","commands.show-more.tooltip":"Afficher plus de commandes","commands.show-less.action":"Moins","commands.show-less.tooltip":"Afficher moins de commandes"},NR={"page.title":"Bubble Chat Chatbot","message-input-label":"Input dell'utente","message-input-placeholder":"Messaggio","message-input.actions.submit.label":"Invia messaggio","message-input.actions.export-transcript.label":"Esportare la conversazione","message-input.actions.start-audio-recording.label":"Avviare l'input vocale","message-input.actions.stop-audio-recording.label":"Interrompere l'input vocale","message-input.actions.submit-audio-recording.label":"Trasmettere l'input vocale","guest-bubble.label":"Il tuo messaggio","bot-bubble.label":"Messaggio del chatbot","bot-bubble.reaction.good":"Mi piace","bot-bubble.reaction.bad":"Non mi piace","bot-bubble.reaction.remove":"Rimuovere il marcatore","bot-bubble.copy":"Copia","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:
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","source-infos.close":"Fermer","source-infos.error.title":"Erreur","source-infos.error.info":"Oups ! Quelque chose s'est mal passé. Merci de réessayer ou de contacter le support si le problème persiste.","commands.show-more.action":"Plus","commands.show-more.tooltip":"Afficher plus de commandes","commands.show-less.action":"Moins","commands.show-less.tooltip":"Afficher moins de commandes"},AR={"page.title":"Bubble Chat Chatbot","message-input-label":"Input dell'utente","message-input-placeholder":"Messaggio","message-input.actions.submit.label":"Invia messaggio","message-input.actions.export-transcript.label":"Esportare la conversazione","message-input.actions.start-audio-recording.label":"Avviare l'input vocale","message-input.actions.stop-audio-recording.label":"Interrompere l'input vocale","message-input.actions.submit-audio-recording.label":"Trasmettere l'input vocale","guest-bubble.label":"Il tuo messaggio","bot-bubble.label":"Messaggio del chatbot","bot-bubble.reaction.good":"Mi piace","bot-bubble.reaction.bad":"Non mi piace","bot-bubble.reaction.remove":"Rimuovere il marcatore","bot-bubble.copy":"Copia","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
107
 
108
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","source-infos.close":"Chiudere","source-infos.error.title":"Errore","source-infos.error.info":"Ops! Qualcosa è andato storto. Riprovare o contattare l'assistenza se il problema persiste.","commands.show-more.action":"Di più","commands.show-more.tooltip":"Mostra più comandi","commands.show-less.action":"Meno","commands.show-less.tooltip":"Mostra meno comandi"},AR=["de","en","fr","it"],$y={locale:"de",messages:Gy},IR=(e,n)=>{if(AR.includes(e)){const i=DR(e),s=kR.dot(n);return{...i,...s}}return n},DR=e=>{switch(e.toString()){case"en":return RR;case"fr":return OR;case"it":return NR;default:return Gy}},PR=(e=MR,n)=>{switch(n.type){case _f:return Object.assign({},e,{connectionState:En.CONNECTING});case Ef:return Object.assign({},e,{connectionState:En.CONNECTED});case wf:return Object.assign({},e,{connectionState:En.DISCONNECTED});case Sf:return Object.assign({},e,{connectionState:En.RECONNECTED});case xf:return Object.assign({},e,{sessionId:n.sessionId});case ha:return Object.assign({},e,{sessionId:n.payload.sessionId,userId:n.payload.userId});case pa:return Object.assign({},e,{sessionId:void 0});default:return e}},MR={connectionState:En.DISCONNECTED,sessionId:void 0,userId:void 0},FR=(e=Kg,n)=>{switch(n.type){case hy:return Kg;case ha:return yn({type:"webclient.chat.started"}),e;case pa: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 Wg(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 of:{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 nf: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 K0:return yn(n),e;case Z0:return yn(n),e;case af:return Object.assign({},e,{speechSupport:!0});case uf:{const i=new ge.TextMessage(n.transcription,new ge.GuestUser),s=Object.assign({},i,{_id:Bc()});return Wg(e,s)}case lf:return Object.assign({},e,{transcriptExportEnabled:n.methods});case cf: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 ff:{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})}case df:return{...e,commands:n.payload.commands};case hf:return{...e,sourceInfos:{type:"loading",chunkId:n.payload.chunkId}};case W0:return{...e,sourceInfos:{type:"loading-error"}};case V0:return{...e,sourceInfos:{type:"loaded",chunkId:n.payload.chunkId,knowledgeBaseType:n.payload.knowledgeBaseType,title:n.payload.title,content:n.payload.content,url:n.payload.url}};case pf:return{...e,sourceInfos:void 0};default:return e}},Wg=(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;LR()?(n=window.top)==null||n.postMessage(e,"*"):e.type==="webclient.change.url"&&window.open(e.url)},LR=()=>typeof window<"u"&&window.self!==window.top,Kg={messages:[],quickReplies:[],isBotTyping:!1,speechSupport:!1,transcriptExportEnabled:{pdf:!1,email:!1},showGeneralConditions:!1,conversationRating:{enabled:!1},commands:[]},qy=fy({name:"intl",initialState:$y,reducers:{updateIntl:(e,n)=>{e.locale=n.payload.language,e.messages=n.payload.messages}}}),{updateIntl:BR}=qy.actions,jR=qy.reducer,UR=ey({chat:FR,startScreen:D2,connection:PR,intl:jR}),Vy="bf-webclient-state-last-saved-at",Wy="bf-webclient-state",HR=e=>{try{if(!$R())return;const n=Zg(e,Vy);if(GR(n))return;{const i=Zg(e,Wy);return i===null?void 0:JSON.parse(i)}}catch(n){console.error(n);return}},zR=(e,n)=>{try{const i=JSON.stringify(n);Qg(e,Wy,i);const s=new Date().toISOString();Qg(e,Vy,s)}catch(i){console.error(i)}},GR=e=>{if(e===null)return!1;const n=new Date(e);return n.setHours(n.getHours()+12),new Date>n},$R=()=>typeof localStorage<"u",Zg=(e,n)=>localStorage.getItem(`${e}_${n}`),Qg=(e,n,i)=>localStorage.setItem(`${e}_${n}`,i),dr=Object.create(null);dr.open="0";dr.close="1";dr.ping="2";dr.pong="3";dr.message="4";dr.upgrade="5";dr.noop="6";const Ks=Object.create(null);Object.keys(dr).forEach(e=>{Ks[dr[e]]=e});const Hc={type:"error",data:"parser error"},Ky=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",Zy=typeof ArrayBuffer=="function",Qy=e=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e&&e.buffer instanceof ArrayBuffer,kf=({type:e,data:n},i,s)=>Ky&&n instanceof Blob?i?s(n):Xg(n,s):Zy&&(n instanceof ArrayBuffer||Qy(n))?i?s(n):Xg(new Blob([n]),s):s(dr[e]+(n||"")),Xg=(e,n)=>{const i=new FileReader;return i.onload=function(){const s=i.result.split(",")[1];n("b"+(s||""))},i.readAsDataURL(e)};function Yg(e){return e instanceof Uint8Array?e:e instanceof ArrayBuffer?new Uint8Array(e):new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}let pc;function qR(e,n){if(Ky&&e.data instanceof Blob)return e.data.arrayBuffer().then(Yg).then(n);if(Zy&&(e.data instanceof ArrayBuffer||Qy(e.data)))return n(Yg(e.data));kf(e,!1,i=>{pc||(pc=new TextEncoder),n(pc.encode(i))})}const Jg="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",eo=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let e=0;e<Jg.length;e++)eo[Jg.charCodeAt(e)]=e;const VR=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 v=new ArrayBuffer(n),y=new Uint8Array(v);for(s=0;s<i;s+=4)u=eo[e.charCodeAt(s)],d=eo[e.charCodeAt(s+1)],h=eo[e.charCodeAt(s+2)],p=eo[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 v},WR=typeof ArrayBuffer=="function",Rf=(e,n)=>{if(typeof e!="string")return{type:"message",data:Xy(e,n)};const i=e.charAt(0);return i==="b"?{type:"message",data:KR(e.substring(1),n)}:Ks[i]?e.length>1?{type:Ks[i],data:e.substring(1)}:{type:Ks[i]}:Hc},KR=(e,n)=>{if(WR){const i=VR(e);return Xy(i,n)}else return{base64:!0,data:e}},Xy=(e,n)=>{switch(n){case"blob":return e instanceof Blob?e:new Blob([e]);case"arraybuffer":default:return e instanceof ArrayBuffer?e:e.buffer}},Yy="",ZR=(e,n)=>{const i=e.length,s=new Array(i);let l=0;e.forEach((u,d)=>{kf(u,!1,h=>{s[d]=h,++l===i&&n(s.join(Yy))})})},QR=(e,n)=>{const i=e.split(Yy),s=[];for(let l=0;l<i.length;l++){const u=Rf(i[l],n);if(s.push(u),u.type==="error")break}return s};function XR(){return new TransformStream({transform(e,n){qR(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 mc;function $s(e){return e.reduce((n,i)=>n+i.length,0)}function qs(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 YR(e,n){mc||(mc=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($s(i)<1)break;const p=qs(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($s(i)<2)break;const p=qs(i,2);l=new DataView(p.buffer,p.byteOffset,p.length).getUint16(0),s=3}else if(s===2){if($s(i)<8)break;const p=qs(i,8),v=new DataView(p.buffer,p.byteOffset,p.length),y=v.getUint32(0);if(y>Math.pow(2,21)-1){h.enqueue(Hc);break}l=y*Math.pow(2,32)+v.getUint32(4),s=3}else{if($s(i)<l)break;const p=qs(i,l);h.enqueue(Rf(u?p:mc.decode(p),n)),s=0}if(l===0||l>e){h.enqueue(Hc);break}}}})}const Jy=4;function We(e){if(e)return JR(e)}function JR(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 va=typeof Promise=="function"&&typeof Promise.resolve=="function"?n=>Promise.resolve().then(n):(n,i)=>i(n,0),Bt=typeof self<"u"?self:typeof window<"u"?window:Function("return this")(),eO="arraybuffer";function ev(e,...n){return n.reduce((i,s)=>(e.hasOwnProperty(s)&&(i[s]=e[s]),i),{})}const tO=Bt.setTimeout,rO=Bt.clearTimeout;function _a(e,n){n.useNativeTimers?(e.setTimeoutFn=tO.bind(Bt),e.clearTimeoutFn=rO.bind(Bt)):(e.setTimeoutFn=Bt.setTimeout.bind(Bt),e.clearTimeoutFn=Bt.clearTimeout.bind(Bt))}const nO=1.33;function iO(e){return typeof e=="string"?oO(e):Math.ceil((e.byteLength||e.size)*nO)}function oO(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 tv(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)}function sO(e){let n="";for(let i in e)e.hasOwnProperty(i)&&(n.length&&(n+="&"),n+=encodeURIComponent(i)+"="+encodeURIComponent(e[i]));return n}function aO(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 lO extends Error{constructor(n,i,s){super(n),this.description=i,this.context=s,this.type="TransportError"}}class Of extends We{constructor(n){super(),this.writable=!1,_a(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 lO(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=Rf(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=sO(n);return i.length?"?"+i:""}}class uO extends Of{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)};QR(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,ZR(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]=tv()),!this.supportsBinary&&!i.sid&&(i.b64=1),this.createUri(n,i)}}let rv=!1;try{rv=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{}const cO=rv;function fO(){}class dO extends uO{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,_a(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=ev(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=fO,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",e0);else if(typeof addEventListener=="function"){const e="onpagehide"in Bt?"pagehide":"unload";addEventListener(e,e0,!1)}}function e0(){for(let e in ur.requests)ur.requests.hasOwnProperty(e)&&ur.requests[e].abort()}const hO=function(){const e=nv({xdomain:!1});return e&&e.responseType!==null}();class pO extends dO{constructor(n){super(n);const i=n&&n.forceBase64;this.supportsBinary=hO&&!i}request(n={}){return Object.assign(n,{xd:this.xd},this.opts),new ur(nv,this.uri(),n)}}function nv(e){const n=e.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!n||cO))return new XMLHttpRequest}catch{}if(!n)try{return new Bt[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}const iv=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative";class mO extends Of{get name(){return"websocket"}doOpen(){const n=this.uri(),i=this.opts.protocols,s=iv?{}:ev(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;kf(s,this.supportsBinary,u=>{try{this.doWrite(s,u)}catch{}l&&va(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){typeof this.ws<"u"&&(this.ws.onerror=()=>{},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]=tv()),this.supportsBinary||(i.b64=1),this.createUri(n,i)}}const gc=Bt.WebSocket||Bt.MozWebSocket;class gO extends mO{createSocket(n,i,s){return iv?new gc(n,i,s):i?new gc(n,i):new gc(n)}doWrite(n,i){this.ws.send(i)}}class yO extends Of{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=YR(Number.MAX_SAFE_INTEGER,this.socket.binaryType),s=n.readable.pipeThrough(i).getReader(),l=XR();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&&va(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var n;(n=this._transport)===null||n===void 0||n.close()}}const vO={websocket:gO,webtransport:yO,polling:pO},_O=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,EO=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function zc(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=_O.exec(e||""),u={},d=14;for(;d--;)u[EO[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=wO(u,u.path),u.queryKey=SO(u,u.query),u}function wO(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 SO(e,n){const i={};return n.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(s,l,u){l&&(i[l]=u)}),i}const Gc=typeof addEventListener=="function"&&typeof removeEventListener=="function",Zs=[];Gc&&addEventListener("offline",()=>{Zs.forEach(e=>e())},!1);class Xr extends We{constructor(n,i){if(super(),this.binaryType=eO,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=zc(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=zc(i.host).host);_a(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=aO(this.opts.query)),Gc&&(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"})},Zs.push(this._offlineEventListener))),this.opts.withCredentials&&(this._cookieJar=void 0),this._open()}createTransport(n){const i=Object.assign({},this.opts.query);i.EIO=Jy,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&&Xr.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",Xr.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+=iO(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,va(()=>{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(Xr.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(),Gc&&(this._beforeunloadEventListener&&removeEventListener("beforeunload",this._beforeunloadEventListener,!1),this._offlineEventListener)){const s=Zs.indexOf(this._offlineEventListener);s!==-1&&Zs.splice(s,1)}this.readyState="closed",this.id=null,this.emitReserved("close",n,i),this.writeBuffer=[],this._prevBufferLen=0}}}Xr.protocol=Jy;class xO extends Xr{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;Xr.priorWebsocketSuccess=!1;const l=()=>{s||(i.send([{type:"ping",data:"probe"}]),i.once("packet",b=>{if(!s)if(b.type==="pong"&&b.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",i),!i)return;Xr.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=b=>{const m=new Error("probe error: "+b);m.transport=i.name,u(),this.emitReserved("upgradeError",m)};function h(){d("transport closed")}function p(){d("socket closed")}function v(b){i&&b.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",v)};i.once("open",l),i.once("error",d),i.once("close",h),this.once("close",p),this.once("upgrading",v),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 bO=class extends xO{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=>vO[l]).filter(l=>!!l)),super(n,s)}};function TO(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=zc(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 CO=typeof ArrayBuffer=="function",kO=e=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e.buffer instanceof ArrayBuffer,ov=Object.prototype.toString,RO=typeof Blob=="function"||typeof Blob<"u"&&ov.call(Blob)==="[object BlobConstructor]",OO=typeof File=="function"||typeof File<"u"&&ov.call(File)==="[object FileConstructor]";function Nf(e){return CO&&(e instanceof ArrayBuffer||kO(e))||RO&&e instanceof Blob||OO&&e instanceof File}function Qs(e,n){if(!e||typeof e!="object")return!1;if(Array.isArray(e)){for(let i=0,s=e.length;i<s;i++)if(Qs(e[i]))return!0;return!1}if(Nf(e))return!0;if(e.toJSON&&typeof e.toJSON=="function"&&arguments.length===1)return Qs(e.toJSON(),!0);for(const i in e)if(Object.prototype.hasOwnProperty.call(e,i)&&Qs(e[i]))return!0;return!1}function NO(e){const n=[],i=e.data,s=e;return s.data=$c(i,n),s.attachments=n.length,{packet:s,buffers:n}}function $c(e,n){if(!e)return e;if(Nf(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]=$c(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]=$c(e[s],n));return i}return e}function AO(e,n){return e.data=qc(e.data,n),delete e.attachments,e}function qc(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]=qc(e[i],n);else if(typeof e=="object")for(const i in e)Object.prototype.hasOwnProperty.call(e,i)&&(e[i]=qc(e[i],n));return e}const IO=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"],DO=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 PO{constructor(n){this.replacer=n}encode(n){return(n.type===Ee.EVENT||n.type===Ee.ACK)&&Qs(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=NO(n),s=this.encodeAsString(i.packet),l=i.buffers;return l.unshift(s),l}}function t0(e){return Object.prototype.toString.call(e)==="[object Object]"}class Af 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 MO(i),i.attachments===0&&super.emitReserved("decoded",i)):super.emitReserved("decoded",i)}else if(Nf(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(Af.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 t0(i);case Ee.DISCONNECT:return i===void 0;case Ee.CONNECT_ERROR:return typeof i=="string"||t0(i);case Ee.EVENT:case Ee.BINARY_EVENT:return Array.isArray(i)&&(typeof i[0]=="number"||typeof i[0]=="string"&&IO.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 MO{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=AO(this.reconPack,this.buffers);return this.finishedReconstruction(),i}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}const FO=Object.freeze(Object.defineProperty({__proto__:null,Decoder:Af,Encoder:PO,get PacketType(){return Ee},protocol:DO},Symbol.toStringTag,{value:"Module"}));function Xt(e,n,i){return e.on(n,i),function(){e.off(n,i)}}const LO=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class sv 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=[Xt(n,"open",this.onopen.bind(this)),Xt(n,"packet",this.onpacket.bind(this)),Xt(n,"error",this.onerror.bind(this)),Xt(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(LO.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++,b=i.pop();this._registerAckCallback(y,b),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 ri(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}ri.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)==0?e-i:e+i}return Math.min(e,this.max)|0};ri.prototype.reset=function(){this.attempts=0};ri.prototype.setMin=function(e){this.ms=e};ri.prototype.setMax=function(e){this.max=e};ri.prototype.setJitter=function(e){this.jitter=e};class Vc 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,_a(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 ri({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||FO;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 bO(this.uri,this.opts);const i=this.engine,s=this;this._readyState="opening",this.skipReconnect=!1;const l=Xt(i,"open",function(){s.onopen(),n&&n()}),u=h=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",h),n?n(h):this.maybeReconnectOnOpen()},d=Xt(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(Xt(n,"ping",this.onping.bind(this)),Xt(n,"data",this.ondata.bind(this)),Xt(n,"error",this.onerror.bind(this)),Xt(n,"close",this.onclose.bind(this)),Xt(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){va(()=>{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 sv(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 Xs(e,n){typeof e=="object"&&(n=e,e=void 0),n=n||{};const i=TO(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 Vc(s,n):(Qi[l]||(Qi[l]=new Vc(s,n)),p=Qi[l]),i.query&&!n.query&&(n.query=i.queryKey),p.socket(i.path,n)}Object.assign(Xs,{Manager:Vc,Socket:sv,io:Xs,connect:Xs});const BO=[ge.ActionTypes.MESSAGE_TO_GUEST,ge.ActionTypes.EVENT_TO_GUEST,ge.ActionTypes.TYPING_ON,ge.ActionTypes.TYPING_OFF,ge.ActionTypes.RESTART_CHAT_REQUEST,...H2,...IS,"@@localize/SET_ACTIVE_LANGUAGE","@@localize/ADD_TRANSLATION_FOR_LANGUAGE"],jO=({dispatch:e,getState:n})=>i=>{let s=null;return l=>{const u=i(l);if(l.type===vf){s!=null&&s.disconnect(),e($2());const d=`/chat?${la.stringify(l.querystrings)}`;s=Xs(`/${l.clientName}${d}`),s.on("action",e),s.on("connect",()=>e(q2())),s.on("disconnect",()=>e(V2())),s.on("reconnect",()=>e(W2())),s.on("set-use-start-screen",h=>{e(h?O2():N2())}),s.on("set-commands",(h=[])=>{e(jS(h))}),s.on("set-translations",(h,p)=>{e(BR({language:h,messages:IR(h,p)}))}),s.on("enable-speech-support",()=>e(PS())),s.on("enable-transcript-export",h=>e(FS(h))),s.on("enable-conversation-rating",h=>e(HS(h))),s.on("speech-transcription",h=>e(MS(h))),s.on("restore-client-state",h=>{e(G2(h.sessionId)),e(GS(h.messages))}),s.on("expand-window",({devices:h})=>e({type:K0,devices:h})),s.on("show-general-conditions",()=>e(BS())),s.on("restart-chat",()=>{e(ma(l.clientName,l.querystrings))})}else if(l.type===ha)s==null||s.emit("start-chat",l.payload);else if(l.type===pa)s==null||s.emit("terminate-session",l.payload);else if(l.type===AS)s==null||s.emit("get-started",JSON.stringify(l));else if(l.type===sf)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===Q0){const{connection:{sessionId:d}}=n();window.location.href=`/transcript-pdf/${d}`}else BO.indexOf(l.type)===-1&&l.meta===void 0&&s&&s.emit("action",JSON.stringify(l));return u}},av=By(),UO={...HR(av),intl:$y},Wc=g2({middleware:e=>e().concat(jO),reducer:UR,preloadedState:UO});Wc.subscribe(TR(()=>{const e=Wc.getState();zR(av,{connection:e.connection,startScreen:e.startScreen})},1e3));const HO=document.getElementById("root"),zO=p1.createRoot(HO);zO.render(E.jsx(fE,{store:Wc,children:E.jsx(fR,{})}));
110
- //# sourceMappingURL=index-DkaYTMMS.js.map
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","source-infos.close":"Chiudere","source-infos.error.title":"Errore","source-infos.error.info":"Ops! Qualcosa è andato storto. Riprovare o contattare l'assistenza se il problema persiste.","commands.show-more.action":"Di più","commands.show-more.tooltip":"Mostra più comandi","commands.show-less.action":"Meno","commands.show-less.tooltip":"Mostra meno comandi"},IR=["de","en","fr","it"],$y={locale:"de",messages:Gy},DR=(e,n)=>{if(IR.includes(e)){const i=PR(e),s=RR.dot(n);return{...i,...s}}return n},PR=e=>{switch(e.toString()){case"en":return OR;case"fr":return NR;case"it":return AR;default:return Gy}},MR=(e=FR,n)=>{switch(n.type){case _f:return Object.assign({},e,{connectionState:En.CONNECTING});case Ef:return Object.assign({},e,{connectionState:En.CONNECTED});case wf:return Object.assign({},e,{connectionState:En.DISCONNECTED});case Sf:return Object.assign({},e,{connectionState:En.RECONNECTED});case xf:return Object.assign({},e,{sessionId:n.sessionId});case pa:return Object.assign({},e,{sessionId:n.payload.sessionId,userId:n.payload.userId});case ma:return Object.assign({},e,{sessionId:void 0});default:return e}},FR={connectionState:En.DISCONNECTED,sessionId:void 0,userId:void 0},LR=(e=Kg,n)=>{switch(n.type){case hy:return Kg;case pa:return yn({type:"webclient.chat.started"}),e;case ma: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 Wg(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 of:{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 nf: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 K0:return yn(n),e;case Z0:return yn(n),e;case af:return Object.assign({},e,{speechSupport:!0});case uf:{const i=new ge.TextMessage(n.transcription,new ge.GuestUser),s=Object.assign({},i,{_id:Ic()});return Wg(e,s)}case lf:return Object.assign({},e,{transcriptExportEnabled:n.methods});case cf: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 ff:{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})}case df:return{...e,commands:n.payload.commands};case hf:return{...e,sourceInfos:{type:"loading",chunkId:n.payload.chunkId}};case W0:return{...e,sourceInfos:{type:"loading-error"}};case V0:return{...e,sourceInfos:{type:"loaded",chunkId:n.payload.chunkId,knowledgeBaseType:n.payload.knowledgeBaseType,title:n.payload.title,content:n.payload.content,url:n.payload.url}};case pf:return{...e,sourceInfos:void 0};default:return e}},Wg=(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;BR()?(n=window.top)==null||n.postMessage(e,"*"):e.type==="webclient.change.url"&&window.open(e.url)},BR=()=>typeof window<"u"&&window.self!==window.top,Kg={messages:[],quickReplies:[],isBotTyping:!1,speechSupport:!1,transcriptExportEnabled:{pdf:!1,email:!1},showGeneralConditions:!1,conversationRating:{enabled:!1},commands:[]},qy=fy({name:"intl",initialState:$y,reducers:{updateIntl:(e,n)=>{e.locale=n.payload.language,e.messages=n.payload.messages}}}),{updateIntl:jR}=qy.actions,UR=qy.reducer,HR=ey({chat:LR,startScreen:B2,connection:MR,intl:UR}),zR="bubble-chat",Vy="state-last-saved-at",Wy="state",GR=e=>{try{if(!VR())return;const n=Zg(e,Vy);if(qR(n))return;{const i=Zg(e,Wy);return i===null?void 0:JSON.parse(i)}}catch(n){console.error(n);return}},$R=(e,n)=>{try{const i=JSON.stringify(n);Xg(e,Wy,i);const s=new Date().toISOString();Xg(e,Vy,s)}catch(i){console.error(i)}},qR=e=>{if(e===null)return!1;const n=new Date(e);return n.setHours(n.getHours()+12),new Date>n},VR=()=>typeof localStorage<"u",Zg=(e,n)=>{const i=Ky(e,n);return localStorage.getItem(i)},Xg=(e,n,i)=>{const s=Ky(e,n);return localStorage.setItem(s,i)},Ky=(e,n)=>`${zR}-${e}-${n}`,dr=Object.create(null);dr.open="0";dr.close="1";dr.ping="2";dr.pong="3";dr.message="4";dr.upgrade="5";dr.noop="6";const Zs=Object.create(null);Object.keys(dr).forEach(e=>{Zs[dr[e]]=e});const Hc={type:"error",data:"parser error"},Zy=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",Xy=typeof ArrayBuffer=="function",Qy=e=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e&&e.buffer instanceof ArrayBuffer,kf=({type:e,data:n},i,s)=>Zy&&n instanceof Blob?i?s(n):Qg(n,s):Xy&&(n instanceof ArrayBuffer||Qy(n))?i?s(n):Qg(new Blob([n]),s):s(dr[e]+(n||"")),Qg=(e,n)=>{const i=new FileReader;return i.onload=function(){const s=i.result.split(",")[1];n("b"+(s||""))},i.readAsDataURL(e)};function Yg(e){return e instanceof Uint8Array?e:e instanceof ArrayBuffer?new Uint8Array(e):new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}let pc;function WR(e,n){if(Zy&&e.data instanceof Blob)return e.data.arrayBuffer().then(Yg).then(n);if(Xy&&(e.data instanceof ArrayBuffer||Qy(e.data)))return n(Yg(e.data));kf(e,!1,i=>{pc||(pc=new TextEncoder),n(pc.encode(i))})}const Jg="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",eo=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let e=0;e<Jg.length;e++)eo[Jg.charCodeAt(e)]=e;const KR=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 v=new ArrayBuffer(n),y=new Uint8Array(v);for(s=0;s<i;s+=4)u=eo[e.charCodeAt(s)],d=eo[e.charCodeAt(s+1)],h=eo[e.charCodeAt(s+2)],p=eo[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 v},ZR=typeof ArrayBuffer=="function",Rf=(e,n)=>{if(typeof e!="string")return{type:"message",data:Yy(e,n)};const i=e.charAt(0);return i==="b"?{type:"message",data:XR(e.substring(1),n)}:Zs[i]?e.length>1?{type:Zs[i],data:e.substring(1)}:{type:Zs[i]}:Hc},XR=(e,n)=>{if(ZR){const i=KR(e);return Yy(i,n)}else return{base64:!0,data:e}},Yy=(e,n)=>{switch(n){case"blob":return e instanceof Blob?e:new Blob([e]);case"arraybuffer":default:return e instanceof ArrayBuffer?e:e.buffer}},Jy="",QR=(e,n)=>{const i=e.length,s=new Array(i);let l=0;e.forEach((u,d)=>{kf(u,!1,h=>{s[d]=h,++l===i&&n(s.join(Jy))})})},YR=(e,n)=>{const i=e.split(Jy),s=[];for(let l=0;l<i.length;l++){const u=Rf(i[l],n);if(s.push(u),u.type==="error")break}return s};function JR(){return new TransformStream({transform(e,n){WR(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 mc;function qs(e){return e.reduce((n,i)=>n+i.length,0)}function Vs(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 eO(e,n){mc||(mc=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(qs(i)<1)break;const p=Vs(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(qs(i)<2)break;const p=Vs(i,2);l=new DataView(p.buffer,p.byteOffset,p.length).getUint16(0),s=3}else if(s===2){if(qs(i)<8)break;const p=Vs(i,8),v=new DataView(p.buffer,p.byteOffset,p.length),y=v.getUint32(0);if(y>Math.pow(2,21)-1){h.enqueue(Hc);break}l=y*Math.pow(2,32)+v.getUint32(4),s=3}else{if(qs(i)<l)break;const p=Vs(i,l);h.enqueue(Rf(u?p:mc.decode(p),n)),s=0}if(l===0||l>e){h.enqueue(Hc);break}}}})}const ev=4;function We(e){if(e)return tO(e)}function tO(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 _a=typeof Promise=="function"&&typeof Promise.resolve=="function"?n=>Promise.resolve().then(n):(n,i)=>i(n,0),Bt=typeof self<"u"?self:typeof window<"u"?window:Function("return this")(),rO="arraybuffer";function tv(e,...n){return n.reduce((i,s)=>(e.hasOwnProperty(s)&&(i[s]=e[s]),i),{})}const nO=Bt.setTimeout,iO=Bt.clearTimeout;function Ea(e,n){n.useNativeTimers?(e.setTimeoutFn=nO.bind(Bt),e.clearTimeoutFn=iO.bind(Bt)):(e.setTimeoutFn=Bt.setTimeout.bind(Bt),e.clearTimeoutFn=Bt.clearTimeout.bind(Bt))}const oO=1.33;function sO(e){return typeof e=="string"?aO(e):Math.ceil((e.byteLength||e.size)*oO)}function aO(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 rv(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)}function lO(e){let n="";for(let i in e)e.hasOwnProperty(i)&&(n.length&&(n+="&"),n+=encodeURIComponent(i)+"="+encodeURIComponent(e[i]));return n}function uO(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 cO extends Error{constructor(n,i,s){super(n),this.description=i,this.context=s,this.type="TransportError"}}class Of extends We{constructor(n){super(),this.writable=!1,Ea(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 cO(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=Rf(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=lO(n);return i.length?"?"+i:""}}class fO extends Of{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)};YR(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,QR(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]=rv()),!this.supportsBinary&&!i.sid&&(i.b64=1),this.createUri(n,i)}}let nv=!1;try{nv=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{}const dO=nv;function hO(){}class pO extends fO{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,Ea(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=tv(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=hO,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",e0);else if(typeof addEventListener=="function"){const e="onpagehide"in Bt?"pagehide":"unload";addEventListener(e,e0,!1)}}function e0(){for(let e in ur.requests)ur.requests.hasOwnProperty(e)&&ur.requests[e].abort()}const mO=function(){const e=iv({xdomain:!1});return e&&e.responseType!==null}();class gO extends pO{constructor(n){super(n);const i=n&&n.forceBase64;this.supportsBinary=mO&&!i}request(n={}){return Object.assign(n,{xd:this.xd},this.opts),new ur(iv,this.uri(),n)}}function iv(e){const n=e.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!n||dO))return new XMLHttpRequest}catch{}if(!n)try{return new Bt[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}const ov=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative";class yO extends Of{get name(){return"websocket"}doOpen(){const n=this.uri(),i=this.opts.protocols,s=ov?{}:tv(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;kf(s,this.supportsBinary,u=>{try{this.doWrite(s,u)}catch{}l&&_a(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){typeof this.ws<"u"&&(this.ws.onerror=()=>{},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]=rv()),this.supportsBinary||(i.b64=1),this.createUri(n,i)}}const gc=Bt.WebSocket||Bt.MozWebSocket;class vO extends yO{createSocket(n,i,s){return ov?new gc(n,i,s):i?new gc(n,i):new gc(n)}doWrite(n,i){this.ws.send(i)}}class _O extends Of{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=eO(Number.MAX_SAFE_INTEGER,this.socket.binaryType),s=n.readable.pipeThrough(i).getReader(),l=JR();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&&_a(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var n;(n=this._transport)===null||n===void 0||n.close()}}const EO={websocket:vO,webtransport:_O,polling:gO},wO=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,SO=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function zc(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=wO.exec(e||""),u={},d=14;for(;d--;)u[SO[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=xO(u,u.path),u.queryKey=bO(u,u.query),u}function xO(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 bO(e,n){const i={};return n.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(s,l,u){l&&(i[l]=u)}),i}const Gc=typeof addEventListener=="function"&&typeof removeEventListener=="function",Xs=[];Gc&&addEventListener("offline",()=>{Xs.forEach(e=>e())},!1);class Qr extends We{constructor(n,i){if(super(),this.binaryType=rO,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=zc(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=zc(i.host).host);Ea(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=uO(this.opts.query)),Gc&&(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"})},Xs.push(this._offlineEventListener))),this.opts.withCredentials&&(this._cookieJar=void 0),this._open()}createTransport(n){const i=Object.assign({},this.opts.query);i.EIO=ev,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&&Qr.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",Qr.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+=sO(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,_a(()=>{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(Qr.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(),Gc&&(this._beforeunloadEventListener&&removeEventListener("beforeunload",this._beforeunloadEventListener,!1),this._offlineEventListener)){const s=Xs.indexOf(this._offlineEventListener);s!==-1&&Xs.splice(s,1)}this.readyState="closed",this.id=null,this.emitReserved("close",n,i),this.writeBuffer=[],this._prevBufferLen=0}}}Qr.protocol=ev;class TO extends Qr{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;Qr.priorWebsocketSuccess=!1;const l=()=>{s||(i.send([{type:"ping",data:"probe"}]),i.once("packet",b=>{if(!s)if(b.type==="pong"&&b.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",i),!i)return;Qr.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=b=>{const m=new Error("probe error: "+b);m.transport=i.name,u(),this.emitReserved("upgradeError",m)};function h(){d("transport closed")}function p(){d("socket closed")}function v(b){i&&b.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",v)};i.once("open",l),i.once("error",d),i.once("close",h),this.once("close",p),this.once("upgrading",v),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 CO=class extends TO{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=>EO[l]).filter(l=>!!l)),super(n,s)}};function kO(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=zc(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 RO=typeof ArrayBuffer=="function",OO=e=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e.buffer instanceof ArrayBuffer,sv=Object.prototype.toString,NO=typeof Blob=="function"||typeof Blob<"u"&&sv.call(Blob)==="[object BlobConstructor]",AO=typeof File=="function"||typeof File<"u"&&sv.call(File)==="[object FileConstructor]";function Nf(e){return RO&&(e instanceof ArrayBuffer||OO(e))||NO&&e instanceof Blob||AO&&e instanceof File}function Qs(e,n){if(!e||typeof e!="object")return!1;if(Array.isArray(e)){for(let i=0,s=e.length;i<s;i++)if(Qs(e[i]))return!0;return!1}if(Nf(e))return!0;if(e.toJSON&&typeof e.toJSON=="function"&&arguments.length===1)return Qs(e.toJSON(),!0);for(const i in e)if(Object.prototype.hasOwnProperty.call(e,i)&&Qs(e[i]))return!0;return!1}function IO(e){const n=[],i=e.data,s=e;return s.data=$c(i,n),s.attachments=n.length,{packet:s,buffers:n}}function $c(e,n){if(!e)return e;if(Nf(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]=$c(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]=$c(e[s],n));return i}return e}function DO(e,n){return e.data=qc(e.data,n),delete e.attachments,e}function qc(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]=qc(e[i],n);else if(typeof e=="object")for(const i in e)Object.prototype.hasOwnProperty.call(e,i)&&(e[i]=qc(e[i],n));return e}const PO=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"],MO=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 FO{constructor(n){this.replacer=n}encode(n){return(n.type===Ee.EVENT||n.type===Ee.ACK)&&Qs(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=IO(n),s=this.encodeAsString(i.packet),l=i.buffers;return l.unshift(s),l}}function t0(e){return Object.prototype.toString.call(e)==="[object Object]"}class Af 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 LO(i),i.attachments===0&&super.emitReserved("decoded",i)):super.emitReserved("decoded",i)}else if(Nf(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(Af.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 t0(i);case Ee.DISCONNECT:return i===void 0;case Ee.CONNECT_ERROR:return typeof i=="string"||t0(i);case Ee.EVENT:case Ee.BINARY_EVENT:return Array.isArray(i)&&(typeof i[0]=="number"||typeof i[0]=="string"&&PO.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 LO{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=DO(this.reconPack,this.buffers);return this.finishedReconstruction(),i}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}const BO=Object.freeze(Object.defineProperty({__proto__:null,Decoder:Af,Encoder:FO,get PacketType(){return Ee},protocol:MO},Symbol.toStringTag,{value:"Module"}));function Qt(e,n,i){return e.on(n,i),function(){e.off(n,i)}}const jO=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class av 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=[Qt(n,"open",this.onopen.bind(this)),Qt(n,"packet",this.onpacket.bind(this)),Qt(n,"error",this.onerror.bind(this)),Qt(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(jO.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++,b=i.pop();this._registerAckCallback(y,b),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 ri(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}ri.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)==0?e-i:e+i}return Math.min(e,this.max)|0};ri.prototype.reset=function(){this.attempts=0};ri.prototype.setMin=function(e){this.ms=e};ri.prototype.setMax=function(e){this.max=e};ri.prototype.setJitter=function(e){this.jitter=e};class Vc 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,Ea(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 ri({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||BO;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 CO(this.uri,this.opts);const i=this.engine,s=this;this._readyState="opening",this.skipReconnect=!1;const l=Qt(i,"open",function(){s.onopen(),n&&n()}),u=h=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",h),n?n(h):this.maybeReconnectOnOpen()},d=Qt(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(Qt(n,"ping",this.onping.bind(this)),Qt(n,"data",this.ondata.bind(this)),Qt(n,"error",this.onerror.bind(this)),Qt(n,"close",this.onclose.bind(this)),Qt(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){_a(()=>{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 av(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 Xi={};function Ys(e,n){typeof e=="object"&&(n=e,e=void 0),n=n||{};const i=kO(e,n.path||"/socket.io"),s=i.source,l=i.id,u=i.path,d=Xi[l]&&u in Xi[l].nsps,h=n.forceNew||n["force new connection"]||n.multiplex===!1||d;let p;return h?p=new Vc(s,n):(Xi[l]||(Xi[l]=new Vc(s,n)),p=Xi[l]),i.query&&!n.query&&(n.query=i.queryKey),p.socket(i.path,n)}Object.assign(Ys,{Manager:Vc,Socket:av,io:Ys,connect:Ys});const UO=[ge.ActionTypes.MESSAGE_TO_GUEST,ge.ActionTypes.EVENT_TO_GUEST,ge.ActionTypes.TYPING_ON,ge.ActionTypes.TYPING_OFF,ge.ActionTypes.RESTART_CHAT_REQUEST,...z2,...DS,"@@localize/SET_ACTIVE_LANGUAGE","@@localize/ADD_TRANSLATION_FOR_LANGUAGE"],HO=({dispatch:e,getState:n})=>i=>{let s=null;return l=>{const u=i(l);if(l.type===vf){s!=null&&s.disconnect(),e(q2());const d=`/chat?${ua.stringify(l.querystrings)}`;s=Ys(`/${l.clientName}${d}`),s.on("action",e),s.on("connect",()=>e(V2())),s.on("disconnect",()=>e(W2())),s.on("reconnect",()=>e(K2())),s.on("set-use-start-screen",h=>{e(h?P2():M2())}),s.on("set-commands",(h=[])=>{e(US(h))}),s.on("set-translations",(h,p)=>{e(jR({language:h,messages:DR(h,p)}))}),s.on("enable-speech-support",()=>e(MS())),s.on("enable-transcript-export",h=>e(LS(h))),s.on("enable-conversation-rating",h=>e(zS(h))),s.on("speech-transcription",h=>e(FS(h))),s.on("restore-client-state",h=>{e($2(h.sessionId)),e($S(h.messages))}),s.on("expand-window",({devices:h,initial:p=!1})=>{e({type:K0,devices:h,initial:p})}),s.on("show-general-conditions",()=>e(jS())),s.on("restart-chat",()=>{e(ga(l.clientName,l.querystrings))})}else if(l.type===pa)s==null||s.emit("start-chat",l.payload);else if(l.type===ma)s==null||s.emit("terminate-session",l.payload);else if(l.type===IS)s==null||s.emit("get-started",JSON.stringify(l));else if(l.type===sf)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===X0){const{connection:{sessionId:d}}=n();window.location.href=`/transcript-pdf/${d}`}else UO.indexOf(l.type)===-1&&l.meta===void 0&&s&&s.emit("action",JSON.stringify(l));return u}},lv=By(),zO={...GR(lv),intl:$y},Wc=w2({middleware:e=>e().concat(HO),reducer:HR,preloadedState:zO});Wc.subscribe(CR(()=>{const e=Wc.getState();$R(lv,{connection:e.connection,startScreen:e.startScreen})},1e3));const GO=document.getElementById("root"),$O=m1.createRoot(GO);$O.render(E.jsx(dE,{store:Wc,children:E.jsx(dR,{})}));
110
+ //# sourceMappingURL=index-BxQAHJmN.js.map