@botfabrik/engine-webclient 4.97.3-alpha.0 → 4.98.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- (function(){const r=document.createElement("link").relList;if(r&&r.supports&&r.supports("modulepreload"))return;for(const u of document.querySelectorAll('link[rel="modulepreload"]'))s(u);new MutationObserver(u=>{for(const c of u)if(c.type==="childList")for(const d of c.addedNodes)d.tagName==="LINK"&&d.rel==="modulepreload"&&s(d)}).observe(document,{childList:!0,subtree:!0});function i(u){const c={};return u.integrity&&(c.integrity=u.integrity),u.referrerPolicy&&(c.referrerPolicy=u.referrerPolicy),u.crossOrigin==="use-credentials"?c.credentials="include":u.crossOrigin==="anonymous"?c.credentials="omit":c.credentials="same-origin",c}function s(u){if(u.ep)return;u.ep=!0;const c=i(u);fetch(u.href,c)}})();var yo=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function yh(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Lf={exports:{}},Ls={};/**
1
+ (function(){const r=document.createElement("link").relList;if(r&&r.supports&&r.supports("modulepreload"))return;for(const u of document.querySelectorAll('link[rel="modulepreload"]'))s(u);new MutationObserver(u=>{for(const c of u)if(c.type==="childList")for(const d of c.addedNodes)d.tagName==="LINK"&&d.rel==="modulepreload"&&s(d)}).observe(document,{childList:!0,subtree:!0});function i(u){const c={};return u.integrity&&(c.integrity=u.integrity),u.referrerPolicy&&(c.referrerPolicy=u.referrerPolicy),u.crossOrigin==="use-credentials"?c.credentials="include":u.crossOrigin==="anonymous"?c.credentials="omit":c.credentials="same-origin",c}function s(u){if(u.ep)return;u.ep=!0;const c=i(u);fetch(u.href,c)}})();var yo=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function lu(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Bf={exports:{}},Ls={};/**
2
2
  * @license React
3
3
  * react-jsx-runtime.production.js
4
4
  *
@@ -6,7 +6,7 @@
6
6
  *
7
7
  * This source code is licensed under the MIT license found in the
8
8
  * LICENSE file in the root directory of this source tree.
9
- */var Bg;function j2(){if(Bg)return Ls;Bg=1;var t=Symbol.for("react.transitional.element"),r=Symbol.for("react.fragment");function i(s,u,c){var d=null;if(c!==void 0&&(d=""+c),u.key!==void 0&&(d=""+u.key),"key"in u){c={};for(var h in u)h!=="key"&&(c[h]=u[h])}else c=u;return u=c.ref,{$$typeof:t,type:s,key:d,ref:u!==void 0?u:null,props:c}}return Ls.Fragment=r,Ls.jsx=i,Ls.jsxs=i,Ls}var Ug;function I2(){return Ug||(Ug=1,Lf.exports=j2()),Lf.exports}var y=I2(),Bf={exports:{}},Bs={},Uf={exports:{}},Hf={};/**
9
+ */var Bg;function I2(){if(Bg)return Ls;Bg=1;var t=Symbol.for("react.transitional.element"),r=Symbol.for("react.fragment");function i(s,u,c){var d=null;if(c!==void 0&&(d=""+c),u.key!==void 0&&(d=""+u.key),"key"in u){c={};for(var h in u)h!=="key"&&(c[h]=u[h])}else c=u;return u=c.ref,{$$typeof:t,type:s,key:d,ref:u!==void 0?u:null,props:c}}return Ls.Fragment=r,Ls.jsx=i,Ls.jsxs=i,Ls}var Ug;function z2(){return Ug||(Ug=1,Bf.exports=I2()),Bf.exports}var y=z2(),Uf={exports:{}},Bs={},Hf={exports:{}},jf={};/**
10
10
  * @license React
11
11
  * scheduler.production.js
12
12
  *
@@ -14,7 +14,7 @@
14
14
  *
15
15
  * This source code is licensed under the MIT license found in the
16
16
  * LICENSE file in the root directory of this source tree.
17
- */var Hg;function z2(){return Hg||(Hg=1,function(t){function r(z,K){var ee=z.length;z.push(K);e:for(;0<ee;){var Ae=ee-1>>>1,x=z[Ae];if(0<u(x,K))z[Ae]=K,z[ee]=x,ee=Ae;else break e}}function i(z){return z.length===0?null:z[0]}function s(z){if(z.length===0)return null;var K=z[0],ee=z.pop();if(ee!==K){z[0]=ee;e:for(var Ae=0,x=z.length,k=x>>>1;Ae<k;){var $=2*(Ae+1)-1,Y=z[$],te=$+1,re=z[te];if(0>u(Y,ee))te<x&&0>u(re,Y)?(z[Ae]=re,z[te]=ee,Ae=te):(z[Ae]=Y,z[$]=ee,Ae=$);else if(te<x&&0>u(re,ee))z[Ae]=re,z[te]=ee,Ae=te;else break e}}return K}function u(z,K){var ee=z.sortIndex-K.sortIndex;return ee!==0?ee:z.id-K.id}if(t.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var c=performance;t.unstable_now=function(){return c.now()}}else{var d=Date,h=d.now();t.unstable_now=function(){return d.now()-h}}var m=[],p=[],b=1,E=null,A=3,U=!1,R=!1,q=!1,G=!1,_=typeof setTimeout=="function"?setTimeout:null,C=typeof clearTimeout=="function"?clearTimeout:null,S=typeof setImmediate<"u"?setImmediate:null;function H(z){for(var K=i(p);K!==null;){if(K.callback===null)s(p);else if(K.startTime<=z)s(p),K.sortIndex=K.expirationTime,r(m,K);else break;K=i(p)}}function O(z){if(q=!1,H(z),!R)if(i(m)!==null)R=!0,Q||(Q=!0,me());else{var K=i(p);K!==null&&ve(O,K.startTime-z)}}var Q=!1,W=-1,ae=5,ye=-1;function Ee(){return G?!0:!(t.unstable_now()-ye<ae)}function se(){if(G=!1,Q){var z=t.unstable_now();ye=z;var K=!0;try{e:{R=!1,q&&(q=!1,C(W),W=-1),U=!0;var ee=A;try{t:{for(H(z),E=i(m);E!==null&&!(E.expirationTime>z&&Ee());){var Ae=E.callback;if(typeof Ae=="function"){E.callback=null,A=E.priorityLevel;var x=Ae(E.expirationTime<=z);if(z=t.unstable_now(),typeof x=="function"){E.callback=x,H(z),K=!0;break t}E===i(m)&&s(m),H(z)}else s(m);E=i(m)}if(E!==null)K=!0;else{var k=i(p);k!==null&&ve(O,k.startTime-z),K=!1}}break e}finally{E=null,A=ee,U=!1}K=void 0}}finally{K?me():Q=!1}}}var me;if(typeof S=="function")me=function(){S(se)};else if(typeof MessageChannel<"u"){var ce=new MessageChannel,Pe=ce.port2;ce.port1.onmessage=se,me=function(){Pe.postMessage(null)}}else me=function(){_(se,0)};function ve(z,K){W=_(function(){z(t.unstable_now())},K)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(z){z.callback=null},t.unstable_forceFrameRate=function(z){0>z||125<z?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):ae=0<z?Math.floor(1e3/z):5},t.unstable_getCurrentPriorityLevel=function(){return A},t.unstable_next=function(z){switch(A){case 1:case 2:case 3:var K=3;break;default:K=A}var ee=A;A=K;try{return z()}finally{A=ee}},t.unstable_requestPaint=function(){G=!0},t.unstable_runWithPriority=function(z,K){switch(z){case 1:case 2:case 3:case 4:case 5:break;default:z=3}var ee=A;A=z;try{return K()}finally{A=ee}},t.unstable_scheduleCallback=function(z,K,ee){var Ae=t.unstable_now();switch(typeof ee=="object"&&ee!==null?(ee=ee.delay,ee=typeof ee=="number"&&0<ee?Ae+ee:Ae):ee=Ae,z){case 1:var x=-1;break;case 2:x=250;break;case 5:x=1073741823;break;case 4:x=1e4;break;default:x=5e3}return x=ee+x,z={id:b++,callback:K,priorityLevel:z,startTime:ee,expirationTime:x,sortIndex:-1},ee>Ae?(z.sortIndex=ee,r(p,z),i(m)===null&&z===i(p)&&(q?(C(W),W=-1):q=!0,ve(O,ee-Ae))):(z.sortIndex=x,r(m,z),R||U||(R=!0,Q||(Q=!0,me()))),z},t.unstable_shouldYield=Ee,t.unstable_wrapCallback=function(z){var K=A;return function(){var ee=A;A=K;try{return z.apply(this,arguments)}finally{A=ee}}}}(Hf)),Hf}var jg;function G2(){return jg||(jg=1,Uf.exports=z2()),Uf.exports}var jf={exports:{}},be={};/**
17
+ */var Hg;function G2(){return Hg||(Hg=1,function(t){function r(z,K){var ee=z.length;z.push(K);e:for(;0<ee;){var Ae=ee-1>>>1,O=z[Ae];if(0<u(O,K))z[Ae]=K,z[ee]=O,ee=Ae;else break e}}function i(z){return z.length===0?null:z[0]}function s(z){if(z.length===0)return null;var K=z[0],ee=z.pop();if(ee!==K){z[0]=ee;e:for(var Ae=0,O=z.length,k=O>>>1;Ae<k;){var $=2*(Ae+1)-1,Y=z[$],te=$+1,re=z[te];if(0>u(Y,ee))te<O&&0>u(re,Y)?(z[Ae]=re,z[te]=ee,Ae=te):(z[Ae]=Y,z[$]=ee,Ae=$);else if(te<O&&0>u(re,ee))z[Ae]=re,z[te]=ee,Ae=te;else break e}}return K}function u(z,K){var ee=z.sortIndex-K.sortIndex;return ee!==0?ee:z.id-K.id}if(t.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var c=performance;t.unstable_now=function(){return c.now()}}else{var d=Date,h=d.now();t.unstable_now=function(){return d.now()-h}}var m=[],p=[],b=1,E=null,A=3,L=!1,R=!1,q=!1,G=!1,_=typeof setTimeout=="function"?setTimeout:null,C=typeof clearTimeout=="function"?clearTimeout:null,S=typeof setImmediate<"u"?setImmediate:null;function H(z){for(var K=i(p);K!==null;){if(K.callback===null)s(p);else if(K.startTime<=z)s(p),K.sortIndex=K.expirationTime,r(m,K);else break;K=i(p)}}function x(z){if(q=!1,H(z),!R)if(i(m)!==null)R=!0,Q||(Q=!0,me());else{var K=i(p);K!==null&&ve(x,K.startTime-z)}}var Q=!1,W=-1,ae=5,ye=-1;function Ee(){return G?!0:!(t.unstable_now()-ye<ae)}function se(){if(G=!1,Q){var z=t.unstable_now();ye=z;var K=!0;try{e:{R=!1,q&&(q=!1,C(W),W=-1),L=!0;var ee=A;try{t:{for(H(z),E=i(m);E!==null&&!(E.expirationTime>z&&Ee());){var Ae=E.callback;if(typeof Ae=="function"){E.callback=null,A=E.priorityLevel;var O=Ae(E.expirationTime<=z);if(z=t.unstable_now(),typeof O=="function"){E.callback=O,H(z),K=!0;break t}E===i(m)&&s(m),H(z)}else s(m);E=i(m)}if(E!==null)K=!0;else{var k=i(p);k!==null&&ve(x,k.startTime-z),K=!1}}break e}finally{E=null,A=ee,L=!1}K=void 0}}finally{K?me():Q=!1}}}var me;if(typeof S=="function")me=function(){S(se)};else if(typeof MessageChannel<"u"){var ce=new MessageChannel,Pe=ce.port2;ce.port1.onmessage=se,me=function(){Pe.postMessage(null)}}else me=function(){_(se,0)};function ve(z,K){W=_(function(){z(t.unstable_now())},K)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(z){z.callback=null},t.unstable_forceFrameRate=function(z){0>z||125<z?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):ae=0<z?Math.floor(1e3/z):5},t.unstable_getCurrentPriorityLevel=function(){return A},t.unstable_next=function(z){switch(A){case 1:case 2:case 3:var K=3;break;default:K=A}var ee=A;A=K;try{return z()}finally{A=ee}},t.unstable_requestPaint=function(){G=!0},t.unstable_runWithPriority=function(z,K){switch(z){case 1:case 2:case 3:case 4:case 5:break;default:z=3}var ee=A;A=z;try{return K()}finally{A=ee}},t.unstable_scheduleCallback=function(z,K,ee){var Ae=t.unstable_now();switch(typeof ee=="object"&&ee!==null?(ee=ee.delay,ee=typeof ee=="number"&&0<ee?Ae+ee:Ae):ee=Ae,z){case 1:var O=-1;break;case 2:O=250;break;case 5:O=1073741823;break;case 4:O=1e4;break;default:O=5e3}return O=ee+O,z={id:b++,callback:K,priorityLevel:z,startTime:ee,expirationTime:O,sortIndex:-1},ee>Ae?(z.sortIndex=ee,r(p,z),i(m)===null&&z===i(p)&&(q?(C(W),W=-1):q=!0,ve(x,ee-Ae))):(z.sortIndex=O,r(m,z),R||L||(R=!0,Q||(Q=!0,me()))),z},t.unstable_shouldYield=Ee,t.unstable_wrapCallback=function(z){var K=A;return function(){var ee=A;A=K;try{return z.apply(this,arguments)}finally{A=ee}}}}(jf)),jf}var jg;function k2(){return jg||(jg=1,Hf.exports=G2()),Hf.exports}var If={exports:{}},be={};/**
18
18
  * @license React
19
19
  * react.production.js
20
20
  *
@@ -22,7 +22,7 @@
22
22
  *
23
23
  * This source code is licensed under the MIT license found in the
24
24
  * LICENSE file in the root directory of this source tree.
25
- */var Ig;function k2(){if(Ig)return be;Ig=1;var t=Symbol.for("react.transitional.element"),r=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),u=Symbol.for("react.profiler"),c=Symbol.for("react.consumer"),d=Symbol.for("react.context"),h=Symbol.for("react.forward_ref"),m=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),b=Symbol.for("react.lazy"),E=Symbol.iterator;function A(x){return x===null||typeof x!="object"?null:(x=E&&x[E]||x["@@iterator"],typeof x=="function"?x:null)}var U={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},R=Object.assign,q={};function G(x,k,$){this.props=x,this.context=k,this.refs=q,this.updater=$||U}G.prototype.isReactComponent={},G.prototype.setState=function(x,k){if(typeof x!="object"&&typeof x!="function"&&x!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,x,k,"setState")},G.prototype.forceUpdate=function(x){this.updater.enqueueForceUpdate(this,x,"forceUpdate")};function _(){}_.prototype=G.prototype;function C(x,k,$){this.props=x,this.context=k,this.refs=q,this.updater=$||U}var S=C.prototype=new _;S.constructor=C,R(S,G.prototype),S.isPureReactComponent=!0;var H=Array.isArray,O={H:null,A:null,T:null,S:null,V:null},Q=Object.prototype.hasOwnProperty;function W(x,k,$,Y,te,re){return $=re.ref,{$$typeof:t,type:x,key:k,ref:$!==void 0?$:null,props:re}}function ae(x,k){return W(x.type,k,void 0,void 0,void 0,x.props)}function ye(x){return typeof x=="object"&&x!==null&&x.$$typeof===t}function Ee(x){var k={"=":"=0",":":"=2"};return"$"+x.replace(/[=:]/g,function($){return k[$]})}var se=/\/+/g;function me(x,k){return typeof x=="object"&&x!==null&&x.key!=null?Ee(""+x.key):k.toString(36)}function ce(){}function Pe(x){switch(x.status){case"fulfilled":return x.value;case"rejected":throw x.reason;default:switch(typeof x.status=="string"?x.then(ce,ce):(x.status="pending",x.then(function(k){x.status==="pending"&&(x.status="fulfilled",x.value=k)},function(k){x.status==="pending"&&(x.status="rejected",x.reason=k)})),x.status){case"fulfilled":return x.value;case"rejected":throw x.reason}}throw x}function ve(x,k,$,Y,te){var re=typeof x;(re==="undefined"||re==="boolean")&&(x=null);var ue=!1;if(x===null)ue=!0;else switch(re){case"bigint":case"string":case"number":ue=!0;break;case"object":switch(x.$$typeof){case t:case r:ue=!0;break;case b:return ue=x._init,ve(ue(x._payload),k,$,Y,te)}}if(ue)return te=te(x),ue=Y===""?"."+me(x,0):Y,H(te)?($="",ue!=null&&($=ue.replace(se,"$&/")+"/"),ve(te,k,$,"",function(St){return St})):te!=null&&(ye(te)&&(te=ae(te,$+(te.key==null||x&&x.key===te.key?"":(""+te.key).replace(se,"$&/")+"/")+ue)),k.push(te)),1;ue=0;var We=Y===""?".":Y+":";if(H(x))for(var Ue=0;Ue<x.length;Ue++)Y=x[Ue],re=We+me(Y,Ue),ue+=ve(Y,k,$,re,te);else if(Ue=A(x),typeof Ue=="function")for(x=Ue.call(x),Ue=0;!(Y=x.next()).done;)Y=Y.value,re=We+me(Y,Ue++),ue+=ve(Y,k,$,re,te);else if(re==="object"){if(typeof x.then=="function")return ve(Pe(x),k,$,Y,te);throw k=String(x),Error("Objects are not valid as a React child (found: "+(k==="[object Object]"?"object with keys {"+Object.keys(x).join(", ")+"}":k)+"). If you meant to render a collection of children, use an array instead.")}return ue}function z(x,k,$){if(x==null)return x;var Y=[],te=0;return ve(x,Y,"","",function(re){return k.call($,re,te++)}),Y}function K(x){if(x._status===-1){var k=x._result;k=k(),k.then(function($){(x._status===0||x._status===-1)&&(x._status=1,x._result=$)},function($){(x._status===0||x._status===-1)&&(x._status=2,x._result=$)}),x._status===-1&&(x._status=0,x._result=k)}if(x._status===1)return x._result.default;throw x._result}var ee=typeof reportError=="function"?reportError:function(x){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var k=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof x=="object"&&x!==null&&typeof x.message=="string"?String(x.message):String(x),error:x});if(!window.dispatchEvent(k))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",x);return}console.error(x)};function Ae(){}return be.Children={map:z,forEach:function(x,k,$){z(x,function(){k.apply(this,arguments)},$)},count:function(x){var k=0;return z(x,function(){k++}),k},toArray:function(x){return z(x,function(k){return k})||[]},only:function(x){if(!ye(x))throw Error("React.Children.only expected to receive a single React element child.");return x}},be.Component=G,be.Fragment=i,be.Profiler=u,be.PureComponent=C,be.StrictMode=s,be.Suspense=m,be.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=O,be.__COMPILER_RUNTIME={__proto__:null,c:function(x){return O.H.useMemoCache(x)}},be.cache=function(x){return function(){return x.apply(null,arguments)}},be.cloneElement=function(x,k,$){if(x==null)throw Error("The argument must be a React element, but you passed "+x+".");var Y=R({},x.props),te=x.key,re=void 0;if(k!=null)for(ue in k.ref!==void 0&&(re=void 0),k.key!==void 0&&(te=""+k.key),k)!Q.call(k,ue)||ue==="key"||ue==="__self"||ue==="__source"||ue==="ref"&&k.ref===void 0||(Y[ue]=k[ue]);var ue=arguments.length-2;if(ue===1)Y.children=$;else if(1<ue){for(var We=Array(ue),Ue=0;Ue<ue;Ue++)We[Ue]=arguments[Ue+2];Y.children=We}return W(x.type,te,void 0,void 0,re,Y)},be.createContext=function(x){return x={$$typeof:d,_currentValue:x,_currentValue2:x,_threadCount:0,Provider:null,Consumer:null},x.Provider=x,x.Consumer={$$typeof:c,_context:x},x},be.createElement=function(x,k,$){var Y,te={},re=null;if(k!=null)for(Y in k.key!==void 0&&(re=""+k.key),k)Q.call(k,Y)&&Y!=="key"&&Y!=="__self"&&Y!=="__source"&&(te[Y]=k[Y]);var ue=arguments.length-2;if(ue===1)te.children=$;else if(1<ue){for(var We=Array(ue),Ue=0;Ue<ue;Ue++)We[Ue]=arguments[Ue+2];te.children=We}if(x&&x.defaultProps)for(Y in ue=x.defaultProps,ue)te[Y]===void 0&&(te[Y]=ue[Y]);return W(x,re,void 0,void 0,null,te)},be.createRef=function(){return{current:null}},be.forwardRef=function(x){return{$$typeof:h,render:x}},be.isValidElement=ye,be.lazy=function(x){return{$$typeof:b,_payload:{_status:-1,_result:x},_init:K}},be.memo=function(x,k){return{$$typeof:p,type:x,compare:k===void 0?null:k}},be.startTransition=function(x){var k=O.T,$={};O.T=$;try{var Y=x(),te=O.S;te!==null&&te($,Y),typeof Y=="object"&&Y!==null&&typeof Y.then=="function"&&Y.then(Ae,ee)}catch(re){ee(re)}finally{O.T=k}},be.unstable_useCacheRefresh=function(){return O.H.useCacheRefresh()},be.use=function(x){return O.H.use(x)},be.useActionState=function(x,k,$){return O.H.useActionState(x,k,$)},be.useCallback=function(x,k){return O.H.useCallback(x,k)},be.useContext=function(x){return O.H.useContext(x)},be.useDebugValue=function(){},be.useDeferredValue=function(x,k){return O.H.useDeferredValue(x,k)},be.useEffect=function(x,k,$){var Y=O.H;if(typeof $=="function")throw Error("useEffect CRUD overload is not enabled in this build of React.");return Y.useEffect(x,k)},be.useId=function(){return O.H.useId()},be.useImperativeHandle=function(x,k,$){return O.H.useImperativeHandle(x,k,$)},be.useInsertionEffect=function(x,k){return O.H.useInsertionEffect(x,k)},be.useLayoutEffect=function(x,k){return O.H.useLayoutEffect(x,k)},be.useMemo=function(x,k){return O.H.useMemo(x,k)},be.useOptimistic=function(x,k){return O.H.useOptimistic(x,k)},be.useReducer=function(x,k,$){return O.H.useReducer(x,k,$)},be.useRef=function(x){return O.H.useRef(x)},be.useState=function(x){return O.H.useState(x)},be.useSyncExternalStore=function(x,k,$){return O.H.useSyncExternalStore(x,k,$)},be.useTransition=function(){return O.H.useTransition()},be.version="19.1.1",be}var zg;function lu(){return zg||(zg=1,jf.exports=k2()),jf.exports}var If={exports:{}},Ut={};/**
25
+ */var Ig;function q2(){if(Ig)return be;Ig=1;var t=Symbol.for("react.transitional.element"),r=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),u=Symbol.for("react.profiler"),c=Symbol.for("react.consumer"),d=Symbol.for("react.context"),h=Symbol.for("react.forward_ref"),m=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),b=Symbol.for("react.lazy"),E=Symbol.iterator;function A(O){return O===null||typeof O!="object"?null:(O=E&&O[E]||O["@@iterator"],typeof O=="function"?O:null)}var L={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},R=Object.assign,q={};function G(O,k,$){this.props=O,this.context=k,this.refs=q,this.updater=$||L}G.prototype.isReactComponent={},G.prototype.setState=function(O,k){if(typeof O!="object"&&typeof O!="function"&&O!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,O,k,"setState")},G.prototype.forceUpdate=function(O){this.updater.enqueueForceUpdate(this,O,"forceUpdate")};function _(){}_.prototype=G.prototype;function C(O,k,$){this.props=O,this.context=k,this.refs=q,this.updater=$||L}var S=C.prototype=new _;S.constructor=C,R(S,G.prototype),S.isPureReactComponent=!0;var H=Array.isArray,x={H:null,A:null,T:null,S:null,V:null},Q=Object.prototype.hasOwnProperty;function W(O,k,$,Y,te,re){return $=re.ref,{$$typeof:t,type:O,key:k,ref:$!==void 0?$:null,props:re}}function ae(O,k){return W(O.type,k,void 0,void 0,void 0,O.props)}function ye(O){return typeof O=="object"&&O!==null&&O.$$typeof===t}function Ee(O){var k={"=":"=0",":":"=2"};return"$"+O.replace(/[=:]/g,function($){return k[$]})}var se=/\/+/g;function me(O,k){return typeof O=="object"&&O!==null&&O.key!=null?Ee(""+O.key):k.toString(36)}function ce(){}function Pe(O){switch(O.status){case"fulfilled":return O.value;case"rejected":throw O.reason;default:switch(typeof O.status=="string"?O.then(ce,ce):(O.status="pending",O.then(function(k){O.status==="pending"&&(O.status="fulfilled",O.value=k)},function(k){O.status==="pending"&&(O.status="rejected",O.reason=k)})),O.status){case"fulfilled":return O.value;case"rejected":throw O.reason}}throw O}function ve(O,k,$,Y,te){var re=typeof O;(re==="undefined"||re==="boolean")&&(O=null);var ue=!1;if(O===null)ue=!0;else switch(re){case"bigint":case"string":case"number":ue=!0;break;case"object":switch(O.$$typeof){case t:case r:ue=!0;break;case b:return ue=O._init,ve(ue(O._payload),k,$,Y,te)}}if(ue)return te=te(O),ue=Y===""?"."+me(O,0):Y,H(te)?($="",ue!=null&&($=ue.replace(se,"$&/")+"/"),ve(te,k,$,"",function(St){return St})):te!=null&&(ye(te)&&(te=ae(te,$+(te.key==null||O&&O.key===te.key?"":(""+te.key).replace(se,"$&/")+"/")+ue)),k.push(te)),1;ue=0;var We=Y===""?".":Y+":";if(H(O))for(var Ue=0;Ue<O.length;Ue++)Y=O[Ue],re=We+me(Y,Ue),ue+=ve(Y,k,$,re,te);else if(Ue=A(O),typeof Ue=="function")for(O=Ue.call(O),Ue=0;!(Y=O.next()).done;)Y=Y.value,re=We+me(Y,Ue++),ue+=ve(Y,k,$,re,te);else if(re==="object"){if(typeof O.then=="function")return ve(Pe(O),k,$,Y,te);throw k=String(O),Error("Objects are not valid as a React child (found: "+(k==="[object Object]"?"object with keys {"+Object.keys(O).join(", ")+"}":k)+"). If you meant to render a collection of children, use an array instead.")}return ue}function z(O,k,$){if(O==null)return O;var Y=[],te=0;return ve(O,Y,"","",function(re){return k.call($,re,te++)}),Y}function K(O){if(O._status===-1){var k=O._result;k=k(),k.then(function($){(O._status===0||O._status===-1)&&(O._status=1,O._result=$)},function($){(O._status===0||O._status===-1)&&(O._status=2,O._result=$)}),O._status===-1&&(O._status=0,O._result=k)}if(O._status===1)return O._result.default;throw O._result}var ee=typeof reportError=="function"?reportError:function(O){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var k=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof O=="object"&&O!==null&&typeof O.message=="string"?String(O.message):String(O),error:O});if(!window.dispatchEvent(k))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",O);return}console.error(O)};function Ae(){}return be.Children={map:z,forEach:function(O,k,$){z(O,function(){k.apply(this,arguments)},$)},count:function(O){var k=0;return z(O,function(){k++}),k},toArray:function(O){return z(O,function(k){return k})||[]},only:function(O){if(!ye(O))throw Error("React.Children.only expected to receive a single React element child.");return O}},be.Component=G,be.Fragment=i,be.Profiler=u,be.PureComponent=C,be.StrictMode=s,be.Suspense=m,be.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=x,be.__COMPILER_RUNTIME={__proto__:null,c:function(O){return x.H.useMemoCache(O)}},be.cache=function(O){return function(){return O.apply(null,arguments)}},be.cloneElement=function(O,k,$){if(O==null)throw Error("The argument must be a React element, but you passed "+O+".");var Y=R({},O.props),te=O.key,re=void 0;if(k!=null)for(ue in k.ref!==void 0&&(re=void 0),k.key!==void 0&&(te=""+k.key),k)!Q.call(k,ue)||ue==="key"||ue==="__self"||ue==="__source"||ue==="ref"&&k.ref===void 0||(Y[ue]=k[ue]);var ue=arguments.length-2;if(ue===1)Y.children=$;else if(1<ue){for(var We=Array(ue),Ue=0;Ue<ue;Ue++)We[Ue]=arguments[Ue+2];Y.children=We}return W(O.type,te,void 0,void 0,re,Y)},be.createContext=function(O){return O={$$typeof:d,_currentValue:O,_currentValue2:O,_threadCount:0,Provider:null,Consumer:null},O.Provider=O,O.Consumer={$$typeof:c,_context:O},O},be.createElement=function(O,k,$){var Y,te={},re=null;if(k!=null)for(Y in k.key!==void 0&&(re=""+k.key),k)Q.call(k,Y)&&Y!=="key"&&Y!=="__self"&&Y!=="__source"&&(te[Y]=k[Y]);var ue=arguments.length-2;if(ue===1)te.children=$;else if(1<ue){for(var We=Array(ue),Ue=0;Ue<ue;Ue++)We[Ue]=arguments[Ue+2];te.children=We}if(O&&O.defaultProps)for(Y in ue=O.defaultProps,ue)te[Y]===void 0&&(te[Y]=ue[Y]);return W(O,re,void 0,void 0,null,te)},be.createRef=function(){return{current:null}},be.forwardRef=function(O){return{$$typeof:h,render:O}},be.isValidElement=ye,be.lazy=function(O){return{$$typeof:b,_payload:{_status:-1,_result:O},_init:K}},be.memo=function(O,k){return{$$typeof:p,type:O,compare:k===void 0?null:k}},be.startTransition=function(O){var k=x.T,$={};x.T=$;try{var Y=O(),te=x.S;te!==null&&te($,Y),typeof Y=="object"&&Y!==null&&typeof Y.then=="function"&&Y.then(Ae,ee)}catch(re){ee(re)}finally{x.T=k}},be.unstable_useCacheRefresh=function(){return x.H.useCacheRefresh()},be.use=function(O){return x.H.use(O)},be.useActionState=function(O,k,$){return x.H.useActionState(O,k,$)},be.useCallback=function(O,k){return x.H.useCallback(O,k)},be.useContext=function(O){return x.H.useContext(O)},be.useDebugValue=function(){},be.useDeferredValue=function(O,k){return x.H.useDeferredValue(O,k)},be.useEffect=function(O,k,$){var Y=x.H;if(typeof $=="function")throw Error("useEffect CRUD overload is not enabled in this build of React.");return Y.useEffect(O,k)},be.useId=function(){return x.H.useId()},be.useImperativeHandle=function(O,k,$){return x.H.useImperativeHandle(O,k,$)},be.useInsertionEffect=function(O,k){return x.H.useInsertionEffect(O,k)},be.useLayoutEffect=function(O,k){return x.H.useLayoutEffect(O,k)},be.useMemo=function(O,k){return x.H.useMemo(O,k)},be.useOptimistic=function(O,k){return x.H.useOptimistic(O,k)},be.useReducer=function(O,k,$){return x.H.useReducer(O,k,$)},be.useRef=function(O){return x.H.useRef(O)},be.useState=function(O){return x.H.useState(O)},be.useSyncExternalStore=function(O,k,$){return x.H.useSyncExternalStore(O,k,$)},be.useTransition=function(){return x.H.useTransition()},be.version="19.1.1",be}var zg;function ou(){return zg||(zg=1,If.exports=q2()),If.exports}var zf={exports:{}},Ut={};/**
26
26
  * @license React
27
27
  * react-dom.production.js
28
28
  *
@@ -30,7 +30,7 @@
30
30
  *
31
31
  * This source code is licensed under the MIT license found in the
32
32
  * LICENSE file in the root directory of this source tree.
33
- */var Gg;function q2(){if(Gg)return Ut;Gg=1;var t=lu();function r(m){var p="https://react.dev/errors/"+m;if(1<arguments.length){p+="?args[]="+encodeURIComponent(arguments[1]);for(var b=2;b<arguments.length;b++)p+="&args[]="+encodeURIComponent(arguments[b])}return"Minified React error #"+m+"; visit "+p+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function i(){}var s={d:{f:i,r:function(){throw Error(r(522))},D:i,C:i,L:i,m:i,X:i,S:i,M:i},p:0,findDOMNode:null},u=Symbol.for("react.portal");function c(m,p,b){var E=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:u,key:E==null?null:""+E,children:m,containerInfo:p,implementation:b}}var d=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function h(m,p){if(m==="font")return"";if(typeof p=="string")return p==="use-credentials"?p:""}return Ut.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=s,Ut.createPortal=function(m,p){var b=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!p||p.nodeType!==1&&p.nodeType!==9&&p.nodeType!==11)throw Error(r(299));return c(m,p,null,b)},Ut.flushSync=function(m){var p=d.T,b=s.p;try{if(d.T=null,s.p=2,m)return m()}finally{d.T=p,s.p=b,s.d.f()}},Ut.preconnect=function(m,p){typeof m=="string"&&(p?(p=p.crossOrigin,p=typeof p=="string"?p==="use-credentials"?p:"":void 0):p=null,s.d.C(m,p))},Ut.prefetchDNS=function(m){typeof m=="string"&&s.d.D(m)},Ut.preinit=function(m,p){if(typeof m=="string"&&p&&typeof p.as=="string"){var b=p.as,E=h(b,p.crossOrigin),A=typeof p.integrity=="string"?p.integrity:void 0,U=typeof p.fetchPriority=="string"?p.fetchPriority:void 0;b==="style"?s.d.S(m,typeof p.precedence=="string"?p.precedence:void 0,{crossOrigin:E,integrity:A,fetchPriority:U}):b==="script"&&s.d.X(m,{crossOrigin:E,integrity:A,fetchPriority:U,nonce:typeof p.nonce=="string"?p.nonce:void 0})}},Ut.preinitModule=function(m,p){if(typeof m=="string")if(typeof p=="object"&&p!==null){if(p.as==null||p.as==="script"){var b=h(p.as,p.crossOrigin);s.d.M(m,{crossOrigin:b,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0})}}else p==null&&s.d.M(m)},Ut.preload=function(m,p){if(typeof m=="string"&&typeof p=="object"&&p!==null&&typeof p.as=="string"){var b=p.as,E=h(b,p.crossOrigin);s.d.L(m,b,{crossOrigin:E,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0,type:typeof p.type=="string"?p.type:void 0,fetchPriority:typeof p.fetchPriority=="string"?p.fetchPriority:void 0,referrerPolicy:typeof p.referrerPolicy=="string"?p.referrerPolicy:void 0,imageSrcSet:typeof p.imageSrcSet=="string"?p.imageSrcSet:void 0,imageSizes:typeof p.imageSizes=="string"?p.imageSizes:void 0,media:typeof p.media=="string"?p.media:void 0})}},Ut.preloadModule=function(m,p){if(typeof m=="string")if(p){var b=h(p.as,p.crossOrigin);s.d.m(m,{as:typeof p.as=="string"&&p.as!=="script"?p.as:void 0,crossOrigin:b,integrity:typeof p.integrity=="string"?p.integrity:void 0})}else s.d.m(m)},Ut.requestFormReset=function(m){s.d.r(m)},Ut.unstable_batchedUpdates=function(m,p){return m(p)},Ut.useFormState=function(m,p,b){return d.H.useFormState(m,p,b)},Ut.useFormStatus=function(){return d.H.useHostTransitionStatus()},Ut.version="19.1.1",Ut}var kg;function F2(){if(kg)return If.exports;kg=1;function t(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(r){console.error(r)}}return t(),If.exports=q2(),If.exports}/**
33
+ */var Gg;function F2(){if(Gg)return Ut;Gg=1;var t=ou();function r(m){var p="https://react.dev/errors/"+m;if(1<arguments.length){p+="?args[]="+encodeURIComponent(arguments[1]);for(var b=2;b<arguments.length;b++)p+="&args[]="+encodeURIComponent(arguments[b])}return"Minified React error #"+m+"; visit "+p+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function i(){}var s={d:{f:i,r:function(){throw Error(r(522))},D:i,C:i,L:i,m:i,X:i,S:i,M:i},p:0,findDOMNode:null},u=Symbol.for("react.portal");function c(m,p,b){var E=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:u,key:E==null?null:""+E,children:m,containerInfo:p,implementation:b}}var d=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function h(m,p){if(m==="font")return"";if(typeof p=="string")return p==="use-credentials"?p:""}return Ut.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=s,Ut.createPortal=function(m,p){var b=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!p||p.nodeType!==1&&p.nodeType!==9&&p.nodeType!==11)throw Error(r(299));return c(m,p,null,b)},Ut.flushSync=function(m){var p=d.T,b=s.p;try{if(d.T=null,s.p=2,m)return m()}finally{d.T=p,s.p=b,s.d.f()}},Ut.preconnect=function(m,p){typeof m=="string"&&(p?(p=p.crossOrigin,p=typeof p=="string"?p==="use-credentials"?p:"":void 0):p=null,s.d.C(m,p))},Ut.prefetchDNS=function(m){typeof m=="string"&&s.d.D(m)},Ut.preinit=function(m,p){if(typeof m=="string"&&p&&typeof p.as=="string"){var b=p.as,E=h(b,p.crossOrigin),A=typeof p.integrity=="string"?p.integrity:void 0,L=typeof p.fetchPriority=="string"?p.fetchPriority:void 0;b==="style"?s.d.S(m,typeof p.precedence=="string"?p.precedence:void 0,{crossOrigin:E,integrity:A,fetchPriority:L}):b==="script"&&s.d.X(m,{crossOrigin:E,integrity:A,fetchPriority:L,nonce:typeof p.nonce=="string"?p.nonce:void 0})}},Ut.preinitModule=function(m,p){if(typeof m=="string")if(typeof p=="object"&&p!==null){if(p.as==null||p.as==="script"){var b=h(p.as,p.crossOrigin);s.d.M(m,{crossOrigin:b,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0})}}else p==null&&s.d.M(m)},Ut.preload=function(m,p){if(typeof m=="string"&&typeof p=="object"&&p!==null&&typeof p.as=="string"){var b=p.as,E=h(b,p.crossOrigin);s.d.L(m,b,{crossOrigin:E,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0,type:typeof p.type=="string"?p.type:void 0,fetchPriority:typeof p.fetchPriority=="string"?p.fetchPriority:void 0,referrerPolicy:typeof p.referrerPolicy=="string"?p.referrerPolicy:void 0,imageSrcSet:typeof p.imageSrcSet=="string"?p.imageSrcSet:void 0,imageSizes:typeof p.imageSizes=="string"?p.imageSizes:void 0,media:typeof p.media=="string"?p.media:void 0})}},Ut.preloadModule=function(m,p){if(typeof m=="string")if(p){var b=h(p.as,p.crossOrigin);s.d.m(m,{as:typeof p.as=="string"&&p.as!=="script"?p.as:void 0,crossOrigin:b,integrity:typeof p.integrity=="string"?p.integrity:void 0})}else s.d.m(m)},Ut.requestFormReset=function(m){s.d.r(m)},Ut.unstable_batchedUpdates=function(m,p){return m(p)},Ut.useFormState=function(m,p,b){return d.H.useFormState(m,p,b)},Ut.useFormStatus=function(){return d.H.useHostTransitionStatus()},Ut.version="19.1.1",Ut}var kg;function V2(){if(kg)return zf.exports;kg=1;function t(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(r){console.error(r)}}return t(),zf.exports=F2(),zf.exports}/**
34
34
  * @license React
35
35
  * react-dom-client.production.js
36
36
  *
@@ -38,15 +38,15 @@
38
38
  *
39
39
  * This source code is licensed under the MIT license found in the
40
40
  * LICENSE file in the root directory of this source tree.
41
- */var qg;function V2(){if(qg)return Bs;qg=1;var t=G2(),r=lu(),i=F2();function s(e){var n="https://react.dev/errors/"+e;if(1<arguments.length){n+="?args[]="+encodeURIComponent(arguments[1]);for(var a=2;a<arguments.length;a++)n+="&args[]="+encodeURIComponent(arguments[a])}return"Minified React error #"+e+"; visit "+n+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function u(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function c(e){var n=e,a=e;if(e.alternate)for(;n.return;)n=n.return;else{e=n;do n=e,(n.flags&4098)!==0&&(a=n.return),e=n.return;while(e)}return n.tag===3?a:null}function d(e){if(e.tag===13){var n=e.memoizedState;if(n===null&&(e=e.alternate,e!==null&&(n=e.memoizedState)),n!==null)return n.dehydrated}return null}function h(e){if(c(e)!==e)throw Error(s(188))}function m(e){var n=e.alternate;if(!n){if(n=c(e),n===null)throw Error(s(188));return n!==e?null:e}for(var a=e,l=n;;){var o=a.return;if(o===null)break;var f=o.alternate;if(f===null){if(l=o.return,l!==null){a=l;continue}break}if(o.child===f.child){for(f=o.child;f;){if(f===a)return h(o),e;if(f===l)return h(o),n;f=f.sibling}throw Error(s(188))}if(a.return!==l.return)a=o,l=f;else{for(var g=!1,v=o.child;v;){if(v===a){g=!0,a=o,l=f;break}if(v===l){g=!0,l=o,a=f;break}v=v.sibling}if(!g){for(v=f.child;v;){if(v===a){g=!0,a=f,l=o;break}if(v===l){g=!0,l=f,a=o;break}v=v.sibling}if(!g)throw Error(s(189))}}if(a.alternate!==l)throw Error(s(190))}if(a.tag!==3)throw Error(s(188));return a.stateNode.current===a?e:n}function p(e){var n=e.tag;if(n===5||n===26||n===27||n===6)return e;for(e=e.child;e!==null;){if(n=p(e),n!==null)return n;e=e.sibling}return null}var b=Object.assign,E=Symbol.for("react.element"),A=Symbol.for("react.transitional.element"),U=Symbol.for("react.portal"),R=Symbol.for("react.fragment"),q=Symbol.for("react.strict_mode"),G=Symbol.for("react.profiler"),_=Symbol.for("react.provider"),C=Symbol.for("react.consumer"),S=Symbol.for("react.context"),H=Symbol.for("react.forward_ref"),O=Symbol.for("react.suspense"),Q=Symbol.for("react.suspense_list"),W=Symbol.for("react.memo"),ae=Symbol.for("react.lazy"),ye=Symbol.for("react.activity"),Ee=Symbol.for("react.memo_cache_sentinel"),se=Symbol.iterator;function me(e){return e===null||typeof e!="object"?null:(e=se&&e[se]||e["@@iterator"],typeof e=="function"?e:null)}var ce=Symbol.for("react.client.reference");function Pe(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===ce?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case R:return"Fragment";case G:return"Profiler";case q:return"StrictMode";case O:return"Suspense";case Q:return"SuspenseList";case ye:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case U:return"Portal";case S:return(e.displayName||"Context")+".Provider";case C:return(e._context.displayName||"Context")+".Consumer";case H:var n=e.render;return e=e.displayName,e||(e=n.displayName||n.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case W:return n=e.displayName||null,n!==null?n:Pe(e.type)||"Memo";case ae:n=e._payload,e=e._init;try{return Pe(e(n))}catch{}}return null}var ve=Array.isArray,z=r.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,K=i.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ee={pending:!1,data:null,method:null,action:null},Ae=[],x=-1;function k(e){return{current:e}}function $(e){0>x||(e.current=Ae[x],Ae[x]=null,x--)}function Y(e,n){x++,Ae[x]=e.current,e.current=n}var te=k(null),re=k(null),ue=k(null),We=k(null);function Ue(e,n){switch(Y(ue,n),Y(re,e),Y(te,null),n.nodeType){case 9:case 11:e=(e=n.documentElement)&&(e=e.namespaceURI)?og(e):0;break;default:if(e=n.tagName,n=n.namespaceURI)n=og(n),e=ug(n,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}$(te),Y(te,e)}function St(){$(te),$(re),$(ue)}function Gn(e){e.memoizedState!==null&&Y(We,e);var n=te.current,a=ug(n,e.type);n!==a&&(Y(re,e),Y(te,a))}function Mr(e){re.current===e&&($(te),$(re)),We.current===e&&($(We),ws._currentValue=ee)}var Qe=Object.prototype.hasOwnProperty,qt=t.unstable_scheduleCallback,xn=t.unstable_cancelCallback,Di=t.unstable_shouldYield,Li=t.unstable_requestPaint,Tt=t.unstable_now,qa=t.unstable_getCurrentPriorityLevel,ua=t.unstable_ImmediatePriority,Bi=t.unstable_UserBlockingPriority,ca=t.unstable_NormalPriority,Au=t.unstable_LowPriority,Fa=t.unstable_IdlePriority,fa=t.log,Dr=t.unstable_setDisableYieldValue,dn=null,Nt=null;function Rn(e){if(typeof fa=="function"&&Dr(e),Nt&&typeof Nt.setStrictMode=="function")try{Nt.setStrictMode(dn,e)}catch{}}var Mt=Math.clz32?Math.clz32:Va,Ui=Math.log,al=Math.LN2;function Va(e){return e>>>=0,e===0?32:31-(Ui(e)/al|0)|0}var nr=256,Ft=4194304;function Vt(e){var n=e&42;if(n!==0)return n;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194048;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function Lr(e,n,a){var l=e.pendingLanes;if(l===0)return 0;var o=0,f=e.suspendedLanes,g=e.pingedLanes;e=e.warmLanes;var v=l&134217727;return v!==0?(l=v&~f,l!==0?o=Vt(l):(g&=v,g!==0?o=Vt(g):a||(a=v&~e,a!==0&&(o=Vt(a))))):(v=l&~f,v!==0?o=Vt(v):g!==0?o=Vt(g):a||(a=l&~e,a!==0&&(o=Vt(a)))),o===0?0:n!==0&&n!==o&&(n&f)===0&&(f=o&-o,a=n&-n,f>=a||f===32&&(a&4194048)!==0)?n:o}function rr(e,n){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&n)===0}function Ou(e,n){switch(e){case 1:case 2:case 4:case 8:case 64:return n+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return n+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function da(){var e=nr;return nr<<=1,(nr&4194048)===0&&(nr=256),e}function ha(){var e=Ft;return Ft<<=1,(Ft&62914560)===0&&(Ft=4194304),e}function Hi(e){for(var n=[],a=0;31>a;a++)n.push(e);return n}function wn(e,n){e.pendingLanes|=n,n!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function xu(e,n,a,l,o,f){var g=e.pendingLanes;e.pendingLanes=a,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=a,e.entangledLanes&=a,e.errorRecoveryDisabledLanes&=a,e.shellSuspendCounter=0;var v=e.entanglements,T=e.expirationTimes,L=e.hiddenUpdates;for(a=g&~a;0<a;){var F=31-Mt(a),P=1<<F;v[F]=0,T[F]=-1;var j=L[F];if(j!==null)for(L[F]=null,F=0;F<j.length;F++){var I=j[F];I!==null&&(I.lane&=-536870913)}a&=~P}l!==0&&il(e,l,0),f!==0&&o===0&&e.tag!==0&&(e.suspendedLanes|=f&~(g&~n))}function il(e,n,a){e.pendingLanes|=n,e.suspendedLanes&=~n;var l=31-Mt(n);e.entangledLanes|=n,e.entanglements[l]=e.entanglements[l]|1073741824|a&4194090}function nt(e,n){var a=e.entangledLanes|=n;for(e=e.entanglements;a;){var l=31-Mt(a),o=1<<l;o&n|e[l]&n&&(e[l]|=n),a&=~o}}function kn(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function ji(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function Ii(){var e=K.p;return e!==0?e:(e=window.event,e===void 0?32:wg(e.type))}function zi(e,n){var a=K.p;try{return K.p=e,n()}finally{K.p=a}}var Cn=Math.random().toString(36).slice(2),ht="__reactFiber$"+Cn,Dt="__reactProps$"+Cn,At="__reactContainer$"+Cn,qn="__reactEvents$"+Cn,sl="__reactListeners$"+Cn,ll="__reactHandles$"+Cn,Pa="__reactResources$"+Cn,Br="__reactMarker$"+Cn;function Kt(e){delete e[ht],delete e[Dt],delete e[qn],delete e[sl],delete e[ll]}function ar(e){var n=e[ht];if(n)return n;for(var a=e.parentNode;a;){if(n=a[At]||a[ht]){if(a=n.alternate,n.child!==null||a!==null&&a.child!==null)for(e=hg(e);e!==null;){if(a=e[ht])return a;e=hg(e)}return n}e=a,a=e.parentNode}return null}function ir(e){if(e=e[ht]||e[At]){var n=e.tag;if(n===5||n===6||n===13||n===26||n===27||n===3)return e}return null}function Ur(e){var n=e.tag;if(n===5||n===26||n===27||n===6)return e.stateNode;throw Error(s(33))}function sr(e){var n=e[Pa];return n||(n=e[Pa]={hoistableStyles:new Map,hoistableScripts:new Map}),n}function st(e){e[Br]=!0}var le=new Set,N={};function X(e,n){J(e,n),J(e+"Capture",n)}function J(e,n){for(N[e]=n,e=0;e<n.length;e++)le.add(n[e])}var Fe=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),mt={},Je={};function Lt(e){return Qe.call(Je,e)?!0:Qe.call(mt,e)?!1:Fe.test(e)?Je[e]=!0:(mt[e]=!0,!1)}function Pt(e,n,a){if(Lt(n))if(a===null)e.removeAttribute(n);else{switch(typeof a){case"undefined":case"function":case"symbol":e.removeAttribute(n);return;case"boolean":var l=n.toLowerCase().slice(0,5);if(l!=="data-"&&l!=="aria-"){e.removeAttribute(n);return}}e.setAttribute(n,""+a)}}function Fn(e,n,a){if(a===null)e.removeAttribute(n);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(n);return}e.setAttribute(n,""+a)}}function $t(e,n,a,l){if(l===null)e.removeAttribute(a);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(a);return}e.setAttributeNS(n,a,""+l)}}var lt,Gi;function lr(e){if(lt===void 0)try{throw Error()}catch(a){var n=a.stack.trim().match(/\n( *(at )?)/);lt=n&&n[1]||"",Gi=-1<a.stack.indexOf(`
41
+ */var qg;function P2(){if(qg)return Bs;qg=1;var t=k2(),r=ou(),i=V2();function s(e){var n="https://react.dev/errors/"+e;if(1<arguments.length){n+="?args[]="+encodeURIComponent(arguments[1]);for(var a=2;a<arguments.length;a++)n+="&args[]="+encodeURIComponent(arguments[a])}return"Minified React error #"+e+"; visit "+n+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function u(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function c(e){var n=e,a=e;if(e.alternate)for(;n.return;)n=n.return;else{e=n;do n=e,(n.flags&4098)!==0&&(a=n.return),e=n.return;while(e)}return n.tag===3?a:null}function d(e){if(e.tag===13){var n=e.memoizedState;if(n===null&&(e=e.alternate,e!==null&&(n=e.memoizedState)),n!==null)return n.dehydrated}return null}function h(e){if(c(e)!==e)throw Error(s(188))}function m(e){var n=e.alternate;if(!n){if(n=c(e),n===null)throw Error(s(188));return n!==e?null:e}for(var a=e,l=n;;){var o=a.return;if(o===null)break;var f=o.alternate;if(f===null){if(l=o.return,l!==null){a=l;continue}break}if(o.child===f.child){for(f=o.child;f;){if(f===a)return h(o),e;if(f===l)return h(o),n;f=f.sibling}throw Error(s(188))}if(a.return!==l.return)a=o,l=f;else{for(var g=!1,v=o.child;v;){if(v===a){g=!0,a=o,l=f;break}if(v===l){g=!0,l=o,a=f;break}v=v.sibling}if(!g){for(v=f.child;v;){if(v===a){g=!0,a=f,l=o;break}if(v===l){g=!0,l=f,a=o;break}v=v.sibling}if(!g)throw Error(s(189))}}if(a.alternate!==l)throw Error(s(190))}if(a.tag!==3)throw Error(s(188));return a.stateNode.current===a?e:n}function p(e){var n=e.tag;if(n===5||n===26||n===27||n===6)return e;for(e=e.child;e!==null;){if(n=p(e),n!==null)return n;e=e.sibling}return null}var b=Object.assign,E=Symbol.for("react.element"),A=Symbol.for("react.transitional.element"),L=Symbol.for("react.portal"),R=Symbol.for("react.fragment"),q=Symbol.for("react.strict_mode"),G=Symbol.for("react.profiler"),_=Symbol.for("react.provider"),C=Symbol.for("react.consumer"),S=Symbol.for("react.context"),H=Symbol.for("react.forward_ref"),x=Symbol.for("react.suspense"),Q=Symbol.for("react.suspense_list"),W=Symbol.for("react.memo"),ae=Symbol.for("react.lazy"),ye=Symbol.for("react.activity"),Ee=Symbol.for("react.memo_cache_sentinel"),se=Symbol.iterator;function me(e){return e===null||typeof e!="object"?null:(e=se&&e[se]||e["@@iterator"],typeof e=="function"?e:null)}var ce=Symbol.for("react.client.reference");function Pe(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===ce?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case R:return"Fragment";case G:return"Profiler";case q:return"StrictMode";case x:return"Suspense";case Q:return"SuspenseList";case ye:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case L:return"Portal";case S:return(e.displayName||"Context")+".Provider";case C:return(e._context.displayName||"Context")+".Consumer";case H:var n=e.render;return e=e.displayName,e||(e=n.displayName||n.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case W:return n=e.displayName||null,n!==null?n:Pe(e.type)||"Memo";case ae:n=e._payload,e=e._init;try{return Pe(e(n))}catch{}}return null}var ve=Array.isArray,z=r.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,K=i.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ee={pending:!1,data:null,method:null,action:null},Ae=[],O=-1;function k(e){return{current:e}}function $(e){0>O||(e.current=Ae[O],Ae[O]=null,O--)}function Y(e,n){O++,Ae[O]=e.current,e.current=n}var te=k(null),re=k(null),ue=k(null),We=k(null);function Ue(e,n){switch(Y(ue,n),Y(re,e),Y(te,null),n.nodeType){case 9:case 11:e=(e=n.documentElement)&&(e=e.namespaceURI)?og(e):0;break;default:if(e=n.tagName,n=n.namespaceURI)n=og(n),e=ug(n,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}$(te),Y(te,e)}function St(){$(te),$(re),$(ue)}function Gn(e){e.memoizedState!==null&&Y(We,e);var n=te.current,a=ug(n,e.type);n!==a&&(Y(re,e),Y(te,a))}function Mr(e){re.current===e&&($(te),$(re)),We.current===e&&($(We),ws._currentValue=ee)}var Qe=Object.prototype.hasOwnProperty,qt=t.unstable_scheduleCallback,On=t.unstable_cancelCallback,Di=t.unstable_shouldYield,Li=t.unstable_requestPaint,Tt=t.unstable_now,qa=t.unstable_getCurrentPriorityLevel,ua=t.unstable_ImmediatePriority,Bi=t.unstable_UserBlockingPriority,ca=t.unstable_NormalPriority,xu=t.unstable_LowPriority,Fa=t.unstable_IdlePriority,fa=t.log,Dr=t.unstable_setDisableYieldValue,dn=null,Nt=null;function Rn(e){if(typeof fa=="function"&&Dr(e),Nt&&typeof Nt.setStrictMode=="function")try{Nt.setStrictMode(dn,e)}catch{}}var Mt=Math.clz32?Math.clz32:Va,Ui=Math.log,al=Math.LN2;function Va(e){return e>>>=0,e===0?32:31-(Ui(e)/al|0)|0}var nr=256,Ft=4194304;function Vt(e){var n=e&42;if(n!==0)return n;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194048;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function Lr(e,n,a){var l=e.pendingLanes;if(l===0)return 0;var o=0,f=e.suspendedLanes,g=e.pingedLanes;e=e.warmLanes;var v=l&134217727;return v!==0?(l=v&~f,l!==0?o=Vt(l):(g&=v,g!==0?o=Vt(g):a||(a=v&~e,a!==0&&(o=Vt(a))))):(v=l&~f,v!==0?o=Vt(v):g!==0?o=Vt(g):a||(a=l&~e,a!==0&&(o=Vt(a)))),o===0?0:n!==0&&n!==o&&(n&f)===0&&(f=o&-o,a=n&-n,f>=a||f===32&&(a&4194048)!==0)?n:o}function rr(e,n){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&n)===0}function Ou(e,n){switch(e){case 1:case 2:case 4:case 8:case 64:return n+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return n+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function da(){var e=nr;return nr<<=1,(nr&4194048)===0&&(nr=256),e}function ha(){var e=Ft;return Ft<<=1,(Ft&62914560)===0&&(Ft=4194304),e}function Hi(e){for(var n=[],a=0;31>a;a++)n.push(e);return n}function wn(e,n){e.pendingLanes|=n,n!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Ru(e,n,a,l,o,f){var g=e.pendingLanes;e.pendingLanes=a,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=a,e.entangledLanes&=a,e.errorRecoveryDisabledLanes&=a,e.shellSuspendCounter=0;var v=e.entanglements,T=e.expirationTimes,B=e.hiddenUpdates;for(a=g&~a;0<a;){var F=31-Mt(a),P=1<<F;v[F]=0,T[F]=-1;var j=B[F];if(j!==null)for(B[F]=null,F=0;F<j.length;F++){var I=j[F];I!==null&&(I.lane&=-536870913)}a&=~P}l!==0&&il(e,l,0),f!==0&&o===0&&e.tag!==0&&(e.suspendedLanes|=f&~(g&~n))}function il(e,n,a){e.pendingLanes|=n,e.suspendedLanes&=~n;var l=31-Mt(n);e.entangledLanes|=n,e.entanglements[l]=e.entanglements[l]|1073741824|a&4194090}function rt(e,n){var a=e.entangledLanes|=n;for(e=e.entanglements;a;){var l=31-Mt(a),o=1<<l;o&n|e[l]&n&&(e[l]|=n),a&=~o}}function kn(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function ji(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function Ii(){var e=K.p;return e!==0?e:(e=window.event,e===void 0?32:wg(e.type))}function zi(e,n){var a=K.p;try{return K.p=e,n()}finally{K.p=a}}var Cn=Math.random().toString(36).slice(2),ht="__reactFiber$"+Cn,Dt="__reactProps$"+Cn,At="__reactContainer$"+Cn,qn="__reactEvents$"+Cn,sl="__reactListeners$"+Cn,ll="__reactHandles$"+Cn,Pa="__reactResources$"+Cn,Br="__reactMarker$"+Cn;function Kt(e){delete e[ht],delete e[Dt],delete e[qn],delete e[sl],delete e[ll]}function ar(e){var n=e[ht];if(n)return n;for(var a=e.parentNode;a;){if(n=a[At]||a[ht]){if(a=n.alternate,n.child!==null||a!==null&&a.child!==null)for(e=hg(e);e!==null;){if(a=e[ht])return a;e=hg(e)}return n}e=a,a=e.parentNode}return null}function ir(e){if(e=e[ht]||e[At]){var n=e.tag;if(n===5||n===6||n===13||n===26||n===27||n===3)return e}return null}function Ur(e){var n=e.tag;if(n===5||n===26||n===27||n===6)return e.stateNode;throw Error(s(33))}function sr(e){var n=e[Pa];return n||(n=e[Pa]={hoistableStyles:new Map,hoistableScripts:new Map}),n}function lt(e){e[Br]=!0}var le=new Set,N={};function X(e,n){J(e,n),J(e+"Capture",n)}function J(e,n){for(N[e]=n,e=0;e<n.length;e++)le.add(n[e])}var Fe=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),mt={},Je={};function Lt(e){return Qe.call(Je,e)?!0:Qe.call(mt,e)?!1:Fe.test(e)?Je[e]=!0:(mt[e]=!0,!1)}function Pt(e,n,a){if(Lt(n))if(a===null)e.removeAttribute(n);else{switch(typeof a){case"undefined":case"function":case"symbol":e.removeAttribute(n);return;case"boolean":var l=n.toLowerCase().slice(0,5);if(l!=="data-"&&l!=="aria-"){e.removeAttribute(n);return}}e.setAttribute(n,""+a)}}function Fn(e,n,a){if(a===null)e.removeAttribute(n);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(n);return}e.setAttribute(n,""+a)}}function $t(e,n,a,l){if(l===null)e.removeAttribute(a);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(a);return}e.setAttributeNS(n,a,""+l)}}var ot,Gi;function lr(e){if(ot===void 0)try{throw Error()}catch(a){var n=a.stack.trim().match(/\n( *(at )?)/);ot=n&&n[1]||"",Gi=-1<a.stack.indexOf(`
42
42
  at`)?" (<anonymous>)":-1<a.stack.indexOf("@")?"@unknown:0:0":""}return`
43
- `+lt+e+Gi}var Ru=!1;function wu(e,n){if(!e||Ru)return"";Ru=!0;var a=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var l={DetermineComponentFrameRoot:function(){try{if(n){var P=function(){throw Error()};if(Object.defineProperty(P.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(P,[])}catch(I){var j=I}Reflect.construct(e,[],P)}else{try{P.call()}catch(I){j=I}e.call(P.prototype)}}else{try{throw Error()}catch(I){j=I}(P=e())&&typeof P.catch=="function"&&P.catch(function(){})}}catch(I){if(I&&j&&typeof I.stack=="string")return[I.stack,j.stack]}return[null,null]}};l.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var o=Object.getOwnPropertyDescriptor(l.DetermineComponentFrameRoot,"name");o&&o.configurable&&Object.defineProperty(l.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var f=l.DetermineComponentFrameRoot(),g=f[0],v=f[1];if(g&&v){var T=g.split(`
44
- `),L=v.split(`
45
- `);for(o=l=0;l<T.length&&!T[l].includes("DetermineComponentFrameRoot");)l++;for(;o<L.length&&!L[o].includes("DetermineComponentFrameRoot");)o++;if(l===T.length||o===L.length)for(l=T.length-1,o=L.length-1;1<=l&&0<=o&&T[l]!==L[o];)o--;for(;1<=l&&0<=o;l--,o--)if(T[l]!==L[o]){if(l!==1||o!==1)do if(l--,o--,0>o||T[l]!==L[o]){var F=`
46
- `+T[l].replace(" at new "," at ");return e.displayName&&F.includes("<anonymous>")&&(F=F.replace("<anonymous>",e.displayName)),F}while(1<=l&&0<=o);break}}}finally{Ru=!1,Error.prepareStackTrace=a}return(a=e?e.displayName||e.name:"")?lr(a):""}function M_(e){switch(e.tag){case 26:case 27:case 5:return lr(e.type);case 16:return lr("Lazy");case 13:return lr("Suspense");case 19:return lr("SuspenseList");case 0:case 15:return wu(e.type,!1);case 11:return wu(e.type.render,!1);case 1:return wu(e.type,!0);case 31:return lr("Activity");default:return""}}function nm(e){try{var n="";do n+=M_(e),e=e.return;while(e);return n}catch(a){return`
43
+ `+ot+e+Gi}var wu=!1;function Cu(e,n){if(!e||wu)return"";wu=!0;var a=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var l={DetermineComponentFrameRoot:function(){try{if(n){var P=function(){throw Error()};if(Object.defineProperty(P.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(P,[])}catch(I){var j=I}Reflect.construct(e,[],P)}else{try{P.call()}catch(I){j=I}e.call(P.prototype)}}else{try{throw Error()}catch(I){j=I}(P=e())&&typeof P.catch=="function"&&P.catch(function(){})}}catch(I){if(I&&j&&typeof I.stack=="string")return[I.stack,j.stack]}return[null,null]}};l.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var o=Object.getOwnPropertyDescriptor(l.DetermineComponentFrameRoot,"name");o&&o.configurable&&Object.defineProperty(l.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var f=l.DetermineComponentFrameRoot(),g=f[0],v=f[1];if(g&&v){var T=g.split(`
44
+ `),B=v.split(`
45
+ `);for(o=l=0;l<T.length&&!T[l].includes("DetermineComponentFrameRoot");)l++;for(;o<B.length&&!B[o].includes("DetermineComponentFrameRoot");)o++;if(l===T.length||o===B.length)for(l=T.length-1,o=B.length-1;1<=l&&0<=o&&T[l]!==B[o];)o--;for(;1<=l&&0<=o;l--,o--)if(T[l]!==B[o]){if(l!==1||o!==1)do if(l--,o--,0>o||T[l]!==B[o]){var F=`
46
+ `+T[l].replace(" at new "," at ");return e.displayName&&F.includes("<anonymous>")&&(F=F.replace("<anonymous>",e.displayName)),F}while(1<=l&&0<=o);break}}}finally{wu=!1,Error.prepareStackTrace=a}return(a=e?e.displayName||e.name:"")?lr(a):""}function D_(e){switch(e.tag){case 26:case 27:case 5:return lr(e.type);case 16:return lr("Lazy");case 13:return lr("Suspense");case 19:return lr("SuspenseList");case 0:case 15:return Cu(e.type,!1);case 11:return Cu(e.type.render,!1);case 1:return Cu(e.type,!0);case 31:return lr("Activity");default:return""}}function nm(e){try{var n="";do n+=D_(e),e=e.return;while(e);return n}catch(a){return`
47
47
  Error generating stack: `+a.message+`
48
- `+a.stack}}function hn(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function rm(e){var n=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(n==="checkbox"||n==="radio")}function D_(e){var n=rm(e)?"checked":"value",a=Object.getOwnPropertyDescriptor(e.constructor.prototype,n),l=""+e[n];if(!e.hasOwnProperty(n)&&typeof a<"u"&&typeof a.get=="function"&&typeof a.set=="function"){var o=a.get,f=a.set;return Object.defineProperty(e,n,{configurable:!0,get:function(){return o.call(this)},set:function(g){l=""+g,f.call(this,g)}}),Object.defineProperty(e,n,{enumerable:a.enumerable}),{getValue:function(){return l},setValue:function(g){l=""+g},stopTracking:function(){e._valueTracker=null,delete e[n]}}}}function ol(e){e._valueTracker||(e._valueTracker=D_(e))}function am(e){if(!e)return!1;var n=e._valueTracker;if(!n)return!0;var a=n.getValue(),l="";return e&&(l=rm(e)?e.checked?"true":"false":e.value),e=l,e!==a?(n.setValue(e),!0):!1}function ul(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var L_=/[\n"\\]/g;function mn(e){return e.replace(L_,function(n){return"\\"+n.charCodeAt(0).toString(16)+" "})}function Cu(e,n,a,l,o,f,g,v){e.name="",g!=null&&typeof g!="function"&&typeof g!="symbol"&&typeof g!="boolean"?e.type=g:e.removeAttribute("type"),n!=null?g==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+hn(n)):e.value!==""+hn(n)&&(e.value=""+hn(n)):g!=="submit"&&g!=="reset"||e.removeAttribute("value"),n!=null?Nu(e,g,hn(n)):a!=null?Nu(e,g,hn(a)):l!=null&&e.removeAttribute("value"),o==null&&f!=null&&(e.defaultChecked=!!f),o!=null&&(e.checked=o&&typeof o!="function"&&typeof o!="symbol"),v!=null&&typeof v!="function"&&typeof v!="symbol"&&typeof v!="boolean"?e.name=""+hn(v):e.removeAttribute("name")}function im(e,n,a,l,o,f,g,v){if(f!=null&&typeof f!="function"&&typeof f!="symbol"&&typeof f!="boolean"&&(e.type=f),n!=null||a!=null){if(!(f!=="submit"&&f!=="reset"||n!=null))return;a=a!=null?""+hn(a):"",n=n!=null?""+hn(n):a,v||n===e.value||(e.value=n),e.defaultValue=n}l=l??o,l=typeof l!="function"&&typeof l!="symbol"&&!!l,e.checked=v?e.checked:!!l,e.defaultChecked=!!l,g!=null&&typeof g!="function"&&typeof g!="symbol"&&typeof g!="boolean"&&(e.name=g)}function Nu(e,n,a){n==="number"&&ul(e.ownerDocument)===e||e.defaultValue===""+a||(e.defaultValue=""+a)}function Ya(e,n,a,l){if(e=e.options,n){n={};for(var o=0;o<a.length;o++)n["$"+a[o]]=!0;for(a=0;a<e.length;a++)o=n.hasOwnProperty("$"+e[a].value),e[a].selected!==o&&(e[a].selected=o),o&&l&&(e[a].defaultSelected=!0)}else{for(a=""+hn(a),n=null,o=0;o<e.length;o++){if(e[o].value===a){e[o].selected=!0,l&&(e[o].defaultSelected=!0);return}n!==null||e[o].disabled||(n=e[o])}n!==null&&(n.selected=!0)}}function sm(e,n,a){if(n!=null&&(n=""+hn(n),n!==e.value&&(e.value=n),a==null)){e.defaultValue!==n&&(e.defaultValue=n);return}e.defaultValue=a!=null?""+hn(a):""}function lm(e,n,a,l){if(n==null){if(l!=null){if(a!=null)throw Error(s(92));if(ve(l)){if(1<l.length)throw Error(s(93));l=l[0]}a=l}a==null&&(a=""),n=a}a=hn(n),e.defaultValue=a,l=e.textContent,l===a&&l!==""&&l!==null&&(e.value=l)}function Xa(e,n){if(n){var a=e.firstChild;if(a&&a===e.lastChild&&a.nodeType===3){a.nodeValue=n;return}}e.textContent=n}var B_=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function om(e,n,a){var l=n.indexOf("--")===0;a==null||typeof a=="boolean"||a===""?l?e.setProperty(n,""):n==="float"?e.cssFloat="":e[n]="":l?e.setProperty(n,a):typeof a!="number"||a===0||B_.has(n)?n==="float"?e.cssFloat=a:e[n]=(""+a).trim():e[n]=a+"px"}function um(e,n,a){if(n!=null&&typeof n!="object")throw Error(s(62));if(e=e.style,a!=null){for(var l in a)!a.hasOwnProperty(l)||n!=null&&n.hasOwnProperty(l)||(l.indexOf("--")===0?e.setProperty(l,""):l==="float"?e.cssFloat="":e[l]="");for(var o in n)l=n[o],n.hasOwnProperty(o)&&a[o]!==l&&om(e,o,l)}else for(var f in n)n.hasOwnProperty(f)&&om(e,f,n[f])}function Mu(e){if(e.indexOf("-")===-1)return!1;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var U_=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),H_=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function cl(e){return H_.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}var Du=null;function Lu(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Za=null,Qa=null;function cm(e){var n=ir(e);if(n&&(e=n.stateNode)){var a=e[Dt]||null;e:switch(e=n.stateNode,n.type){case"input":if(Cu(e,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name),n=a.name,a.type==="radio"&&n!=null){for(a=e;a.parentNode;)a=a.parentNode;for(a=a.querySelectorAll('input[name="'+mn(""+n)+'"][type="radio"]'),n=0;n<a.length;n++){var l=a[n];if(l!==e&&l.form===e.form){var o=l[Dt]||null;if(!o)throw Error(s(90));Cu(l,o.value,o.defaultValue,o.defaultValue,o.checked,o.defaultChecked,o.type,o.name)}}for(n=0;n<a.length;n++)l=a[n],l.form===e.form&&am(l)}break e;case"textarea":sm(e,a.value,a.defaultValue);break e;case"select":n=a.value,n!=null&&Ya(e,!!a.multiple,n,!1)}}}var Bu=!1;function fm(e,n,a){if(Bu)return e(n,a);Bu=!0;try{var l=e(n);return l}finally{if(Bu=!1,(Za!==null||Qa!==null)&&(Ql(),Za&&(n=Za,e=Qa,Qa=Za=null,cm(n),e)))for(n=0;n<e.length;n++)cm(e[n])}}function ki(e,n){var a=e.stateNode;if(a===null)return null;var l=a[Dt]||null;if(l===null)return null;a=l[n];e:switch(n){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(l=!l.disabled)||(e=e.type,l=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!l;break e;default:e=!1}if(e)return null;if(a&&typeof a!="function")throw Error(s(231,n,typeof a));return a}var or=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Uu=!1;if(or)try{var qi={};Object.defineProperty(qi,"passive",{get:function(){Uu=!0}}),window.addEventListener("test",qi,qi),window.removeEventListener("test",qi,qi)}catch{Uu=!1}var Hr=null,Hu=null,fl=null;function dm(){if(fl)return fl;var e,n=Hu,a=n.length,l,o="value"in Hr?Hr.value:Hr.textContent,f=o.length;for(e=0;e<a&&n[e]===o[e];e++);var g=a-e;for(l=1;l<=g&&n[a-l]===o[f-l];l++);return fl=o.slice(e,1<l?1-l:void 0)}function dl(e){var n=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&n===13&&(e=13)):e=n,e===10&&(e=13),32<=e||e===13?e:0}function hl(){return!0}function hm(){return!1}function Yt(e){function n(a,l,o,f,g){this._reactName=a,this._targetInst=o,this.type=l,this.nativeEvent=f,this.target=g,this.currentTarget=null;for(var v in e)e.hasOwnProperty(v)&&(a=e[v],this[v]=a?a(f):f[v]);return this.isDefaultPrevented=(f.defaultPrevented!=null?f.defaultPrevented:f.returnValue===!1)?hl:hm,this.isPropagationStopped=hm,this}return b(n.prototype,{preventDefault:function(){this.defaultPrevented=!0;var a=this.nativeEvent;a&&(a.preventDefault?a.preventDefault():typeof a.returnValue!="unknown"&&(a.returnValue=!1),this.isDefaultPrevented=hl)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():typeof a.cancelBubble!="unknown"&&(a.cancelBubble=!0),this.isPropagationStopped=hl)},persist:function(){},isPersistent:hl}),n}var ma={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},ml=Yt(ma),Fi=b({},ma,{view:0,detail:0}),j_=Yt(Fi),ju,Iu,Vi,pl=b({},Fi,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Gu,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==Vi&&(Vi&&e.type==="mousemove"?(ju=e.screenX-Vi.screenX,Iu=e.screenY-Vi.screenY):Iu=ju=0,Vi=e),ju)},movementY:function(e){return"movementY"in e?e.movementY:Iu}}),mm=Yt(pl),I_=b({},pl,{dataTransfer:0}),z_=Yt(I_),G_=b({},Fi,{relatedTarget:0}),zu=Yt(G_),k_=b({},ma,{animationName:0,elapsedTime:0,pseudoElement:0}),q_=Yt(k_),F_=b({},ma,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),V_=Yt(F_),P_=b({},ma,{data:0}),pm=Yt(P_),Y_={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},X_={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"},Z_={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Q_(e){var n=this.nativeEvent;return n.getModifierState?n.getModifierState(e):(e=Z_[e])?!!n[e]:!1}function Gu(){return Q_}var K_=b({},Fi,{key:function(e){if(e.key){var n=Y_[e.key]||e.key;if(n!=="Unidentified")return n}return e.type==="keypress"?(e=dl(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?X_[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Gu,charCode:function(e){return e.type==="keypress"?dl(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?dl(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),$_=Yt(K_),W_=b({},pl,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),gm=Yt(W_),J_=b({},Fi,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Gu}),eE=Yt(J_),tE=b({},ma,{propertyName:0,elapsedTime:0,pseudoElement:0}),nE=Yt(tE),rE=b({},pl,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),aE=Yt(rE),iE=b({},ma,{newState:0,oldState:0}),sE=Yt(iE),lE=[9,13,27,32],ku=or&&"CompositionEvent"in window,Pi=null;or&&"documentMode"in document&&(Pi=document.documentMode);var oE=or&&"TextEvent"in window&&!Pi,ym=or&&(!ku||Pi&&8<Pi&&11>=Pi),bm=" ",vm=!1;function _m(e,n){switch(e){case"keyup":return lE.indexOf(n.keyCode)!==-1;case"keydown":return n.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Em(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Ka=!1;function uE(e,n){switch(e){case"compositionend":return Em(n);case"keypress":return n.which!==32?null:(vm=!0,bm);case"textInput":return e=n.data,e===bm&&vm?null:e;default:return null}}function cE(e,n){if(Ka)return e==="compositionend"||!ku&&_m(e,n)?(e=dm(),fl=Hu=Hr=null,Ka=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(n.ctrlKey||n.altKey||n.metaKey)||n.ctrlKey&&n.altKey){if(n.char&&1<n.char.length)return n.char;if(n.which)return String.fromCharCode(n.which)}return null;case"compositionend":return ym&&n.locale!=="ko"?null:n.data;default:return null}}var fE={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Sm(e){var n=e&&e.nodeName&&e.nodeName.toLowerCase();return n==="input"?!!fE[e.type]:n==="textarea"}function Tm(e,n,a,l){Za?Qa?Qa.push(l):Qa=[l]:Za=l,n=to(n,"onChange"),0<n.length&&(a=new ml("onChange","change",null,a,l),e.push({event:a,listeners:n}))}var Yi=null,Xi=null;function dE(e){rg(e,0)}function gl(e){var n=Ur(e);if(am(n))return e}function Am(e,n){if(e==="change")return n}var Om=!1;if(or){var qu;if(or){var Fu="oninput"in document;if(!Fu){var xm=document.createElement("div");xm.setAttribute("oninput","return;"),Fu=typeof xm.oninput=="function"}qu=Fu}else qu=!1;Om=qu&&(!document.documentMode||9<document.documentMode)}function Rm(){Yi&&(Yi.detachEvent("onpropertychange",wm),Xi=Yi=null)}function wm(e){if(e.propertyName==="value"&&gl(Xi)){var n=[];Tm(n,Xi,e,Lu(e)),fm(dE,n)}}function hE(e,n,a){e==="focusin"?(Rm(),Yi=n,Xi=a,Yi.attachEvent("onpropertychange",wm)):e==="focusout"&&Rm()}function mE(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return gl(Xi)}function pE(e,n){if(e==="click")return gl(n)}function gE(e,n){if(e==="input"||e==="change")return gl(n)}function yE(e,n){return e===n&&(e!==0||1/e===1/n)||e!==e&&n!==n}var Wt=typeof Object.is=="function"?Object.is:yE;function Zi(e,n){if(Wt(e,n))return!0;if(typeof e!="object"||e===null||typeof n!="object"||n===null)return!1;var a=Object.keys(e),l=Object.keys(n);if(a.length!==l.length)return!1;for(l=0;l<a.length;l++){var o=a[l];if(!Qe.call(n,o)||!Wt(e[o],n[o]))return!1}return!0}function Cm(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Nm(e,n){var a=Cm(e);e=0;for(var l;a;){if(a.nodeType===3){if(l=e+a.textContent.length,e<=n&&l>=n)return{node:a,offset:n-e};e=l}e:{for(;a;){if(a.nextSibling){a=a.nextSibling;break e}a=a.parentNode}a=void 0}a=Cm(a)}}function Mm(e,n){return e&&n?e===n?!0:e&&e.nodeType===3?!1:n&&n.nodeType===3?Mm(e,n.parentNode):"contains"in e?e.contains(n):e.compareDocumentPosition?!!(e.compareDocumentPosition(n)&16):!1:!1}function Dm(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var n=ul(e.document);n instanceof e.HTMLIFrameElement;){try{var a=typeof n.contentWindow.location.href=="string"}catch{a=!1}if(a)e=n.contentWindow;else break;n=ul(e.document)}return n}function Vu(e){var n=e&&e.nodeName&&e.nodeName.toLowerCase();return n&&(n==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||n==="textarea"||e.contentEditable==="true")}var bE=or&&"documentMode"in document&&11>=document.documentMode,$a=null,Pu=null,Qi=null,Yu=!1;function Lm(e,n,a){var l=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;Yu||$a==null||$a!==ul(l)||(l=$a,"selectionStart"in l&&Vu(l)?l={start:l.selectionStart,end:l.selectionEnd}:(l=(l.ownerDocument&&l.ownerDocument.defaultView||window).getSelection(),l={anchorNode:l.anchorNode,anchorOffset:l.anchorOffset,focusNode:l.focusNode,focusOffset:l.focusOffset}),Qi&&Zi(Qi,l)||(Qi=l,l=to(Pu,"onSelect"),0<l.length&&(n=new ml("onSelect","select",null,n,a),e.push({event:n,listeners:l}),n.target=$a)))}function pa(e,n){var a={};return a[e.toLowerCase()]=n.toLowerCase(),a["Webkit"+e]="webkit"+n,a["Moz"+e]="moz"+n,a}var Wa={animationend:pa("Animation","AnimationEnd"),animationiteration:pa("Animation","AnimationIteration"),animationstart:pa("Animation","AnimationStart"),transitionrun:pa("Transition","TransitionRun"),transitionstart:pa("Transition","TransitionStart"),transitioncancel:pa("Transition","TransitionCancel"),transitionend:pa("Transition","TransitionEnd")},Xu={},Bm={};or&&(Bm=document.createElement("div").style,"AnimationEvent"in window||(delete Wa.animationend.animation,delete Wa.animationiteration.animation,delete Wa.animationstart.animation),"TransitionEvent"in window||delete Wa.transitionend.transition);function ga(e){if(Xu[e])return Xu[e];if(!Wa[e])return e;var n=Wa[e],a;for(a in n)if(n.hasOwnProperty(a)&&a in Bm)return Xu[e]=n[a];return e}var Um=ga("animationend"),Hm=ga("animationiteration"),jm=ga("animationstart"),vE=ga("transitionrun"),_E=ga("transitionstart"),EE=ga("transitioncancel"),Im=ga("transitionend"),zm=new Map,Zu="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");Zu.push("scrollEnd");function Nn(e,n){zm.set(e,n),X(n,[e])}var Gm=new WeakMap;function pn(e,n){if(typeof e=="object"&&e!==null){var a=Gm.get(e);return a!==void 0?a:(n={value:e,source:n,stack:nm(n)},Gm.set(e,n),n)}return{value:e,source:n,stack:nm(n)}}var gn=[],Ja=0,Qu=0;function yl(){for(var e=Ja,n=Qu=Ja=0;n<e;){var a=gn[n];gn[n++]=null;var l=gn[n];gn[n++]=null;var o=gn[n];gn[n++]=null;var f=gn[n];if(gn[n++]=null,l!==null&&o!==null){var g=l.pending;g===null?o.next=o:(o.next=g.next,g.next=o),l.pending=o}f!==0&&km(a,o,f)}}function bl(e,n,a,l){gn[Ja++]=e,gn[Ja++]=n,gn[Ja++]=a,gn[Ja++]=l,Qu|=l,e.lanes|=l,e=e.alternate,e!==null&&(e.lanes|=l)}function Ku(e,n,a,l){return bl(e,n,a,l),vl(e)}function ei(e,n){return bl(e,null,null,n),vl(e)}function km(e,n,a){e.lanes|=a;var l=e.alternate;l!==null&&(l.lanes|=a);for(var o=!1,f=e.return;f!==null;)f.childLanes|=a,l=f.alternate,l!==null&&(l.childLanes|=a),f.tag===22&&(e=f.stateNode,e===null||e._visibility&1||(o=!0)),e=f,f=f.return;return e.tag===3?(f=e.stateNode,o&&n!==null&&(o=31-Mt(a),e=f.hiddenUpdates,l=e[o],l===null?e[o]=[n]:l.push(n),n.lane=a|536870912),f):null}function vl(e){if(50<_s)throw _s=0,nf=null,Error(s(185));for(var n=e.return;n!==null;)e=n,n=e.return;return e.tag===3?e.stateNode:null}var ti={};function SE(e,n,a,l){this.tag=e,this.key=a,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=n,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=l,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Jt(e,n,a,l){return new SE(e,n,a,l)}function $u(e){return e=e.prototype,!(!e||!e.isReactComponent)}function ur(e,n){var a=e.alternate;return a===null?(a=Jt(e.tag,n,e.key,e.mode),a.elementType=e.elementType,a.type=e.type,a.stateNode=e.stateNode,a.alternate=e,e.alternate=a):(a.pendingProps=n,a.type=e.type,a.flags=0,a.subtreeFlags=0,a.deletions=null),a.flags=e.flags&65011712,a.childLanes=e.childLanes,a.lanes=e.lanes,a.child=e.child,a.memoizedProps=e.memoizedProps,a.memoizedState=e.memoizedState,a.updateQueue=e.updateQueue,n=e.dependencies,a.dependencies=n===null?null:{lanes:n.lanes,firstContext:n.firstContext},a.sibling=e.sibling,a.index=e.index,a.ref=e.ref,a.refCleanup=e.refCleanup,a}function qm(e,n){e.flags&=65011714;var a=e.alternate;return a===null?(e.childLanes=0,e.lanes=n,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=a.childLanes,e.lanes=a.lanes,e.child=a.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=a.memoizedProps,e.memoizedState=a.memoizedState,e.updateQueue=a.updateQueue,e.type=a.type,n=a.dependencies,e.dependencies=n===null?null:{lanes:n.lanes,firstContext:n.firstContext}),e}function _l(e,n,a,l,o,f){var g=0;if(l=e,typeof e=="function")$u(e)&&(g=1);else if(typeof e=="string")g=A2(e,a,te.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case ye:return e=Jt(31,a,n,o),e.elementType=ye,e.lanes=f,e;case R:return ya(a.children,o,f,n);case q:g=8,o|=24;break;case G:return e=Jt(12,a,n,o|2),e.elementType=G,e.lanes=f,e;case O:return e=Jt(13,a,n,o),e.elementType=O,e.lanes=f,e;case Q:return e=Jt(19,a,n,o),e.elementType=Q,e.lanes=f,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case _:case S:g=10;break e;case C:g=9;break e;case H:g=11;break e;case W:g=14;break e;case ae:g=16,l=null;break e}g=29,a=Error(s(130,e===null?"null":typeof e,"")),l=null}return n=Jt(g,a,n,o),n.elementType=e,n.type=l,n.lanes=f,n}function ya(e,n,a,l){return e=Jt(7,e,l,n),e.lanes=a,e}function Wu(e,n,a){return e=Jt(6,e,null,n),e.lanes=a,e}function Ju(e,n,a){return n=Jt(4,e.children!==null?e.children:[],e.key,n),n.lanes=a,n.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},n}var ni=[],ri=0,El=null,Sl=0,yn=[],bn=0,ba=null,cr=1,fr="";function va(e,n){ni[ri++]=Sl,ni[ri++]=El,El=e,Sl=n}function Fm(e,n,a){yn[bn++]=cr,yn[bn++]=fr,yn[bn++]=ba,ba=e;var l=cr;e=fr;var o=32-Mt(l)-1;l&=~(1<<o),a+=1;var f=32-Mt(n)+o;if(30<f){var g=o-o%5;f=(l&(1<<g)-1).toString(32),l>>=g,o-=g,cr=1<<32-Mt(n)+o|a<<o|l,fr=f+e}else cr=1<<f|a<<o|l,fr=e}function ec(e){e.return!==null&&(va(e,1),Fm(e,1,0))}function tc(e){for(;e===El;)El=ni[--ri],ni[ri]=null,Sl=ni[--ri],ni[ri]=null;for(;e===ba;)ba=yn[--bn],yn[bn]=null,fr=yn[--bn],yn[bn]=null,cr=yn[--bn],yn[bn]=null}var Ht=null,et=null,Le=!1,_a=null,Vn=!1,nc=Error(s(519));function Ea(e){var n=Error(s(418,""));throw Wi(pn(n,e)),nc}function Vm(e){var n=e.stateNode,a=e.type,l=e.memoizedProps;switch(n[ht]=e,n[Dt]=l,a){case"dialog":xe("cancel",n),xe("close",n);break;case"iframe":case"object":case"embed":xe("load",n);break;case"video":case"audio":for(a=0;a<Ss.length;a++)xe(Ss[a],n);break;case"source":xe("error",n);break;case"img":case"image":case"link":xe("error",n),xe("load",n);break;case"details":xe("toggle",n);break;case"input":xe("invalid",n),im(n,l.value,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name,!0),ol(n);break;case"select":xe("invalid",n);break;case"textarea":xe("invalid",n),lm(n,l.value,l.defaultValue,l.children),ol(n)}a=l.children,typeof a!="string"&&typeof a!="number"&&typeof a!="bigint"||n.textContent===""+a||l.suppressHydrationWarning===!0||lg(n.textContent,a)?(l.popover!=null&&(xe("beforetoggle",n),xe("toggle",n)),l.onScroll!=null&&xe("scroll",n),l.onScrollEnd!=null&&xe("scrollend",n),l.onClick!=null&&(n.onclick=no),n=!0):n=!1,n||Ea(e)}function Pm(e){for(Ht=e.return;Ht;)switch(Ht.tag){case 5:case 13:Vn=!1;return;case 27:case 3:Vn=!0;return;default:Ht=Ht.return}}function Ki(e){if(e!==Ht)return!1;if(!Le)return Pm(e),Le=!0,!1;var n=e.tag,a;if((a=n!==3&&n!==27)&&((a=n===5)&&(a=e.type,a=!(a!=="form"&&a!=="button")||vf(e.type,e.memoizedProps)),a=!a),a&&et&&Ea(e),Pm(e),n===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(s(317));e:{for(e=e.nextSibling,n=0;e;){if(e.nodeType===8)if(a=e.data,a==="/$"){if(n===0){et=Dn(e.nextSibling);break e}n--}else a!=="$"&&a!=="$!"&&a!=="$?"||n++;e=e.nextSibling}et=null}}else n===27?(n=et,Wr(e.type)?(e=Tf,Tf=null,et=e):et=n):et=Ht?Dn(e.stateNode.nextSibling):null;return!0}function $i(){et=Ht=null,Le=!1}function Ym(){var e=_a;return e!==null&&(Qt===null?Qt=e:Qt.push.apply(Qt,e),_a=null),e}function Wi(e){_a===null?_a=[e]:_a.push(e)}var rc=k(null),Sa=null,dr=null;function jr(e,n,a){Y(rc,n._currentValue),n._currentValue=a}function hr(e){e._currentValue=rc.current,$(rc)}function ac(e,n,a){for(;e!==null;){var l=e.alternate;if((e.childLanes&n)!==n?(e.childLanes|=n,l!==null&&(l.childLanes|=n)):l!==null&&(l.childLanes&n)!==n&&(l.childLanes|=n),e===a)break;e=e.return}}function ic(e,n,a,l){var o=e.child;for(o!==null&&(o.return=e);o!==null;){var f=o.dependencies;if(f!==null){var g=o.child;f=f.firstContext;e:for(;f!==null;){var v=f;f=o;for(var T=0;T<n.length;T++)if(v.context===n[T]){f.lanes|=a,v=f.alternate,v!==null&&(v.lanes|=a),ac(f.return,a,e),l||(g=null);break e}f=v.next}}else if(o.tag===18){if(g=o.return,g===null)throw Error(s(341));g.lanes|=a,f=g.alternate,f!==null&&(f.lanes|=a),ac(g,a,e),g=null}else g=o.child;if(g!==null)g.return=o;else for(g=o;g!==null;){if(g===e){g=null;break}if(o=g.sibling,o!==null){o.return=g.return,g=o;break}g=g.return}o=g}}function Ji(e,n,a,l){e=null;for(var o=n,f=!1;o!==null;){if(!f){if((o.flags&524288)!==0)f=!0;else if((o.flags&262144)!==0)break}if(o.tag===10){var g=o.alternate;if(g===null)throw Error(s(387));if(g=g.memoizedProps,g!==null){var v=o.type;Wt(o.pendingProps.value,g.value)||(e!==null?e.push(v):e=[v])}}else if(o===We.current){if(g=o.alternate,g===null)throw Error(s(387));g.memoizedState.memoizedState!==o.memoizedState.memoizedState&&(e!==null?e.push(ws):e=[ws])}o=o.return}e!==null&&ic(n,e,a,l),n.flags|=262144}function Tl(e){for(e=e.firstContext;e!==null;){if(!Wt(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Ta(e){Sa=e,dr=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function Bt(e){return Xm(Sa,e)}function Al(e,n){return Sa===null&&Ta(e),Xm(e,n)}function Xm(e,n){var a=n._currentValue;if(n={context:n,memoizedValue:a,next:null},dr===null){if(e===null)throw Error(s(308));dr=n,e.dependencies={lanes:0,firstContext:n},e.flags|=524288}else dr=dr.next=n;return a}var TE=typeof AbortController<"u"?AbortController:function(){var e=[],n=this.signal={aborted:!1,addEventListener:function(a,l){e.push(l)}};this.abort=function(){n.aborted=!0,e.forEach(function(a){return a()})}},AE=t.unstable_scheduleCallback,OE=t.unstable_NormalPriority,pt={$$typeof:S,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function sc(){return{controller:new TE,data:new Map,refCount:0}}function es(e){e.refCount--,e.refCount===0&&AE(OE,function(){e.controller.abort()})}var ts=null,lc=0,ai=0,ii=null;function xE(e,n){if(ts===null){var a=ts=[];lc=0,ai=cf(),ii={status:"pending",value:void 0,then:function(l){a.push(l)}}}return lc++,n.then(Zm,Zm),n}function Zm(){if(--lc===0&&ts!==null){ii!==null&&(ii.status="fulfilled");var e=ts;ts=null,ai=0,ii=null;for(var n=0;n<e.length;n++)(0,e[n])()}}function RE(e,n){var a=[],l={status:"pending",value:null,reason:null,then:function(o){a.push(o)}};return e.then(function(){l.status="fulfilled",l.value=n;for(var o=0;o<a.length;o++)(0,a[o])(n)},function(o){for(l.status="rejected",l.reason=o,o=0;o<a.length;o++)(0,a[o])(void 0)}),l}var Qm=z.S;z.S=function(e,n){typeof n=="object"&&n!==null&&typeof n.then=="function"&&xE(e,n),Qm!==null&&Qm(e,n)};var Aa=k(null);function oc(){var e=Aa.current;return e!==null?e:Ve.pooledCache}function Ol(e,n){n===null?Y(Aa,Aa.current):Y(Aa,n.pool)}function Km(){var e=oc();return e===null?null:{parent:pt._currentValue,pool:e}}var ns=Error(s(460)),$m=Error(s(474)),xl=Error(s(542)),uc={then:function(){}};function Wm(e){return e=e.status,e==="fulfilled"||e==="rejected"}function Rl(){}function Jm(e,n,a){switch(a=e[a],a===void 0?e.push(n):a!==n&&(n.then(Rl,Rl),n=a),n.status){case"fulfilled":return n.value;case"rejected":throw e=n.reason,t0(e),e;default:if(typeof n.status=="string")n.then(Rl,Rl);else{if(e=Ve,e!==null&&100<e.shellSuspendCounter)throw Error(s(482));e=n,e.status="pending",e.then(function(l){if(n.status==="pending"){var o=n;o.status="fulfilled",o.value=l}},function(l){if(n.status==="pending"){var o=n;o.status="rejected",o.reason=l}})}switch(n.status){case"fulfilled":return n.value;case"rejected":throw e=n.reason,t0(e),e}throw rs=n,ns}}var rs=null;function e0(){if(rs===null)throw Error(s(459));var e=rs;return rs=null,e}function t0(e){if(e===ns||e===xl)throw Error(s(483))}var Ir=!1;function cc(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function fc(e,n){e=e.updateQueue,n.updateQueue===e&&(n.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function zr(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Gr(e,n,a){var l=e.updateQueue;if(l===null)return null;if(l=l.shared,(He&2)!==0){var o=l.pending;return o===null?n.next=n:(n.next=o.next,o.next=n),l.pending=n,n=vl(e),km(e,null,a),n}return bl(e,l,n,a),vl(e)}function as(e,n,a){if(n=n.updateQueue,n!==null&&(n=n.shared,(a&4194048)!==0)){var l=n.lanes;l&=e.pendingLanes,a|=l,n.lanes=a,nt(e,a)}}function dc(e,n){var a=e.updateQueue,l=e.alternate;if(l!==null&&(l=l.updateQueue,a===l)){var o=null,f=null;if(a=a.firstBaseUpdate,a!==null){do{var g={lane:a.lane,tag:a.tag,payload:a.payload,callback:null,next:null};f===null?o=f=g:f=f.next=g,a=a.next}while(a!==null);f===null?o=f=n:f=f.next=n}else o=f=n;a={baseState:l.baseState,firstBaseUpdate:o,lastBaseUpdate:f,shared:l.shared,callbacks:l.callbacks},e.updateQueue=a;return}e=a.lastBaseUpdate,e===null?a.firstBaseUpdate=n:e.next=n,a.lastBaseUpdate=n}var hc=!1;function is(){if(hc){var e=ii;if(e!==null)throw e}}function ss(e,n,a,l){hc=!1;var o=e.updateQueue;Ir=!1;var f=o.firstBaseUpdate,g=o.lastBaseUpdate,v=o.shared.pending;if(v!==null){o.shared.pending=null;var T=v,L=T.next;T.next=null,g===null?f=L:g.next=L,g=T;var F=e.alternate;F!==null&&(F=F.updateQueue,v=F.lastBaseUpdate,v!==g&&(v===null?F.firstBaseUpdate=L:v.next=L,F.lastBaseUpdate=T))}if(f!==null){var P=o.baseState;g=0,F=L=T=null,v=f;do{var j=v.lane&-536870913,I=j!==v.lane;if(I?(Ne&j)===j:(l&j)===j){j!==0&&j===ai&&(hc=!0),F!==null&&(F=F.next={lane:0,tag:v.tag,payload:v.payload,callback:null,next:null});e:{var he=e,fe=v;j=n;var ke=a;switch(fe.tag){case 1:if(he=fe.payload,typeof he=="function"){P=he.call(ke,P,j);break e}P=he;break e;case 3:he.flags=he.flags&-65537|128;case 0:if(he=fe.payload,j=typeof he=="function"?he.call(ke,P,j):he,j==null)break e;P=b({},P,j);break e;case 2:Ir=!0}}j=v.callback,j!==null&&(e.flags|=64,I&&(e.flags|=8192),I=o.callbacks,I===null?o.callbacks=[j]:I.push(j))}else I={lane:j,tag:v.tag,payload:v.payload,callback:v.callback,next:null},F===null?(L=F=I,T=P):F=F.next=I,g|=j;if(v=v.next,v===null){if(v=o.shared.pending,v===null)break;I=v,v=I.next,I.next=null,o.lastBaseUpdate=I,o.shared.pending=null}}while(!0);F===null&&(T=P),o.baseState=T,o.firstBaseUpdate=L,o.lastBaseUpdate=F,f===null&&(o.shared.lanes=0),Zr|=g,e.lanes=g,e.memoizedState=P}}function n0(e,n){if(typeof e!="function")throw Error(s(191,e));e.call(n)}function r0(e,n){var a=e.callbacks;if(a!==null)for(e.callbacks=null,e=0;e<a.length;e++)n0(a[e],n)}var si=k(null),wl=k(0);function a0(e,n){e=_r,Y(wl,e),Y(si,n),_r=e|n.baseLanes}function mc(){Y(wl,_r),Y(si,si.current)}function pc(){_r=wl.current,$(si),$(wl)}var kr=0,_e=null,ze=null,ot=null,Cl=!1,li=!1,Oa=!1,Nl=0,ls=0,oi=null,wE=0;function rt(){throw Error(s(321))}function gc(e,n){if(n===null)return!1;for(var a=0;a<n.length&&a<e.length;a++)if(!Wt(e[a],n[a]))return!1;return!0}function yc(e,n,a,l,o,f){return kr=f,_e=n,n.memoizedState=null,n.updateQueue=null,n.lanes=0,z.H=e===null||e.memoizedState===null?k0:q0,Oa=!1,f=a(l,o),Oa=!1,li&&(f=s0(n,a,l,o)),i0(e),f}function i0(e){z.H=Hl;var n=ze!==null&&ze.next!==null;if(kr=0,ot=ze=_e=null,Cl=!1,ls=0,oi=null,n)throw Error(s(300));e===null||yt||(e=e.dependencies,e!==null&&Tl(e)&&(yt=!0))}function s0(e,n,a,l){_e=e;var o=0;do{if(li&&(oi=null),ls=0,li=!1,25<=o)throw Error(s(301));if(o+=1,ot=ze=null,e.updateQueue!=null){var f=e.updateQueue;f.lastEffect=null,f.events=null,f.stores=null,f.memoCache!=null&&(f.memoCache.index=0)}z.H=UE,f=n(a,l)}while(li);return f}function CE(){var e=z.H,n=e.useState()[0];return n=typeof n.then=="function"?os(n):n,e=e.useState()[0],(ze!==null?ze.memoizedState:null)!==e&&(_e.flags|=1024),n}function bc(){var e=Nl!==0;return Nl=0,e}function vc(e,n,a){n.updateQueue=e.updateQueue,n.flags&=-2053,e.lanes&=~a}function _c(e){if(Cl){for(e=e.memoizedState;e!==null;){var n=e.queue;n!==null&&(n.pending=null),e=e.next}Cl=!1}kr=0,ot=ze=_e=null,li=!1,ls=Nl=0,oi=null}function Xt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return ot===null?_e.memoizedState=ot=e:ot=ot.next=e,ot}function ut(){if(ze===null){var e=_e.alternate;e=e!==null?e.memoizedState:null}else e=ze.next;var n=ot===null?_e.memoizedState:ot.next;if(n!==null)ot=n,ze=e;else{if(e===null)throw _e.alternate===null?Error(s(467)):Error(s(310));ze=e,e={memoizedState:ze.memoizedState,baseState:ze.baseState,baseQueue:ze.baseQueue,queue:ze.queue,next:null},ot===null?_e.memoizedState=ot=e:ot=ot.next=e}return ot}function Ec(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function os(e){var n=ls;return ls+=1,oi===null&&(oi=[]),e=Jm(oi,e,n),n=_e,(ot===null?n.memoizedState:ot.next)===null&&(n=n.alternate,z.H=n===null||n.memoizedState===null?k0:q0),e}function Ml(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return os(e);if(e.$$typeof===S)return Bt(e)}throw Error(s(438,String(e)))}function Sc(e){var n=null,a=_e.updateQueue;if(a!==null&&(n=a.memoCache),n==null){var l=_e.alternate;l!==null&&(l=l.updateQueue,l!==null&&(l=l.memoCache,l!=null&&(n={data:l.data.map(function(o){return o.slice()}),index:0})))}if(n==null&&(n={data:[],index:0}),a===null&&(a=Ec(),_e.updateQueue=a),a.memoCache=n,a=n.data[n.index],a===void 0)for(a=n.data[n.index]=Array(e),l=0;l<e;l++)a[l]=Ee;return n.index++,a}function mr(e,n){return typeof n=="function"?n(e):n}function Dl(e){var n=ut();return Tc(n,ze,e)}function Tc(e,n,a){var l=e.queue;if(l===null)throw Error(s(311));l.lastRenderedReducer=a;var o=e.baseQueue,f=l.pending;if(f!==null){if(o!==null){var g=o.next;o.next=f.next,f.next=g}n.baseQueue=o=f,l.pending=null}if(f=e.baseState,o===null)e.memoizedState=f;else{n=o.next;var v=g=null,T=null,L=n,F=!1;do{var P=L.lane&-536870913;if(P!==L.lane?(Ne&P)===P:(kr&P)===P){var j=L.revertLane;if(j===0)T!==null&&(T=T.next={lane:0,revertLane:0,action:L.action,hasEagerState:L.hasEagerState,eagerState:L.eagerState,next:null}),P===ai&&(F=!0);else if((kr&j)===j){L=L.next,j===ai&&(F=!0);continue}else P={lane:0,revertLane:L.revertLane,action:L.action,hasEagerState:L.hasEagerState,eagerState:L.eagerState,next:null},T===null?(v=T=P,g=f):T=T.next=P,_e.lanes|=j,Zr|=j;P=L.action,Oa&&a(f,P),f=L.hasEagerState?L.eagerState:a(f,P)}else j={lane:P,revertLane:L.revertLane,action:L.action,hasEagerState:L.hasEagerState,eagerState:L.eagerState,next:null},T===null?(v=T=j,g=f):T=T.next=j,_e.lanes|=P,Zr|=P;L=L.next}while(L!==null&&L!==n);if(T===null?g=f:T.next=v,!Wt(f,e.memoizedState)&&(yt=!0,F&&(a=ii,a!==null)))throw a;e.memoizedState=f,e.baseState=g,e.baseQueue=T,l.lastRenderedState=f}return o===null&&(l.lanes=0),[e.memoizedState,l.dispatch]}function Ac(e){var n=ut(),a=n.queue;if(a===null)throw Error(s(311));a.lastRenderedReducer=e;var l=a.dispatch,o=a.pending,f=n.memoizedState;if(o!==null){a.pending=null;var g=o=o.next;do f=e(f,g.action),g=g.next;while(g!==o);Wt(f,n.memoizedState)||(yt=!0),n.memoizedState=f,n.baseQueue===null&&(n.baseState=f),a.lastRenderedState=f}return[f,l]}function l0(e,n,a){var l=_e,o=ut(),f=Le;if(f){if(a===void 0)throw Error(s(407));a=a()}else a=n();var g=!Wt((ze||o).memoizedState,a);g&&(o.memoizedState=a,yt=!0),o=o.queue;var v=c0.bind(null,l,o,e);if(us(2048,8,v,[e]),o.getSnapshot!==n||g||ot!==null&&ot.memoizedState.tag&1){if(l.flags|=2048,ui(9,Ll(),u0.bind(null,l,o,a,n),null),Ve===null)throw Error(s(349));f||(kr&124)!==0||o0(l,n,a)}return a}function o0(e,n,a){e.flags|=16384,e={getSnapshot:n,value:a},n=_e.updateQueue,n===null?(n=Ec(),_e.updateQueue=n,n.stores=[e]):(a=n.stores,a===null?n.stores=[e]:a.push(e))}function u0(e,n,a,l){n.value=a,n.getSnapshot=l,f0(n)&&d0(e)}function c0(e,n,a){return a(function(){f0(n)&&d0(e)})}function f0(e){var n=e.getSnapshot;e=e.value;try{var a=n();return!Wt(e,a)}catch{return!0}}function d0(e){var n=ei(e,2);n!==null&&an(n,e,2)}function Oc(e){var n=Xt();if(typeof e=="function"){var a=e;if(e=a(),Oa){Rn(!0);try{a()}finally{Rn(!1)}}}return n.memoizedState=n.baseState=e,n.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:mr,lastRenderedState:e},n}function h0(e,n,a,l){return e.baseState=a,Tc(e,ze,typeof l=="function"?l:mr)}function NE(e,n,a,l,o){if(Ul(e))throw Error(s(485));if(e=n.action,e!==null){var f={payload:o,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(g){f.listeners.push(g)}};z.T!==null?a(!0):f.isTransition=!1,l(f),a=n.pending,a===null?(f.next=n.pending=f,m0(n,f)):(f.next=a.next,n.pending=a.next=f)}}function m0(e,n){var a=n.action,l=n.payload,o=e.state;if(n.isTransition){var f=z.T,g={};z.T=g;try{var v=a(o,l),T=z.S;T!==null&&T(g,v),p0(e,n,v)}catch(L){xc(e,n,L)}finally{z.T=f}}else try{f=a(o,l),p0(e,n,f)}catch(L){xc(e,n,L)}}function p0(e,n,a){a!==null&&typeof a=="object"&&typeof a.then=="function"?a.then(function(l){g0(e,n,l)},function(l){return xc(e,n,l)}):g0(e,n,a)}function g0(e,n,a){n.status="fulfilled",n.value=a,y0(n),e.state=a,n=e.pending,n!==null&&(a=n.next,a===n?e.pending=null:(a=a.next,n.next=a,m0(e,a)))}function xc(e,n,a){var l=e.pending;if(e.pending=null,l!==null){l=l.next;do n.status="rejected",n.reason=a,y0(n),n=n.next;while(n!==l)}e.action=null}function y0(e){e=e.listeners;for(var n=0;n<e.length;n++)(0,e[n])()}function b0(e,n){return n}function v0(e,n){if(Le){var a=Ve.formState;if(a!==null){e:{var l=_e;if(Le){if(et){t:{for(var o=et,f=Vn;o.nodeType!==8;){if(!f){o=null;break t}if(o=Dn(o.nextSibling),o===null){o=null;break t}}f=o.data,o=f==="F!"||f==="F"?o:null}if(o){et=Dn(o.nextSibling),l=o.data==="F!";break e}}Ea(l)}l=!1}l&&(n=a[0])}}return a=Xt(),a.memoizedState=a.baseState=n,l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:b0,lastRenderedState:n},a.queue=l,a=I0.bind(null,_e,l),l.dispatch=a,l=Oc(!1),f=Mc.bind(null,_e,!1,l.queue),l=Xt(),o={state:n,dispatch:null,action:e,pending:null},l.queue=o,a=NE.bind(null,_e,o,f,a),o.dispatch=a,l.memoizedState=e,[n,a,!1]}function _0(e){var n=ut();return E0(n,ze,e)}function E0(e,n,a){if(n=Tc(e,n,b0)[0],e=Dl(mr)[0],typeof n=="object"&&n!==null&&typeof n.then=="function")try{var l=os(n)}catch(g){throw g===ns?xl:g}else l=n;n=ut();var o=n.queue,f=o.dispatch;return a!==n.memoizedState&&(_e.flags|=2048,ui(9,Ll(),ME.bind(null,o,a),null)),[l,f,e]}function ME(e,n){e.action=n}function S0(e){var n=ut(),a=ze;if(a!==null)return E0(n,a,e);ut(),n=n.memoizedState,a=ut();var l=a.queue.dispatch;return a.memoizedState=e,[n,l,!1]}function ui(e,n,a,l){return e={tag:e,create:a,deps:l,inst:n,next:null},n=_e.updateQueue,n===null&&(n=Ec(),_e.updateQueue=n),a=n.lastEffect,a===null?n.lastEffect=e.next=e:(l=a.next,a.next=e,e.next=l,n.lastEffect=e),e}function Ll(){return{destroy:void 0,resource:void 0}}function T0(){return ut().memoizedState}function Bl(e,n,a,l){var o=Xt();l=l===void 0?null:l,_e.flags|=e,o.memoizedState=ui(1|n,Ll(),a,l)}function us(e,n,a,l){var o=ut();l=l===void 0?null:l;var f=o.memoizedState.inst;ze!==null&&l!==null&&gc(l,ze.memoizedState.deps)?o.memoizedState=ui(n,f,a,l):(_e.flags|=e,o.memoizedState=ui(1|n,f,a,l))}function A0(e,n){Bl(8390656,8,e,n)}function O0(e,n){us(2048,8,e,n)}function x0(e,n){return us(4,2,e,n)}function R0(e,n){return us(4,4,e,n)}function w0(e,n){if(typeof n=="function"){e=e();var a=n(e);return function(){typeof a=="function"?a():n(null)}}if(n!=null)return e=e(),n.current=e,function(){n.current=null}}function C0(e,n,a){a=a!=null?a.concat([e]):null,us(4,4,w0.bind(null,n,e),a)}function Rc(){}function N0(e,n){var a=ut();n=n===void 0?null:n;var l=a.memoizedState;return n!==null&&gc(n,l[1])?l[0]:(a.memoizedState=[e,n],e)}function M0(e,n){var a=ut();n=n===void 0?null:n;var l=a.memoizedState;if(n!==null&&gc(n,l[1]))return l[0];if(l=e(),Oa){Rn(!0);try{e()}finally{Rn(!1)}}return a.memoizedState=[l,n],l}function wc(e,n,a){return a===void 0||(kr&1073741824)!==0?e.memoizedState=n:(e.memoizedState=a,e=Bp(),_e.lanes|=e,Zr|=e,a)}function D0(e,n,a,l){return Wt(a,n)?a:si.current!==null?(e=wc(e,a,l),Wt(e,n)||(yt=!0),e):(kr&42)===0?(yt=!0,e.memoizedState=a):(e=Bp(),_e.lanes|=e,Zr|=e,n)}function L0(e,n,a,l,o){var f=K.p;K.p=f!==0&&8>f?f:8;var g=z.T,v={};z.T=v,Mc(e,!1,n,a);try{var T=o(),L=z.S;if(L!==null&&L(v,T),T!==null&&typeof T=="object"&&typeof T.then=="function"){var F=RE(T,l);cs(e,n,F,rn(e))}else cs(e,n,l,rn(e))}catch(P){cs(e,n,{then:function(){},status:"rejected",reason:P},rn())}finally{K.p=f,z.T=g}}function DE(){}function Cc(e,n,a,l){if(e.tag!==5)throw Error(s(476));var o=B0(e).queue;L0(e,o,n,ee,a===null?DE:function(){return U0(e),a(l)})}function B0(e){var n=e.memoizedState;if(n!==null)return n;n={memoizedState:ee,baseState:ee,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:mr,lastRenderedState:ee},next:null};var a={};return n.next={memoizedState:a,baseState:a,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:mr,lastRenderedState:a},next:null},e.memoizedState=n,e=e.alternate,e!==null&&(e.memoizedState=n),n}function U0(e){var n=B0(e).next.queue;cs(e,n,{},rn())}function Nc(){return Bt(ws)}function H0(){return ut().memoizedState}function j0(){return ut().memoizedState}function LE(e){for(var n=e.return;n!==null;){switch(n.tag){case 24:case 3:var a=rn();e=zr(a);var l=Gr(n,e,a);l!==null&&(an(l,n,a),as(l,n,a)),n={cache:sc()},e.payload=n;return}n=n.return}}function BE(e,n,a){var l=rn();a={lane:l,revertLane:0,action:a,hasEagerState:!1,eagerState:null,next:null},Ul(e)?z0(n,a):(a=Ku(e,n,a,l),a!==null&&(an(a,e,l),G0(a,n,l)))}function I0(e,n,a){var l=rn();cs(e,n,a,l)}function cs(e,n,a,l){var o={lane:l,revertLane:0,action:a,hasEagerState:!1,eagerState:null,next:null};if(Ul(e))z0(n,o);else{var f=e.alternate;if(e.lanes===0&&(f===null||f.lanes===0)&&(f=n.lastRenderedReducer,f!==null))try{var g=n.lastRenderedState,v=f(g,a);if(o.hasEagerState=!0,o.eagerState=v,Wt(v,g))return bl(e,n,o,0),Ve===null&&yl(),!1}catch{}finally{}if(a=Ku(e,n,o,l),a!==null)return an(a,e,l),G0(a,n,l),!0}return!1}function Mc(e,n,a,l){if(l={lane:2,revertLane:cf(),action:l,hasEagerState:!1,eagerState:null,next:null},Ul(e)){if(n)throw Error(s(479))}else n=Ku(e,a,l,2),n!==null&&an(n,e,2)}function Ul(e){var n=e.alternate;return e===_e||n!==null&&n===_e}function z0(e,n){li=Cl=!0;var a=e.pending;a===null?n.next=n:(n.next=a.next,a.next=n),e.pending=n}function G0(e,n,a){if((a&4194048)!==0){var l=n.lanes;l&=e.pendingLanes,a|=l,n.lanes=a,nt(e,a)}}var Hl={readContext:Bt,use:Ml,useCallback:rt,useContext:rt,useEffect:rt,useImperativeHandle:rt,useLayoutEffect:rt,useInsertionEffect:rt,useMemo:rt,useReducer:rt,useRef:rt,useState:rt,useDebugValue:rt,useDeferredValue:rt,useTransition:rt,useSyncExternalStore:rt,useId:rt,useHostTransitionStatus:rt,useFormState:rt,useActionState:rt,useOptimistic:rt,useMemoCache:rt,useCacheRefresh:rt},k0={readContext:Bt,use:Ml,useCallback:function(e,n){return Xt().memoizedState=[e,n===void 0?null:n],e},useContext:Bt,useEffect:A0,useImperativeHandle:function(e,n,a){a=a!=null?a.concat([e]):null,Bl(4194308,4,w0.bind(null,n,e),a)},useLayoutEffect:function(e,n){return Bl(4194308,4,e,n)},useInsertionEffect:function(e,n){Bl(4,2,e,n)},useMemo:function(e,n){var a=Xt();n=n===void 0?null:n;var l=e();if(Oa){Rn(!0);try{e()}finally{Rn(!1)}}return a.memoizedState=[l,n],l},useReducer:function(e,n,a){var l=Xt();if(a!==void 0){var o=a(n);if(Oa){Rn(!0);try{a(n)}finally{Rn(!1)}}}else o=n;return l.memoizedState=l.baseState=o,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:o},l.queue=e,e=e.dispatch=BE.bind(null,_e,e),[l.memoizedState,e]},useRef:function(e){var n=Xt();return e={current:e},n.memoizedState=e},useState:function(e){e=Oc(e);var n=e.queue,a=I0.bind(null,_e,n);return n.dispatch=a,[e.memoizedState,a]},useDebugValue:Rc,useDeferredValue:function(e,n){var a=Xt();return wc(a,e,n)},useTransition:function(){var e=Oc(!1);return e=L0.bind(null,_e,e.queue,!0,!1),Xt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,n,a){var l=_e,o=Xt();if(Le){if(a===void 0)throw Error(s(407));a=a()}else{if(a=n(),Ve===null)throw Error(s(349));(Ne&124)!==0||o0(l,n,a)}o.memoizedState=a;var f={value:a,getSnapshot:n};return o.queue=f,A0(c0.bind(null,l,f,e),[e]),l.flags|=2048,ui(9,Ll(),u0.bind(null,l,f,a,n),null),a},useId:function(){var e=Xt(),n=Ve.identifierPrefix;if(Le){var a=fr,l=cr;a=(l&~(1<<32-Mt(l)-1)).toString(32)+a,n="«"+n+"R"+a,a=Nl++,0<a&&(n+="H"+a.toString(32)),n+="»"}else a=wE++,n="«"+n+"r"+a.toString(32)+"»";return e.memoizedState=n},useHostTransitionStatus:Nc,useFormState:v0,useActionState:v0,useOptimistic:function(e){var n=Xt();n.memoizedState=n.baseState=e;var a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return n.queue=a,n=Mc.bind(null,_e,!0,a),a.dispatch=n,[e,n]},useMemoCache:Sc,useCacheRefresh:function(){return Xt().memoizedState=LE.bind(null,_e)}},q0={readContext:Bt,use:Ml,useCallback:N0,useContext:Bt,useEffect:O0,useImperativeHandle:C0,useInsertionEffect:x0,useLayoutEffect:R0,useMemo:M0,useReducer:Dl,useRef:T0,useState:function(){return Dl(mr)},useDebugValue:Rc,useDeferredValue:function(e,n){var a=ut();return D0(a,ze.memoizedState,e,n)},useTransition:function(){var e=Dl(mr)[0],n=ut().memoizedState;return[typeof e=="boolean"?e:os(e),n]},useSyncExternalStore:l0,useId:H0,useHostTransitionStatus:Nc,useFormState:_0,useActionState:_0,useOptimistic:function(e,n){var a=ut();return h0(a,ze,e,n)},useMemoCache:Sc,useCacheRefresh:j0},UE={readContext:Bt,use:Ml,useCallback:N0,useContext:Bt,useEffect:O0,useImperativeHandle:C0,useInsertionEffect:x0,useLayoutEffect:R0,useMemo:M0,useReducer:Ac,useRef:T0,useState:function(){return Ac(mr)},useDebugValue:Rc,useDeferredValue:function(e,n){var a=ut();return ze===null?wc(a,e,n):D0(a,ze.memoizedState,e,n)},useTransition:function(){var e=Ac(mr)[0],n=ut().memoizedState;return[typeof e=="boolean"?e:os(e),n]},useSyncExternalStore:l0,useId:H0,useHostTransitionStatus:Nc,useFormState:S0,useActionState:S0,useOptimistic:function(e,n){var a=ut();return ze!==null?h0(a,ze,e,n):(a.baseState=e,[e,a.queue.dispatch])},useMemoCache:Sc,useCacheRefresh:j0},ci=null,fs=0;function jl(e){var n=fs;return fs+=1,ci===null&&(ci=[]),Jm(ci,e,n)}function ds(e,n){n=n.props.ref,e.ref=n!==void 0?n:null}function Il(e,n){throw n.$$typeof===E?Error(s(525)):(e=Object.prototype.toString.call(n),Error(s(31,e==="[object Object]"?"object with keys {"+Object.keys(n).join(", ")+"}":e)))}function F0(e){var n=e._init;return n(e._payload)}function V0(e){function n(M,w){if(e){var D=M.deletions;D===null?(M.deletions=[w],M.flags|=16):D.push(w)}}function a(M,w){if(!e)return null;for(;w!==null;)n(M,w),w=w.sibling;return null}function l(M){for(var w=new Map;M!==null;)M.key!==null?w.set(M.key,M):w.set(M.index,M),M=M.sibling;return w}function o(M,w){return M=ur(M,w),M.index=0,M.sibling=null,M}function f(M,w,D){return M.index=D,e?(D=M.alternate,D!==null?(D=D.index,D<w?(M.flags|=67108866,w):D):(M.flags|=67108866,w)):(M.flags|=1048576,w)}function g(M){return e&&M.alternate===null&&(M.flags|=67108866),M}function v(M,w,D,V){return w===null||w.tag!==6?(w=Wu(D,M.mode,V),w.return=M,w):(w=o(w,D),w.return=M,w)}function T(M,w,D,V){var ne=D.type;return ne===R?F(M,w,D.props.children,V,D.key):w!==null&&(w.elementType===ne||typeof ne=="object"&&ne!==null&&ne.$$typeof===ae&&F0(ne)===w.type)?(w=o(w,D.props),ds(w,D),w.return=M,w):(w=_l(D.type,D.key,D.props,null,M.mode,V),ds(w,D),w.return=M,w)}function L(M,w,D,V){return w===null||w.tag!==4||w.stateNode.containerInfo!==D.containerInfo||w.stateNode.implementation!==D.implementation?(w=Ju(D,M.mode,V),w.return=M,w):(w=o(w,D.children||[]),w.return=M,w)}function F(M,w,D,V,ne){return w===null||w.tag!==7?(w=ya(D,M.mode,V,ne),w.return=M,w):(w=o(w,D),w.return=M,w)}function P(M,w,D){if(typeof w=="string"&&w!==""||typeof w=="number"||typeof w=="bigint")return w=Wu(""+w,M.mode,D),w.return=M,w;if(typeof w=="object"&&w!==null){switch(w.$$typeof){case A:return D=_l(w.type,w.key,w.props,null,M.mode,D),ds(D,w),D.return=M,D;case U:return w=Ju(w,M.mode,D),w.return=M,w;case ae:var V=w._init;return w=V(w._payload),P(M,w,D)}if(ve(w)||me(w))return w=ya(w,M.mode,D,null),w.return=M,w;if(typeof w.then=="function")return P(M,jl(w),D);if(w.$$typeof===S)return P(M,Al(M,w),D);Il(M,w)}return null}function j(M,w,D,V){var ne=w!==null?w.key:null;if(typeof D=="string"&&D!==""||typeof D=="number"||typeof D=="bigint")return ne!==null?null:v(M,w,""+D,V);if(typeof D=="object"&&D!==null){switch(D.$$typeof){case A:return D.key===ne?T(M,w,D,V):null;case U:return D.key===ne?L(M,w,D,V):null;case ae:return ne=D._init,D=ne(D._payload),j(M,w,D,V)}if(ve(D)||me(D))return ne!==null?null:F(M,w,D,V,null);if(typeof D.then=="function")return j(M,w,jl(D),V);if(D.$$typeof===S)return j(M,w,Al(M,D),V);Il(M,D)}return null}function I(M,w,D,V,ne){if(typeof V=="string"&&V!==""||typeof V=="number"||typeof V=="bigint")return M=M.get(D)||null,v(w,M,""+V,ne);if(typeof V=="object"&&V!==null){switch(V.$$typeof){case A:return M=M.get(V.key===null?D:V.key)||null,T(w,M,V,ne);case U:return M=M.get(V.key===null?D:V.key)||null,L(w,M,V,ne);case ae:var Se=V._init;return V=Se(V._payload),I(M,w,D,V,ne)}if(ve(V)||me(V))return M=M.get(D)||null,F(w,M,V,ne,null);if(typeof V.then=="function")return I(M,w,D,jl(V),ne);if(V.$$typeof===S)return I(M,w,D,Al(w,V),ne);Il(w,V)}return null}function he(M,w,D,V){for(var ne=null,Se=null,oe=w,de=w=0,vt=null;oe!==null&&de<D.length;de++){oe.index>de?(vt=oe,oe=null):vt=oe.sibling;var De=j(M,oe,D[de],V);if(De===null){oe===null&&(oe=vt);break}e&&oe&&De.alternate===null&&n(M,oe),w=f(De,w,de),Se===null?ne=De:Se.sibling=De,Se=De,oe=vt}if(de===D.length)return a(M,oe),Le&&va(M,de),ne;if(oe===null){for(;de<D.length;de++)oe=P(M,D[de],V),oe!==null&&(w=f(oe,w,de),Se===null?ne=oe:Se.sibling=oe,Se=oe);return Le&&va(M,de),ne}for(oe=l(oe);de<D.length;de++)vt=I(oe,M,de,D[de],V),vt!==null&&(e&&vt.alternate!==null&&oe.delete(vt.key===null?de:vt.key),w=f(vt,w,de),Se===null?ne=vt:Se.sibling=vt,Se=vt);return e&&oe.forEach(function(ra){return n(M,ra)}),Le&&va(M,de),ne}function fe(M,w,D,V){if(D==null)throw Error(s(151));for(var ne=null,Se=null,oe=w,de=w=0,vt=null,De=D.next();oe!==null&&!De.done;de++,De=D.next()){oe.index>de?(vt=oe,oe=null):vt=oe.sibling;var ra=j(M,oe,De.value,V);if(ra===null){oe===null&&(oe=vt);break}e&&oe&&ra.alternate===null&&n(M,oe),w=f(ra,w,de),Se===null?ne=ra:Se.sibling=ra,Se=ra,oe=vt}if(De.done)return a(M,oe),Le&&va(M,de),ne;if(oe===null){for(;!De.done;de++,De=D.next())De=P(M,De.value,V),De!==null&&(w=f(De,w,de),Se===null?ne=De:Se.sibling=De,Se=De);return Le&&va(M,de),ne}for(oe=l(oe);!De.done;de++,De=D.next())De=I(oe,M,de,De.value,V),De!==null&&(e&&De.alternate!==null&&oe.delete(De.key===null?de:De.key),w=f(De,w,de),Se===null?ne=De:Se.sibling=De,Se=De);return e&&oe.forEach(function(H2){return n(M,H2)}),Le&&va(M,de),ne}function ke(M,w,D,V){if(typeof D=="object"&&D!==null&&D.type===R&&D.key===null&&(D=D.props.children),typeof D=="object"&&D!==null){switch(D.$$typeof){case A:e:{for(var ne=D.key;w!==null;){if(w.key===ne){if(ne=D.type,ne===R){if(w.tag===7){a(M,w.sibling),V=o(w,D.props.children),V.return=M,M=V;break e}}else if(w.elementType===ne||typeof ne=="object"&&ne!==null&&ne.$$typeof===ae&&F0(ne)===w.type){a(M,w.sibling),V=o(w,D.props),ds(V,D),V.return=M,M=V;break e}a(M,w);break}else n(M,w);w=w.sibling}D.type===R?(V=ya(D.props.children,M.mode,V,D.key),V.return=M,M=V):(V=_l(D.type,D.key,D.props,null,M.mode,V),ds(V,D),V.return=M,M=V)}return g(M);case U:e:{for(ne=D.key;w!==null;){if(w.key===ne)if(w.tag===4&&w.stateNode.containerInfo===D.containerInfo&&w.stateNode.implementation===D.implementation){a(M,w.sibling),V=o(w,D.children||[]),V.return=M,M=V;break e}else{a(M,w);break}else n(M,w);w=w.sibling}V=Ju(D,M.mode,V),V.return=M,M=V}return g(M);case ae:return ne=D._init,D=ne(D._payload),ke(M,w,D,V)}if(ve(D))return he(M,w,D,V);if(me(D)){if(ne=me(D),typeof ne!="function")throw Error(s(150));return D=ne.call(D),fe(M,w,D,V)}if(typeof D.then=="function")return ke(M,w,jl(D),V);if(D.$$typeof===S)return ke(M,w,Al(M,D),V);Il(M,D)}return typeof D=="string"&&D!==""||typeof D=="number"||typeof D=="bigint"?(D=""+D,w!==null&&w.tag===6?(a(M,w.sibling),V=o(w,D),V.return=M,M=V):(a(M,w),V=Wu(D,M.mode,V),V.return=M,M=V),g(M)):a(M,w)}return function(M,w,D,V){try{fs=0;var ne=ke(M,w,D,V);return ci=null,ne}catch(oe){if(oe===ns||oe===xl)throw oe;var Se=Jt(29,oe,null,M.mode);return Se.lanes=V,Se.return=M,Se}finally{}}}var fi=V0(!0),P0=V0(!1),vn=k(null),Pn=null;function qr(e){var n=e.alternate;Y(gt,gt.current&1),Y(vn,e),Pn===null&&(n===null||si.current!==null||n.memoizedState!==null)&&(Pn=e)}function Y0(e){if(e.tag===22){if(Y(gt,gt.current),Y(vn,e),Pn===null){var n=e.alternate;n!==null&&n.memoizedState!==null&&(Pn=e)}}else Fr()}function Fr(){Y(gt,gt.current),Y(vn,vn.current)}function pr(e){$(vn),Pn===e&&(Pn=null),$(gt)}var gt=k(0);function zl(e){for(var n=e;n!==null;){if(n.tag===13){var a=n.memoizedState;if(a!==null&&(a=a.dehydrated,a===null||a.data==="$?"||Sf(a)))return n}else if(n.tag===19&&n.memoizedProps.revealOrder!==void 0){if((n.flags&128)!==0)return n}else if(n.child!==null){n.child.return=n,n=n.child;continue}if(n===e)break;for(;n.sibling===null;){if(n.return===null||n.return===e)return null;n=n.return}n.sibling.return=n.return,n=n.sibling}return null}function Dc(e,n,a,l){n=e.memoizedState,a=a(l,n),a=a==null?n:b({},n,a),e.memoizedState=a,e.lanes===0&&(e.updateQueue.baseState=a)}var Lc={enqueueSetState:function(e,n,a){e=e._reactInternals;var l=rn(),o=zr(l);o.payload=n,a!=null&&(o.callback=a),n=Gr(e,o,l),n!==null&&(an(n,e,l),as(n,e,l))},enqueueReplaceState:function(e,n,a){e=e._reactInternals;var l=rn(),o=zr(l);o.tag=1,o.payload=n,a!=null&&(o.callback=a),n=Gr(e,o,l),n!==null&&(an(n,e,l),as(n,e,l))},enqueueForceUpdate:function(e,n){e=e._reactInternals;var a=rn(),l=zr(a);l.tag=2,n!=null&&(l.callback=n),n=Gr(e,l,a),n!==null&&(an(n,e,a),as(n,e,a))}};function X0(e,n,a,l,o,f,g){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(l,f,g):n.prototype&&n.prototype.isPureReactComponent?!Zi(a,l)||!Zi(o,f):!0}function Z0(e,n,a,l){e=n.state,typeof n.componentWillReceiveProps=="function"&&n.componentWillReceiveProps(a,l),typeof n.UNSAFE_componentWillReceiveProps=="function"&&n.UNSAFE_componentWillReceiveProps(a,l),n.state!==e&&Lc.enqueueReplaceState(n,n.state,null)}function xa(e,n){var a=n;if("ref"in n){a={};for(var l in n)l!=="ref"&&(a[l]=n[l])}if(e=e.defaultProps){a===n&&(a=b({},a));for(var o in e)a[o]===void 0&&(a[o]=e[o])}return a}var Gl=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var n=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(n))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)};function Q0(e){Gl(e)}function K0(e){console.error(e)}function $0(e){Gl(e)}function kl(e,n){try{var a=e.onUncaughtError;a(n.value,{componentStack:n.stack})}catch(l){setTimeout(function(){throw l})}}function W0(e,n,a){try{var l=e.onCaughtError;l(a.value,{componentStack:a.stack,errorBoundary:n.tag===1?n.stateNode:null})}catch(o){setTimeout(function(){throw o})}}function Bc(e,n,a){return a=zr(a),a.tag=3,a.payload={element:null},a.callback=function(){kl(e,n)},a}function J0(e){return e=zr(e),e.tag=3,e}function ep(e,n,a,l){var o=a.type.getDerivedStateFromError;if(typeof o=="function"){var f=l.value;e.payload=function(){return o(f)},e.callback=function(){W0(n,a,l)}}var g=a.stateNode;g!==null&&typeof g.componentDidCatch=="function"&&(e.callback=function(){W0(n,a,l),typeof o!="function"&&(Qr===null?Qr=new Set([this]):Qr.add(this));var v=l.stack;this.componentDidCatch(l.value,{componentStack:v!==null?v:""})})}function HE(e,n,a,l,o){if(a.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){if(n=a.alternate,n!==null&&Ji(n,a,o,!0),a=vn.current,a!==null){switch(a.tag){case 13:return Pn===null?af():a.alternate===null&&tt===0&&(tt=3),a.flags&=-257,a.flags|=65536,a.lanes=o,l===uc?a.flags|=16384:(n=a.updateQueue,n===null?a.updateQueue=new Set([l]):n.add(l),lf(e,l,o)),!1;case 22:return a.flags|=65536,l===uc?a.flags|=16384:(n=a.updateQueue,n===null?(n={transitions:null,markerInstances:null,retryQueue:new Set([l])},a.updateQueue=n):(a=n.retryQueue,a===null?n.retryQueue=new Set([l]):a.add(l)),lf(e,l,o)),!1}throw Error(s(435,a.tag))}return lf(e,l,o),af(),!1}if(Le)return n=vn.current,n!==null?((n.flags&65536)===0&&(n.flags|=256),n.flags|=65536,n.lanes=o,l!==nc&&(e=Error(s(422),{cause:l}),Wi(pn(e,a)))):(l!==nc&&(n=Error(s(423),{cause:l}),Wi(pn(n,a))),e=e.current.alternate,e.flags|=65536,o&=-o,e.lanes|=o,l=pn(l,a),o=Bc(e.stateNode,l,o),dc(e,o),tt!==4&&(tt=2)),!1;var f=Error(s(520),{cause:l});if(f=pn(f,a),vs===null?vs=[f]:vs.push(f),tt!==4&&(tt=2),n===null)return!0;l=pn(l,a),a=n;do{switch(a.tag){case 3:return a.flags|=65536,e=o&-o,a.lanes|=e,e=Bc(a.stateNode,l,e),dc(a,e),!1;case 1:if(n=a.type,f=a.stateNode,(a.flags&128)===0&&(typeof n.getDerivedStateFromError=="function"||f!==null&&typeof f.componentDidCatch=="function"&&(Qr===null||!Qr.has(f))))return a.flags|=65536,o&=-o,a.lanes|=o,o=J0(o),ep(o,e,a,l),dc(a,o),!1}a=a.return}while(a!==null);return!1}var tp=Error(s(461)),yt=!1;function Ot(e,n,a,l){n.child=e===null?P0(n,null,a,l):fi(n,e.child,a,l)}function np(e,n,a,l,o){a=a.render;var f=n.ref;if("ref"in l){var g={};for(var v in l)v!=="ref"&&(g[v]=l[v])}else g=l;return Ta(n),l=yc(e,n,a,g,f,o),v=bc(),e!==null&&!yt?(vc(e,n,o),gr(e,n,o)):(Le&&v&&ec(n),n.flags|=1,Ot(e,n,l,o),n.child)}function rp(e,n,a,l,o){if(e===null){var f=a.type;return typeof f=="function"&&!$u(f)&&f.defaultProps===void 0&&a.compare===null?(n.tag=15,n.type=f,ap(e,n,f,l,o)):(e=_l(a.type,null,l,n,n.mode,o),e.ref=n.ref,e.return=n,n.child=e)}if(f=e.child,!qc(e,o)){var g=f.memoizedProps;if(a=a.compare,a=a!==null?a:Zi,a(g,l)&&e.ref===n.ref)return gr(e,n,o)}return n.flags|=1,e=ur(f,l),e.ref=n.ref,e.return=n,n.child=e}function ap(e,n,a,l,o){if(e!==null){var f=e.memoizedProps;if(Zi(f,l)&&e.ref===n.ref)if(yt=!1,n.pendingProps=l=f,qc(e,o))(e.flags&131072)!==0&&(yt=!0);else return n.lanes=e.lanes,gr(e,n,o)}return Uc(e,n,a,l,o)}function ip(e,n,a){var l=n.pendingProps,o=l.children,f=e!==null?e.memoizedState:null;if(l.mode==="hidden"){if((n.flags&128)!==0){if(l=f!==null?f.baseLanes|a:a,e!==null){for(o=n.child=e.child,f=0;o!==null;)f=f|o.lanes|o.childLanes,o=o.sibling;n.childLanes=f&~l}else n.childLanes=0,n.child=null;return sp(e,n,l,a)}if((a&536870912)!==0)n.memoizedState={baseLanes:0,cachePool:null},e!==null&&Ol(n,f!==null?f.cachePool:null),f!==null?a0(n,f):mc(),Y0(n);else return n.lanes=n.childLanes=536870912,sp(e,n,f!==null?f.baseLanes|a:a,a)}else f!==null?(Ol(n,f.cachePool),a0(n,f),Fr(),n.memoizedState=null):(e!==null&&Ol(n,null),mc(),Fr());return Ot(e,n,o,a),n.child}function sp(e,n,a,l){var o=oc();return o=o===null?null:{parent:pt._currentValue,pool:o},n.memoizedState={baseLanes:a,cachePool:o},e!==null&&Ol(n,null),mc(),Y0(n),e!==null&&Ji(e,n,l,!0),null}function ql(e,n){var a=n.ref;if(a===null)e!==null&&e.ref!==null&&(n.flags|=4194816);else{if(typeof a!="function"&&typeof a!="object")throw Error(s(284));(e===null||e.ref!==a)&&(n.flags|=4194816)}}function Uc(e,n,a,l,o){return Ta(n),a=yc(e,n,a,l,void 0,o),l=bc(),e!==null&&!yt?(vc(e,n,o),gr(e,n,o)):(Le&&l&&ec(n),n.flags|=1,Ot(e,n,a,o),n.child)}function lp(e,n,a,l,o,f){return Ta(n),n.updateQueue=null,a=s0(n,l,a,o),i0(e),l=bc(),e!==null&&!yt?(vc(e,n,f),gr(e,n,f)):(Le&&l&&ec(n),n.flags|=1,Ot(e,n,a,f),n.child)}function op(e,n,a,l,o){if(Ta(n),n.stateNode===null){var f=ti,g=a.contextType;typeof g=="object"&&g!==null&&(f=Bt(g)),f=new a(l,f),n.memoizedState=f.state!==null&&f.state!==void 0?f.state:null,f.updater=Lc,n.stateNode=f,f._reactInternals=n,f=n.stateNode,f.props=l,f.state=n.memoizedState,f.refs={},cc(n),g=a.contextType,f.context=typeof g=="object"&&g!==null?Bt(g):ti,f.state=n.memoizedState,g=a.getDerivedStateFromProps,typeof g=="function"&&(Dc(n,a,g,l),f.state=n.memoizedState),typeof a.getDerivedStateFromProps=="function"||typeof f.getSnapshotBeforeUpdate=="function"||typeof f.UNSAFE_componentWillMount!="function"&&typeof f.componentWillMount!="function"||(g=f.state,typeof f.componentWillMount=="function"&&f.componentWillMount(),typeof f.UNSAFE_componentWillMount=="function"&&f.UNSAFE_componentWillMount(),g!==f.state&&Lc.enqueueReplaceState(f,f.state,null),ss(n,l,f,o),is(),f.state=n.memoizedState),typeof f.componentDidMount=="function"&&(n.flags|=4194308),l=!0}else if(e===null){f=n.stateNode;var v=n.memoizedProps,T=xa(a,v);f.props=T;var L=f.context,F=a.contextType;g=ti,typeof F=="object"&&F!==null&&(g=Bt(F));var P=a.getDerivedStateFromProps;F=typeof P=="function"||typeof f.getSnapshotBeforeUpdate=="function",v=n.pendingProps!==v,F||typeof f.UNSAFE_componentWillReceiveProps!="function"&&typeof f.componentWillReceiveProps!="function"||(v||L!==g)&&Z0(n,f,l,g),Ir=!1;var j=n.memoizedState;f.state=j,ss(n,l,f,o),is(),L=n.memoizedState,v||j!==L||Ir?(typeof P=="function"&&(Dc(n,a,P,l),L=n.memoizedState),(T=Ir||X0(n,a,T,l,j,L,g))?(F||typeof f.UNSAFE_componentWillMount!="function"&&typeof f.componentWillMount!="function"||(typeof f.componentWillMount=="function"&&f.componentWillMount(),typeof f.UNSAFE_componentWillMount=="function"&&f.UNSAFE_componentWillMount()),typeof f.componentDidMount=="function"&&(n.flags|=4194308)):(typeof f.componentDidMount=="function"&&(n.flags|=4194308),n.memoizedProps=l,n.memoizedState=L),f.props=l,f.state=L,f.context=g,l=T):(typeof f.componentDidMount=="function"&&(n.flags|=4194308),l=!1)}else{f=n.stateNode,fc(e,n),g=n.memoizedProps,F=xa(a,g),f.props=F,P=n.pendingProps,j=f.context,L=a.contextType,T=ti,typeof L=="object"&&L!==null&&(T=Bt(L)),v=a.getDerivedStateFromProps,(L=typeof v=="function"||typeof f.getSnapshotBeforeUpdate=="function")||typeof f.UNSAFE_componentWillReceiveProps!="function"&&typeof f.componentWillReceiveProps!="function"||(g!==P||j!==T)&&Z0(n,f,l,T),Ir=!1,j=n.memoizedState,f.state=j,ss(n,l,f,o),is();var I=n.memoizedState;g!==P||j!==I||Ir||e!==null&&e.dependencies!==null&&Tl(e.dependencies)?(typeof v=="function"&&(Dc(n,a,v,l),I=n.memoizedState),(F=Ir||X0(n,a,F,l,j,I,T)||e!==null&&e.dependencies!==null&&Tl(e.dependencies))?(L||typeof f.UNSAFE_componentWillUpdate!="function"&&typeof f.componentWillUpdate!="function"||(typeof f.componentWillUpdate=="function"&&f.componentWillUpdate(l,I,T),typeof f.UNSAFE_componentWillUpdate=="function"&&f.UNSAFE_componentWillUpdate(l,I,T)),typeof f.componentDidUpdate=="function"&&(n.flags|=4),typeof f.getSnapshotBeforeUpdate=="function"&&(n.flags|=1024)):(typeof f.componentDidUpdate!="function"||g===e.memoizedProps&&j===e.memoizedState||(n.flags|=4),typeof f.getSnapshotBeforeUpdate!="function"||g===e.memoizedProps&&j===e.memoizedState||(n.flags|=1024),n.memoizedProps=l,n.memoizedState=I),f.props=l,f.state=I,f.context=T,l=F):(typeof f.componentDidUpdate!="function"||g===e.memoizedProps&&j===e.memoizedState||(n.flags|=4),typeof f.getSnapshotBeforeUpdate!="function"||g===e.memoizedProps&&j===e.memoizedState||(n.flags|=1024),l=!1)}return f=l,ql(e,n),l=(n.flags&128)!==0,f||l?(f=n.stateNode,a=l&&typeof a.getDerivedStateFromError!="function"?null:f.render(),n.flags|=1,e!==null&&l?(n.child=fi(n,e.child,null,o),n.child=fi(n,null,a,o)):Ot(e,n,a,o),n.memoizedState=f.state,e=n.child):e=gr(e,n,o),e}function up(e,n,a,l){return $i(),n.flags|=256,Ot(e,n,a,l),n.child}var Hc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function jc(e){return{baseLanes:e,cachePool:Km()}}function Ic(e,n,a){return e=e!==null?e.childLanes&~a:0,n&&(e|=_n),e}function cp(e,n,a){var l=n.pendingProps,o=!1,f=(n.flags&128)!==0,g;if((g=f)||(g=e!==null&&e.memoizedState===null?!1:(gt.current&2)!==0),g&&(o=!0,n.flags&=-129),g=(n.flags&32)!==0,n.flags&=-33,e===null){if(Le){if(o?qr(n):Fr(),Le){var v=et,T;if(T=v){e:{for(T=v,v=Vn;T.nodeType!==8;){if(!v){v=null;break e}if(T=Dn(T.nextSibling),T===null){v=null;break e}}v=T}v!==null?(n.memoizedState={dehydrated:v,treeContext:ba!==null?{id:cr,overflow:fr}:null,retryLane:536870912,hydrationErrors:null},T=Jt(18,null,null,0),T.stateNode=v,T.return=n,n.child=T,Ht=n,et=null,T=!0):T=!1}T||Ea(n)}if(v=n.memoizedState,v!==null&&(v=v.dehydrated,v!==null))return Sf(v)?n.lanes=32:n.lanes=536870912,null;pr(n)}return v=l.children,l=l.fallback,o?(Fr(),o=n.mode,v=Fl({mode:"hidden",children:v},o),l=ya(l,o,a,null),v.return=n,l.return=n,v.sibling=l,n.child=v,o=n.child,o.memoizedState=jc(a),o.childLanes=Ic(e,g,a),n.memoizedState=Hc,l):(qr(n),zc(n,v))}if(T=e.memoizedState,T!==null&&(v=T.dehydrated,v!==null)){if(f)n.flags&256?(qr(n),n.flags&=-257,n=Gc(e,n,a)):n.memoizedState!==null?(Fr(),n.child=e.child,n.flags|=128,n=null):(Fr(),o=l.fallback,v=n.mode,l=Fl({mode:"visible",children:l.children},v),o=ya(o,v,a,null),o.flags|=2,l.return=n,o.return=n,l.sibling=o,n.child=l,fi(n,e.child,null,a),l=n.child,l.memoizedState=jc(a),l.childLanes=Ic(e,g,a),n.memoizedState=Hc,n=o);else if(qr(n),Sf(v)){if(g=v.nextSibling&&v.nextSibling.dataset,g)var L=g.dgst;g=L,l=Error(s(419)),l.stack="",l.digest=g,Wi({value:l,source:null,stack:null}),n=Gc(e,n,a)}else if(yt||Ji(e,n,a,!1),g=(a&e.childLanes)!==0,yt||g){if(g=Ve,g!==null&&(l=a&-a,l=(l&42)!==0?1:kn(l),l=(l&(g.suspendedLanes|a))!==0?0:l,l!==0&&l!==T.retryLane))throw T.retryLane=l,ei(e,l),an(g,e,l),tp;v.data==="$?"||af(),n=Gc(e,n,a)}else v.data==="$?"?(n.flags|=192,n.child=e.child,n=null):(e=T.treeContext,et=Dn(v.nextSibling),Ht=n,Le=!0,_a=null,Vn=!1,e!==null&&(yn[bn++]=cr,yn[bn++]=fr,yn[bn++]=ba,cr=e.id,fr=e.overflow,ba=n),n=zc(n,l.children),n.flags|=4096);return n}return o?(Fr(),o=l.fallback,v=n.mode,T=e.child,L=T.sibling,l=ur(T,{mode:"hidden",children:l.children}),l.subtreeFlags=T.subtreeFlags&65011712,L!==null?o=ur(L,o):(o=ya(o,v,a,null),o.flags|=2),o.return=n,l.return=n,l.sibling=o,n.child=l,l=o,o=n.child,v=e.child.memoizedState,v===null?v=jc(a):(T=v.cachePool,T!==null?(L=pt._currentValue,T=T.parent!==L?{parent:L,pool:L}:T):T=Km(),v={baseLanes:v.baseLanes|a,cachePool:T}),o.memoizedState=v,o.childLanes=Ic(e,g,a),n.memoizedState=Hc,l):(qr(n),a=e.child,e=a.sibling,a=ur(a,{mode:"visible",children:l.children}),a.return=n,a.sibling=null,e!==null&&(g=n.deletions,g===null?(n.deletions=[e],n.flags|=16):g.push(e)),n.child=a,n.memoizedState=null,a)}function zc(e,n){return n=Fl({mode:"visible",children:n},e.mode),n.return=e,e.child=n}function Fl(e,n){return e=Jt(22,e,null,n),e.lanes=0,e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null},e}function Gc(e,n,a){return fi(n,e.child,null,a),e=zc(n,n.pendingProps.children),e.flags|=2,n.memoizedState=null,e}function fp(e,n,a){e.lanes|=n;var l=e.alternate;l!==null&&(l.lanes|=n),ac(e.return,n,a)}function kc(e,n,a,l,o){var f=e.memoizedState;f===null?e.memoizedState={isBackwards:n,rendering:null,renderingStartTime:0,last:l,tail:a,tailMode:o}:(f.isBackwards=n,f.rendering=null,f.renderingStartTime=0,f.last=l,f.tail=a,f.tailMode=o)}function dp(e,n,a){var l=n.pendingProps,o=l.revealOrder,f=l.tail;if(Ot(e,n,l.children,a),l=gt.current,(l&2)!==0)l=l&1|2,n.flags|=128;else{if(e!==null&&(e.flags&128)!==0)e:for(e=n.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&fp(e,a,n);else if(e.tag===19)fp(e,a,n);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===n)break e;for(;e.sibling===null;){if(e.return===null||e.return===n)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}l&=1}switch(Y(gt,l),o){case"forwards":for(a=n.child,o=null;a!==null;)e=a.alternate,e!==null&&zl(e)===null&&(o=a),a=a.sibling;a=o,a===null?(o=n.child,n.child=null):(o=a.sibling,a.sibling=null),kc(n,!1,o,a,f);break;case"backwards":for(a=null,o=n.child,n.child=null;o!==null;){if(e=o.alternate,e!==null&&zl(e)===null){n.child=o;break}e=o.sibling,o.sibling=a,a=o,o=e}kc(n,!0,a,null,f);break;case"together":kc(n,!1,null,null,void 0);break;default:n.memoizedState=null}return n.child}function gr(e,n,a){if(e!==null&&(n.dependencies=e.dependencies),Zr|=n.lanes,(a&n.childLanes)===0)if(e!==null){if(Ji(e,n,a,!1),(a&n.childLanes)===0)return null}else return null;if(e!==null&&n.child!==e.child)throw Error(s(153));if(n.child!==null){for(e=n.child,a=ur(e,e.pendingProps),n.child=a,a.return=n;e.sibling!==null;)e=e.sibling,a=a.sibling=ur(e,e.pendingProps),a.return=n;a.sibling=null}return n.child}function qc(e,n){return(e.lanes&n)!==0?!0:(e=e.dependencies,!!(e!==null&&Tl(e)))}function jE(e,n,a){switch(n.tag){case 3:Ue(n,n.stateNode.containerInfo),jr(n,pt,e.memoizedState.cache),$i();break;case 27:case 5:Gn(n);break;case 4:Ue(n,n.stateNode.containerInfo);break;case 10:jr(n,n.type,n.memoizedProps.value);break;case 13:var l=n.memoizedState;if(l!==null)return l.dehydrated!==null?(qr(n),n.flags|=128,null):(a&n.child.childLanes)!==0?cp(e,n,a):(qr(n),e=gr(e,n,a),e!==null?e.sibling:null);qr(n);break;case 19:var o=(e.flags&128)!==0;if(l=(a&n.childLanes)!==0,l||(Ji(e,n,a,!1),l=(a&n.childLanes)!==0),o){if(l)return dp(e,n,a);n.flags|=128}if(o=n.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),Y(gt,gt.current),l)break;return null;case 22:case 23:return n.lanes=0,ip(e,n,a);case 24:jr(n,pt,e.memoizedState.cache)}return gr(e,n,a)}function hp(e,n,a){if(e!==null)if(e.memoizedProps!==n.pendingProps)yt=!0;else{if(!qc(e,a)&&(n.flags&128)===0)return yt=!1,jE(e,n,a);yt=(e.flags&131072)!==0}else yt=!1,Le&&(n.flags&1048576)!==0&&Fm(n,Sl,n.index);switch(n.lanes=0,n.tag){case 16:e:{e=n.pendingProps;var l=n.elementType,o=l._init;if(l=o(l._payload),n.type=l,typeof l=="function")$u(l)?(e=xa(l,e),n.tag=1,n=op(null,n,l,e,a)):(n.tag=0,n=Uc(null,n,l,e,a));else{if(l!=null){if(o=l.$$typeof,o===H){n.tag=11,n=np(null,n,l,e,a);break e}else if(o===W){n.tag=14,n=rp(null,n,l,e,a);break e}}throw n=Pe(l)||l,Error(s(306,n,""))}}return n;case 0:return Uc(e,n,n.type,n.pendingProps,a);case 1:return l=n.type,o=xa(l,n.pendingProps),op(e,n,l,o,a);case 3:e:{if(Ue(n,n.stateNode.containerInfo),e===null)throw Error(s(387));l=n.pendingProps;var f=n.memoizedState;o=f.element,fc(e,n),ss(n,l,null,a);var g=n.memoizedState;if(l=g.cache,jr(n,pt,l),l!==f.cache&&ic(n,[pt],a,!0),is(),l=g.element,f.isDehydrated)if(f={element:l,isDehydrated:!1,cache:g.cache},n.updateQueue.baseState=f,n.memoizedState=f,n.flags&256){n=up(e,n,l,a);break e}else if(l!==o){o=pn(Error(s(424)),n),Wi(o),n=up(e,n,l,a);break e}else{switch(e=n.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(et=Dn(e.firstChild),Ht=n,Le=!0,_a=null,Vn=!0,a=P0(n,null,l,a),n.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling}else{if($i(),l===o){n=gr(e,n,a);break e}Ot(e,n,l,a)}n=n.child}return n;case 26:return ql(e,n),e===null?(a=yg(n.type,null,n.pendingProps,null))?n.memoizedState=a:Le||(a=n.type,e=n.pendingProps,l=ro(ue.current).createElement(a),l[ht]=n,l[Dt]=e,Rt(l,a,e),st(l),n.stateNode=l):n.memoizedState=yg(n.type,e.memoizedProps,n.pendingProps,e.memoizedState),null;case 27:return Gn(n),e===null&&Le&&(l=n.stateNode=mg(n.type,n.pendingProps,ue.current),Ht=n,Vn=!0,o=et,Wr(n.type)?(Tf=o,et=Dn(l.firstChild)):et=o),Ot(e,n,n.pendingProps.children,a),ql(e,n),e===null&&(n.flags|=4194304),n.child;case 5:return e===null&&Le&&((o=l=et)&&(l=f2(l,n.type,n.pendingProps,Vn),l!==null?(n.stateNode=l,Ht=n,et=Dn(l.firstChild),Vn=!1,o=!0):o=!1),o||Ea(n)),Gn(n),o=n.type,f=n.pendingProps,g=e!==null?e.memoizedProps:null,l=f.children,vf(o,f)?l=null:g!==null&&vf(o,g)&&(n.flags|=32),n.memoizedState!==null&&(o=yc(e,n,CE,null,null,a),ws._currentValue=o),ql(e,n),Ot(e,n,l,a),n.child;case 6:return e===null&&Le&&((e=a=et)&&(a=d2(a,n.pendingProps,Vn),a!==null?(n.stateNode=a,Ht=n,et=null,e=!0):e=!1),e||Ea(n)),null;case 13:return cp(e,n,a);case 4:return Ue(n,n.stateNode.containerInfo),l=n.pendingProps,e===null?n.child=fi(n,null,l,a):Ot(e,n,l,a),n.child;case 11:return np(e,n,n.type,n.pendingProps,a);case 7:return Ot(e,n,n.pendingProps,a),n.child;case 8:return Ot(e,n,n.pendingProps.children,a),n.child;case 12:return Ot(e,n,n.pendingProps.children,a),n.child;case 10:return l=n.pendingProps,jr(n,n.type,l.value),Ot(e,n,l.children,a),n.child;case 9:return o=n.type._context,l=n.pendingProps.children,Ta(n),o=Bt(o),l=l(o),n.flags|=1,Ot(e,n,l,a),n.child;case 14:return rp(e,n,n.type,n.pendingProps,a);case 15:return ap(e,n,n.type,n.pendingProps,a);case 19:return dp(e,n,a);case 31:return l=n.pendingProps,a=n.mode,l={mode:l.mode,children:l.children},e===null?(a=Fl(l,a),a.ref=n.ref,n.child=a,a.return=n,n=a):(a=ur(e.child,l),a.ref=n.ref,n.child=a,a.return=n,n=a),n;case 22:return ip(e,n,a);case 24:return Ta(n),l=Bt(pt),e===null?(o=oc(),o===null&&(o=Ve,f=sc(),o.pooledCache=f,f.refCount++,f!==null&&(o.pooledCacheLanes|=a),o=f),n.memoizedState={parent:l,cache:o},cc(n),jr(n,pt,o)):((e.lanes&a)!==0&&(fc(e,n),ss(n,null,null,a),is()),o=e.memoizedState,f=n.memoizedState,o.parent!==l?(o={parent:l,cache:l},n.memoizedState=o,n.lanes===0&&(n.memoizedState=n.updateQueue.baseState=o),jr(n,pt,l)):(l=f.cache,jr(n,pt,l),l!==o.cache&&ic(n,[pt],a,!0))),Ot(e,n,n.pendingProps.children,a),n.child;case 29:throw n.pendingProps}throw Error(s(156,n.tag))}function yr(e){e.flags|=4}function mp(e,n){if(n.type!=="stylesheet"||(n.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!Sg(n)){if(n=vn.current,n!==null&&((Ne&4194048)===Ne?Pn!==null:(Ne&62914560)!==Ne&&(Ne&536870912)===0||n!==Pn))throw rs=uc,$m;e.flags|=8192}}function Vl(e,n){n!==null&&(e.flags|=4),e.flags&16384&&(n=e.tag!==22?ha():536870912,e.lanes|=n,pi|=n)}function hs(e,n){if(!Le)switch(e.tailMode){case"hidden":n=e.tail;for(var a=null;n!==null;)n.alternate!==null&&(a=n),n=n.sibling;a===null?e.tail=null:a.sibling=null;break;case"collapsed":a=e.tail;for(var l=null;a!==null;)a.alternate!==null&&(l=a),a=a.sibling;l===null?n||e.tail===null?e.tail=null:e.tail.sibling=null:l.sibling=null}}function Ke(e){var n=e.alternate!==null&&e.alternate.child===e.child,a=0,l=0;if(n)for(var o=e.child;o!==null;)a|=o.lanes|o.childLanes,l|=o.subtreeFlags&65011712,l|=o.flags&65011712,o.return=e,o=o.sibling;else for(o=e.child;o!==null;)a|=o.lanes|o.childLanes,l|=o.subtreeFlags,l|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=l,e.childLanes=a,n}function IE(e,n,a){var l=n.pendingProps;switch(tc(n),n.tag){case 31:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ke(n),null;case 1:return Ke(n),null;case 3:return a=n.stateNode,l=null,e!==null&&(l=e.memoizedState.cache),n.memoizedState.cache!==l&&(n.flags|=2048),hr(pt),St(),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),(e===null||e.child===null)&&(Ki(n)?yr(n):e===null||e.memoizedState.isDehydrated&&(n.flags&256)===0||(n.flags|=1024,Ym())),Ke(n),null;case 26:return a=n.memoizedState,e===null?(yr(n),a!==null?(Ke(n),mp(n,a)):(Ke(n),n.flags&=-16777217)):a?a!==e.memoizedState?(yr(n),Ke(n),mp(n,a)):(Ke(n),n.flags&=-16777217):(e.memoizedProps!==l&&yr(n),Ke(n),n.flags&=-16777217),null;case 27:Mr(n),a=ue.current;var o=n.type;if(e!==null&&n.stateNode!=null)e.memoizedProps!==l&&yr(n);else{if(!l){if(n.stateNode===null)throw Error(s(166));return Ke(n),null}e=te.current,Ki(n)?Vm(n):(e=mg(o,l,a),n.stateNode=e,yr(n))}return Ke(n),null;case 5:if(Mr(n),a=n.type,e!==null&&n.stateNode!=null)e.memoizedProps!==l&&yr(n);else{if(!l){if(n.stateNode===null)throw Error(s(166));return Ke(n),null}if(e=te.current,Ki(n))Vm(n);else{switch(o=ro(ue.current),e){case 1:e=o.createElementNS("http://www.w3.org/2000/svg",a);break;case 2:e=o.createElementNS("http://www.w3.org/1998/Math/MathML",a);break;default:switch(a){case"svg":e=o.createElementNS("http://www.w3.org/2000/svg",a);break;case"math":e=o.createElementNS("http://www.w3.org/1998/Math/MathML",a);break;case"script":e=o.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild);break;case"select":e=typeof l.is=="string"?o.createElement("select",{is:l.is}):o.createElement("select"),l.multiple?e.multiple=!0:l.size&&(e.size=l.size);break;default:e=typeof l.is=="string"?o.createElement(a,{is:l.is}):o.createElement(a)}}e[ht]=n,e[Dt]=l;e:for(o=n.child;o!==null;){if(o.tag===5||o.tag===6)e.appendChild(o.stateNode);else if(o.tag!==4&&o.tag!==27&&o.child!==null){o.child.return=o,o=o.child;continue}if(o===n)break e;for(;o.sibling===null;){if(o.return===null||o.return===n)break e;o=o.return}o.sibling.return=o.return,o=o.sibling}n.stateNode=e;e:switch(Rt(e,a,l),a){case"button":case"input":case"select":case"textarea":e=!!l.autoFocus;break e;case"img":e=!0;break e;default:e=!1}e&&yr(n)}}return Ke(n),n.flags&=-16777217,null;case 6:if(e&&n.stateNode!=null)e.memoizedProps!==l&&yr(n);else{if(typeof l!="string"&&n.stateNode===null)throw Error(s(166));if(e=ue.current,Ki(n)){if(e=n.stateNode,a=n.memoizedProps,l=null,o=Ht,o!==null)switch(o.tag){case 27:case 5:l=o.memoizedProps}e[ht]=n,e=!!(e.nodeValue===a||l!==null&&l.suppressHydrationWarning===!0||lg(e.nodeValue,a)),e||Ea(n)}else e=ro(e).createTextNode(l),e[ht]=n,n.stateNode=e}return Ke(n),null;case 13:if(l=n.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(o=Ki(n),l!==null&&l.dehydrated!==null){if(e===null){if(!o)throw Error(s(318));if(o=n.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(s(317));o[ht]=n}else $i(),(n.flags&128)===0&&(n.memoizedState=null),n.flags|=4;Ke(n),o=!1}else o=Ym(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=o),o=!0;if(!o)return n.flags&256?(pr(n),n):(pr(n),null)}if(pr(n),(n.flags&128)!==0)return n.lanes=a,n;if(a=l!==null,e=e!==null&&e.memoizedState!==null,a){l=n.child,o=null,l.alternate!==null&&l.alternate.memoizedState!==null&&l.alternate.memoizedState.cachePool!==null&&(o=l.alternate.memoizedState.cachePool.pool);var f=null;l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(f=l.memoizedState.cachePool.pool),f!==o&&(l.flags|=2048)}return a!==e&&a&&(n.child.flags|=8192),Vl(n,n.updateQueue),Ke(n),null;case 4:return St(),e===null&&mf(n.stateNode.containerInfo),Ke(n),null;case 10:return hr(n.type),Ke(n),null;case 19:if($(gt),o=n.memoizedState,o===null)return Ke(n),null;if(l=(n.flags&128)!==0,f=o.rendering,f===null)if(l)hs(o,!1);else{if(tt!==0||e!==null&&(e.flags&128)!==0)for(e=n.child;e!==null;){if(f=zl(e),f!==null){for(n.flags|=128,hs(o,!1),e=f.updateQueue,n.updateQueue=e,Vl(n,e),n.subtreeFlags=0,e=a,a=n.child;a!==null;)qm(a,e),a=a.sibling;return Y(gt,gt.current&1|2),n.child}e=e.sibling}o.tail!==null&&Tt()>Xl&&(n.flags|=128,l=!0,hs(o,!1),n.lanes=4194304)}else{if(!l)if(e=zl(f),e!==null){if(n.flags|=128,l=!0,e=e.updateQueue,n.updateQueue=e,Vl(n,e),hs(o,!0),o.tail===null&&o.tailMode==="hidden"&&!f.alternate&&!Le)return Ke(n),null}else 2*Tt()-o.renderingStartTime>Xl&&a!==536870912&&(n.flags|=128,l=!0,hs(o,!1),n.lanes=4194304);o.isBackwards?(f.sibling=n.child,n.child=f):(e=o.last,e!==null?e.sibling=f:n.child=f,o.last=f)}return o.tail!==null?(n=o.tail,o.rendering=n,o.tail=n.sibling,o.renderingStartTime=Tt(),n.sibling=null,e=gt.current,Y(gt,l?e&1|2:e&1),n):(Ke(n),null);case 22:case 23:return pr(n),pc(),l=n.memoizedState!==null,e!==null?e.memoizedState!==null!==l&&(n.flags|=8192):l&&(n.flags|=8192),l?(a&536870912)!==0&&(n.flags&128)===0&&(Ke(n),n.subtreeFlags&6&&(n.flags|=8192)):Ke(n),a=n.updateQueue,a!==null&&Vl(n,a.retryQueue),a=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),l=null,n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(l=n.memoizedState.cachePool.pool),l!==a&&(n.flags|=2048),e!==null&&$(Aa),null;case 24:return a=null,e!==null&&(a=e.memoizedState.cache),n.memoizedState.cache!==a&&(n.flags|=2048),hr(pt),Ke(n),null;case 25:return null;case 30:return null}throw Error(s(156,n.tag))}function zE(e,n){switch(tc(n),n.tag){case 1:return e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 3:return hr(pt),St(),e=n.flags,(e&65536)!==0&&(e&128)===0?(n.flags=e&-65537|128,n):null;case 26:case 27:case 5:return Mr(n),null;case 13:if(pr(n),e=n.memoizedState,e!==null&&e.dehydrated!==null){if(n.alternate===null)throw Error(s(340));$i()}return e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 19:return $(gt),null;case 4:return St(),null;case 10:return hr(n.type),null;case 22:case 23:return pr(n),pc(),e!==null&&$(Aa),e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 24:return hr(pt),null;case 25:return null;default:return null}}function pp(e,n){switch(tc(n),n.tag){case 3:hr(pt),St();break;case 26:case 27:case 5:Mr(n);break;case 4:St();break;case 13:pr(n);break;case 19:$(gt);break;case 10:hr(n.type);break;case 22:case 23:pr(n),pc(),e!==null&&$(Aa);break;case 24:hr(pt)}}function ms(e,n){try{var a=n.updateQueue,l=a!==null?a.lastEffect:null;if(l!==null){var o=l.next;a=o;do{if((a.tag&e)===e){l=void 0;var f=a.create,g=a.inst;l=f(),g.destroy=l}a=a.next}while(a!==o)}}catch(v){qe(n,n.return,v)}}function Vr(e,n,a){try{var l=n.updateQueue,o=l!==null?l.lastEffect:null;if(o!==null){var f=o.next;l=f;do{if((l.tag&e)===e){var g=l.inst,v=g.destroy;if(v!==void 0){g.destroy=void 0,o=n;var T=a,L=v;try{L()}catch(F){qe(o,T,F)}}}l=l.next}while(l!==f)}}catch(F){qe(n,n.return,F)}}function gp(e){var n=e.updateQueue;if(n!==null){var a=e.stateNode;try{r0(n,a)}catch(l){qe(e,e.return,l)}}}function yp(e,n,a){a.props=xa(e.type,e.memoizedProps),a.state=e.memoizedState;try{a.componentWillUnmount()}catch(l){qe(e,n,l)}}function ps(e,n){try{var a=e.ref;if(a!==null){switch(e.tag){case 26:case 27:case 5:var l=e.stateNode;break;case 30:l=e.stateNode;break;default:l=e.stateNode}typeof a=="function"?e.refCleanup=a(l):a.current=l}}catch(o){qe(e,n,o)}}function Yn(e,n){var a=e.ref,l=e.refCleanup;if(a!==null)if(typeof l=="function")try{l()}catch(o){qe(e,n,o)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof a=="function")try{a(null)}catch(o){qe(e,n,o)}else a.current=null}function bp(e){var n=e.type,a=e.memoizedProps,l=e.stateNode;try{e:switch(n){case"button":case"input":case"select":case"textarea":a.autoFocus&&l.focus();break e;case"img":a.src?l.src=a.src:a.srcSet&&(l.srcset=a.srcSet)}}catch(o){qe(e,e.return,o)}}function Fc(e,n,a){try{var l=e.stateNode;s2(l,e.type,a,n),l[Dt]=n}catch(o){qe(e,e.return,o)}}function vp(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Wr(e.type)||e.tag===4}function Vc(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||vp(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&Wr(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Pc(e,n,a){var l=e.tag;if(l===5||l===6)e=e.stateNode,n?(a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a).insertBefore(e,n):(n=a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a,n.appendChild(e),a=a._reactRootContainer,a!=null||n.onclick!==null||(n.onclick=no));else if(l!==4&&(l===27&&Wr(e.type)&&(a=e.stateNode,n=null),e=e.child,e!==null))for(Pc(e,n,a),e=e.sibling;e!==null;)Pc(e,n,a),e=e.sibling}function Pl(e,n,a){var l=e.tag;if(l===5||l===6)e=e.stateNode,n?a.insertBefore(e,n):a.appendChild(e);else if(l!==4&&(l===27&&Wr(e.type)&&(a=e.stateNode),e=e.child,e!==null))for(Pl(e,n,a),e=e.sibling;e!==null;)Pl(e,n,a),e=e.sibling}function _p(e){var n=e.stateNode,a=e.memoizedProps;try{for(var l=e.type,o=n.attributes;o.length;)n.removeAttributeNode(o[0]);Rt(n,l,a),n[ht]=e,n[Dt]=a}catch(f){qe(e,e.return,f)}}var br=!1,at=!1,Yc=!1,Ep=typeof WeakSet=="function"?WeakSet:Set,bt=null;function GE(e,n){if(e=e.containerInfo,yf=uo,e=Dm(e),Vu(e)){if("selectionStart"in e)var a={start:e.selectionStart,end:e.selectionEnd};else e:{a=(a=e.ownerDocument)&&a.defaultView||window;var l=a.getSelection&&a.getSelection();if(l&&l.rangeCount!==0){a=l.anchorNode;var o=l.anchorOffset,f=l.focusNode;l=l.focusOffset;try{a.nodeType,f.nodeType}catch{a=null;break e}var g=0,v=-1,T=-1,L=0,F=0,P=e,j=null;t:for(;;){for(var I;P!==a||o!==0&&P.nodeType!==3||(v=g+o),P!==f||l!==0&&P.nodeType!==3||(T=g+l),P.nodeType===3&&(g+=P.nodeValue.length),(I=P.firstChild)!==null;)j=P,P=I;for(;;){if(P===e)break t;if(j===a&&++L===o&&(v=g),j===f&&++F===l&&(T=g),(I=P.nextSibling)!==null)break;P=j,j=P.parentNode}P=I}a=v===-1||T===-1?null:{start:v,end:T}}else a=null}a=a||{start:0,end:0}}else a=null;for(bf={focusedElem:e,selectionRange:a},uo=!1,bt=n;bt!==null;)if(n=bt,e=n.child,(n.subtreeFlags&1024)!==0&&e!==null)e.return=n,bt=e;else for(;bt!==null;){switch(n=bt,f=n.alternate,e=n.flags,n.tag){case 0:break;case 11:case 15:break;case 1:if((e&1024)!==0&&f!==null){e=void 0,a=n,o=f.memoizedProps,f=f.memoizedState,l=a.stateNode;try{var he=xa(a.type,o,a.elementType===a.type);e=l.getSnapshotBeforeUpdate(he,f),l.__reactInternalSnapshotBeforeUpdate=e}catch(fe){qe(a,a.return,fe)}}break;case 3:if((e&1024)!==0){if(e=n.stateNode.containerInfo,a=e.nodeType,a===9)Ef(e);else if(a===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Ef(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((e&1024)!==0)throw Error(s(163))}if(e=n.sibling,e!==null){e.return=n.return,bt=e;break}bt=n.return}}function Sp(e,n,a){var l=a.flags;switch(a.tag){case 0:case 11:case 15:Pr(e,a),l&4&&ms(5,a);break;case 1:if(Pr(e,a),l&4)if(e=a.stateNode,n===null)try{e.componentDidMount()}catch(g){qe(a,a.return,g)}else{var o=xa(a.type,n.memoizedProps);n=n.memoizedState;try{e.componentDidUpdate(o,n,e.__reactInternalSnapshotBeforeUpdate)}catch(g){qe(a,a.return,g)}}l&64&&gp(a),l&512&&ps(a,a.return);break;case 3:if(Pr(e,a),l&64&&(e=a.updateQueue,e!==null)){if(n=null,a.child!==null)switch(a.child.tag){case 27:case 5:n=a.child.stateNode;break;case 1:n=a.child.stateNode}try{r0(e,n)}catch(g){qe(a,a.return,g)}}break;case 27:n===null&&l&4&&_p(a);case 26:case 5:Pr(e,a),n===null&&l&4&&bp(a),l&512&&ps(a,a.return);break;case 12:Pr(e,a);break;case 13:Pr(e,a),l&4&&Op(e,a),l&64&&(e=a.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(a=QE.bind(null,a),h2(e,a))));break;case 22:if(l=a.memoizedState!==null||br,!l){n=n!==null&&n.memoizedState!==null||at,o=br;var f=at;br=l,(at=n)&&!f?Yr(e,a,(a.subtreeFlags&8772)!==0):Pr(e,a),br=o,at=f}break;case 30:break;default:Pr(e,a)}}function Tp(e){var n=e.alternate;n!==null&&(e.alternate=null,Tp(n)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(n=e.stateNode,n!==null&&Kt(n)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var Xe=null,Zt=!1;function vr(e,n,a){for(a=a.child;a!==null;)Ap(e,n,a),a=a.sibling}function Ap(e,n,a){if(Nt&&typeof Nt.onCommitFiberUnmount=="function")try{Nt.onCommitFiberUnmount(dn,a)}catch{}switch(a.tag){case 26:at||Yn(a,n),vr(e,n,a),a.memoizedState?a.memoizedState.count--:a.stateNode&&(a=a.stateNode,a.parentNode.removeChild(a));break;case 27:at||Yn(a,n);var l=Xe,o=Zt;Wr(a.type)&&(Xe=a.stateNode,Zt=!1),vr(e,n,a),As(a.stateNode),Xe=l,Zt=o;break;case 5:at||Yn(a,n);case 6:if(l=Xe,o=Zt,Xe=null,vr(e,n,a),Xe=l,Zt=o,Xe!==null)if(Zt)try{(Xe.nodeType===9?Xe.body:Xe.nodeName==="HTML"?Xe.ownerDocument.body:Xe).removeChild(a.stateNode)}catch(f){qe(a,n,f)}else try{Xe.removeChild(a.stateNode)}catch(f){qe(a,n,f)}break;case 18:Xe!==null&&(Zt?(e=Xe,dg(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,a.stateNode),Ds(e)):dg(Xe,a.stateNode));break;case 4:l=Xe,o=Zt,Xe=a.stateNode.containerInfo,Zt=!0,vr(e,n,a),Xe=l,Zt=o;break;case 0:case 11:case 14:case 15:at||Vr(2,a,n),at||Vr(4,a,n),vr(e,n,a);break;case 1:at||(Yn(a,n),l=a.stateNode,typeof l.componentWillUnmount=="function"&&yp(a,n,l)),vr(e,n,a);break;case 21:vr(e,n,a);break;case 22:at=(l=at)||a.memoizedState!==null,vr(e,n,a),at=l;break;default:vr(e,n,a)}}function Op(e,n){if(n.memoizedState===null&&(e=n.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Ds(e)}catch(a){qe(n,n.return,a)}}function kE(e){switch(e.tag){case 13:case 19:var n=e.stateNode;return n===null&&(n=e.stateNode=new Ep),n;case 22:return e=e.stateNode,n=e._retryCache,n===null&&(n=e._retryCache=new Ep),n;default:throw Error(s(435,e.tag))}}function Xc(e,n){var a=kE(e);n.forEach(function(l){var o=KE.bind(null,e,l);a.has(l)||(a.add(l),l.then(o,o))})}function en(e,n){var a=n.deletions;if(a!==null)for(var l=0;l<a.length;l++){var o=a[l],f=e,g=n,v=g;e:for(;v!==null;){switch(v.tag){case 27:if(Wr(v.type)){Xe=v.stateNode,Zt=!1;break e}break;case 5:Xe=v.stateNode,Zt=!1;break e;case 3:case 4:Xe=v.stateNode.containerInfo,Zt=!0;break e}v=v.return}if(Xe===null)throw Error(s(160));Ap(f,g,o),Xe=null,Zt=!1,f=o.alternate,f!==null&&(f.return=null),o.return=null}if(n.subtreeFlags&13878)for(n=n.child;n!==null;)xp(n,e),n=n.sibling}var Mn=null;function xp(e,n){var a=e.alternate,l=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:en(n,e),tn(e),l&4&&(Vr(3,e,e.return),ms(3,e),Vr(5,e,e.return));break;case 1:en(n,e),tn(e),l&512&&(at||a===null||Yn(a,a.return)),l&64&&br&&(e=e.updateQueue,e!==null&&(l=e.callbacks,l!==null&&(a=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=a===null?l:a.concat(l))));break;case 26:var o=Mn;if(en(n,e),tn(e),l&512&&(at||a===null||Yn(a,a.return)),l&4){var f=a!==null?a.memoizedState:null;if(l=e.memoizedState,a===null)if(l===null)if(e.stateNode===null){e:{l=e.type,a=e.memoizedProps,o=o.ownerDocument||o;t:switch(l){case"title":f=o.getElementsByTagName("title")[0],(!f||f[Br]||f[ht]||f.namespaceURI==="http://www.w3.org/2000/svg"||f.hasAttribute("itemprop"))&&(f=o.createElement(l),o.head.insertBefore(f,o.querySelector("head > title"))),Rt(f,l,a),f[ht]=e,st(f),l=f;break e;case"link":var g=_g("link","href",o).get(l+(a.href||""));if(g){for(var v=0;v<g.length;v++)if(f=g[v],f.getAttribute("href")===(a.href==null||a.href===""?null:a.href)&&f.getAttribute("rel")===(a.rel==null?null:a.rel)&&f.getAttribute("title")===(a.title==null?null:a.title)&&f.getAttribute("crossorigin")===(a.crossOrigin==null?null:a.crossOrigin)){g.splice(v,1);break t}}f=o.createElement(l),Rt(f,l,a),o.head.appendChild(f);break;case"meta":if(g=_g("meta","content",o).get(l+(a.content||""))){for(v=0;v<g.length;v++)if(f=g[v],f.getAttribute("content")===(a.content==null?null:""+a.content)&&f.getAttribute("name")===(a.name==null?null:a.name)&&f.getAttribute("property")===(a.property==null?null:a.property)&&f.getAttribute("http-equiv")===(a.httpEquiv==null?null:a.httpEquiv)&&f.getAttribute("charset")===(a.charSet==null?null:a.charSet)){g.splice(v,1);break t}}f=o.createElement(l),Rt(f,l,a),o.head.appendChild(f);break;default:throw Error(s(468,l))}f[ht]=e,st(f),l=f}e.stateNode=l}else Eg(o,e.type,e.stateNode);else e.stateNode=vg(o,l,e.memoizedProps);else f!==l?(f===null?a.stateNode!==null&&(a=a.stateNode,a.parentNode.removeChild(a)):f.count--,l===null?Eg(o,e.type,e.stateNode):vg(o,l,e.memoizedProps)):l===null&&e.stateNode!==null&&Fc(e,e.memoizedProps,a.memoizedProps)}break;case 27:en(n,e),tn(e),l&512&&(at||a===null||Yn(a,a.return)),a!==null&&l&4&&Fc(e,e.memoizedProps,a.memoizedProps);break;case 5:if(en(n,e),tn(e),l&512&&(at||a===null||Yn(a,a.return)),e.flags&32){o=e.stateNode;try{Xa(o,"")}catch(I){qe(e,e.return,I)}}l&4&&e.stateNode!=null&&(o=e.memoizedProps,Fc(e,o,a!==null?a.memoizedProps:o)),l&1024&&(Yc=!0);break;case 6:if(en(n,e),tn(e),l&4){if(e.stateNode===null)throw Error(s(162));l=e.memoizedProps,a=e.stateNode;try{a.nodeValue=l}catch(I){qe(e,e.return,I)}}break;case 3:if(so=null,o=Mn,Mn=ao(n.containerInfo),en(n,e),Mn=o,tn(e),l&4&&a!==null&&a.memoizedState.isDehydrated)try{Ds(n.containerInfo)}catch(I){qe(e,e.return,I)}Yc&&(Yc=!1,Rp(e));break;case 4:l=Mn,Mn=ao(e.stateNode.containerInfo),en(n,e),tn(e),Mn=l;break;case 12:en(n,e),tn(e);break;case 13:en(n,e),tn(e),e.child.flags&8192&&e.memoizedState!==null!=(a!==null&&a.memoizedState!==null)&&(Jc=Tt()),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,Xc(e,l)));break;case 22:o=e.memoizedState!==null;var T=a!==null&&a.memoizedState!==null,L=br,F=at;if(br=L||o,at=F||T,en(n,e),at=F,br=L,tn(e),l&8192)e:for(n=e.stateNode,n._visibility=o?n._visibility&-2:n._visibility|1,o&&(a===null||T||br||at||Ra(e)),a=null,n=e;;){if(n.tag===5||n.tag===26){if(a===null){T=a=n;try{if(f=T.stateNode,o)g=f.style,typeof g.setProperty=="function"?g.setProperty("display","none","important"):g.display="none";else{v=T.stateNode;var P=T.memoizedProps.style,j=P!=null&&P.hasOwnProperty("display")?P.display:null;v.style.display=j==null||typeof j=="boolean"?"":(""+j).trim()}}catch(I){qe(T,T.return,I)}}}else if(n.tag===6){if(a===null){T=n;try{T.stateNode.nodeValue=o?"":T.memoizedProps}catch(I){qe(T,T.return,I)}}}else if((n.tag!==22&&n.tag!==23||n.memoizedState===null||n===e)&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===e)break e;for(;n.sibling===null;){if(n.return===null||n.return===e)break e;a===n&&(a=null),n=n.return}a===n&&(a=null),n.sibling.return=n.return,n=n.sibling}l&4&&(l=e.updateQueue,l!==null&&(a=l.retryQueue,a!==null&&(l.retryQueue=null,Xc(e,a))));break;case 19:en(n,e),tn(e),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,Xc(e,l)));break;case 30:break;case 21:break;default:en(n,e),tn(e)}}function tn(e){var n=e.flags;if(n&2){try{for(var a,l=e.return;l!==null;){if(vp(l)){a=l;break}l=l.return}if(a==null)throw Error(s(160));switch(a.tag){case 27:var o=a.stateNode,f=Vc(e);Pl(e,f,o);break;case 5:var g=a.stateNode;a.flags&32&&(Xa(g,""),a.flags&=-33);var v=Vc(e);Pl(e,v,g);break;case 3:case 4:var T=a.stateNode.containerInfo,L=Vc(e);Pc(e,L,T);break;default:throw Error(s(161))}}catch(F){qe(e,e.return,F)}e.flags&=-3}n&4096&&(e.flags&=-4097)}function Rp(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var n=e;Rp(n),n.tag===5&&n.flags&1024&&n.stateNode.reset(),e=e.sibling}}function Pr(e,n){if(n.subtreeFlags&8772)for(n=n.child;n!==null;)Sp(e,n.alternate,n),n=n.sibling}function Ra(e){for(e=e.child;e!==null;){var n=e;switch(n.tag){case 0:case 11:case 14:case 15:Vr(4,n,n.return),Ra(n);break;case 1:Yn(n,n.return);var a=n.stateNode;typeof a.componentWillUnmount=="function"&&yp(n,n.return,a),Ra(n);break;case 27:As(n.stateNode);case 26:case 5:Yn(n,n.return),Ra(n);break;case 22:n.memoizedState===null&&Ra(n);break;case 30:Ra(n);break;default:Ra(n)}e=e.sibling}}function Yr(e,n,a){for(a=a&&(n.subtreeFlags&8772)!==0,n=n.child;n!==null;){var l=n.alternate,o=e,f=n,g=f.flags;switch(f.tag){case 0:case 11:case 15:Yr(o,f,a),ms(4,f);break;case 1:if(Yr(o,f,a),l=f,o=l.stateNode,typeof o.componentDidMount=="function")try{o.componentDidMount()}catch(L){qe(l,l.return,L)}if(l=f,o=l.updateQueue,o!==null){var v=l.stateNode;try{var T=o.shared.hiddenCallbacks;if(T!==null)for(o.shared.hiddenCallbacks=null,o=0;o<T.length;o++)n0(T[o],v)}catch(L){qe(l,l.return,L)}}a&&g&64&&gp(f),ps(f,f.return);break;case 27:_p(f);case 26:case 5:Yr(o,f,a),a&&l===null&&g&4&&bp(f),ps(f,f.return);break;case 12:Yr(o,f,a);break;case 13:Yr(o,f,a),a&&g&4&&Op(o,f);break;case 22:f.memoizedState===null&&Yr(o,f,a),ps(f,f.return);break;case 30:break;default:Yr(o,f,a)}n=n.sibling}}function Zc(e,n){var a=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),e=null,n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(e=n.memoizedState.cachePool.pool),e!==a&&(e!=null&&e.refCount++,a!=null&&es(a))}function Qc(e,n){e=null,n.alternate!==null&&(e=n.alternate.memoizedState.cache),n=n.memoizedState.cache,n!==e&&(n.refCount++,e!=null&&es(e))}function Xn(e,n,a,l){if(n.subtreeFlags&10256)for(n=n.child;n!==null;)wp(e,n,a,l),n=n.sibling}function wp(e,n,a,l){var o=n.flags;switch(n.tag){case 0:case 11:case 15:Xn(e,n,a,l),o&2048&&ms(9,n);break;case 1:Xn(e,n,a,l);break;case 3:Xn(e,n,a,l),o&2048&&(e=null,n.alternate!==null&&(e=n.alternate.memoizedState.cache),n=n.memoizedState.cache,n!==e&&(n.refCount++,e!=null&&es(e)));break;case 12:if(o&2048){Xn(e,n,a,l),e=n.stateNode;try{var f=n.memoizedProps,g=f.id,v=f.onPostCommit;typeof v=="function"&&v(g,n.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(T){qe(n,n.return,T)}}else Xn(e,n,a,l);break;case 13:Xn(e,n,a,l);break;case 23:break;case 22:f=n.stateNode,g=n.alternate,n.memoizedState!==null?f._visibility&2?Xn(e,n,a,l):gs(e,n):f._visibility&2?Xn(e,n,a,l):(f._visibility|=2,di(e,n,a,l,(n.subtreeFlags&10256)!==0)),o&2048&&Zc(g,n);break;case 24:Xn(e,n,a,l),o&2048&&Qc(n.alternate,n);break;default:Xn(e,n,a,l)}}function di(e,n,a,l,o){for(o=o&&(n.subtreeFlags&10256)!==0,n=n.child;n!==null;){var f=e,g=n,v=a,T=l,L=g.flags;switch(g.tag){case 0:case 11:case 15:di(f,g,v,T,o),ms(8,g);break;case 23:break;case 22:var F=g.stateNode;g.memoizedState!==null?F._visibility&2?di(f,g,v,T,o):gs(f,g):(F._visibility|=2,di(f,g,v,T,o)),o&&L&2048&&Zc(g.alternate,g);break;case 24:di(f,g,v,T,o),o&&L&2048&&Qc(g.alternate,g);break;default:di(f,g,v,T,o)}n=n.sibling}}function gs(e,n){if(n.subtreeFlags&10256)for(n=n.child;n!==null;){var a=e,l=n,o=l.flags;switch(l.tag){case 22:gs(a,l),o&2048&&Zc(l.alternate,l);break;case 24:gs(a,l),o&2048&&Qc(l.alternate,l);break;default:gs(a,l)}n=n.sibling}}var ys=8192;function hi(e){if(e.subtreeFlags&ys)for(e=e.child;e!==null;)Cp(e),e=e.sibling}function Cp(e){switch(e.tag){case 26:hi(e),e.flags&ys&&e.memoizedState!==null&&x2(Mn,e.memoizedState,e.memoizedProps);break;case 5:hi(e);break;case 3:case 4:var n=Mn;Mn=ao(e.stateNode.containerInfo),hi(e),Mn=n;break;case 22:e.memoizedState===null&&(n=e.alternate,n!==null&&n.memoizedState!==null?(n=ys,ys=16777216,hi(e),ys=n):hi(e));break;default:hi(e)}}function Np(e){var n=e.alternate;if(n!==null&&(e=n.child,e!==null)){n.child=null;do n=e.sibling,e.sibling=null,e=n;while(e!==null)}}function bs(e){var n=e.deletions;if((e.flags&16)!==0){if(n!==null)for(var a=0;a<n.length;a++){var l=n[a];bt=l,Dp(l,e)}Np(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Mp(e),e=e.sibling}function Mp(e){switch(e.tag){case 0:case 11:case 15:bs(e),e.flags&2048&&Vr(9,e,e.return);break;case 3:bs(e);break;case 12:bs(e);break;case 22:var n=e.stateNode;e.memoizedState!==null&&n._visibility&2&&(e.return===null||e.return.tag!==13)?(n._visibility&=-3,Yl(e)):bs(e);break;default:bs(e)}}function Yl(e){var n=e.deletions;if((e.flags&16)!==0){if(n!==null)for(var a=0;a<n.length;a++){var l=n[a];bt=l,Dp(l,e)}Np(e)}for(e=e.child;e!==null;){switch(n=e,n.tag){case 0:case 11:case 15:Vr(8,n,n.return),Yl(n);break;case 22:a=n.stateNode,a._visibility&2&&(a._visibility&=-3,Yl(n));break;default:Yl(n)}e=e.sibling}}function Dp(e,n){for(;bt!==null;){var a=bt;switch(a.tag){case 0:case 11:case 15:Vr(8,a,n);break;case 23:case 22:if(a.memoizedState!==null&&a.memoizedState.cachePool!==null){var l=a.memoizedState.cachePool.pool;l!=null&&l.refCount++}break;case 24:es(a.memoizedState.cache)}if(l=a.child,l!==null)l.return=a,bt=l;else e:for(a=e;bt!==null;){l=bt;var o=l.sibling,f=l.return;if(Tp(l),l===a){bt=null;break e}if(o!==null){o.return=f,bt=o;break e}bt=f}}}var qE={getCacheForType:function(e){var n=Bt(pt),a=n.data.get(e);return a===void 0&&(a=e(),n.data.set(e,a)),a}},FE=typeof WeakMap=="function"?WeakMap:Map,He=0,Ve=null,Oe=null,Ne=0,je=0,nn=null,Xr=!1,mi=!1,Kc=!1,_r=0,tt=0,Zr=0,wa=0,$c=0,_n=0,pi=0,vs=null,Qt=null,Wc=!1,Jc=0,Xl=1/0,Zl=null,Qr=null,xt=0,Kr=null,gi=null,yi=0,ef=0,tf=null,Lp=null,_s=0,nf=null;function rn(){if((He&2)!==0&&Ne!==0)return Ne&-Ne;if(z.T!==null){var e=ai;return e!==0?e:cf()}return Ii()}function Bp(){_n===0&&(_n=(Ne&536870912)===0||Le?da():536870912);var e=vn.current;return e!==null&&(e.flags|=32),_n}function an(e,n,a){(e===Ve&&(je===2||je===9)||e.cancelPendingCommit!==null)&&(bi(e,0),$r(e,Ne,_n,!1)),wn(e,a),((He&2)===0||e!==Ve)&&(e===Ve&&((He&2)===0&&(wa|=a),tt===4&&$r(e,Ne,_n,!1)),Zn(e))}function Up(e,n,a){if((He&6)!==0)throw Error(s(327));var l=!a&&(n&124)===0&&(n&e.expiredLanes)===0||rr(e,n),o=l?YE(e,n):sf(e,n,!0),f=l;do{if(o===0){mi&&!l&&$r(e,n,0,!1);break}else{if(a=e.current.alternate,f&&!VE(a)){o=sf(e,n,!1),f=!1;continue}if(o===2){if(f=n,e.errorRecoveryDisabledLanes&f)var g=0;else g=e.pendingLanes&-536870913,g=g!==0?g:g&536870912?536870912:0;if(g!==0){n=g;e:{var v=e;o=vs;var T=v.current.memoizedState.isDehydrated;if(T&&(bi(v,g).flags|=256),g=sf(v,g,!1),g!==2){if(Kc&&!T){v.errorRecoveryDisabledLanes|=f,wa|=f,o=4;break e}f=Qt,Qt=o,f!==null&&(Qt===null?Qt=f:Qt.push.apply(Qt,f))}o=g}if(f=!1,o!==2)continue}}if(o===1){bi(e,0),$r(e,n,0,!0);break}e:{switch(l=e,f=o,f){case 0:case 1:throw Error(s(345));case 4:if((n&4194048)!==n)break;case 6:$r(l,n,_n,!Xr);break e;case 2:Qt=null;break;case 3:case 5:break;default:throw Error(s(329))}if((n&62914560)===n&&(o=Jc+300-Tt(),10<o)){if($r(l,n,_n,!Xr),Lr(l,0,!0)!==0)break e;l.timeoutHandle=cg(Hp.bind(null,l,a,Qt,Zl,Wc,n,_n,wa,pi,Xr,f,2,-0,0),o);break e}Hp(l,a,Qt,Zl,Wc,n,_n,wa,pi,Xr,f,0,-0,0)}}break}while(!0);Zn(e)}function Hp(e,n,a,l,o,f,g,v,T,L,F,P,j,I){if(e.timeoutHandle=-1,P=n.subtreeFlags,(P&8192||(P&16785408)===16785408)&&(Rs={stylesheets:null,count:0,unsuspend:O2},Cp(n),P=R2(),P!==null)){e.cancelPendingCommit=P(Fp.bind(null,e,n,f,a,l,o,g,v,T,F,1,j,I)),$r(e,f,g,!L);return}Fp(e,n,f,a,l,o,g,v,T)}function VE(e){for(var n=e;;){var a=n.tag;if((a===0||a===11||a===15)&&n.flags&16384&&(a=n.updateQueue,a!==null&&(a=a.stores,a!==null)))for(var l=0;l<a.length;l++){var o=a[l],f=o.getSnapshot;o=o.value;try{if(!Wt(f(),o))return!1}catch{return!1}}if(a=n.child,n.subtreeFlags&16384&&a!==null)a.return=n,n=a;else{if(n===e)break;for(;n.sibling===null;){if(n.return===null||n.return===e)return!0;n=n.return}n.sibling.return=n.return,n=n.sibling}}return!0}function $r(e,n,a,l){n&=~$c,n&=~wa,e.suspendedLanes|=n,e.pingedLanes&=~n,l&&(e.warmLanes|=n),l=e.expirationTimes;for(var o=n;0<o;){var f=31-Mt(o),g=1<<f;l[f]=-1,o&=~g}a!==0&&il(e,a,n)}function Ql(){return(He&6)===0?(Es(0),!1):!0}function rf(){if(Oe!==null){if(je===0)var e=Oe.return;else e=Oe,dr=Sa=null,_c(e),ci=null,fs=0,e=Oe;for(;e!==null;)pp(e.alternate,e),e=e.return;Oe=null}}function bi(e,n){var a=e.timeoutHandle;a!==-1&&(e.timeoutHandle=-1,o2(a)),a=e.cancelPendingCommit,a!==null&&(e.cancelPendingCommit=null,a()),rf(),Ve=e,Oe=a=ur(e.current,null),Ne=n,je=0,nn=null,Xr=!1,mi=rr(e,n),Kc=!1,pi=_n=$c=wa=Zr=tt=0,Qt=vs=null,Wc=!1,(n&8)!==0&&(n|=n&32);var l=e.entangledLanes;if(l!==0)for(e=e.entanglements,l&=n;0<l;){var o=31-Mt(l),f=1<<o;n|=e[o],l&=~f}return _r=n,yl(),a}function jp(e,n){_e=null,z.H=Hl,n===ns||n===xl?(n=e0(),je=3):n===$m?(n=e0(),je=4):je=n===tp?8:n!==null&&typeof n=="object"&&typeof n.then=="function"?6:1,nn=n,Oe===null&&(tt=1,kl(e,pn(n,e.current)))}function Ip(){var e=z.H;return z.H=Hl,e===null?Hl:e}function zp(){var e=z.A;return z.A=qE,e}function af(){tt=4,Xr||(Ne&4194048)!==Ne&&vn.current!==null||(mi=!0),(Zr&134217727)===0&&(wa&134217727)===0||Ve===null||$r(Ve,Ne,_n,!1)}function sf(e,n,a){var l=He;He|=2;var o=Ip(),f=zp();(Ve!==e||Ne!==n)&&(Zl=null,bi(e,n)),n=!1;var g=tt;e:do try{if(je!==0&&Oe!==null){var v=Oe,T=nn;switch(je){case 8:rf(),g=6;break e;case 3:case 2:case 9:case 6:vn.current===null&&(n=!0);var L=je;if(je=0,nn=null,vi(e,v,T,L),a&&mi){g=0;break e}break;default:L=je,je=0,nn=null,vi(e,v,T,L)}}PE(),g=tt;break}catch(F){jp(e,F)}while(!0);return n&&e.shellSuspendCounter++,dr=Sa=null,He=l,z.H=o,z.A=f,Oe===null&&(Ve=null,Ne=0,yl()),g}function PE(){for(;Oe!==null;)Gp(Oe)}function YE(e,n){var a=He;He|=2;var l=Ip(),o=zp();Ve!==e||Ne!==n?(Zl=null,Xl=Tt()+500,bi(e,n)):mi=rr(e,n);e:do try{if(je!==0&&Oe!==null){n=Oe;var f=nn;t:switch(je){case 1:je=0,nn=null,vi(e,n,f,1);break;case 2:case 9:if(Wm(f)){je=0,nn=null,kp(n);break}n=function(){je!==2&&je!==9||Ve!==e||(je=7),Zn(e)},f.then(n,n);break e;case 3:je=7;break e;case 4:je=5;break e;case 7:Wm(f)?(je=0,nn=null,kp(n)):(je=0,nn=null,vi(e,n,f,7));break;case 5:var g=null;switch(Oe.tag){case 26:g=Oe.memoizedState;case 5:case 27:var v=Oe;if(!g||Sg(g)){je=0,nn=null;var T=v.sibling;if(T!==null)Oe=T;else{var L=v.return;L!==null?(Oe=L,Kl(L)):Oe=null}break t}}je=0,nn=null,vi(e,n,f,5);break;case 6:je=0,nn=null,vi(e,n,f,6);break;case 8:rf(),tt=6;break e;default:throw Error(s(462))}}XE();break}catch(F){jp(e,F)}while(!0);return dr=Sa=null,z.H=l,z.A=o,He=a,Oe!==null?0:(Ve=null,Ne=0,yl(),tt)}function XE(){for(;Oe!==null&&!Di();)Gp(Oe)}function Gp(e){var n=hp(e.alternate,e,_r);e.memoizedProps=e.pendingProps,n===null?Kl(e):Oe=n}function kp(e){var n=e,a=n.alternate;switch(n.tag){case 15:case 0:n=lp(a,n,n.pendingProps,n.type,void 0,Ne);break;case 11:n=lp(a,n,n.pendingProps,n.type.render,n.ref,Ne);break;case 5:_c(n);default:pp(a,n),n=Oe=qm(n,_r),n=hp(a,n,_r)}e.memoizedProps=e.pendingProps,n===null?Kl(e):Oe=n}function vi(e,n,a,l){dr=Sa=null,_c(n),ci=null,fs=0;var o=n.return;try{if(HE(e,o,n,a,Ne)){tt=1,kl(e,pn(a,e.current)),Oe=null;return}}catch(f){if(o!==null)throw Oe=o,f;tt=1,kl(e,pn(a,e.current)),Oe=null;return}n.flags&32768?(Le||l===1?e=!0:mi||(Ne&536870912)!==0?e=!1:(Xr=e=!0,(l===2||l===9||l===3||l===6)&&(l=vn.current,l!==null&&l.tag===13&&(l.flags|=16384))),qp(n,e)):Kl(n)}function Kl(e){var n=e;do{if((n.flags&32768)!==0){qp(n,Xr);return}e=n.return;var a=IE(n.alternate,n,_r);if(a!==null){Oe=a;return}if(n=n.sibling,n!==null){Oe=n;return}Oe=n=e}while(n!==null);tt===0&&(tt=5)}function qp(e,n){do{var a=zE(e.alternate,e);if(a!==null){a.flags&=32767,Oe=a;return}if(a=e.return,a!==null&&(a.flags|=32768,a.subtreeFlags=0,a.deletions=null),!n&&(e=e.sibling,e!==null)){Oe=e;return}Oe=e=a}while(e!==null);tt=6,Oe=null}function Fp(e,n,a,l,o,f,g,v,T){e.cancelPendingCommit=null;do $l();while(xt!==0);if((He&6)!==0)throw Error(s(327));if(n!==null){if(n===e.current)throw Error(s(177));if(f=n.lanes|n.childLanes,f|=Qu,xu(e,a,f,g,v,T),e===Ve&&(Oe=Ve=null,Ne=0),gi=n,Kr=e,yi=a,ef=f,tf=o,Lp=l,(n.subtreeFlags&10256)!==0||(n.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,$E(ca,function(){return Zp(),null})):(e.callbackNode=null,e.callbackPriority=0),l=(n.flags&13878)!==0,(n.subtreeFlags&13878)!==0||l){l=z.T,z.T=null,o=K.p,K.p=2,g=He,He|=4;try{GE(e,n,a)}finally{He=g,K.p=o,z.T=l}}xt=1,Vp(),Pp(),Yp()}}function Vp(){if(xt===1){xt=0;var e=Kr,n=gi,a=(n.flags&13878)!==0;if((n.subtreeFlags&13878)!==0||a){a=z.T,z.T=null;var l=K.p;K.p=2;var o=He;He|=4;try{xp(n,e);var f=bf,g=Dm(e.containerInfo),v=f.focusedElem,T=f.selectionRange;if(g!==v&&v&&v.ownerDocument&&Mm(v.ownerDocument.documentElement,v)){if(T!==null&&Vu(v)){var L=T.start,F=T.end;if(F===void 0&&(F=L),"selectionStart"in v)v.selectionStart=L,v.selectionEnd=Math.min(F,v.value.length);else{var P=v.ownerDocument||document,j=P&&P.defaultView||window;if(j.getSelection){var I=j.getSelection(),he=v.textContent.length,fe=Math.min(T.start,he),ke=T.end===void 0?fe:Math.min(T.end,he);!I.extend&&fe>ke&&(g=ke,ke=fe,fe=g);var M=Nm(v,fe),w=Nm(v,ke);if(M&&w&&(I.rangeCount!==1||I.anchorNode!==M.node||I.anchorOffset!==M.offset||I.focusNode!==w.node||I.focusOffset!==w.offset)){var D=P.createRange();D.setStart(M.node,M.offset),I.removeAllRanges(),fe>ke?(I.addRange(D),I.extend(w.node,w.offset)):(D.setEnd(w.node,w.offset),I.addRange(D))}}}}for(P=[],I=v;I=I.parentNode;)I.nodeType===1&&P.push({element:I,left:I.scrollLeft,top:I.scrollTop});for(typeof v.focus=="function"&&v.focus(),v=0;v<P.length;v++){var V=P[v];V.element.scrollLeft=V.left,V.element.scrollTop=V.top}}uo=!!yf,bf=yf=null}finally{He=o,K.p=l,z.T=a}}e.current=n,xt=2}}function Pp(){if(xt===2){xt=0;var e=Kr,n=gi,a=(n.flags&8772)!==0;if((n.subtreeFlags&8772)!==0||a){a=z.T,z.T=null;var l=K.p;K.p=2;var o=He;He|=4;try{Sp(e,n.alternate,n)}finally{He=o,K.p=l,z.T=a}}xt=3}}function Yp(){if(xt===4||xt===3){xt=0,Li();var e=Kr,n=gi,a=yi,l=Lp;(n.subtreeFlags&10256)!==0||(n.flags&10256)!==0?xt=5:(xt=0,gi=Kr=null,Xp(e,e.pendingLanes));var o=e.pendingLanes;if(o===0&&(Qr=null),ji(a),n=n.stateNode,Nt&&typeof Nt.onCommitFiberRoot=="function")try{Nt.onCommitFiberRoot(dn,n,void 0,(n.current.flags&128)===128)}catch{}if(l!==null){n=z.T,o=K.p,K.p=2,z.T=null;try{for(var f=e.onRecoverableError,g=0;g<l.length;g++){var v=l[g];f(v.value,{componentStack:v.stack})}}finally{z.T=n,K.p=o}}(yi&3)!==0&&$l(),Zn(e),o=e.pendingLanes,(a&4194090)!==0&&(o&42)!==0?e===nf?_s++:(_s=0,nf=e):_s=0,Es(0)}}function Xp(e,n){(e.pooledCacheLanes&=n)===0&&(n=e.pooledCache,n!=null&&(e.pooledCache=null,es(n)))}function $l(e){return Vp(),Pp(),Yp(),Zp()}function Zp(){if(xt!==5)return!1;var e=Kr,n=ef;ef=0;var a=ji(yi),l=z.T,o=K.p;try{K.p=32>a?32:a,z.T=null,a=tf,tf=null;var f=Kr,g=yi;if(xt=0,gi=Kr=null,yi=0,(He&6)!==0)throw Error(s(331));var v=He;if(He|=4,Mp(f.current),wp(f,f.current,g,a),He=v,Es(0,!1),Nt&&typeof Nt.onPostCommitFiberRoot=="function")try{Nt.onPostCommitFiberRoot(dn,f)}catch{}return!0}finally{K.p=o,z.T=l,Xp(e,n)}}function Qp(e,n,a){n=pn(a,n),n=Bc(e.stateNode,n,2),e=Gr(e,n,2),e!==null&&(wn(e,2),Zn(e))}function qe(e,n,a){if(e.tag===3)Qp(e,e,a);else for(;n!==null;){if(n.tag===3){Qp(n,e,a);break}else if(n.tag===1){var l=n.stateNode;if(typeof n.type.getDerivedStateFromError=="function"||typeof l.componentDidCatch=="function"&&(Qr===null||!Qr.has(l))){e=pn(a,e),a=J0(2),l=Gr(n,a,2),l!==null&&(ep(a,l,n,e),wn(l,2),Zn(l));break}}n=n.return}}function lf(e,n,a){var l=e.pingCache;if(l===null){l=e.pingCache=new FE;var o=new Set;l.set(n,o)}else o=l.get(n),o===void 0&&(o=new Set,l.set(n,o));o.has(a)||(Kc=!0,o.add(a),e=ZE.bind(null,e,n,a),n.then(e,e))}function ZE(e,n,a){var l=e.pingCache;l!==null&&l.delete(n),e.pingedLanes|=e.suspendedLanes&a,e.warmLanes&=~a,Ve===e&&(Ne&a)===a&&(tt===4||tt===3&&(Ne&62914560)===Ne&&300>Tt()-Jc?(He&2)===0&&bi(e,0):$c|=a,pi===Ne&&(pi=0)),Zn(e)}function Kp(e,n){n===0&&(n=ha()),e=ei(e,n),e!==null&&(wn(e,n),Zn(e))}function QE(e){var n=e.memoizedState,a=0;n!==null&&(a=n.retryLane),Kp(e,a)}function KE(e,n){var a=0;switch(e.tag){case 13:var l=e.stateNode,o=e.memoizedState;o!==null&&(a=o.retryLane);break;case 19:l=e.stateNode;break;case 22:l=e.stateNode._retryCache;break;default:throw Error(s(314))}l!==null&&l.delete(n),Kp(e,a)}function $E(e,n){return qt(e,n)}var Wl=null,_i=null,of=!1,Jl=!1,uf=!1,Ca=0;function Zn(e){e!==_i&&e.next===null&&(_i===null?Wl=_i=e:_i=_i.next=e),Jl=!0,of||(of=!0,JE())}function Es(e,n){if(!uf&&Jl){uf=!0;do for(var a=!1,l=Wl;l!==null;){if(e!==0){var o=l.pendingLanes;if(o===0)var f=0;else{var g=l.suspendedLanes,v=l.pingedLanes;f=(1<<31-Mt(42|e)+1)-1,f&=o&~(g&~v),f=f&201326741?f&201326741|1:f?f|2:0}f!==0&&(a=!0,eg(l,f))}else f=Ne,f=Lr(l,l===Ve?f:0,l.cancelPendingCommit!==null||l.timeoutHandle!==-1),(f&3)===0||rr(l,f)||(a=!0,eg(l,f));l=l.next}while(a);uf=!1}}function WE(){$p()}function $p(){Jl=of=!1;var e=0;Ca!==0&&(l2()&&(e=Ca),Ca=0);for(var n=Tt(),a=null,l=Wl;l!==null;){var o=l.next,f=Wp(l,n);f===0?(l.next=null,a===null?Wl=o:a.next=o,o===null&&(_i=a)):(a=l,(e!==0||(f&3)!==0)&&(Jl=!0)),l=o}Es(e)}function Wp(e,n){for(var a=e.suspendedLanes,l=e.pingedLanes,o=e.expirationTimes,f=e.pendingLanes&-62914561;0<f;){var g=31-Mt(f),v=1<<g,T=o[g];T===-1?((v&a)===0||(v&l)!==0)&&(o[g]=Ou(v,n)):T<=n&&(e.expiredLanes|=v),f&=~v}if(n=Ve,a=Ne,a=Lr(e,e===n?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),l=e.callbackNode,a===0||e===n&&(je===2||je===9)||e.cancelPendingCommit!==null)return l!==null&&l!==null&&xn(l),e.callbackNode=null,e.callbackPriority=0;if((a&3)===0||rr(e,a)){if(n=a&-a,n===e.callbackPriority)return n;switch(l!==null&&xn(l),ji(a)){case 2:case 8:a=Bi;break;case 32:a=ca;break;case 268435456:a=Fa;break;default:a=ca}return l=Jp.bind(null,e),a=qt(a,l),e.callbackPriority=n,e.callbackNode=a,n}return l!==null&&l!==null&&xn(l),e.callbackPriority=2,e.callbackNode=null,2}function Jp(e,n){if(xt!==0&&xt!==5)return e.callbackNode=null,e.callbackPriority=0,null;var a=e.callbackNode;if($l()&&e.callbackNode!==a)return null;var l=Ne;return l=Lr(e,e===Ve?l:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),l===0?null:(Up(e,l,n),Wp(e,Tt()),e.callbackNode!=null&&e.callbackNode===a?Jp.bind(null,e):null)}function eg(e,n){if($l())return null;Up(e,n,!0)}function JE(){u2(function(){(He&6)!==0?qt(ua,WE):$p()})}function cf(){return Ca===0&&(Ca=da()),Ca}function tg(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:cl(""+e)}function ng(e,n){var a=n.ownerDocument.createElement("input");return a.name=n.name,a.value=n.value,e.id&&a.setAttribute("form",e.id),n.parentNode.insertBefore(a,n),e=new FormData(e),a.parentNode.removeChild(a),e}function e2(e,n,a,l,o){if(n==="submit"&&a&&a.stateNode===o){var f=tg((o[Dt]||null).action),g=l.submitter;g&&(n=(n=g[Dt]||null)?tg(n.formAction):g.getAttribute("formAction"),n!==null&&(f=n,g=null));var v=new ml("action","action",null,l,o);e.push({event:v,listeners:[{instance:null,listener:function(){if(l.defaultPrevented){if(Ca!==0){var T=g?ng(o,g):new FormData(o);Cc(a,{pending:!0,data:T,method:o.method,action:f},null,T)}}else typeof f=="function"&&(v.preventDefault(),T=g?ng(o,g):new FormData(o),Cc(a,{pending:!0,data:T,method:o.method,action:f},f,T))},currentTarget:o}]})}}for(var ff=0;ff<Zu.length;ff++){var df=Zu[ff],t2=df.toLowerCase(),n2=df[0].toUpperCase()+df.slice(1);Nn(t2,"on"+n2)}Nn(Um,"onAnimationEnd"),Nn(Hm,"onAnimationIteration"),Nn(jm,"onAnimationStart"),Nn("dblclick","onDoubleClick"),Nn("focusin","onFocus"),Nn("focusout","onBlur"),Nn(vE,"onTransitionRun"),Nn(_E,"onTransitionStart"),Nn(EE,"onTransitionCancel"),Nn(Im,"onTransitionEnd"),J("onMouseEnter",["mouseout","mouseover"]),J("onMouseLeave",["mouseout","mouseover"]),J("onPointerEnter",["pointerout","pointerover"]),J("onPointerLeave",["pointerout","pointerover"]),X("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),X("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),X("onBeforeInput",["compositionend","keypress","textInput","paste"]),X("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),X("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),X("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Ss="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),r2=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Ss));function rg(e,n){n=(n&4)!==0;for(var a=0;a<e.length;a++){var l=e[a],o=l.event;l=l.listeners;e:{var f=void 0;if(n)for(var g=l.length-1;0<=g;g--){var v=l[g],T=v.instance,L=v.currentTarget;if(v=v.listener,T!==f&&o.isPropagationStopped())break e;f=v,o.currentTarget=L;try{f(o)}catch(F){Gl(F)}o.currentTarget=null,f=T}else for(g=0;g<l.length;g++){if(v=l[g],T=v.instance,L=v.currentTarget,v=v.listener,T!==f&&o.isPropagationStopped())break e;f=v,o.currentTarget=L;try{f(o)}catch(F){Gl(F)}o.currentTarget=null,f=T}}}}function xe(e,n){var a=n[qn];a===void 0&&(a=n[qn]=new Set);var l=e+"__bubble";a.has(l)||(ag(n,e,2,!1),a.add(l))}function hf(e,n,a){var l=0;n&&(l|=4),ag(a,e,l,n)}var eo="_reactListening"+Math.random().toString(36).slice(2);function mf(e){if(!e[eo]){e[eo]=!0,le.forEach(function(a){a!=="selectionchange"&&(r2.has(a)||hf(a,!1,e),hf(a,!0,e))});var n=e.nodeType===9?e:e.ownerDocument;n===null||n[eo]||(n[eo]=!0,hf("selectionchange",!1,n))}}function ag(e,n,a,l){switch(wg(n)){case 2:var o=N2;break;case 8:o=M2;break;default:o=wf}a=o.bind(null,n,a,e),o=void 0,!Uu||n!=="touchstart"&&n!=="touchmove"&&n!=="wheel"||(o=!0),l?o!==void 0?e.addEventListener(n,a,{capture:!0,passive:o}):e.addEventListener(n,a,!0):o!==void 0?e.addEventListener(n,a,{passive:o}):e.addEventListener(n,a,!1)}function pf(e,n,a,l,o){var f=l;if((n&1)===0&&(n&2)===0&&l!==null)e:for(;;){if(l===null)return;var g=l.tag;if(g===3||g===4){var v=l.stateNode.containerInfo;if(v===o)break;if(g===4)for(g=l.return;g!==null;){var T=g.tag;if((T===3||T===4)&&g.stateNode.containerInfo===o)return;g=g.return}for(;v!==null;){if(g=ar(v),g===null)return;if(T=g.tag,T===5||T===6||T===26||T===27){l=f=g;continue e}v=v.parentNode}}l=l.return}fm(function(){var L=f,F=Lu(a),P=[];e:{var j=zm.get(e);if(j!==void 0){var I=ml,he=e;switch(e){case"keypress":if(dl(a)===0)break e;case"keydown":case"keyup":I=$_;break;case"focusin":he="focus",I=zu;break;case"focusout":he="blur",I=zu;break;case"beforeblur":case"afterblur":I=zu;break;case"click":if(a.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":I=mm;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":I=z_;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":I=eE;break;case Um:case Hm:case jm:I=q_;break;case Im:I=nE;break;case"scroll":case"scrollend":I=j_;break;case"wheel":I=aE;break;case"copy":case"cut":case"paste":I=V_;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":I=gm;break;case"toggle":case"beforetoggle":I=sE}var fe=(n&4)!==0,ke=!fe&&(e==="scroll"||e==="scrollend"),M=fe?j!==null?j+"Capture":null:j;fe=[];for(var w=L,D;w!==null;){var V=w;if(D=V.stateNode,V=V.tag,V!==5&&V!==26&&V!==27||D===null||M===null||(V=ki(w,M),V!=null&&fe.push(Ts(w,V,D))),ke)break;w=w.return}0<fe.length&&(j=new I(j,he,null,a,F),P.push({event:j,listeners:fe}))}}if((n&7)===0){e:{if(j=e==="mouseover"||e==="pointerover",I=e==="mouseout"||e==="pointerout",j&&a!==Du&&(he=a.relatedTarget||a.fromElement)&&(ar(he)||he[At]))break e;if((I||j)&&(j=F.window===F?F:(j=F.ownerDocument)?j.defaultView||j.parentWindow:window,I?(he=a.relatedTarget||a.toElement,I=L,he=he?ar(he):null,he!==null&&(ke=c(he),fe=he.tag,he!==ke||fe!==5&&fe!==27&&fe!==6)&&(he=null)):(I=null,he=L),I!==he)){if(fe=mm,V="onMouseLeave",M="onMouseEnter",w="mouse",(e==="pointerout"||e==="pointerover")&&(fe=gm,V="onPointerLeave",M="onPointerEnter",w="pointer"),ke=I==null?j:Ur(I),D=he==null?j:Ur(he),j=new fe(V,w+"leave",I,a,F),j.target=ke,j.relatedTarget=D,V=null,ar(F)===L&&(fe=new fe(M,w+"enter",he,a,F),fe.target=D,fe.relatedTarget=ke,V=fe),ke=V,I&&he)t:{for(fe=I,M=he,w=0,D=fe;D;D=Ei(D))w++;for(D=0,V=M;V;V=Ei(V))D++;for(;0<w-D;)fe=Ei(fe),w--;for(;0<D-w;)M=Ei(M),D--;for(;w--;){if(fe===M||M!==null&&fe===M.alternate)break t;fe=Ei(fe),M=Ei(M)}fe=null}else fe=null;I!==null&&ig(P,j,I,fe,!1),he!==null&&ke!==null&&ig(P,ke,he,fe,!0)}}e:{if(j=L?Ur(L):window,I=j.nodeName&&j.nodeName.toLowerCase(),I==="select"||I==="input"&&j.type==="file")var ne=Am;else if(Sm(j))if(Om)ne=gE;else{ne=mE;var Se=hE}else I=j.nodeName,!I||I.toLowerCase()!=="input"||j.type!=="checkbox"&&j.type!=="radio"?L&&Mu(L.elementType)&&(ne=Am):ne=pE;if(ne&&(ne=ne(e,L))){Tm(P,ne,a,F);break e}Se&&Se(e,j,L),e==="focusout"&&L&&j.type==="number"&&L.memoizedProps.value!=null&&Nu(j,"number",j.value)}switch(Se=L?Ur(L):window,e){case"focusin":(Sm(Se)||Se.contentEditable==="true")&&($a=Se,Pu=L,Qi=null);break;case"focusout":Qi=Pu=$a=null;break;case"mousedown":Yu=!0;break;case"contextmenu":case"mouseup":case"dragend":Yu=!1,Lm(P,a,F);break;case"selectionchange":if(bE)break;case"keydown":case"keyup":Lm(P,a,F)}var oe;if(ku)e:{switch(e){case"compositionstart":var de="onCompositionStart";break e;case"compositionend":de="onCompositionEnd";break e;case"compositionupdate":de="onCompositionUpdate";break e}de=void 0}else Ka?_m(e,a)&&(de="onCompositionEnd"):e==="keydown"&&a.keyCode===229&&(de="onCompositionStart");de&&(ym&&a.locale!=="ko"&&(Ka||de!=="onCompositionStart"?de==="onCompositionEnd"&&Ka&&(oe=dm()):(Hr=F,Hu="value"in Hr?Hr.value:Hr.textContent,Ka=!0)),Se=to(L,de),0<Se.length&&(de=new pm(de,e,null,a,F),P.push({event:de,listeners:Se}),oe?de.data=oe:(oe=Em(a),oe!==null&&(de.data=oe)))),(oe=oE?uE(e,a):cE(e,a))&&(de=to(L,"onBeforeInput"),0<de.length&&(Se=new pm("onBeforeInput","beforeinput",null,a,F),P.push({event:Se,listeners:de}),Se.data=oe)),e2(P,e,L,a,F)}rg(P,n)})}function Ts(e,n,a){return{instance:e,listener:n,currentTarget:a}}function to(e,n){for(var a=n+"Capture",l=[];e!==null;){var o=e,f=o.stateNode;if(o=o.tag,o!==5&&o!==26&&o!==27||f===null||(o=ki(e,a),o!=null&&l.unshift(Ts(e,o,f)),o=ki(e,n),o!=null&&l.push(Ts(e,o,f))),e.tag===3)return l;e=e.return}return[]}function Ei(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function ig(e,n,a,l,o){for(var f=n._reactName,g=[];a!==null&&a!==l;){var v=a,T=v.alternate,L=v.stateNode;if(v=v.tag,T!==null&&T===l)break;v!==5&&v!==26&&v!==27||L===null||(T=L,o?(L=ki(a,f),L!=null&&g.unshift(Ts(a,L,T))):o||(L=ki(a,f),L!=null&&g.push(Ts(a,L,T)))),a=a.return}g.length!==0&&e.push({event:n,listeners:g})}var a2=/\r\n?/g,i2=/\u0000|\uFFFD/g;function sg(e){return(typeof e=="string"?e:""+e).replace(a2,`
49
- `).replace(i2,"")}function lg(e,n){return n=sg(n),sg(e)===n}function no(){}function Ge(e,n,a,l,o,f){switch(a){case"children":typeof l=="string"?n==="body"||n==="textarea"&&l===""||Xa(e,l):(typeof l=="number"||typeof l=="bigint")&&n!=="body"&&Xa(e,""+l);break;case"className":Fn(e,"class",l);break;case"tabIndex":Fn(e,"tabindex",l);break;case"dir":case"role":case"viewBox":case"width":case"height":Fn(e,a,l);break;case"style":um(e,l,f);break;case"data":if(n!=="object"){Fn(e,"data",l);break}case"src":case"href":if(l===""&&(n!=="a"||a!=="href")){e.removeAttribute(a);break}if(l==null||typeof l=="function"||typeof l=="symbol"||typeof l=="boolean"){e.removeAttribute(a);break}l=cl(""+l),e.setAttribute(a,l);break;case"action":case"formAction":if(typeof l=="function"){e.setAttribute(a,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof f=="function"&&(a==="formAction"?(n!=="input"&&Ge(e,n,"name",o.name,o,null),Ge(e,n,"formEncType",o.formEncType,o,null),Ge(e,n,"formMethod",o.formMethod,o,null),Ge(e,n,"formTarget",o.formTarget,o,null)):(Ge(e,n,"encType",o.encType,o,null),Ge(e,n,"method",o.method,o,null),Ge(e,n,"target",o.target,o,null)));if(l==null||typeof l=="symbol"||typeof l=="boolean"){e.removeAttribute(a);break}l=cl(""+l),e.setAttribute(a,l);break;case"onClick":l!=null&&(e.onclick=no);break;case"onScroll":l!=null&&xe("scroll",e);break;case"onScrollEnd":l!=null&&xe("scrollend",e);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(s(61));if(a=l.__html,a!=null){if(o.children!=null)throw Error(s(60));e.innerHTML=a}}break;case"multiple":e.multiple=l&&typeof l!="function"&&typeof l!="symbol";break;case"muted":e.muted=l&&typeof l!="function"&&typeof l!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(l==null||typeof l=="function"||typeof l=="boolean"||typeof l=="symbol"){e.removeAttribute("xlink:href");break}a=cl(""+l),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",a);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":l!=null&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(a,""+l):e.removeAttribute(a);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":l&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(a,""):e.removeAttribute(a);break;case"capture":case"download":l===!0?e.setAttribute(a,""):l!==!1&&l!=null&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(a,l):e.removeAttribute(a);break;case"cols":case"rows":case"size":case"span":l!=null&&typeof l!="function"&&typeof l!="symbol"&&!isNaN(l)&&1<=l?e.setAttribute(a,l):e.removeAttribute(a);break;case"rowSpan":case"start":l==null||typeof l=="function"||typeof l=="symbol"||isNaN(l)?e.removeAttribute(a):e.setAttribute(a,l);break;case"popover":xe("beforetoggle",e),xe("toggle",e),Pt(e,"popover",l);break;case"xlinkActuate":$t(e,"http://www.w3.org/1999/xlink","xlink:actuate",l);break;case"xlinkArcrole":$t(e,"http://www.w3.org/1999/xlink","xlink:arcrole",l);break;case"xlinkRole":$t(e,"http://www.w3.org/1999/xlink","xlink:role",l);break;case"xlinkShow":$t(e,"http://www.w3.org/1999/xlink","xlink:show",l);break;case"xlinkTitle":$t(e,"http://www.w3.org/1999/xlink","xlink:title",l);break;case"xlinkType":$t(e,"http://www.w3.org/1999/xlink","xlink:type",l);break;case"xmlBase":$t(e,"http://www.w3.org/XML/1998/namespace","xml:base",l);break;case"xmlLang":$t(e,"http://www.w3.org/XML/1998/namespace","xml:lang",l);break;case"xmlSpace":$t(e,"http://www.w3.org/XML/1998/namespace","xml:space",l);break;case"is":Pt(e,"is",l);break;case"innerText":case"textContent":break;default:(!(2<a.length)||a[0]!=="o"&&a[0]!=="O"||a[1]!=="n"&&a[1]!=="N")&&(a=U_.get(a)||a,Pt(e,a,l))}}function gf(e,n,a,l,o,f){switch(a){case"style":um(e,l,f);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(s(61));if(a=l.__html,a!=null){if(o.children!=null)throw Error(s(60));e.innerHTML=a}}break;case"children":typeof l=="string"?Xa(e,l):(typeof l=="number"||typeof l=="bigint")&&Xa(e,""+l);break;case"onScroll":l!=null&&xe("scroll",e);break;case"onScrollEnd":l!=null&&xe("scrollend",e);break;case"onClick":l!=null&&(e.onclick=no);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!N.hasOwnProperty(a))e:{if(a[0]==="o"&&a[1]==="n"&&(o=a.endsWith("Capture"),n=a.slice(2,o?a.length-7:void 0),f=e[Dt]||null,f=f!=null?f[a]:null,typeof f=="function"&&e.removeEventListener(n,f,o),typeof l=="function")){typeof f!="function"&&f!==null&&(a in e?e[a]=null:e.hasAttribute(a)&&e.removeAttribute(a)),e.addEventListener(n,l,o);break e}a in e?e[a]=l:l===!0?e.setAttribute(a,""):Pt(e,a,l)}}}function Rt(e,n,a){switch(n){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":xe("error",e),xe("load",e);var l=!1,o=!1,f;for(f in a)if(a.hasOwnProperty(f)){var g=a[f];if(g!=null)switch(f){case"src":l=!0;break;case"srcSet":o=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(s(137,n));default:Ge(e,n,f,g,a,null)}}o&&Ge(e,n,"srcSet",a.srcSet,a,null),l&&Ge(e,n,"src",a.src,a,null);return;case"input":xe("invalid",e);var v=f=g=o=null,T=null,L=null;for(l in a)if(a.hasOwnProperty(l)){var F=a[l];if(F!=null)switch(l){case"name":o=F;break;case"type":g=F;break;case"checked":T=F;break;case"defaultChecked":L=F;break;case"value":f=F;break;case"defaultValue":v=F;break;case"children":case"dangerouslySetInnerHTML":if(F!=null)throw Error(s(137,n));break;default:Ge(e,n,l,F,a,null)}}im(e,f,v,T,L,g,o,!1),ol(e);return;case"select":xe("invalid",e),l=g=f=null;for(o in a)if(a.hasOwnProperty(o)&&(v=a[o],v!=null))switch(o){case"value":f=v;break;case"defaultValue":g=v;break;case"multiple":l=v;default:Ge(e,n,o,v,a,null)}n=f,a=g,e.multiple=!!l,n!=null?Ya(e,!!l,n,!1):a!=null&&Ya(e,!!l,a,!0);return;case"textarea":xe("invalid",e),f=o=l=null;for(g in a)if(a.hasOwnProperty(g)&&(v=a[g],v!=null))switch(g){case"value":l=v;break;case"defaultValue":o=v;break;case"children":f=v;break;case"dangerouslySetInnerHTML":if(v!=null)throw Error(s(91));break;default:Ge(e,n,g,v,a,null)}lm(e,l,o,f),ol(e);return;case"option":for(T in a)if(a.hasOwnProperty(T)&&(l=a[T],l!=null))switch(T){case"selected":e.selected=l&&typeof l!="function"&&typeof l!="symbol";break;default:Ge(e,n,T,l,a,null)}return;case"dialog":xe("beforetoggle",e),xe("toggle",e),xe("cancel",e),xe("close",e);break;case"iframe":case"object":xe("load",e);break;case"video":case"audio":for(l=0;l<Ss.length;l++)xe(Ss[l],e);break;case"image":xe("error",e),xe("load",e);break;case"details":xe("toggle",e);break;case"embed":case"source":case"link":xe("error",e),xe("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(L in a)if(a.hasOwnProperty(L)&&(l=a[L],l!=null))switch(L){case"children":case"dangerouslySetInnerHTML":throw Error(s(137,n));default:Ge(e,n,L,l,a,null)}return;default:if(Mu(n)){for(F in a)a.hasOwnProperty(F)&&(l=a[F],l!==void 0&&gf(e,n,F,l,a,void 0));return}}for(v in a)a.hasOwnProperty(v)&&(l=a[v],l!=null&&Ge(e,n,v,l,a,null))}function s2(e,n,a,l){switch(n){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var o=null,f=null,g=null,v=null,T=null,L=null,F=null;for(I in a){var P=a[I];if(a.hasOwnProperty(I)&&P!=null)switch(I){case"checked":break;case"value":break;case"defaultValue":T=P;default:l.hasOwnProperty(I)||Ge(e,n,I,null,l,P)}}for(var j in l){var I=l[j];if(P=a[j],l.hasOwnProperty(j)&&(I!=null||P!=null))switch(j){case"type":f=I;break;case"name":o=I;break;case"checked":L=I;break;case"defaultChecked":F=I;break;case"value":g=I;break;case"defaultValue":v=I;break;case"children":case"dangerouslySetInnerHTML":if(I!=null)throw Error(s(137,n));break;default:I!==P&&Ge(e,n,j,I,l,P)}}Cu(e,g,v,T,L,F,f,o);return;case"select":I=g=v=j=null;for(f in a)if(T=a[f],a.hasOwnProperty(f)&&T!=null)switch(f){case"value":break;case"multiple":I=T;default:l.hasOwnProperty(f)||Ge(e,n,f,null,l,T)}for(o in l)if(f=l[o],T=a[o],l.hasOwnProperty(o)&&(f!=null||T!=null))switch(o){case"value":j=f;break;case"defaultValue":v=f;break;case"multiple":g=f;default:f!==T&&Ge(e,n,o,f,l,T)}n=v,a=g,l=I,j!=null?Ya(e,!!a,j,!1):!!l!=!!a&&(n!=null?Ya(e,!!a,n,!0):Ya(e,!!a,a?[]:"",!1));return;case"textarea":I=j=null;for(v in a)if(o=a[v],a.hasOwnProperty(v)&&o!=null&&!l.hasOwnProperty(v))switch(v){case"value":break;case"children":break;default:Ge(e,n,v,null,l,o)}for(g in l)if(o=l[g],f=a[g],l.hasOwnProperty(g)&&(o!=null||f!=null))switch(g){case"value":j=o;break;case"defaultValue":I=o;break;case"children":break;case"dangerouslySetInnerHTML":if(o!=null)throw Error(s(91));break;default:o!==f&&Ge(e,n,g,o,l,f)}sm(e,j,I);return;case"option":for(var he in a)if(j=a[he],a.hasOwnProperty(he)&&j!=null&&!l.hasOwnProperty(he))switch(he){case"selected":e.selected=!1;break;default:Ge(e,n,he,null,l,j)}for(T in l)if(j=l[T],I=a[T],l.hasOwnProperty(T)&&j!==I&&(j!=null||I!=null))switch(T){case"selected":e.selected=j&&typeof j!="function"&&typeof j!="symbol";break;default:Ge(e,n,T,j,l,I)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var fe in a)j=a[fe],a.hasOwnProperty(fe)&&j!=null&&!l.hasOwnProperty(fe)&&Ge(e,n,fe,null,l,j);for(L in l)if(j=l[L],I=a[L],l.hasOwnProperty(L)&&j!==I&&(j!=null||I!=null))switch(L){case"children":case"dangerouslySetInnerHTML":if(j!=null)throw Error(s(137,n));break;default:Ge(e,n,L,j,l,I)}return;default:if(Mu(n)){for(var ke in a)j=a[ke],a.hasOwnProperty(ke)&&j!==void 0&&!l.hasOwnProperty(ke)&&gf(e,n,ke,void 0,l,j);for(F in l)j=l[F],I=a[F],!l.hasOwnProperty(F)||j===I||j===void 0&&I===void 0||gf(e,n,F,j,l,I);return}}for(var M in a)j=a[M],a.hasOwnProperty(M)&&j!=null&&!l.hasOwnProperty(M)&&Ge(e,n,M,null,l,j);for(P in l)j=l[P],I=a[P],!l.hasOwnProperty(P)||j===I||j==null&&I==null||Ge(e,n,P,j,l,I)}var yf=null,bf=null;function ro(e){return e.nodeType===9?e:e.ownerDocument}function og(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function ug(e,n){if(e===0)switch(n){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&n==="foreignObject"?0:e}function vf(e,n){return e==="textarea"||e==="noscript"||typeof n.children=="string"||typeof n.children=="number"||typeof n.children=="bigint"||typeof n.dangerouslySetInnerHTML=="object"&&n.dangerouslySetInnerHTML!==null&&n.dangerouslySetInnerHTML.__html!=null}var _f=null;function l2(){var e=window.event;return e&&e.type==="popstate"?e===_f?!1:(_f=e,!0):(_f=null,!1)}var cg=typeof setTimeout=="function"?setTimeout:void 0,o2=typeof clearTimeout=="function"?clearTimeout:void 0,fg=typeof Promise=="function"?Promise:void 0,u2=typeof queueMicrotask=="function"?queueMicrotask:typeof fg<"u"?function(e){return fg.resolve(null).then(e).catch(c2)}:cg;function c2(e){setTimeout(function(){throw e})}function Wr(e){return e==="head"}function dg(e,n){var a=n,l=0,o=0;do{var f=a.nextSibling;if(e.removeChild(a),f&&f.nodeType===8)if(a=f.data,a==="/$"){if(0<l&&8>l){a=l;var g=e.ownerDocument;if(a&1&&As(g.documentElement),a&2&&As(g.body),a&4)for(a=g.head,As(a),g=a.firstChild;g;){var v=g.nextSibling,T=g.nodeName;g[Br]||T==="SCRIPT"||T==="STYLE"||T==="LINK"&&g.rel.toLowerCase()==="stylesheet"||a.removeChild(g),g=v}}if(o===0){e.removeChild(f),Ds(n);return}o--}else a==="$"||a==="$?"||a==="$!"?o++:l=a.charCodeAt(0)-48;else l=0;a=f}while(a);Ds(n)}function Ef(e){var n=e.firstChild;for(n&&n.nodeType===10&&(n=n.nextSibling);n;){var a=n;switch(n=n.nextSibling,a.nodeName){case"HTML":case"HEAD":case"BODY":Ef(a),Kt(a);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(a.rel.toLowerCase()==="stylesheet")continue}e.removeChild(a)}}function f2(e,n,a,l){for(;e.nodeType===1;){var o=a;if(e.nodeName.toLowerCase()!==n.toLowerCase()){if(!l&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(l){if(!e[Br])switch(n){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(f=e.getAttribute("rel"),f==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(f!==o.rel||e.getAttribute("href")!==(o.href==null||o.href===""?null:o.href)||e.getAttribute("crossorigin")!==(o.crossOrigin==null?null:o.crossOrigin)||e.getAttribute("title")!==(o.title==null?null:o.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(f=e.getAttribute("src"),(f!==(o.src==null?null:o.src)||e.getAttribute("type")!==(o.type==null?null:o.type)||e.getAttribute("crossorigin")!==(o.crossOrigin==null?null:o.crossOrigin))&&f&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(n==="input"&&e.type==="hidden"){var f=o.name==null?null:""+o.name;if(o.type==="hidden"&&e.getAttribute("name")===f)return e}else return e;if(e=Dn(e.nextSibling),e===null)break}return null}function d2(e,n,a){if(n==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!a||(e=Dn(e.nextSibling),e===null))return null;return e}function Sf(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState==="complete"}function h2(e,n){var a=e.ownerDocument;if(e.data!=="$?"||a.readyState==="complete")n();else{var l=function(){n(),a.removeEventListener("DOMContentLoaded",l)};a.addEventListener("DOMContentLoaded",l),e._reactRetry=l}}function Dn(e){for(;e!=null;e=e.nextSibling){var n=e.nodeType;if(n===1||n===3)break;if(n===8){if(n=e.data,n==="$"||n==="$!"||n==="$?"||n==="F!"||n==="F")break;if(n==="/$")return null}}return e}var Tf=null;function hg(e){e=e.previousSibling;for(var n=0;e;){if(e.nodeType===8){var a=e.data;if(a==="$"||a==="$!"||a==="$?"){if(n===0)return e;n--}else a==="/$"&&n++}e=e.previousSibling}return null}function mg(e,n,a){switch(n=ro(a),e){case"html":if(e=n.documentElement,!e)throw Error(s(452));return e;case"head":if(e=n.head,!e)throw Error(s(453));return e;case"body":if(e=n.body,!e)throw Error(s(454));return e;default:throw Error(s(451))}}function As(e){for(var n=e.attributes;n.length;)e.removeAttributeNode(n[0]);Kt(e)}var En=new Map,pg=new Set;function ao(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var Er=K.d;K.d={f:m2,r:p2,D:g2,C:y2,L:b2,m:v2,X:E2,S:_2,M:S2};function m2(){var e=Er.f(),n=Ql();return e||n}function p2(e){var n=ir(e);n!==null&&n.tag===5&&n.type==="form"?U0(n):Er.r(e)}var Si=typeof document>"u"?null:document;function gg(e,n,a){var l=Si;if(l&&typeof n=="string"&&n){var o=mn(n);o='link[rel="'+e+'"][href="'+o+'"]',typeof a=="string"&&(o+='[crossorigin="'+a+'"]'),pg.has(o)||(pg.add(o),e={rel:e,crossOrigin:a,href:n},l.querySelector(o)===null&&(n=l.createElement("link"),Rt(n,"link",e),st(n),l.head.appendChild(n)))}}function g2(e){Er.D(e),gg("dns-prefetch",e,null)}function y2(e,n){Er.C(e,n),gg("preconnect",e,n)}function b2(e,n,a){Er.L(e,n,a);var l=Si;if(l&&e&&n){var o='link[rel="preload"][as="'+mn(n)+'"]';n==="image"&&a&&a.imageSrcSet?(o+='[imagesrcset="'+mn(a.imageSrcSet)+'"]',typeof a.imageSizes=="string"&&(o+='[imagesizes="'+mn(a.imageSizes)+'"]')):o+='[href="'+mn(e)+'"]';var f=o;switch(n){case"style":f=Ti(e);break;case"script":f=Ai(e)}En.has(f)||(e=b({rel:"preload",href:n==="image"&&a&&a.imageSrcSet?void 0:e,as:n},a),En.set(f,e),l.querySelector(o)!==null||n==="style"&&l.querySelector(Os(f))||n==="script"&&l.querySelector(xs(f))||(n=l.createElement("link"),Rt(n,"link",e),st(n),l.head.appendChild(n)))}}function v2(e,n){Er.m(e,n);var a=Si;if(a&&e){var l=n&&typeof n.as=="string"?n.as:"script",o='link[rel="modulepreload"][as="'+mn(l)+'"][href="'+mn(e)+'"]',f=o;switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":f=Ai(e)}if(!En.has(f)&&(e=b({rel:"modulepreload",href:e},n),En.set(f,e),a.querySelector(o)===null)){switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(a.querySelector(xs(f)))return}l=a.createElement("link"),Rt(l,"link",e),st(l),a.head.appendChild(l)}}}function _2(e,n,a){Er.S(e,n,a);var l=Si;if(l&&e){var o=sr(l).hoistableStyles,f=Ti(e);n=n||"default";var g=o.get(f);if(!g){var v={loading:0,preload:null};if(g=l.querySelector(Os(f)))v.loading=5;else{e=b({rel:"stylesheet",href:e,"data-precedence":n},a),(a=En.get(f))&&Af(e,a);var T=g=l.createElement("link");st(T),Rt(T,"link",e),T._p=new Promise(function(L,F){T.onload=L,T.onerror=F}),T.addEventListener("load",function(){v.loading|=1}),T.addEventListener("error",function(){v.loading|=2}),v.loading|=4,io(g,n,l)}g={type:"stylesheet",instance:g,count:1,state:v},o.set(f,g)}}}function E2(e,n){Er.X(e,n);var a=Si;if(a&&e){var l=sr(a).hoistableScripts,o=Ai(e),f=l.get(o);f||(f=a.querySelector(xs(o)),f||(e=b({src:e,async:!0},n),(n=En.get(o))&&Of(e,n),f=a.createElement("script"),st(f),Rt(f,"link",e),a.head.appendChild(f)),f={type:"script",instance:f,count:1,state:null},l.set(o,f))}}function S2(e,n){Er.M(e,n);var a=Si;if(a&&e){var l=sr(a).hoistableScripts,o=Ai(e),f=l.get(o);f||(f=a.querySelector(xs(o)),f||(e=b({src:e,async:!0,type:"module"},n),(n=En.get(o))&&Of(e,n),f=a.createElement("script"),st(f),Rt(f,"link",e),a.head.appendChild(f)),f={type:"script",instance:f,count:1,state:null},l.set(o,f))}}function yg(e,n,a,l){var o=(o=ue.current)?ao(o):null;if(!o)throw Error(s(446));switch(e){case"meta":case"title":return null;case"style":return typeof a.precedence=="string"&&typeof a.href=="string"?(n=Ti(a.href),a=sr(o).hoistableStyles,l=a.get(n),l||(l={type:"style",instance:null,count:0,state:null},a.set(n,l)),l):{type:"void",instance:null,count:0,state:null};case"link":if(a.rel==="stylesheet"&&typeof a.href=="string"&&typeof a.precedence=="string"){e=Ti(a.href);var f=sr(o).hoistableStyles,g=f.get(e);if(g||(o=o.ownerDocument||o,g={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},f.set(e,g),(f=o.querySelector(Os(e)))&&!f._p&&(g.instance=f,g.state.loading=5),En.has(e)||(a={rel:"preload",as:"style",href:a.href,crossOrigin:a.crossOrigin,integrity:a.integrity,media:a.media,hrefLang:a.hrefLang,referrerPolicy:a.referrerPolicy},En.set(e,a),f||T2(o,e,a,g.state))),n&&l===null)throw Error(s(528,""));return g}if(n&&l!==null)throw Error(s(529,""));return null;case"script":return n=a.async,a=a.src,typeof a=="string"&&n&&typeof n!="function"&&typeof n!="symbol"?(n=Ai(a),a=sr(o).hoistableScripts,l=a.get(n),l||(l={type:"script",instance:null,count:0,state:null},a.set(n,l)),l):{type:"void",instance:null,count:0,state:null};default:throw Error(s(444,e))}}function Ti(e){return'href="'+mn(e)+'"'}function Os(e){return'link[rel="stylesheet"]['+e+"]"}function bg(e){return b({},e,{"data-precedence":e.precedence,precedence:null})}function T2(e,n,a,l){e.querySelector('link[rel="preload"][as="style"]['+n+"]")?l.loading=1:(n=e.createElement("link"),l.preload=n,n.addEventListener("load",function(){return l.loading|=1}),n.addEventListener("error",function(){return l.loading|=2}),Rt(n,"link",a),st(n),e.head.appendChild(n))}function Ai(e){return'[src="'+mn(e)+'"]'}function xs(e){return"script[async]"+e}function vg(e,n,a){if(n.count++,n.instance===null)switch(n.type){case"style":var l=e.querySelector('style[data-href~="'+mn(a.href)+'"]');if(l)return n.instance=l,st(l),l;var o=b({},a,{"data-href":a.href,"data-precedence":a.precedence,href:null,precedence:null});return l=(e.ownerDocument||e).createElement("style"),st(l),Rt(l,"style",o),io(l,a.precedence,e),n.instance=l;case"stylesheet":o=Ti(a.href);var f=e.querySelector(Os(o));if(f)return n.state.loading|=4,n.instance=f,st(f),f;l=bg(a),(o=En.get(o))&&Af(l,o),f=(e.ownerDocument||e).createElement("link"),st(f);var g=f;return g._p=new Promise(function(v,T){g.onload=v,g.onerror=T}),Rt(f,"link",l),n.state.loading|=4,io(f,a.precedence,e),n.instance=f;case"script":return f=Ai(a.src),(o=e.querySelector(xs(f)))?(n.instance=o,st(o),o):(l=a,(o=En.get(f))&&(l=b({},a),Of(l,o)),e=e.ownerDocument||e,o=e.createElement("script"),st(o),Rt(o,"link",l),e.head.appendChild(o),n.instance=o);case"void":return null;default:throw Error(s(443,n.type))}else n.type==="stylesheet"&&(n.state.loading&4)===0&&(l=n.instance,n.state.loading|=4,io(l,a.precedence,e));return n.instance}function io(e,n,a){for(var l=a.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),o=l.length?l[l.length-1]:null,f=o,g=0;g<l.length;g++){var v=l[g];if(v.dataset.precedence===n)f=v;else if(f!==o)break}f?f.parentNode.insertBefore(e,f.nextSibling):(n=a.nodeType===9?a.head:a,n.insertBefore(e,n.firstChild))}function Af(e,n){e.crossOrigin==null&&(e.crossOrigin=n.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=n.referrerPolicy),e.title==null&&(e.title=n.title)}function Of(e,n){e.crossOrigin==null&&(e.crossOrigin=n.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=n.referrerPolicy),e.integrity==null&&(e.integrity=n.integrity)}var so=null;function _g(e,n,a){if(so===null){var l=new Map,o=so=new Map;o.set(a,l)}else o=so,l=o.get(a),l||(l=new Map,o.set(a,l));if(l.has(e))return l;for(l.set(e,null),a=a.getElementsByTagName(e),o=0;o<a.length;o++){var f=a[o];if(!(f[Br]||f[ht]||e==="link"&&f.getAttribute("rel")==="stylesheet")&&f.namespaceURI!=="http://www.w3.org/2000/svg"){var g=f.getAttribute(n)||"";g=e+g;var v=l.get(g);v?v.push(f):l.set(g,[f])}}return l}function Eg(e,n,a){e=e.ownerDocument||e,e.head.insertBefore(a,n==="title"?e.querySelector("head > title"):null)}function A2(e,n,a){if(a===1||n.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof n.precedence!="string"||typeof n.href!="string"||n.href==="")break;return!0;case"link":if(typeof n.rel!="string"||typeof n.href!="string"||n.href===""||n.onLoad||n.onError)break;switch(n.rel){case"stylesheet":return e=n.disabled,typeof n.precedence=="string"&&e==null;default:return!0}case"script":if(n.async&&typeof n.async!="function"&&typeof n.async!="symbol"&&!n.onLoad&&!n.onError&&n.src&&typeof n.src=="string")return!0}return!1}function Sg(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}var Rs=null;function O2(){}function x2(e,n,a){if(Rs===null)throw Error(s(475));var l=Rs;if(n.type==="stylesheet"&&(typeof a.media!="string"||matchMedia(a.media).matches!==!1)&&(n.state.loading&4)===0){if(n.instance===null){var o=Ti(a.href),f=e.querySelector(Os(o));if(f){e=f._p,e!==null&&typeof e=="object"&&typeof e.then=="function"&&(l.count++,l=lo.bind(l),e.then(l,l)),n.state.loading|=4,n.instance=f,st(f);return}f=e.ownerDocument||e,a=bg(a),(o=En.get(o))&&Af(a,o),f=f.createElement("link"),st(f);var g=f;g._p=new Promise(function(v,T){g.onload=v,g.onerror=T}),Rt(f,"link",a),n.instance=f}l.stylesheets===null&&(l.stylesheets=new Map),l.stylesheets.set(n,e),(e=n.state.preload)&&(n.state.loading&3)===0&&(l.count++,n=lo.bind(l),e.addEventListener("load",n),e.addEventListener("error",n))}}function R2(){if(Rs===null)throw Error(s(475));var e=Rs;return e.stylesheets&&e.count===0&&xf(e,e.stylesheets),0<e.count?function(n){var a=setTimeout(function(){if(e.stylesheets&&xf(e,e.stylesheets),e.unsuspend){var l=e.unsuspend;e.unsuspend=null,l()}},6e4);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(a)}}:null}function lo(){if(this.count--,this.count===0){if(this.stylesheets)xf(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var oo=null;function xf(e,n){e.stylesheets=null,e.unsuspend!==null&&(e.count++,oo=new Map,n.forEach(w2,e),oo=null,lo.call(e))}function w2(e,n){if(!(n.state.loading&4)){var a=oo.get(e);if(a)var l=a.get(null);else{a=new Map,oo.set(e,a);for(var o=e.querySelectorAll("link[data-precedence],style[data-precedence]"),f=0;f<o.length;f++){var g=o[f];(g.nodeName==="LINK"||g.getAttribute("media")!=="not all")&&(a.set(g.dataset.precedence,g),l=g)}l&&a.set(null,l)}o=n.instance,g=o.getAttribute("data-precedence"),f=a.get(g)||l,f===l&&a.set(null,o),a.set(g,o),this.count++,l=lo.bind(this),o.addEventListener("load",l),o.addEventListener("error",l),f?f.parentNode.insertBefore(o,f.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(o,e.firstChild)),n.state.loading|=4}}var ws={$$typeof:S,Provider:null,Consumer:null,_currentValue:ee,_currentValue2:ee,_threadCount:0};function C2(e,n,a,l,o,f,g,v){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Hi(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Hi(0),this.hiddenUpdates=Hi(null),this.identifierPrefix=l,this.onUncaughtError=o,this.onCaughtError=f,this.onRecoverableError=g,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=v,this.incompleteTransitions=new Map}function Tg(e,n,a,l,o,f,g,v,T,L,F,P){return e=new C2(e,n,a,g,v,T,L,P),n=1,f===!0&&(n|=24),f=Jt(3,null,null,n),e.current=f,f.stateNode=e,n=sc(),n.refCount++,e.pooledCache=n,n.refCount++,f.memoizedState={element:l,isDehydrated:a,cache:n},cc(f),e}function Ag(e){return e?(e=ti,e):ti}function Og(e,n,a,l,o,f){o=Ag(o),l.context===null?l.context=o:l.pendingContext=o,l=zr(n),l.payload={element:a},f=f===void 0?null:f,f!==null&&(l.callback=f),a=Gr(e,l,n),a!==null&&(an(a,e,n),as(a,e,n))}function xg(e,n){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var a=e.retryLane;e.retryLane=a!==0&&a<n?a:n}}function Rf(e,n){xg(e,n),(e=e.alternate)&&xg(e,n)}function Rg(e){if(e.tag===13){var n=ei(e,67108864);n!==null&&an(n,e,67108864),Rf(e,67108864)}}var uo=!0;function N2(e,n,a,l){var o=z.T;z.T=null;var f=K.p;try{K.p=2,wf(e,n,a,l)}finally{K.p=f,z.T=o}}function M2(e,n,a,l){var o=z.T;z.T=null;var f=K.p;try{K.p=8,wf(e,n,a,l)}finally{K.p=f,z.T=o}}function wf(e,n,a,l){if(uo){var o=Cf(l);if(o===null)pf(e,n,l,co,a),Cg(e,l);else if(L2(o,e,n,a,l))l.stopPropagation();else if(Cg(e,l),n&4&&-1<D2.indexOf(e)){for(;o!==null;){var f=ir(o);if(f!==null)switch(f.tag){case 3:if(f=f.stateNode,f.current.memoizedState.isDehydrated){var g=Vt(f.pendingLanes);if(g!==0){var v=f;for(v.pendingLanes|=2,v.entangledLanes|=2;g;){var T=1<<31-Mt(g);v.entanglements[1]|=T,g&=~T}Zn(f),(He&6)===0&&(Xl=Tt()+500,Es(0))}}break;case 13:v=ei(f,2),v!==null&&an(v,f,2),Ql(),Rf(f,2)}if(f=Cf(l),f===null&&pf(e,n,l,co,a),f===o)break;o=f}o!==null&&l.stopPropagation()}else pf(e,n,l,null,a)}}function Cf(e){return e=Lu(e),Nf(e)}var co=null;function Nf(e){if(co=null,e=ar(e),e!==null){var n=c(e);if(n===null)e=null;else{var a=n.tag;if(a===13){if(e=d(n),e!==null)return e;e=null}else if(a===3){if(n.stateNode.current.memoizedState.isDehydrated)return n.tag===3?n.stateNode.containerInfo:null;e=null}else n!==e&&(e=null)}}return co=e,null}function wg(e){switch(e){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(qa()){case ua:return 2;case Bi:return 8;case ca:case Au:return 32;case Fa:return 268435456;default:return 32}default:return 32}}var Mf=!1,Jr=null,ea=null,ta=null,Cs=new Map,Ns=new Map,na=[],D2="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function Cg(e,n){switch(e){case"focusin":case"focusout":Jr=null;break;case"dragenter":case"dragleave":ea=null;break;case"mouseover":case"mouseout":ta=null;break;case"pointerover":case"pointerout":Cs.delete(n.pointerId);break;case"gotpointercapture":case"lostpointercapture":Ns.delete(n.pointerId)}}function Ms(e,n,a,l,o,f){return e===null||e.nativeEvent!==f?(e={blockedOn:n,domEventName:a,eventSystemFlags:l,nativeEvent:f,targetContainers:[o]},n!==null&&(n=ir(n),n!==null&&Rg(n)),e):(e.eventSystemFlags|=l,n=e.targetContainers,o!==null&&n.indexOf(o)===-1&&n.push(o),e)}function L2(e,n,a,l,o){switch(n){case"focusin":return Jr=Ms(Jr,e,n,a,l,o),!0;case"dragenter":return ea=Ms(ea,e,n,a,l,o),!0;case"mouseover":return ta=Ms(ta,e,n,a,l,o),!0;case"pointerover":var f=o.pointerId;return Cs.set(f,Ms(Cs.get(f)||null,e,n,a,l,o)),!0;case"gotpointercapture":return f=o.pointerId,Ns.set(f,Ms(Ns.get(f)||null,e,n,a,l,o)),!0}return!1}function Ng(e){var n=ar(e.target);if(n!==null){var a=c(n);if(a!==null){if(n=a.tag,n===13){if(n=d(a),n!==null){e.blockedOn=n,zi(e.priority,function(){if(a.tag===13){var l=rn();l=kn(l);var o=ei(a,l);o!==null&&an(o,a,l),Rf(a,l)}});return}}else if(n===3&&a.stateNode.current.memoizedState.isDehydrated){e.blockedOn=a.tag===3?a.stateNode.containerInfo:null;return}}}e.blockedOn=null}function fo(e){if(e.blockedOn!==null)return!1;for(var n=e.targetContainers;0<n.length;){var a=Cf(e.nativeEvent);if(a===null){a=e.nativeEvent;var l=new a.constructor(a.type,a);Du=l,a.target.dispatchEvent(l),Du=null}else return n=ir(a),n!==null&&Rg(n),e.blockedOn=a,!1;n.shift()}return!0}function Mg(e,n,a){fo(e)&&a.delete(n)}function B2(){Mf=!1,Jr!==null&&fo(Jr)&&(Jr=null),ea!==null&&fo(ea)&&(ea=null),ta!==null&&fo(ta)&&(ta=null),Cs.forEach(Mg),Ns.forEach(Mg)}function ho(e,n){e.blockedOn===n&&(e.blockedOn=null,Mf||(Mf=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,B2)))}var mo=null;function Dg(e){mo!==e&&(mo=e,t.unstable_scheduleCallback(t.unstable_NormalPriority,function(){mo===e&&(mo=null);for(var n=0;n<e.length;n+=3){var a=e[n],l=e[n+1],o=e[n+2];if(typeof l!="function"){if(Nf(l||a)===null)continue;break}var f=ir(a);f!==null&&(e.splice(n,3),n-=3,Cc(f,{pending:!0,data:o,method:a.method,action:l},l,o))}}))}function Ds(e){function n(T){return ho(T,e)}Jr!==null&&ho(Jr,e),ea!==null&&ho(ea,e),ta!==null&&ho(ta,e),Cs.forEach(n),Ns.forEach(n);for(var a=0;a<na.length;a++){var l=na[a];l.blockedOn===e&&(l.blockedOn=null)}for(;0<na.length&&(a=na[0],a.blockedOn===null);)Ng(a),a.blockedOn===null&&na.shift();if(a=(e.ownerDocument||e).$$reactFormReplay,a!=null)for(l=0;l<a.length;l+=3){var o=a[l],f=a[l+1],g=o[Dt]||null;if(typeof f=="function")g||Dg(a);else if(g){var v=null;if(f&&f.hasAttribute("formAction")){if(o=f,g=f[Dt]||null)v=g.formAction;else if(Nf(o)!==null)continue}else v=g.action;typeof v=="function"?a[l+1]=v:(a.splice(l,3),l-=3),Dg(a)}}}function Df(e){this._internalRoot=e}po.prototype.render=Df.prototype.render=function(e){var n=this._internalRoot;if(n===null)throw Error(s(409));var a=n.current,l=rn();Og(a,l,e,n,null,null)},po.prototype.unmount=Df.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var n=e.containerInfo;Og(e.current,2,null,e,null,null),Ql(),n[At]=null}};function po(e){this._internalRoot=e}po.prototype.unstable_scheduleHydration=function(e){if(e){var n=Ii();e={blockedOn:null,target:e,priority:n};for(var a=0;a<na.length&&n!==0&&n<na[a].priority;a++);na.splice(a,0,e),a===0&&Ng(e)}};var Lg=r.version;if(Lg!=="19.1.1")throw Error(s(527,Lg,"19.1.1"));K.findDOMNode=function(e){var n=e._reactInternals;if(n===void 0)throw typeof e.render=="function"?Error(s(188)):(e=Object.keys(e).join(","),Error(s(268,e)));return e=m(n),e=e!==null?p(e):null,e=e===null?null:e.stateNode,e};var U2={bundleType:0,version:"19.1.1",rendererPackageName:"react-dom",currentDispatcherRef:z,reconcilerVersion:"19.1.1"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var go=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!go.isDisabled&&go.supportsFiber)try{dn=go.inject(U2),Nt=go}catch{}}return Bs.createRoot=function(e,n){if(!u(e))throw Error(s(299));var a=!1,l="",o=Q0,f=K0,g=$0,v=null;return n!=null&&(n.unstable_strictMode===!0&&(a=!0),n.identifierPrefix!==void 0&&(l=n.identifierPrefix),n.onUncaughtError!==void 0&&(o=n.onUncaughtError),n.onCaughtError!==void 0&&(f=n.onCaughtError),n.onRecoverableError!==void 0&&(g=n.onRecoverableError),n.unstable_transitionCallbacks!==void 0&&(v=n.unstable_transitionCallbacks)),n=Tg(e,1,!1,null,null,a,l,o,f,g,v,null),e[At]=n.current,mf(e),new Df(n)},Bs.hydrateRoot=function(e,n,a){if(!u(e))throw Error(s(299));var l=!1,o="",f=Q0,g=K0,v=$0,T=null,L=null;return a!=null&&(a.unstable_strictMode===!0&&(l=!0),a.identifierPrefix!==void 0&&(o=a.identifierPrefix),a.onUncaughtError!==void 0&&(f=a.onUncaughtError),a.onCaughtError!==void 0&&(g=a.onCaughtError),a.onRecoverableError!==void 0&&(v=a.onRecoverableError),a.unstable_transitionCallbacks!==void 0&&(T=a.unstable_transitionCallbacks),a.formState!==void 0&&(L=a.formState)),n=Tg(e,1,!0,n,a??null,l,o,f,g,v,T,L),n.context=Ag(null),a=n.current,l=rn(),l=kn(l),o=zr(l),o.callback=null,Gr(a,o,l),a=l,n.current.lanes=a,wn(n,a),Zn(n),e[At]=n.current,mf(e),new po(n)},Bs.version="19.1.1",Bs}var Fg;function P2(){if(Fg)return Bf.exports;Fg=1;function t(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(r){console.error(r)}}return t(),Bf.exports=V2(),Bf.exports}var Y2=P2(),B=lu();const _1=yh(B);var zf={exports:{}},Gf={};/**
48
+ `+a.stack}}function hn(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function rm(e){var n=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(n==="checkbox"||n==="radio")}function L_(e){var n=rm(e)?"checked":"value",a=Object.getOwnPropertyDescriptor(e.constructor.prototype,n),l=""+e[n];if(!e.hasOwnProperty(n)&&typeof a<"u"&&typeof a.get=="function"&&typeof a.set=="function"){var o=a.get,f=a.set;return Object.defineProperty(e,n,{configurable:!0,get:function(){return o.call(this)},set:function(g){l=""+g,f.call(this,g)}}),Object.defineProperty(e,n,{enumerable:a.enumerable}),{getValue:function(){return l},setValue:function(g){l=""+g},stopTracking:function(){e._valueTracker=null,delete e[n]}}}}function ol(e){e._valueTracker||(e._valueTracker=L_(e))}function am(e){if(!e)return!1;var n=e._valueTracker;if(!n)return!0;var a=n.getValue(),l="";return e&&(l=rm(e)?e.checked?"true":"false":e.value),e=l,e!==a?(n.setValue(e),!0):!1}function ul(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var B_=/[\n"\\]/g;function mn(e){return e.replace(B_,function(n){return"\\"+n.charCodeAt(0).toString(16)+" "})}function Nu(e,n,a,l,o,f,g,v){e.name="",g!=null&&typeof g!="function"&&typeof g!="symbol"&&typeof g!="boolean"?e.type=g:e.removeAttribute("type"),n!=null?g==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+hn(n)):e.value!==""+hn(n)&&(e.value=""+hn(n)):g!=="submit"&&g!=="reset"||e.removeAttribute("value"),n!=null?Mu(e,g,hn(n)):a!=null?Mu(e,g,hn(a)):l!=null&&e.removeAttribute("value"),o==null&&f!=null&&(e.defaultChecked=!!f),o!=null&&(e.checked=o&&typeof o!="function"&&typeof o!="symbol"),v!=null&&typeof v!="function"&&typeof v!="symbol"&&typeof v!="boolean"?e.name=""+hn(v):e.removeAttribute("name")}function im(e,n,a,l,o,f,g,v){if(f!=null&&typeof f!="function"&&typeof f!="symbol"&&typeof f!="boolean"&&(e.type=f),n!=null||a!=null){if(!(f!=="submit"&&f!=="reset"||n!=null))return;a=a!=null?""+hn(a):"",n=n!=null?""+hn(n):a,v||n===e.value||(e.value=n),e.defaultValue=n}l=l??o,l=typeof l!="function"&&typeof l!="symbol"&&!!l,e.checked=v?e.checked:!!l,e.defaultChecked=!!l,g!=null&&typeof g!="function"&&typeof g!="symbol"&&typeof g!="boolean"&&(e.name=g)}function Mu(e,n,a){n==="number"&&ul(e.ownerDocument)===e||e.defaultValue===""+a||(e.defaultValue=""+a)}function Ya(e,n,a,l){if(e=e.options,n){n={};for(var o=0;o<a.length;o++)n["$"+a[o]]=!0;for(a=0;a<e.length;a++)o=n.hasOwnProperty("$"+e[a].value),e[a].selected!==o&&(e[a].selected=o),o&&l&&(e[a].defaultSelected=!0)}else{for(a=""+hn(a),n=null,o=0;o<e.length;o++){if(e[o].value===a){e[o].selected=!0,l&&(e[o].defaultSelected=!0);return}n!==null||e[o].disabled||(n=e[o])}n!==null&&(n.selected=!0)}}function sm(e,n,a){if(n!=null&&(n=""+hn(n),n!==e.value&&(e.value=n),a==null)){e.defaultValue!==n&&(e.defaultValue=n);return}e.defaultValue=a!=null?""+hn(a):""}function lm(e,n,a,l){if(n==null){if(l!=null){if(a!=null)throw Error(s(92));if(ve(l)){if(1<l.length)throw Error(s(93));l=l[0]}a=l}a==null&&(a=""),n=a}a=hn(n),e.defaultValue=a,l=e.textContent,l===a&&l!==""&&l!==null&&(e.value=l)}function Xa(e,n){if(n){var a=e.firstChild;if(a&&a===e.lastChild&&a.nodeType===3){a.nodeValue=n;return}}e.textContent=n}var U_=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function om(e,n,a){var l=n.indexOf("--")===0;a==null||typeof a=="boolean"||a===""?l?e.setProperty(n,""):n==="float"?e.cssFloat="":e[n]="":l?e.setProperty(n,a):typeof a!="number"||a===0||U_.has(n)?n==="float"?e.cssFloat=a:e[n]=(""+a).trim():e[n]=a+"px"}function um(e,n,a){if(n!=null&&typeof n!="object")throw Error(s(62));if(e=e.style,a!=null){for(var l in a)!a.hasOwnProperty(l)||n!=null&&n.hasOwnProperty(l)||(l.indexOf("--")===0?e.setProperty(l,""):l==="float"?e.cssFloat="":e[l]="");for(var o in n)l=n[o],n.hasOwnProperty(o)&&a[o]!==l&&om(e,o,l)}else for(var f in n)n.hasOwnProperty(f)&&om(e,f,n[f])}function Du(e){if(e.indexOf("-")===-1)return!1;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var H_=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),j_=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function cl(e){return j_.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}var Lu=null;function Bu(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Za=null,Qa=null;function cm(e){var n=ir(e);if(n&&(e=n.stateNode)){var a=e[Dt]||null;e:switch(e=n.stateNode,n.type){case"input":if(Nu(e,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name),n=a.name,a.type==="radio"&&n!=null){for(a=e;a.parentNode;)a=a.parentNode;for(a=a.querySelectorAll('input[name="'+mn(""+n)+'"][type="radio"]'),n=0;n<a.length;n++){var l=a[n];if(l!==e&&l.form===e.form){var o=l[Dt]||null;if(!o)throw Error(s(90));Nu(l,o.value,o.defaultValue,o.defaultValue,o.checked,o.defaultChecked,o.type,o.name)}}for(n=0;n<a.length;n++)l=a[n],l.form===e.form&&am(l)}break e;case"textarea":sm(e,a.value,a.defaultValue);break e;case"select":n=a.value,n!=null&&Ya(e,!!a.multiple,n,!1)}}}var Uu=!1;function fm(e,n,a){if(Uu)return e(n,a);Uu=!0;try{var l=e(n);return l}finally{if(Uu=!1,(Za!==null||Qa!==null)&&(Ql(),Za&&(n=Za,e=Qa,Qa=Za=null,cm(n),e)))for(n=0;n<e.length;n++)cm(e[n])}}function ki(e,n){var a=e.stateNode;if(a===null)return null;var l=a[Dt]||null;if(l===null)return null;a=l[n];e:switch(n){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(l=!l.disabled)||(e=e.type,l=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!l;break e;default:e=!1}if(e)return null;if(a&&typeof a!="function")throw Error(s(231,n,typeof a));return a}var or=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Hu=!1;if(or)try{var qi={};Object.defineProperty(qi,"passive",{get:function(){Hu=!0}}),window.addEventListener("test",qi,qi),window.removeEventListener("test",qi,qi)}catch{Hu=!1}var Hr=null,ju=null,fl=null;function dm(){if(fl)return fl;var e,n=ju,a=n.length,l,o="value"in Hr?Hr.value:Hr.textContent,f=o.length;for(e=0;e<a&&n[e]===o[e];e++);var g=a-e;for(l=1;l<=g&&n[a-l]===o[f-l];l++);return fl=o.slice(e,1<l?1-l:void 0)}function dl(e){var n=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&n===13&&(e=13)):e=n,e===10&&(e=13),32<=e||e===13?e:0}function hl(){return!0}function hm(){return!1}function Yt(e){function n(a,l,o,f,g){this._reactName=a,this._targetInst=o,this.type=l,this.nativeEvent=f,this.target=g,this.currentTarget=null;for(var v in e)e.hasOwnProperty(v)&&(a=e[v],this[v]=a?a(f):f[v]);return this.isDefaultPrevented=(f.defaultPrevented!=null?f.defaultPrevented:f.returnValue===!1)?hl:hm,this.isPropagationStopped=hm,this}return b(n.prototype,{preventDefault:function(){this.defaultPrevented=!0;var a=this.nativeEvent;a&&(a.preventDefault?a.preventDefault():typeof a.returnValue!="unknown"&&(a.returnValue=!1),this.isDefaultPrevented=hl)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():typeof a.cancelBubble!="unknown"&&(a.cancelBubble=!0),this.isPropagationStopped=hl)},persist:function(){},isPersistent:hl}),n}var ma={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},ml=Yt(ma),Fi=b({},ma,{view:0,detail:0}),I_=Yt(Fi),Iu,zu,Vi,pl=b({},Fi,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:ku,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==Vi&&(Vi&&e.type==="mousemove"?(Iu=e.screenX-Vi.screenX,zu=e.screenY-Vi.screenY):zu=Iu=0,Vi=e),Iu)},movementY:function(e){return"movementY"in e?e.movementY:zu}}),mm=Yt(pl),z_=b({},pl,{dataTransfer:0}),G_=Yt(z_),k_=b({},Fi,{relatedTarget:0}),Gu=Yt(k_),q_=b({},ma,{animationName:0,elapsedTime:0,pseudoElement:0}),F_=Yt(q_),V_=b({},ma,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),P_=Yt(V_),Y_=b({},ma,{data:0}),pm=Yt(Y_),X_={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Z_={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},Q_={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function K_(e){var n=this.nativeEvent;return n.getModifierState?n.getModifierState(e):(e=Q_[e])?!!n[e]:!1}function ku(){return K_}var $_=b({},Fi,{key:function(e){if(e.key){var n=X_[e.key]||e.key;if(n!=="Unidentified")return n}return e.type==="keypress"?(e=dl(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Z_[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:ku,charCode:function(e){return e.type==="keypress"?dl(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?dl(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),W_=Yt($_),J_=b({},pl,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),gm=Yt(J_),eE=b({},Fi,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:ku}),tE=Yt(eE),nE=b({},ma,{propertyName:0,elapsedTime:0,pseudoElement:0}),rE=Yt(nE),aE=b({},pl,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),iE=Yt(aE),sE=b({},ma,{newState:0,oldState:0}),lE=Yt(sE),oE=[9,13,27,32],qu=or&&"CompositionEvent"in window,Pi=null;or&&"documentMode"in document&&(Pi=document.documentMode);var uE=or&&"TextEvent"in window&&!Pi,ym=or&&(!qu||Pi&&8<Pi&&11>=Pi),bm=" ",vm=!1;function _m(e,n){switch(e){case"keyup":return oE.indexOf(n.keyCode)!==-1;case"keydown":return n.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Em(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Ka=!1;function cE(e,n){switch(e){case"compositionend":return Em(n);case"keypress":return n.which!==32?null:(vm=!0,bm);case"textInput":return e=n.data,e===bm&&vm?null:e;default:return null}}function fE(e,n){if(Ka)return e==="compositionend"||!qu&&_m(e,n)?(e=dm(),fl=ju=Hr=null,Ka=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(n.ctrlKey||n.altKey||n.metaKey)||n.ctrlKey&&n.altKey){if(n.char&&1<n.char.length)return n.char;if(n.which)return String.fromCharCode(n.which)}return null;case"compositionend":return ym&&n.locale!=="ko"?null:n.data;default:return null}}var dE={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Sm(e){var n=e&&e.nodeName&&e.nodeName.toLowerCase();return n==="input"?!!dE[e.type]:n==="textarea"}function Tm(e,n,a,l){Za?Qa?Qa.push(l):Qa=[l]:Za=l,n=to(n,"onChange"),0<n.length&&(a=new ml("onChange","change",null,a,l),e.push({event:a,listeners:n}))}var Yi=null,Xi=null;function hE(e){rg(e,0)}function gl(e){var n=Ur(e);if(am(n))return e}function Am(e,n){if(e==="change")return n}var xm=!1;if(or){var Fu;if(or){var Vu="oninput"in document;if(!Vu){var Om=document.createElement("div");Om.setAttribute("oninput","return;"),Vu=typeof Om.oninput=="function"}Fu=Vu}else Fu=!1;xm=Fu&&(!document.documentMode||9<document.documentMode)}function Rm(){Yi&&(Yi.detachEvent("onpropertychange",wm),Xi=Yi=null)}function wm(e){if(e.propertyName==="value"&&gl(Xi)){var n=[];Tm(n,Xi,e,Bu(e)),fm(hE,n)}}function mE(e,n,a){e==="focusin"?(Rm(),Yi=n,Xi=a,Yi.attachEvent("onpropertychange",wm)):e==="focusout"&&Rm()}function pE(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return gl(Xi)}function gE(e,n){if(e==="click")return gl(n)}function yE(e,n){if(e==="input"||e==="change")return gl(n)}function bE(e,n){return e===n&&(e!==0||1/e===1/n)||e!==e&&n!==n}var Wt=typeof Object.is=="function"?Object.is:bE;function Zi(e,n){if(Wt(e,n))return!0;if(typeof e!="object"||e===null||typeof n!="object"||n===null)return!1;var a=Object.keys(e),l=Object.keys(n);if(a.length!==l.length)return!1;for(l=0;l<a.length;l++){var o=a[l];if(!Qe.call(n,o)||!Wt(e[o],n[o]))return!1}return!0}function Cm(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Nm(e,n){var a=Cm(e);e=0;for(var l;a;){if(a.nodeType===3){if(l=e+a.textContent.length,e<=n&&l>=n)return{node:a,offset:n-e};e=l}e:{for(;a;){if(a.nextSibling){a=a.nextSibling;break e}a=a.parentNode}a=void 0}a=Cm(a)}}function Mm(e,n){return e&&n?e===n?!0:e&&e.nodeType===3?!1:n&&n.nodeType===3?Mm(e,n.parentNode):"contains"in e?e.contains(n):e.compareDocumentPosition?!!(e.compareDocumentPosition(n)&16):!1:!1}function Dm(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var n=ul(e.document);n instanceof e.HTMLIFrameElement;){try{var a=typeof n.contentWindow.location.href=="string"}catch{a=!1}if(a)e=n.contentWindow;else break;n=ul(e.document)}return n}function Pu(e){var n=e&&e.nodeName&&e.nodeName.toLowerCase();return n&&(n==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||n==="textarea"||e.contentEditable==="true")}var vE=or&&"documentMode"in document&&11>=document.documentMode,$a=null,Yu=null,Qi=null,Xu=!1;function Lm(e,n,a){var l=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;Xu||$a==null||$a!==ul(l)||(l=$a,"selectionStart"in l&&Pu(l)?l={start:l.selectionStart,end:l.selectionEnd}:(l=(l.ownerDocument&&l.ownerDocument.defaultView||window).getSelection(),l={anchorNode:l.anchorNode,anchorOffset:l.anchorOffset,focusNode:l.focusNode,focusOffset:l.focusOffset}),Qi&&Zi(Qi,l)||(Qi=l,l=to(Yu,"onSelect"),0<l.length&&(n=new ml("onSelect","select",null,n,a),e.push({event:n,listeners:l}),n.target=$a)))}function pa(e,n){var a={};return a[e.toLowerCase()]=n.toLowerCase(),a["Webkit"+e]="webkit"+n,a["Moz"+e]="moz"+n,a}var Wa={animationend:pa("Animation","AnimationEnd"),animationiteration:pa("Animation","AnimationIteration"),animationstart:pa("Animation","AnimationStart"),transitionrun:pa("Transition","TransitionRun"),transitionstart:pa("Transition","TransitionStart"),transitioncancel:pa("Transition","TransitionCancel"),transitionend:pa("Transition","TransitionEnd")},Zu={},Bm={};or&&(Bm=document.createElement("div").style,"AnimationEvent"in window||(delete Wa.animationend.animation,delete Wa.animationiteration.animation,delete Wa.animationstart.animation),"TransitionEvent"in window||delete Wa.transitionend.transition);function ga(e){if(Zu[e])return Zu[e];if(!Wa[e])return e;var n=Wa[e],a;for(a in n)if(n.hasOwnProperty(a)&&a in Bm)return Zu[e]=n[a];return e}var Um=ga("animationend"),Hm=ga("animationiteration"),jm=ga("animationstart"),_E=ga("transitionrun"),EE=ga("transitionstart"),SE=ga("transitioncancel"),Im=ga("transitionend"),zm=new Map,Qu="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");Qu.push("scrollEnd");function Nn(e,n){zm.set(e,n),X(n,[e])}var Gm=new WeakMap;function pn(e,n){if(typeof e=="object"&&e!==null){var a=Gm.get(e);return a!==void 0?a:(n={value:e,source:n,stack:nm(n)},Gm.set(e,n),n)}return{value:e,source:n,stack:nm(n)}}var gn=[],Ja=0,Ku=0;function yl(){for(var e=Ja,n=Ku=Ja=0;n<e;){var a=gn[n];gn[n++]=null;var l=gn[n];gn[n++]=null;var o=gn[n];gn[n++]=null;var f=gn[n];if(gn[n++]=null,l!==null&&o!==null){var g=l.pending;g===null?o.next=o:(o.next=g.next,g.next=o),l.pending=o}f!==0&&km(a,o,f)}}function bl(e,n,a,l){gn[Ja++]=e,gn[Ja++]=n,gn[Ja++]=a,gn[Ja++]=l,Ku|=l,e.lanes|=l,e=e.alternate,e!==null&&(e.lanes|=l)}function $u(e,n,a,l){return bl(e,n,a,l),vl(e)}function ei(e,n){return bl(e,null,null,n),vl(e)}function km(e,n,a){e.lanes|=a;var l=e.alternate;l!==null&&(l.lanes|=a);for(var o=!1,f=e.return;f!==null;)f.childLanes|=a,l=f.alternate,l!==null&&(l.childLanes|=a),f.tag===22&&(e=f.stateNode,e===null||e._visibility&1||(o=!0)),e=f,f=f.return;return e.tag===3?(f=e.stateNode,o&&n!==null&&(o=31-Mt(a),e=f.hiddenUpdates,l=e[o],l===null?e[o]=[n]:l.push(n),n.lane=a|536870912),f):null}function vl(e){if(50<_s)throw _s=0,rf=null,Error(s(185));for(var n=e.return;n!==null;)e=n,n=e.return;return e.tag===3?e.stateNode:null}var ti={};function TE(e,n,a,l){this.tag=e,this.key=a,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=n,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=l,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Jt(e,n,a,l){return new TE(e,n,a,l)}function Wu(e){return e=e.prototype,!(!e||!e.isReactComponent)}function ur(e,n){var a=e.alternate;return a===null?(a=Jt(e.tag,n,e.key,e.mode),a.elementType=e.elementType,a.type=e.type,a.stateNode=e.stateNode,a.alternate=e,e.alternate=a):(a.pendingProps=n,a.type=e.type,a.flags=0,a.subtreeFlags=0,a.deletions=null),a.flags=e.flags&65011712,a.childLanes=e.childLanes,a.lanes=e.lanes,a.child=e.child,a.memoizedProps=e.memoizedProps,a.memoizedState=e.memoizedState,a.updateQueue=e.updateQueue,n=e.dependencies,a.dependencies=n===null?null:{lanes:n.lanes,firstContext:n.firstContext},a.sibling=e.sibling,a.index=e.index,a.ref=e.ref,a.refCleanup=e.refCleanup,a}function qm(e,n){e.flags&=65011714;var a=e.alternate;return a===null?(e.childLanes=0,e.lanes=n,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=a.childLanes,e.lanes=a.lanes,e.child=a.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=a.memoizedProps,e.memoizedState=a.memoizedState,e.updateQueue=a.updateQueue,e.type=a.type,n=a.dependencies,e.dependencies=n===null?null:{lanes:n.lanes,firstContext:n.firstContext}),e}function _l(e,n,a,l,o,f){var g=0;if(l=e,typeof e=="function")Wu(e)&&(g=1);else if(typeof e=="string")g=x2(e,a,te.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case ye:return e=Jt(31,a,n,o),e.elementType=ye,e.lanes=f,e;case R:return ya(a.children,o,f,n);case q:g=8,o|=24;break;case G:return e=Jt(12,a,n,o|2),e.elementType=G,e.lanes=f,e;case x:return e=Jt(13,a,n,o),e.elementType=x,e.lanes=f,e;case Q:return e=Jt(19,a,n,o),e.elementType=Q,e.lanes=f,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case _:case S:g=10;break e;case C:g=9;break e;case H:g=11;break e;case W:g=14;break e;case ae:g=16,l=null;break e}g=29,a=Error(s(130,e===null?"null":typeof e,"")),l=null}return n=Jt(g,a,n,o),n.elementType=e,n.type=l,n.lanes=f,n}function ya(e,n,a,l){return e=Jt(7,e,l,n),e.lanes=a,e}function Ju(e,n,a){return e=Jt(6,e,null,n),e.lanes=a,e}function ec(e,n,a){return n=Jt(4,e.children!==null?e.children:[],e.key,n),n.lanes=a,n.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},n}var ni=[],ri=0,El=null,Sl=0,yn=[],bn=0,ba=null,cr=1,fr="";function va(e,n){ni[ri++]=Sl,ni[ri++]=El,El=e,Sl=n}function Fm(e,n,a){yn[bn++]=cr,yn[bn++]=fr,yn[bn++]=ba,ba=e;var l=cr;e=fr;var o=32-Mt(l)-1;l&=~(1<<o),a+=1;var f=32-Mt(n)+o;if(30<f){var g=o-o%5;f=(l&(1<<g)-1).toString(32),l>>=g,o-=g,cr=1<<32-Mt(n)+o|a<<o|l,fr=f+e}else cr=1<<f|a<<o|l,fr=e}function tc(e){e.return!==null&&(va(e,1),Fm(e,1,0))}function nc(e){for(;e===El;)El=ni[--ri],ni[ri]=null,Sl=ni[--ri],ni[ri]=null;for(;e===ba;)ba=yn[--bn],yn[bn]=null,fr=yn[--bn],yn[bn]=null,cr=yn[--bn],yn[bn]=null}var Ht=null,et=null,Le=!1,_a=null,Vn=!1,rc=Error(s(519));function Ea(e){var n=Error(s(418,""));throw Wi(pn(n,e)),rc}function Vm(e){var n=e.stateNode,a=e.type,l=e.memoizedProps;switch(n[ht]=e,n[Dt]=l,a){case"dialog":Oe("cancel",n),Oe("close",n);break;case"iframe":case"object":case"embed":Oe("load",n);break;case"video":case"audio":for(a=0;a<Ss.length;a++)Oe(Ss[a],n);break;case"source":Oe("error",n);break;case"img":case"image":case"link":Oe("error",n),Oe("load",n);break;case"details":Oe("toggle",n);break;case"input":Oe("invalid",n),im(n,l.value,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name,!0),ol(n);break;case"select":Oe("invalid",n);break;case"textarea":Oe("invalid",n),lm(n,l.value,l.defaultValue,l.children),ol(n)}a=l.children,typeof a!="string"&&typeof a!="number"&&typeof a!="bigint"||n.textContent===""+a||l.suppressHydrationWarning===!0||lg(n.textContent,a)?(l.popover!=null&&(Oe("beforetoggle",n),Oe("toggle",n)),l.onScroll!=null&&Oe("scroll",n),l.onScrollEnd!=null&&Oe("scrollend",n),l.onClick!=null&&(n.onclick=no),n=!0):n=!1,n||Ea(e)}function Pm(e){for(Ht=e.return;Ht;)switch(Ht.tag){case 5:case 13:Vn=!1;return;case 27:case 3:Vn=!0;return;default:Ht=Ht.return}}function Ki(e){if(e!==Ht)return!1;if(!Le)return Pm(e),Le=!0,!1;var n=e.tag,a;if((a=n!==3&&n!==27)&&((a=n===5)&&(a=e.type,a=!(a!=="form"&&a!=="button")||_f(e.type,e.memoizedProps)),a=!a),a&&et&&Ea(e),Pm(e),n===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(s(317));e:{for(e=e.nextSibling,n=0;e;){if(e.nodeType===8)if(a=e.data,a==="/$"){if(n===0){et=Dn(e.nextSibling);break e}n--}else a!=="$"&&a!=="$!"&&a!=="$?"||n++;e=e.nextSibling}et=null}}else n===27?(n=et,Wr(e.type)?(e=Af,Af=null,et=e):et=n):et=Ht?Dn(e.stateNode.nextSibling):null;return!0}function $i(){et=Ht=null,Le=!1}function Ym(){var e=_a;return e!==null&&(Qt===null?Qt=e:Qt.push.apply(Qt,e),_a=null),e}function Wi(e){_a===null?_a=[e]:_a.push(e)}var ac=k(null),Sa=null,dr=null;function jr(e,n,a){Y(ac,n._currentValue),n._currentValue=a}function hr(e){e._currentValue=ac.current,$(ac)}function ic(e,n,a){for(;e!==null;){var l=e.alternate;if((e.childLanes&n)!==n?(e.childLanes|=n,l!==null&&(l.childLanes|=n)):l!==null&&(l.childLanes&n)!==n&&(l.childLanes|=n),e===a)break;e=e.return}}function sc(e,n,a,l){var o=e.child;for(o!==null&&(o.return=e);o!==null;){var f=o.dependencies;if(f!==null){var g=o.child;f=f.firstContext;e:for(;f!==null;){var v=f;f=o;for(var T=0;T<n.length;T++)if(v.context===n[T]){f.lanes|=a,v=f.alternate,v!==null&&(v.lanes|=a),ic(f.return,a,e),l||(g=null);break e}f=v.next}}else if(o.tag===18){if(g=o.return,g===null)throw Error(s(341));g.lanes|=a,f=g.alternate,f!==null&&(f.lanes|=a),ic(g,a,e),g=null}else g=o.child;if(g!==null)g.return=o;else for(g=o;g!==null;){if(g===e){g=null;break}if(o=g.sibling,o!==null){o.return=g.return,g=o;break}g=g.return}o=g}}function Ji(e,n,a,l){e=null;for(var o=n,f=!1;o!==null;){if(!f){if((o.flags&524288)!==0)f=!0;else if((o.flags&262144)!==0)break}if(o.tag===10){var g=o.alternate;if(g===null)throw Error(s(387));if(g=g.memoizedProps,g!==null){var v=o.type;Wt(o.pendingProps.value,g.value)||(e!==null?e.push(v):e=[v])}}else if(o===We.current){if(g=o.alternate,g===null)throw Error(s(387));g.memoizedState.memoizedState!==o.memoizedState.memoizedState&&(e!==null?e.push(ws):e=[ws])}o=o.return}e!==null&&sc(n,e,a,l),n.flags|=262144}function Tl(e){for(e=e.firstContext;e!==null;){if(!Wt(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Ta(e){Sa=e,dr=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function Bt(e){return Xm(Sa,e)}function Al(e,n){return Sa===null&&Ta(e),Xm(e,n)}function Xm(e,n){var a=n._currentValue;if(n={context:n,memoizedValue:a,next:null},dr===null){if(e===null)throw Error(s(308));dr=n,e.dependencies={lanes:0,firstContext:n},e.flags|=524288}else dr=dr.next=n;return a}var AE=typeof AbortController<"u"?AbortController:function(){var e=[],n=this.signal={aborted:!1,addEventListener:function(a,l){e.push(l)}};this.abort=function(){n.aborted=!0,e.forEach(function(a){return a()})}},xE=t.unstable_scheduleCallback,OE=t.unstable_NormalPriority,pt={$$typeof:S,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function lc(){return{controller:new AE,data:new Map,refCount:0}}function es(e){e.refCount--,e.refCount===0&&xE(OE,function(){e.controller.abort()})}var ts=null,oc=0,ai=0,ii=null;function RE(e,n){if(ts===null){var a=ts=[];oc=0,ai=ff(),ii={status:"pending",value:void 0,then:function(l){a.push(l)}}}return oc++,n.then(Zm,Zm),n}function Zm(){if(--oc===0&&ts!==null){ii!==null&&(ii.status="fulfilled");var e=ts;ts=null,ai=0,ii=null;for(var n=0;n<e.length;n++)(0,e[n])()}}function wE(e,n){var a=[],l={status:"pending",value:null,reason:null,then:function(o){a.push(o)}};return e.then(function(){l.status="fulfilled",l.value=n;for(var o=0;o<a.length;o++)(0,a[o])(n)},function(o){for(l.status="rejected",l.reason=o,o=0;o<a.length;o++)(0,a[o])(void 0)}),l}var Qm=z.S;z.S=function(e,n){typeof n=="object"&&n!==null&&typeof n.then=="function"&&RE(e,n),Qm!==null&&Qm(e,n)};var Aa=k(null);function uc(){var e=Aa.current;return e!==null?e:Ve.pooledCache}function xl(e,n){n===null?Y(Aa,Aa.current):Y(Aa,n.pool)}function Km(){var e=uc();return e===null?null:{parent:pt._currentValue,pool:e}}var ns=Error(s(460)),$m=Error(s(474)),Ol=Error(s(542)),cc={then:function(){}};function Wm(e){return e=e.status,e==="fulfilled"||e==="rejected"}function Rl(){}function Jm(e,n,a){switch(a=e[a],a===void 0?e.push(n):a!==n&&(n.then(Rl,Rl),n=a),n.status){case"fulfilled":return n.value;case"rejected":throw e=n.reason,t0(e),e;default:if(typeof n.status=="string")n.then(Rl,Rl);else{if(e=Ve,e!==null&&100<e.shellSuspendCounter)throw Error(s(482));e=n,e.status="pending",e.then(function(l){if(n.status==="pending"){var o=n;o.status="fulfilled",o.value=l}},function(l){if(n.status==="pending"){var o=n;o.status="rejected",o.reason=l}})}switch(n.status){case"fulfilled":return n.value;case"rejected":throw e=n.reason,t0(e),e}throw rs=n,ns}}var rs=null;function e0(){if(rs===null)throw Error(s(459));var e=rs;return rs=null,e}function t0(e){if(e===ns||e===Ol)throw Error(s(483))}var Ir=!1;function fc(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function dc(e,n){e=e.updateQueue,n.updateQueue===e&&(n.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function zr(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Gr(e,n,a){var l=e.updateQueue;if(l===null)return null;if(l=l.shared,(He&2)!==0){var o=l.pending;return o===null?n.next=n:(n.next=o.next,o.next=n),l.pending=n,n=vl(e),km(e,null,a),n}return bl(e,l,n,a),vl(e)}function as(e,n,a){if(n=n.updateQueue,n!==null&&(n=n.shared,(a&4194048)!==0)){var l=n.lanes;l&=e.pendingLanes,a|=l,n.lanes=a,rt(e,a)}}function hc(e,n){var a=e.updateQueue,l=e.alternate;if(l!==null&&(l=l.updateQueue,a===l)){var o=null,f=null;if(a=a.firstBaseUpdate,a!==null){do{var g={lane:a.lane,tag:a.tag,payload:a.payload,callback:null,next:null};f===null?o=f=g:f=f.next=g,a=a.next}while(a!==null);f===null?o=f=n:f=f.next=n}else o=f=n;a={baseState:l.baseState,firstBaseUpdate:o,lastBaseUpdate:f,shared:l.shared,callbacks:l.callbacks},e.updateQueue=a;return}e=a.lastBaseUpdate,e===null?a.firstBaseUpdate=n:e.next=n,a.lastBaseUpdate=n}var mc=!1;function is(){if(mc){var e=ii;if(e!==null)throw e}}function ss(e,n,a,l){mc=!1;var o=e.updateQueue;Ir=!1;var f=o.firstBaseUpdate,g=o.lastBaseUpdate,v=o.shared.pending;if(v!==null){o.shared.pending=null;var T=v,B=T.next;T.next=null,g===null?f=B:g.next=B,g=T;var F=e.alternate;F!==null&&(F=F.updateQueue,v=F.lastBaseUpdate,v!==g&&(v===null?F.firstBaseUpdate=B:v.next=B,F.lastBaseUpdate=T))}if(f!==null){var P=o.baseState;g=0,F=B=T=null,v=f;do{var j=v.lane&-536870913,I=j!==v.lane;if(I?(Ne&j)===j:(l&j)===j){j!==0&&j===ai&&(mc=!0),F!==null&&(F=F.next={lane:0,tag:v.tag,payload:v.payload,callback:null,next:null});e:{var he=e,fe=v;j=n;var ke=a;switch(fe.tag){case 1:if(he=fe.payload,typeof he=="function"){P=he.call(ke,P,j);break e}P=he;break e;case 3:he.flags=he.flags&-65537|128;case 0:if(he=fe.payload,j=typeof he=="function"?he.call(ke,P,j):he,j==null)break e;P=b({},P,j);break e;case 2:Ir=!0}}j=v.callback,j!==null&&(e.flags|=64,I&&(e.flags|=8192),I=o.callbacks,I===null?o.callbacks=[j]:I.push(j))}else I={lane:j,tag:v.tag,payload:v.payload,callback:v.callback,next:null},F===null?(B=F=I,T=P):F=F.next=I,g|=j;if(v=v.next,v===null){if(v=o.shared.pending,v===null)break;I=v,v=I.next,I.next=null,o.lastBaseUpdate=I,o.shared.pending=null}}while(!0);F===null&&(T=P),o.baseState=T,o.firstBaseUpdate=B,o.lastBaseUpdate=F,f===null&&(o.shared.lanes=0),Zr|=g,e.lanes=g,e.memoizedState=P}}function n0(e,n){if(typeof e!="function")throw Error(s(191,e));e.call(n)}function r0(e,n){var a=e.callbacks;if(a!==null)for(e.callbacks=null,e=0;e<a.length;e++)n0(a[e],n)}var si=k(null),wl=k(0);function a0(e,n){e=_r,Y(wl,e),Y(si,n),_r=e|n.baseLanes}function pc(){Y(wl,_r),Y(si,si.current)}function gc(){_r=wl.current,$(si),$(wl)}var kr=0,_e=null,ze=null,ut=null,Cl=!1,li=!1,xa=!1,Nl=0,ls=0,oi=null,CE=0;function at(){throw Error(s(321))}function yc(e,n){if(n===null)return!1;for(var a=0;a<n.length&&a<e.length;a++)if(!Wt(e[a],n[a]))return!1;return!0}function bc(e,n,a,l,o,f){return kr=f,_e=n,n.memoizedState=null,n.updateQueue=null,n.lanes=0,z.H=e===null||e.memoizedState===null?k0:q0,xa=!1,f=a(l,o),xa=!1,li&&(f=s0(n,a,l,o)),i0(e),f}function i0(e){z.H=Hl;var n=ze!==null&&ze.next!==null;if(kr=0,ut=ze=_e=null,Cl=!1,ls=0,oi=null,n)throw Error(s(300));e===null||yt||(e=e.dependencies,e!==null&&Tl(e)&&(yt=!0))}function s0(e,n,a,l){_e=e;var o=0;do{if(li&&(oi=null),ls=0,li=!1,25<=o)throw Error(s(301));if(o+=1,ut=ze=null,e.updateQueue!=null){var f=e.updateQueue;f.lastEffect=null,f.events=null,f.stores=null,f.memoCache!=null&&(f.memoCache.index=0)}z.H=HE,f=n(a,l)}while(li);return f}function NE(){var e=z.H,n=e.useState()[0];return n=typeof n.then=="function"?os(n):n,e=e.useState()[0],(ze!==null?ze.memoizedState:null)!==e&&(_e.flags|=1024),n}function vc(){var e=Nl!==0;return Nl=0,e}function _c(e,n,a){n.updateQueue=e.updateQueue,n.flags&=-2053,e.lanes&=~a}function Ec(e){if(Cl){for(e=e.memoizedState;e!==null;){var n=e.queue;n!==null&&(n.pending=null),e=e.next}Cl=!1}kr=0,ut=ze=_e=null,li=!1,ls=Nl=0,oi=null}function Xt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return ut===null?_e.memoizedState=ut=e:ut=ut.next=e,ut}function ct(){if(ze===null){var e=_e.alternate;e=e!==null?e.memoizedState:null}else e=ze.next;var n=ut===null?_e.memoizedState:ut.next;if(n!==null)ut=n,ze=e;else{if(e===null)throw _e.alternate===null?Error(s(467)):Error(s(310));ze=e,e={memoizedState:ze.memoizedState,baseState:ze.baseState,baseQueue:ze.baseQueue,queue:ze.queue,next:null},ut===null?_e.memoizedState=ut=e:ut=ut.next=e}return ut}function Sc(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function os(e){var n=ls;return ls+=1,oi===null&&(oi=[]),e=Jm(oi,e,n),n=_e,(ut===null?n.memoizedState:ut.next)===null&&(n=n.alternate,z.H=n===null||n.memoizedState===null?k0:q0),e}function Ml(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return os(e);if(e.$$typeof===S)return Bt(e)}throw Error(s(438,String(e)))}function Tc(e){var n=null,a=_e.updateQueue;if(a!==null&&(n=a.memoCache),n==null){var l=_e.alternate;l!==null&&(l=l.updateQueue,l!==null&&(l=l.memoCache,l!=null&&(n={data:l.data.map(function(o){return o.slice()}),index:0})))}if(n==null&&(n={data:[],index:0}),a===null&&(a=Sc(),_e.updateQueue=a),a.memoCache=n,a=n.data[n.index],a===void 0)for(a=n.data[n.index]=Array(e),l=0;l<e;l++)a[l]=Ee;return n.index++,a}function mr(e,n){return typeof n=="function"?n(e):n}function Dl(e){var n=ct();return Ac(n,ze,e)}function Ac(e,n,a){var l=e.queue;if(l===null)throw Error(s(311));l.lastRenderedReducer=a;var o=e.baseQueue,f=l.pending;if(f!==null){if(o!==null){var g=o.next;o.next=f.next,f.next=g}n.baseQueue=o=f,l.pending=null}if(f=e.baseState,o===null)e.memoizedState=f;else{n=o.next;var v=g=null,T=null,B=n,F=!1;do{var P=B.lane&-536870913;if(P!==B.lane?(Ne&P)===P:(kr&P)===P){var j=B.revertLane;if(j===0)T!==null&&(T=T.next={lane:0,revertLane:0,action:B.action,hasEagerState:B.hasEagerState,eagerState:B.eagerState,next:null}),P===ai&&(F=!0);else if((kr&j)===j){B=B.next,j===ai&&(F=!0);continue}else P={lane:0,revertLane:B.revertLane,action:B.action,hasEagerState:B.hasEagerState,eagerState:B.eagerState,next:null},T===null?(v=T=P,g=f):T=T.next=P,_e.lanes|=j,Zr|=j;P=B.action,xa&&a(f,P),f=B.hasEagerState?B.eagerState:a(f,P)}else j={lane:P,revertLane:B.revertLane,action:B.action,hasEagerState:B.hasEagerState,eagerState:B.eagerState,next:null},T===null?(v=T=j,g=f):T=T.next=j,_e.lanes|=P,Zr|=P;B=B.next}while(B!==null&&B!==n);if(T===null?g=f:T.next=v,!Wt(f,e.memoizedState)&&(yt=!0,F&&(a=ii,a!==null)))throw a;e.memoizedState=f,e.baseState=g,e.baseQueue=T,l.lastRenderedState=f}return o===null&&(l.lanes=0),[e.memoizedState,l.dispatch]}function xc(e){var n=ct(),a=n.queue;if(a===null)throw Error(s(311));a.lastRenderedReducer=e;var l=a.dispatch,o=a.pending,f=n.memoizedState;if(o!==null){a.pending=null;var g=o=o.next;do f=e(f,g.action),g=g.next;while(g!==o);Wt(f,n.memoizedState)||(yt=!0),n.memoizedState=f,n.baseQueue===null&&(n.baseState=f),a.lastRenderedState=f}return[f,l]}function l0(e,n,a){var l=_e,o=ct(),f=Le;if(f){if(a===void 0)throw Error(s(407));a=a()}else a=n();var g=!Wt((ze||o).memoizedState,a);g&&(o.memoizedState=a,yt=!0),o=o.queue;var v=c0.bind(null,l,o,e);if(us(2048,8,v,[e]),o.getSnapshot!==n||g||ut!==null&&ut.memoizedState.tag&1){if(l.flags|=2048,ui(9,Ll(),u0.bind(null,l,o,a,n),null),Ve===null)throw Error(s(349));f||(kr&124)!==0||o0(l,n,a)}return a}function o0(e,n,a){e.flags|=16384,e={getSnapshot:n,value:a},n=_e.updateQueue,n===null?(n=Sc(),_e.updateQueue=n,n.stores=[e]):(a=n.stores,a===null?n.stores=[e]:a.push(e))}function u0(e,n,a,l){n.value=a,n.getSnapshot=l,f0(n)&&d0(e)}function c0(e,n,a){return a(function(){f0(n)&&d0(e)})}function f0(e){var n=e.getSnapshot;e=e.value;try{var a=n();return!Wt(e,a)}catch{return!0}}function d0(e){var n=ei(e,2);n!==null&&an(n,e,2)}function Oc(e){var n=Xt();if(typeof e=="function"){var a=e;if(e=a(),xa){Rn(!0);try{a()}finally{Rn(!1)}}}return n.memoizedState=n.baseState=e,n.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:mr,lastRenderedState:e},n}function h0(e,n,a,l){return e.baseState=a,Ac(e,ze,typeof l=="function"?l:mr)}function ME(e,n,a,l,o){if(Ul(e))throw Error(s(485));if(e=n.action,e!==null){var f={payload:o,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(g){f.listeners.push(g)}};z.T!==null?a(!0):f.isTransition=!1,l(f),a=n.pending,a===null?(f.next=n.pending=f,m0(n,f)):(f.next=a.next,n.pending=a.next=f)}}function m0(e,n){var a=n.action,l=n.payload,o=e.state;if(n.isTransition){var f=z.T,g={};z.T=g;try{var v=a(o,l),T=z.S;T!==null&&T(g,v),p0(e,n,v)}catch(B){Rc(e,n,B)}finally{z.T=f}}else try{f=a(o,l),p0(e,n,f)}catch(B){Rc(e,n,B)}}function p0(e,n,a){a!==null&&typeof a=="object"&&typeof a.then=="function"?a.then(function(l){g0(e,n,l)},function(l){return Rc(e,n,l)}):g0(e,n,a)}function g0(e,n,a){n.status="fulfilled",n.value=a,y0(n),e.state=a,n=e.pending,n!==null&&(a=n.next,a===n?e.pending=null:(a=a.next,n.next=a,m0(e,a)))}function Rc(e,n,a){var l=e.pending;if(e.pending=null,l!==null){l=l.next;do n.status="rejected",n.reason=a,y0(n),n=n.next;while(n!==l)}e.action=null}function y0(e){e=e.listeners;for(var n=0;n<e.length;n++)(0,e[n])()}function b0(e,n){return n}function v0(e,n){if(Le){var a=Ve.formState;if(a!==null){e:{var l=_e;if(Le){if(et){t:{for(var o=et,f=Vn;o.nodeType!==8;){if(!f){o=null;break t}if(o=Dn(o.nextSibling),o===null){o=null;break t}}f=o.data,o=f==="F!"||f==="F"?o:null}if(o){et=Dn(o.nextSibling),l=o.data==="F!";break e}}Ea(l)}l=!1}l&&(n=a[0])}}return a=Xt(),a.memoizedState=a.baseState=n,l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:b0,lastRenderedState:n},a.queue=l,a=I0.bind(null,_e,l),l.dispatch=a,l=Oc(!1),f=Dc.bind(null,_e,!1,l.queue),l=Xt(),o={state:n,dispatch:null,action:e,pending:null},l.queue=o,a=ME.bind(null,_e,o,f,a),o.dispatch=a,l.memoizedState=e,[n,a,!1]}function _0(e){var n=ct();return E0(n,ze,e)}function E0(e,n,a){if(n=Ac(e,n,b0)[0],e=Dl(mr)[0],typeof n=="object"&&n!==null&&typeof n.then=="function")try{var l=os(n)}catch(g){throw g===ns?Ol:g}else l=n;n=ct();var o=n.queue,f=o.dispatch;return a!==n.memoizedState&&(_e.flags|=2048,ui(9,Ll(),DE.bind(null,o,a),null)),[l,f,e]}function DE(e,n){e.action=n}function S0(e){var n=ct(),a=ze;if(a!==null)return E0(n,a,e);ct(),n=n.memoizedState,a=ct();var l=a.queue.dispatch;return a.memoizedState=e,[n,l,!1]}function ui(e,n,a,l){return e={tag:e,create:a,deps:l,inst:n,next:null},n=_e.updateQueue,n===null&&(n=Sc(),_e.updateQueue=n),a=n.lastEffect,a===null?n.lastEffect=e.next=e:(l=a.next,a.next=e,e.next=l,n.lastEffect=e),e}function Ll(){return{destroy:void 0,resource:void 0}}function T0(){return ct().memoizedState}function Bl(e,n,a,l){var o=Xt();l=l===void 0?null:l,_e.flags|=e,o.memoizedState=ui(1|n,Ll(),a,l)}function us(e,n,a,l){var o=ct();l=l===void 0?null:l;var f=o.memoizedState.inst;ze!==null&&l!==null&&yc(l,ze.memoizedState.deps)?o.memoizedState=ui(n,f,a,l):(_e.flags|=e,o.memoizedState=ui(1|n,f,a,l))}function A0(e,n){Bl(8390656,8,e,n)}function x0(e,n){us(2048,8,e,n)}function O0(e,n){return us(4,2,e,n)}function R0(e,n){return us(4,4,e,n)}function w0(e,n){if(typeof n=="function"){e=e();var a=n(e);return function(){typeof a=="function"?a():n(null)}}if(n!=null)return e=e(),n.current=e,function(){n.current=null}}function C0(e,n,a){a=a!=null?a.concat([e]):null,us(4,4,w0.bind(null,n,e),a)}function wc(){}function N0(e,n){var a=ct();n=n===void 0?null:n;var l=a.memoizedState;return n!==null&&yc(n,l[1])?l[0]:(a.memoizedState=[e,n],e)}function M0(e,n){var a=ct();n=n===void 0?null:n;var l=a.memoizedState;if(n!==null&&yc(n,l[1]))return l[0];if(l=e(),xa){Rn(!0);try{e()}finally{Rn(!1)}}return a.memoizedState=[l,n],l}function Cc(e,n,a){return a===void 0||(kr&1073741824)!==0?e.memoizedState=n:(e.memoizedState=a,e=Bp(),_e.lanes|=e,Zr|=e,a)}function D0(e,n,a,l){return Wt(a,n)?a:si.current!==null?(e=Cc(e,a,l),Wt(e,n)||(yt=!0),e):(kr&42)===0?(yt=!0,e.memoizedState=a):(e=Bp(),_e.lanes|=e,Zr|=e,n)}function L0(e,n,a,l,o){var f=K.p;K.p=f!==0&&8>f?f:8;var g=z.T,v={};z.T=v,Dc(e,!1,n,a);try{var T=o(),B=z.S;if(B!==null&&B(v,T),T!==null&&typeof T=="object"&&typeof T.then=="function"){var F=wE(T,l);cs(e,n,F,rn(e))}else cs(e,n,l,rn(e))}catch(P){cs(e,n,{then:function(){},status:"rejected",reason:P},rn())}finally{K.p=f,z.T=g}}function LE(){}function Nc(e,n,a,l){if(e.tag!==5)throw Error(s(476));var o=B0(e).queue;L0(e,o,n,ee,a===null?LE:function(){return U0(e),a(l)})}function B0(e){var n=e.memoizedState;if(n!==null)return n;n={memoizedState:ee,baseState:ee,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:mr,lastRenderedState:ee},next:null};var a={};return n.next={memoizedState:a,baseState:a,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:mr,lastRenderedState:a},next:null},e.memoizedState=n,e=e.alternate,e!==null&&(e.memoizedState=n),n}function U0(e){var n=B0(e).next.queue;cs(e,n,{},rn())}function Mc(){return Bt(ws)}function H0(){return ct().memoizedState}function j0(){return ct().memoizedState}function BE(e){for(var n=e.return;n!==null;){switch(n.tag){case 24:case 3:var a=rn();e=zr(a);var l=Gr(n,e,a);l!==null&&(an(l,n,a),as(l,n,a)),n={cache:lc()},e.payload=n;return}n=n.return}}function UE(e,n,a){var l=rn();a={lane:l,revertLane:0,action:a,hasEagerState:!1,eagerState:null,next:null},Ul(e)?z0(n,a):(a=$u(e,n,a,l),a!==null&&(an(a,e,l),G0(a,n,l)))}function I0(e,n,a){var l=rn();cs(e,n,a,l)}function cs(e,n,a,l){var o={lane:l,revertLane:0,action:a,hasEagerState:!1,eagerState:null,next:null};if(Ul(e))z0(n,o);else{var f=e.alternate;if(e.lanes===0&&(f===null||f.lanes===0)&&(f=n.lastRenderedReducer,f!==null))try{var g=n.lastRenderedState,v=f(g,a);if(o.hasEagerState=!0,o.eagerState=v,Wt(v,g))return bl(e,n,o,0),Ve===null&&yl(),!1}catch{}finally{}if(a=$u(e,n,o,l),a!==null)return an(a,e,l),G0(a,n,l),!0}return!1}function Dc(e,n,a,l){if(l={lane:2,revertLane:ff(),action:l,hasEagerState:!1,eagerState:null,next:null},Ul(e)){if(n)throw Error(s(479))}else n=$u(e,a,l,2),n!==null&&an(n,e,2)}function Ul(e){var n=e.alternate;return e===_e||n!==null&&n===_e}function z0(e,n){li=Cl=!0;var a=e.pending;a===null?n.next=n:(n.next=a.next,a.next=n),e.pending=n}function G0(e,n,a){if((a&4194048)!==0){var l=n.lanes;l&=e.pendingLanes,a|=l,n.lanes=a,rt(e,a)}}var Hl={readContext:Bt,use:Ml,useCallback:at,useContext:at,useEffect:at,useImperativeHandle:at,useLayoutEffect:at,useInsertionEffect:at,useMemo:at,useReducer:at,useRef:at,useState:at,useDebugValue:at,useDeferredValue:at,useTransition:at,useSyncExternalStore:at,useId:at,useHostTransitionStatus:at,useFormState:at,useActionState:at,useOptimistic:at,useMemoCache:at,useCacheRefresh:at},k0={readContext:Bt,use:Ml,useCallback:function(e,n){return Xt().memoizedState=[e,n===void 0?null:n],e},useContext:Bt,useEffect:A0,useImperativeHandle:function(e,n,a){a=a!=null?a.concat([e]):null,Bl(4194308,4,w0.bind(null,n,e),a)},useLayoutEffect:function(e,n){return Bl(4194308,4,e,n)},useInsertionEffect:function(e,n){Bl(4,2,e,n)},useMemo:function(e,n){var a=Xt();n=n===void 0?null:n;var l=e();if(xa){Rn(!0);try{e()}finally{Rn(!1)}}return a.memoizedState=[l,n],l},useReducer:function(e,n,a){var l=Xt();if(a!==void 0){var o=a(n);if(xa){Rn(!0);try{a(n)}finally{Rn(!1)}}}else o=n;return l.memoizedState=l.baseState=o,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:o},l.queue=e,e=e.dispatch=UE.bind(null,_e,e),[l.memoizedState,e]},useRef:function(e){var n=Xt();return e={current:e},n.memoizedState=e},useState:function(e){e=Oc(e);var n=e.queue,a=I0.bind(null,_e,n);return n.dispatch=a,[e.memoizedState,a]},useDebugValue:wc,useDeferredValue:function(e,n){var a=Xt();return Cc(a,e,n)},useTransition:function(){var e=Oc(!1);return e=L0.bind(null,_e,e.queue,!0,!1),Xt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,n,a){var l=_e,o=Xt();if(Le){if(a===void 0)throw Error(s(407));a=a()}else{if(a=n(),Ve===null)throw Error(s(349));(Ne&124)!==0||o0(l,n,a)}o.memoizedState=a;var f={value:a,getSnapshot:n};return o.queue=f,A0(c0.bind(null,l,f,e),[e]),l.flags|=2048,ui(9,Ll(),u0.bind(null,l,f,a,n),null),a},useId:function(){var e=Xt(),n=Ve.identifierPrefix;if(Le){var a=fr,l=cr;a=(l&~(1<<32-Mt(l)-1)).toString(32)+a,n="«"+n+"R"+a,a=Nl++,0<a&&(n+="H"+a.toString(32)),n+="»"}else a=CE++,n="«"+n+"r"+a.toString(32)+"»";return e.memoizedState=n},useHostTransitionStatus:Mc,useFormState:v0,useActionState:v0,useOptimistic:function(e){var n=Xt();n.memoizedState=n.baseState=e;var a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return n.queue=a,n=Dc.bind(null,_e,!0,a),a.dispatch=n,[e,n]},useMemoCache:Tc,useCacheRefresh:function(){return Xt().memoizedState=BE.bind(null,_e)}},q0={readContext:Bt,use:Ml,useCallback:N0,useContext:Bt,useEffect:x0,useImperativeHandle:C0,useInsertionEffect:O0,useLayoutEffect:R0,useMemo:M0,useReducer:Dl,useRef:T0,useState:function(){return Dl(mr)},useDebugValue:wc,useDeferredValue:function(e,n){var a=ct();return D0(a,ze.memoizedState,e,n)},useTransition:function(){var e=Dl(mr)[0],n=ct().memoizedState;return[typeof e=="boolean"?e:os(e),n]},useSyncExternalStore:l0,useId:H0,useHostTransitionStatus:Mc,useFormState:_0,useActionState:_0,useOptimistic:function(e,n){var a=ct();return h0(a,ze,e,n)},useMemoCache:Tc,useCacheRefresh:j0},HE={readContext:Bt,use:Ml,useCallback:N0,useContext:Bt,useEffect:x0,useImperativeHandle:C0,useInsertionEffect:O0,useLayoutEffect:R0,useMemo:M0,useReducer:xc,useRef:T0,useState:function(){return xc(mr)},useDebugValue:wc,useDeferredValue:function(e,n){var a=ct();return ze===null?Cc(a,e,n):D0(a,ze.memoizedState,e,n)},useTransition:function(){var e=xc(mr)[0],n=ct().memoizedState;return[typeof e=="boolean"?e:os(e),n]},useSyncExternalStore:l0,useId:H0,useHostTransitionStatus:Mc,useFormState:S0,useActionState:S0,useOptimistic:function(e,n){var a=ct();return ze!==null?h0(a,ze,e,n):(a.baseState=e,[e,a.queue.dispatch])},useMemoCache:Tc,useCacheRefresh:j0},ci=null,fs=0;function jl(e){var n=fs;return fs+=1,ci===null&&(ci=[]),Jm(ci,e,n)}function ds(e,n){n=n.props.ref,e.ref=n!==void 0?n:null}function Il(e,n){throw n.$$typeof===E?Error(s(525)):(e=Object.prototype.toString.call(n),Error(s(31,e==="[object Object]"?"object with keys {"+Object.keys(n).join(", ")+"}":e)))}function F0(e){var n=e._init;return n(e._payload)}function V0(e){function n(M,w){if(e){var D=M.deletions;D===null?(M.deletions=[w],M.flags|=16):D.push(w)}}function a(M,w){if(!e)return null;for(;w!==null;)n(M,w),w=w.sibling;return null}function l(M){for(var w=new Map;M!==null;)M.key!==null?w.set(M.key,M):w.set(M.index,M),M=M.sibling;return w}function o(M,w){return M=ur(M,w),M.index=0,M.sibling=null,M}function f(M,w,D){return M.index=D,e?(D=M.alternate,D!==null?(D=D.index,D<w?(M.flags|=67108866,w):D):(M.flags|=67108866,w)):(M.flags|=1048576,w)}function g(M){return e&&M.alternate===null&&(M.flags|=67108866),M}function v(M,w,D,V){return w===null||w.tag!==6?(w=Ju(D,M.mode,V),w.return=M,w):(w=o(w,D),w.return=M,w)}function T(M,w,D,V){var ne=D.type;return ne===R?F(M,w,D.props.children,V,D.key):w!==null&&(w.elementType===ne||typeof ne=="object"&&ne!==null&&ne.$$typeof===ae&&F0(ne)===w.type)?(w=o(w,D.props),ds(w,D),w.return=M,w):(w=_l(D.type,D.key,D.props,null,M.mode,V),ds(w,D),w.return=M,w)}function B(M,w,D,V){return w===null||w.tag!==4||w.stateNode.containerInfo!==D.containerInfo||w.stateNode.implementation!==D.implementation?(w=ec(D,M.mode,V),w.return=M,w):(w=o(w,D.children||[]),w.return=M,w)}function F(M,w,D,V,ne){return w===null||w.tag!==7?(w=ya(D,M.mode,V,ne),w.return=M,w):(w=o(w,D),w.return=M,w)}function P(M,w,D){if(typeof w=="string"&&w!==""||typeof w=="number"||typeof w=="bigint")return w=Ju(""+w,M.mode,D),w.return=M,w;if(typeof w=="object"&&w!==null){switch(w.$$typeof){case A:return D=_l(w.type,w.key,w.props,null,M.mode,D),ds(D,w),D.return=M,D;case L:return w=ec(w,M.mode,D),w.return=M,w;case ae:var V=w._init;return w=V(w._payload),P(M,w,D)}if(ve(w)||me(w))return w=ya(w,M.mode,D,null),w.return=M,w;if(typeof w.then=="function")return P(M,jl(w),D);if(w.$$typeof===S)return P(M,Al(M,w),D);Il(M,w)}return null}function j(M,w,D,V){var ne=w!==null?w.key:null;if(typeof D=="string"&&D!==""||typeof D=="number"||typeof D=="bigint")return ne!==null?null:v(M,w,""+D,V);if(typeof D=="object"&&D!==null){switch(D.$$typeof){case A:return D.key===ne?T(M,w,D,V):null;case L:return D.key===ne?B(M,w,D,V):null;case ae:return ne=D._init,D=ne(D._payload),j(M,w,D,V)}if(ve(D)||me(D))return ne!==null?null:F(M,w,D,V,null);if(typeof D.then=="function")return j(M,w,jl(D),V);if(D.$$typeof===S)return j(M,w,Al(M,D),V);Il(M,D)}return null}function I(M,w,D,V,ne){if(typeof V=="string"&&V!==""||typeof V=="number"||typeof V=="bigint")return M=M.get(D)||null,v(w,M,""+V,ne);if(typeof V=="object"&&V!==null){switch(V.$$typeof){case A:return M=M.get(V.key===null?D:V.key)||null,T(w,M,V,ne);case L:return M=M.get(V.key===null?D:V.key)||null,B(w,M,V,ne);case ae:var Se=V._init;return V=Se(V._payload),I(M,w,D,V,ne)}if(ve(V)||me(V))return M=M.get(D)||null,F(w,M,V,ne,null);if(typeof V.then=="function")return I(M,w,D,jl(V),ne);if(V.$$typeof===S)return I(M,w,D,Al(w,V),ne);Il(w,V)}return null}function he(M,w,D,V){for(var ne=null,Se=null,oe=w,de=w=0,vt=null;oe!==null&&de<D.length;de++){oe.index>de?(vt=oe,oe=null):vt=oe.sibling;var De=j(M,oe,D[de],V);if(De===null){oe===null&&(oe=vt);break}e&&oe&&De.alternate===null&&n(M,oe),w=f(De,w,de),Se===null?ne=De:Se.sibling=De,Se=De,oe=vt}if(de===D.length)return a(M,oe),Le&&va(M,de),ne;if(oe===null){for(;de<D.length;de++)oe=P(M,D[de],V),oe!==null&&(w=f(oe,w,de),Se===null?ne=oe:Se.sibling=oe,Se=oe);return Le&&va(M,de),ne}for(oe=l(oe);de<D.length;de++)vt=I(oe,M,de,D[de],V),vt!==null&&(e&&vt.alternate!==null&&oe.delete(vt.key===null?de:vt.key),w=f(vt,w,de),Se===null?ne=vt:Se.sibling=vt,Se=vt);return e&&oe.forEach(function(ra){return n(M,ra)}),Le&&va(M,de),ne}function fe(M,w,D,V){if(D==null)throw Error(s(151));for(var ne=null,Se=null,oe=w,de=w=0,vt=null,De=D.next();oe!==null&&!De.done;de++,De=D.next()){oe.index>de?(vt=oe,oe=null):vt=oe.sibling;var ra=j(M,oe,De.value,V);if(ra===null){oe===null&&(oe=vt);break}e&&oe&&ra.alternate===null&&n(M,oe),w=f(ra,w,de),Se===null?ne=ra:Se.sibling=ra,Se=ra,oe=vt}if(De.done)return a(M,oe),Le&&va(M,de),ne;if(oe===null){for(;!De.done;de++,De=D.next())De=P(M,De.value,V),De!==null&&(w=f(De,w,de),Se===null?ne=De:Se.sibling=De,Se=De);return Le&&va(M,de),ne}for(oe=l(oe);!De.done;de++,De=D.next())De=I(oe,M,de,De.value,V),De!==null&&(e&&De.alternate!==null&&oe.delete(De.key===null?de:De.key),w=f(De,w,de),Se===null?ne=De:Se.sibling=De,Se=De);return e&&oe.forEach(function(j2){return n(M,j2)}),Le&&va(M,de),ne}function ke(M,w,D,V){if(typeof D=="object"&&D!==null&&D.type===R&&D.key===null&&(D=D.props.children),typeof D=="object"&&D!==null){switch(D.$$typeof){case A:e:{for(var ne=D.key;w!==null;){if(w.key===ne){if(ne=D.type,ne===R){if(w.tag===7){a(M,w.sibling),V=o(w,D.props.children),V.return=M,M=V;break e}}else if(w.elementType===ne||typeof ne=="object"&&ne!==null&&ne.$$typeof===ae&&F0(ne)===w.type){a(M,w.sibling),V=o(w,D.props),ds(V,D),V.return=M,M=V;break e}a(M,w);break}else n(M,w);w=w.sibling}D.type===R?(V=ya(D.props.children,M.mode,V,D.key),V.return=M,M=V):(V=_l(D.type,D.key,D.props,null,M.mode,V),ds(V,D),V.return=M,M=V)}return g(M);case L:e:{for(ne=D.key;w!==null;){if(w.key===ne)if(w.tag===4&&w.stateNode.containerInfo===D.containerInfo&&w.stateNode.implementation===D.implementation){a(M,w.sibling),V=o(w,D.children||[]),V.return=M,M=V;break e}else{a(M,w);break}else n(M,w);w=w.sibling}V=ec(D,M.mode,V),V.return=M,M=V}return g(M);case ae:return ne=D._init,D=ne(D._payload),ke(M,w,D,V)}if(ve(D))return he(M,w,D,V);if(me(D)){if(ne=me(D),typeof ne!="function")throw Error(s(150));return D=ne.call(D),fe(M,w,D,V)}if(typeof D.then=="function")return ke(M,w,jl(D),V);if(D.$$typeof===S)return ke(M,w,Al(M,D),V);Il(M,D)}return typeof D=="string"&&D!==""||typeof D=="number"||typeof D=="bigint"?(D=""+D,w!==null&&w.tag===6?(a(M,w.sibling),V=o(w,D),V.return=M,M=V):(a(M,w),V=Ju(D,M.mode,V),V.return=M,M=V),g(M)):a(M,w)}return function(M,w,D,V){try{fs=0;var ne=ke(M,w,D,V);return ci=null,ne}catch(oe){if(oe===ns||oe===Ol)throw oe;var Se=Jt(29,oe,null,M.mode);return Se.lanes=V,Se.return=M,Se}finally{}}}var fi=V0(!0),P0=V0(!1),vn=k(null),Pn=null;function qr(e){var n=e.alternate;Y(gt,gt.current&1),Y(vn,e),Pn===null&&(n===null||si.current!==null||n.memoizedState!==null)&&(Pn=e)}function Y0(e){if(e.tag===22){if(Y(gt,gt.current),Y(vn,e),Pn===null){var n=e.alternate;n!==null&&n.memoizedState!==null&&(Pn=e)}}else Fr()}function Fr(){Y(gt,gt.current),Y(vn,vn.current)}function pr(e){$(vn),Pn===e&&(Pn=null),$(gt)}var gt=k(0);function zl(e){for(var n=e;n!==null;){if(n.tag===13){var a=n.memoizedState;if(a!==null&&(a=a.dehydrated,a===null||a.data==="$?"||Tf(a)))return n}else if(n.tag===19&&n.memoizedProps.revealOrder!==void 0){if((n.flags&128)!==0)return n}else if(n.child!==null){n.child.return=n,n=n.child;continue}if(n===e)break;for(;n.sibling===null;){if(n.return===null||n.return===e)return null;n=n.return}n.sibling.return=n.return,n=n.sibling}return null}function Lc(e,n,a,l){n=e.memoizedState,a=a(l,n),a=a==null?n:b({},n,a),e.memoizedState=a,e.lanes===0&&(e.updateQueue.baseState=a)}var Bc={enqueueSetState:function(e,n,a){e=e._reactInternals;var l=rn(),o=zr(l);o.payload=n,a!=null&&(o.callback=a),n=Gr(e,o,l),n!==null&&(an(n,e,l),as(n,e,l))},enqueueReplaceState:function(e,n,a){e=e._reactInternals;var l=rn(),o=zr(l);o.tag=1,o.payload=n,a!=null&&(o.callback=a),n=Gr(e,o,l),n!==null&&(an(n,e,l),as(n,e,l))},enqueueForceUpdate:function(e,n){e=e._reactInternals;var a=rn(),l=zr(a);l.tag=2,n!=null&&(l.callback=n),n=Gr(e,l,a),n!==null&&(an(n,e,a),as(n,e,a))}};function X0(e,n,a,l,o,f,g){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(l,f,g):n.prototype&&n.prototype.isPureReactComponent?!Zi(a,l)||!Zi(o,f):!0}function Z0(e,n,a,l){e=n.state,typeof n.componentWillReceiveProps=="function"&&n.componentWillReceiveProps(a,l),typeof n.UNSAFE_componentWillReceiveProps=="function"&&n.UNSAFE_componentWillReceiveProps(a,l),n.state!==e&&Bc.enqueueReplaceState(n,n.state,null)}function Oa(e,n){var a=n;if("ref"in n){a={};for(var l in n)l!=="ref"&&(a[l]=n[l])}if(e=e.defaultProps){a===n&&(a=b({},a));for(var o in e)a[o]===void 0&&(a[o]=e[o])}return a}var Gl=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var n=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(n))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)};function Q0(e){Gl(e)}function K0(e){console.error(e)}function $0(e){Gl(e)}function kl(e,n){try{var a=e.onUncaughtError;a(n.value,{componentStack:n.stack})}catch(l){setTimeout(function(){throw l})}}function W0(e,n,a){try{var l=e.onCaughtError;l(a.value,{componentStack:a.stack,errorBoundary:n.tag===1?n.stateNode:null})}catch(o){setTimeout(function(){throw o})}}function Uc(e,n,a){return a=zr(a),a.tag=3,a.payload={element:null},a.callback=function(){kl(e,n)},a}function J0(e){return e=zr(e),e.tag=3,e}function ep(e,n,a,l){var o=a.type.getDerivedStateFromError;if(typeof o=="function"){var f=l.value;e.payload=function(){return o(f)},e.callback=function(){W0(n,a,l)}}var g=a.stateNode;g!==null&&typeof g.componentDidCatch=="function"&&(e.callback=function(){W0(n,a,l),typeof o!="function"&&(Qr===null?Qr=new Set([this]):Qr.add(this));var v=l.stack;this.componentDidCatch(l.value,{componentStack:v!==null?v:""})})}function jE(e,n,a,l,o){if(a.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){if(n=a.alternate,n!==null&&Ji(n,a,o,!0),a=vn.current,a!==null){switch(a.tag){case 13:return Pn===null?sf():a.alternate===null&&tt===0&&(tt=3),a.flags&=-257,a.flags|=65536,a.lanes=o,l===cc?a.flags|=16384:(n=a.updateQueue,n===null?a.updateQueue=new Set([l]):n.add(l),of(e,l,o)),!1;case 22:return a.flags|=65536,l===cc?a.flags|=16384:(n=a.updateQueue,n===null?(n={transitions:null,markerInstances:null,retryQueue:new Set([l])},a.updateQueue=n):(a=n.retryQueue,a===null?n.retryQueue=new Set([l]):a.add(l)),of(e,l,o)),!1}throw Error(s(435,a.tag))}return of(e,l,o),sf(),!1}if(Le)return n=vn.current,n!==null?((n.flags&65536)===0&&(n.flags|=256),n.flags|=65536,n.lanes=o,l!==rc&&(e=Error(s(422),{cause:l}),Wi(pn(e,a)))):(l!==rc&&(n=Error(s(423),{cause:l}),Wi(pn(n,a))),e=e.current.alternate,e.flags|=65536,o&=-o,e.lanes|=o,l=pn(l,a),o=Uc(e.stateNode,l,o),hc(e,o),tt!==4&&(tt=2)),!1;var f=Error(s(520),{cause:l});if(f=pn(f,a),vs===null?vs=[f]:vs.push(f),tt!==4&&(tt=2),n===null)return!0;l=pn(l,a),a=n;do{switch(a.tag){case 3:return a.flags|=65536,e=o&-o,a.lanes|=e,e=Uc(a.stateNode,l,e),hc(a,e),!1;case 1:if(n=a.type,f=a.stateNode,(a.flags&128)===0&&(typeof n.getDerivedStateFromError=="function"||f!==null&&typeof f.componentDidCatch=="function"&&(Qr===null||!Qr.has(f))))return a.flags|=65536,o&=-o,a.lanes|=o,o=J0(o),ep(o,e,a,l),hc(a,o),!1}a=a.return}while(a!==null);return!1}var tp=Error(s(461)),yt=!1;function xt(e,n,a,l){n.child=e===null?P0(n,null,a,l):fi(n,e.child,a,l)}function np(e,n,a,l,o){a=a.render;var f=n.ref;if("ref"in l){var g={};for(var v in l)v!=="ref"&&(g[v]=l[v])}else g=l;return Ta(n),l=bc(e,n,a,g,f,o),v=vc(),e!==null&&!yt?(_c(e,n,o),gr(e,n,o)):(Le&&v&&tc(n),n.flags|=1,xt(e,n,l,o),n.child)}function rp(e,n,a,l,o){if(e===null){var f=a.type;return typeof f=="function"&&!Wu(f)&&f.defaultProps===void 0&&a.compare===null?(n.tag=15,n.type=f,ap(e,n,f,l,o)):(e=_l(a.type,null,l,n,n.mode,o),e.ref=n.ref,e.return=n,n.child=e)}if(f=e.child,!Fc(e,o)){var g=f.memoizedProps;if(a=a.compare,a=a!==null?a:Zi,a(g,l)&&e.ref===n.ref)return gr(e,n,o)}return n.flags|=1,e=ur(f,l),e.ref=n.ref,e.return=n,n.child=e}function ap(e,n,a,l,o){if(e!==null){var f=e.memoizedProps;if(Zi(f,l)&&e.ref===n.ref)if(yt=!1,n.pendingProps=l=f,Fc(e,o))(e.flags&131072)!==0&&(yt=!0);else return n.lanes=e.lanes,gr(e,n,o)}return Hc(e,n,a,l,o)}function ip(e,n,a){var l=n.pendingProps,o=l.children,f=e!==null?e.memoizedState:null;if(l.mode==="hidden"){if((n.flags&128)!==0){if(l=f!==null?f.baseLanes|a:a,e!==null){for(o=n.child=e.child,f=0;o!==null;)f=f|o.lanes|o.childLanes,o=o.sibling;n.childLanes=f&~l}else n.childLanes=0,n.child=null;return sp(e,n,l,a)}if((a&536870912)!==0)n.memoizedState={baseLanes:0,cachePool:null},e!==null&&xl(n,f!==null?f.cachePool:null),f!==null?a0(n,f):pc(),Y0(n);else return n.lanes=n.childLanes=536870912,sp(e,n,f!==null?f.baseLanes|a:a,a)}else f!==null?(xl(n,f.cachePool),a0(n,f),Fr(),n.memoizedState=null):(e!==null&&xl(n,null),pc(),Fr());return xt(e,n,o,a),n.child}function sp(e,n,a,l){var o=uc();return o=o===null?null:{parent:pt._currentValue,pool:o},n.memoizedState={baseLanes:a,cachePool:o},e!==null&&xl(n,null),pc(),Y0(n),e!==null&&Ji(e,n,l,!0),null}function ql(e,n){var a=n.ref;if(a===null)e!==null&&e.ref!==null&&(n.flags|=4194816);else{if(typeof a!="function"&&typeof a!="object")throw Error(s(284));(e===null||e.ref!==a)&&(n.flags|=4194816)}}function Hc(e,n,a,l,o){return Ta(n),a=bc(e,n,a,l,void 0,o),l=vc(),e!==null&&!yt?(_c(e,n,o),gr(e,n,o)):(Le&&l&&tc(n),n.flags|=1,xt(e,n,a,o),n.child)}function lp(e,n,a,l,o,f){return Ta(n),n.updateQueue=null,a=s0(n,l,a,o),i0(e),l=vc(),e!==null&&!yt?(_c(e,n,f),gr(e,n,f)):(Le&&l&&tc(n),n.flags|=1,xt(e,n,a,f),n.child)}function op(e,n,a,l,o){if(Ta(n),n.stateNode===null){var f=ti,g=a.contextType;typeof g=="object"&&g!==null&&(f=Bt(g)),f=new a(l,f),n.memoizedState=f.state!==null&&f.state!==void 0?f.state:null,f.updater=Bc,n.stateNode=f,f._reactInternals=n,f=n.stateNode,f.props=l,f.state=n.memoizedState,f.refs={},fc(n),g=a.contextType,f.context=typeof g=="object"&&g!==null?Bt(g):ti,f.state=n.memoizedState,g=a.getDerivedStateFromProps,typeof g=="function"&&(Lc(n,a,g,l),f.state=n.memoizedState),typeof a.getDerivedStateFromProps=="function"||typeof f.getSnapshotBeforeUpdate=="function"||typeof f.UNSAFE_componentWillMount!="function"&&typeof f.componentWillMount!="function"||(g=f.state,typeof f.componentWillMount=="function"&&f.componentWillMount(),typeof f.UNSAFE_componentWillMount=="function"&&f.UNSAFE_componentWillMount(),g!==f.state&&Bc.enqueueReplaceState(f,f.state,null),ss(n,l,f,o),is(),f.state=n.memoizedState),typeof f.componentDidMount=="function"&&(n.flags|=4194308),l=!0}else if(e===null){f=n.stateNode;var v=n.memoizedProps,T=Oa(a,v);f.props=T;var B=f.context,F=a.contextType;g=ti,typeof F=="object"&&F!==null&&(g=Bt(F));var P=a.getDerivedStateFromProps;F=typeof P=="function"||typeof f.getSnapshotBeforeUpdate=="function",v=n.pendingProps!==v,F||typeof f.UNSAFE_componentWillReceiveProps!="function"&&typeof f.componentWillReceiveProps!="function"||(v||B!==g)&&Z0(n,f,l,g),Ir=!1;var j=n.memoizedState;f.state=j,ss(n,l,f,o),is(),B=n.memoizedState,v||j!==B||Ir?(typeof P=="function"&&(Lc(n,a,P,l),B=n.memoizedState),(T=Ir||X0(n,a,T,l,j,B,g))?(F||typeof f.UNSAFE_componentWillMount!="function"&&typeof f.componentWillMount!="function"||(typeof f.componentWillMount=="function"&&f.componentWillMount(),typeof f.UNSAFE_componentWillMount=="function"&&f.UNSAFE_componentWillMount()),typeof f.componentDidMount=="function"&&(n.flags|=4194308)):(typeof f.componentDidMount=="function"&&(n.flags|=4194308),n.memoizedProps=l,n.memoizedState=B),f.props=l,f.state=B,f.context=g,l=T):(typeof f.componentDidMount=="function"&&(n.flags|=4194308),l=!1)}else{f=n.stateNode,dc(e,n),g=n.memoizedProps,F=Oa(a,g),f.props=F,P=n.pendingProps,j=f.context,B=a.contextType,T=ti,typeof B=="object"&&B!==null&&(T=Bt(B)),v=a.getDerivedStateFromProps,(B=typeof v=="function"||typeof f.getSnapshotBeforeUpdate=="function")||typeof f.UNSAFE_componentWillReceiveProps!="function"&&typeof f.componentWillReceiveProps!="function"||(g!==P||j!==T)&&Z0(n,f,l,T),Ir=!1,j=n.memoizedState,f.state=j,ss(n,l,f,o),is();var I=n.memoizedState;g!==P||j!==I||Ir||e!==null&&e.dependencies!==null&&Tl(e.dependencies)?(typeof v=="function"&&(Lc(n,a,v,l),I=n.memoizedState),(F=Ir||X0(n,a,F,l,j,I,T)||e!==null&&e.dependencies!==null&&Tl(e.dependencies))?(B||typeof f.UNSAFE_componentWillUpdate!="function"&&typeof f.componentWillUpdate!="function"||(typeof f.componentWillUpdate=="function"&&f.componentWillUpdate(l,I,T),typeof f.UNSAFE_componentWillUpdate=="function"&&f.UNSAFE_componentWillUpdate(l,I,T)),typeof f.componentDidUpdate=="function"&&(n.flags|=4),typeof f.getSnapshotBeforeUpdate=="function"&&(n.flags|=1024)):(typeof f.componentDidUpdate!="function"||g===e.memoizedProps&&j===e.memoizedState||(n.flags|=4),typeof f.getSnapshotBeforeUpdate!="function"||g===e.memoizedProps&&j===e.memoizedState||(n.flags|=1024),n.memoizedProps=l,n.memoizedState=I),f.props=l,f.state=I,f.context=T,l=F):(typeof f.componentDidUpdate!="function"||g===e.memoizedProps&&j===e.memoizedState||(n.flags|=4),typeof f.getSnapshotBeforeUpdate!="function"||g===e.memoizedProps&&j===e.memoizedState||(n.flags|=1024),l=!1)}return f=l,ql(e,n),l=(n.flags&128)!==0,f||l?(f=n.stateNode,a=l&&typeof a.getDerivedStateFromError!="function"?null:f.render(),n.flags|=1,e!==null&&l?(n.child=fi(n,e.child,null,o),n.child=fi(n,null,a,o)):xt(e,n,a,o),n.memoizedState=f.state,e=n.child):e=gr(e,n,o),e}function up(e,n,a,l){return $i(),n.flags|=256,xt(e,n,a,l),n.child}var jc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Ic(e){return{baseLanes:e,cachePool:Km()}}function zc(e,n,a){return e=e!==null?e.childLanes&~a:0,n&&(e|=_n),e}function cp(e,n,a){var l=n.pendingProps,o=!1,f=(n.flags&128)!==0,g;if((g=f)||(g=e!==null&&e.memoizedState===null?!1:(gt.current&2)!==0),g&&(o=!0,n.flags&=-129),g=(n.flags&32)!==0,n.flags&=-33,e===null){if(Le){if(o?qr(n):Fr(),Le){var v=et,T;if(T=v){e:{for(T=v,v=Vn;T.nodeType!==8;){if(!v){v=null;break e}if(T=Dn(T.nextSibling),T===null){v=null;break e}}v=T}v!==null?(n.memoizedState={dehydrated:v,treeContext:ba!==null?{id:cr,overflow:fr}:null,retryLane:536870912,hydrationErrors:null},T=Jt(18,null,null,0),T.stateNode=v,T.return=n,n.child=T,Ht=n,et=null,T=!0):T=!1}T||Ea(n)}if(v=n.memoizedState,v!==null&&(v=v.dehydrated,v!==null))return Tf(v)?n.lanes=32:n.lanes=536870912,null;pr(n)}return v=l.children,l=l.fallback,o?(Fr(),o=n.mode,v=Fl({mode:"hidden",children:v},o),l=ya(l,o,a,null),v.return=n,l.return=n,v.sibling=l,n.child=v,o=n.child,o.memoizedState=Ic(a),o.childLanes=zc(e,g,a),n.memoizedState=jc,l):(qr(n),Gc(n,v))}if(T=e.memoizedState,T!==null&&(v=T.dehydrated,v!==null)){if(f)n.flags&256?(qr(n),n.flags&=-257,n=kc(e,n,a)):n.memoizedState!==null?(Fr(),n.child=e.child,n.flags|=128,n=null):(Fr(),o=l.fallback,v=n.mode,l=Fl({mode:"visible",children:l.children},v),o=ya(o,v,a,null),o.flags|=2,l.return=n,o.return=n,l.sibling=o,n.child=l,fi(n,e.child,null,a),l=n.child,l.memoizedState=Ic(a),l.childLanes=zc(e,g,a),n.memoizedState=jc,n=o);else if(qr(n),Tf(v)){if(g=v.nextSibling&&v.nextSibling.dataset,g)var B=g.dgst;g=B,l=Error(s(419)),l.stack="",l.digest=g,Wi({value:l,source:null,stack:null}),n=kc(e,n,a)}else if(yt||Ji(e,n,a,!1),g=(a&e.childLanes)!==0,yt||g){if(g=Ve,g!==null&&(l=a&-a,l=(l&42)!==0?1:kn(l),l=(l&(g.suspendedLanes|a))!==0?0:l,l!==0&&l!==T.retryLane))throw T.retryLane=l,ei(e,l),an(g,e,l),tp;v.data==="$?"||sf(),n=kc(e,n,a)}else v.data==="$?"?(n.flags|=192,n.child=e.child,n=null):(e=T.treeContext,et=Dn(v.nextSibling),Ht=n,Le=!0,_a=null,Vn=!1,e!==null&&(yn[bn++]=cr,yn[bn++]=fr,yn[bn++]=ba,cr=e.id,fr=e.overflow,ba=n),n=Gc(n,l.children),n.flags|=4096);return n}return o?(Fr(),o=l.fallback,v=n.mode,T=e.child,B=T.sibling,l=ur(T,{mode:"hidden",children:l.children}),l.subtreeFlags=T.subtreeFlags&65011712,B!==null?o=ur(B,o):(o=ya(o,v,a,null),o.flags|=2),o.return=n,l.return=n,l.sibling=o,n.child=l,l=o,o=n.child,v=e.child.memoizedState,v===null?v=Ic(a):(T=v.cachePool,T!==null?(B=pt._currentValue,T=T.parent!==B?{parent:B,pool:B}:T):T=Km(),v={baseLanes:v.baseLanes|a,cachePool:T}),o.memoizedState=v,o.childLanes=zc(e,g,a),n.memoizedState=jc,l):(qr(n),a=e.child,e=a.sibling,a=ur(a,{mode:"visible",children:l.children}),a.return=n,a.sibling=null,e!==null&&(g=n.deletions,g===null?(n.deletions=[e],n.flags|=16):g.push(e)),n.child=a,n.memoizedState=null,a)}function Gc(e,n){return n=Fl({mode:"visible",children:n},e.mode),n.return=e,e.child=n}function Fl(e,n){return e=Jt(22,e,null,n),e.lanes=0,e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null},e}function kc(e,n,a){return fi(n,e.child,null,a),e=Gc(n,n.pendingProps.children),e.flags|=2,n.memoizedState=null,e}function fp(e,n,a){e.lanes|=n;var l=e.alternate;l!==null&&(l.lanes|=n),ic(e.return,n,a)}function qc(e,n,a,l,o){var f=e.memoizedState;f===null?e.memoizedState={isBackwards:n,rendering:null,renderingStartTime:0,last:l,tail:a,tailMode:o}:(f.isBackwards=n,f.rendering=null,f.renderingStartTime=0,f.last=l,f.tail=a,f.tailMode=o)}function dp(e,n,a){var l=n.pendingProps,o=l.revealOrder,f=l.tail;if(xt(e,n,l.children,a),l=gt.current,(l&2)!==0)l=l&1|2,n.flags|=128;else{if(e!==null&&(e.flags&128)!==0)e:for(e=n.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&fp(e,a,n);else if(e.tag===19)fp(e,a,n);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===n)break e;for(;e.sibling===null;){if(e.return===null||e.return===n)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}l&=1}switch(Y(gt,l),o){case"forwards":for(a=n.child,o=null;a!==null;)e=a.alternate,e!==null&&zl(e)===null&&(o=a),a=a.sibling;a=o,a===null?(o=n.child,n.child=null):(o=a.sibling,a.sibling=null),qc(n,!1,o,a,f);break;case"backwards":for(a=null,o=n.child,n.child=null;o!==null;){if(e=o.alternate,e!==null&&zl(e)===null){n.child=o;break}e=o.sibling,o.sibling=a,a=o,o=e}qc(n,!0,a,null,f);break;case"together":qc(n,!1,null,null,void 0);break;default:n.memoizedState=null}return n.child}function gr(e,n,a){if(e!==null&&(n.dependencies=e.dependencies),Zr|=n.lanes,(a&n.childLanes)===0)if(e!==null){if(Ji(e,n,a,!1),(a&n.childLanes)===0)return null}else return null;if(e!==null&&n.child!==e.child)throw Error(s(153));if(n.child!==null){for(e=n.child,a=ur(e,e.pendingProps),n.child=a,a.return=n;e.sibling!==null;)e=e.sibling,a=a.sibling=ur(e,e.pendingProps),a.return=n;a.sibling=null}return n.child}function Fc(e,n){return(e.lanes&n)!==0?!0:(e=e.dependencies,!!(e!==null&&Tl(e)))}function IE(e,n,a){switch(n.tag){case 3:Ue(n,n.stateNode.containerInfo),jr(n,pt,e.memoizedState.cache),$i();break;case 27:case 5:Gn(n);break;case 4:Ue(n,n.stateNode.containerInfo);break;case 10:jr(n,n.type,n.memoizedProps.value);break;case 13:var l=n.memoizedState;if(l!==null)return l.dehydrated!==null?(qr(n),n.flags|=128,null):(a&n.child.childLanes)!==0?cp(e,n,a):(qr(n),e=gr(e,n,a),e!==null?e.sibling:null);qr(n);break;case 19:var o=(e.flags&128)!==0;if(l=(a&n.childLanes)!==0,l||(Ji(e,n,a,!1),l=(a&n.childLanes)!==0),o){if(l)return dp(e,n,a);n.flags|=128}if(o=n.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),Y(gt,gt.current),l)break;return null;case 22:case 23:return n.lanes=0,ip(e,n,a);case 24:jr(n,pt,e.memoizedState.cache)}return gr(e,n,a)}function hp(e,n,a){if(e!==null)if(e.memoizedProps!==n.pendingProps)yt=!0;else{if(!Fc(e,a)&&(n.flags&128)===0)return yt=!1,IE(e,n,a);yt=(e.flags&131072)!==0}else yt=!1,Le&&(n.flags&1048576)!==0&&Fm(n,Sl,n.index);switch(n.lanes=0,n.tag){case 16:e:{e=n.pendingProps;var l=n.elementType,o=l._init;if(l=o(l._payload),n.type=l,typeof l=="function")Wu(l)?(e=Oa(l,e),n.tag=1,n=op(null,n,l,e,a)):(n.tag=0,n=Hc(null,n,l,e,a));else{if(l!=null){if(o=l.$$typeof,o===H){n.tag=11,n=np(null,n,l,e,a);break e}else if(o===W){n.tag=14,n=rp(null,n,l,e,a);break e}}throw n=Pe(l)||l,Error(s(306,n,""))}}return n;case 0:return Hc(e,n,n.type,n.pendingProps,a);case 1:return l=n.type,o=Oa(l,n.pendingProps),op(e,n,l,o,a);case 3:e:{if(Ue(n,n.stateNode.containerInfo),e===null)throw Error(s(387));l=n.pendingProps;var f=n.memoizedState;o=f.element,dc(e,n),ss(n,l,null,a);var g=n.memoizedState;if(l=g.cache,jr(n,pt,l),l!==f.cache&&sc(n,[pt],a,!0),is(),l=g.element,f.isDehydrated)if(f={element:l,isDehydrated:!1,cache:g.cache},n.updateQueue.baseState=f,n.memoizedState=f,n.flags&256){n=up(e,n,l,a);break e}else if(l!==o){o=pn(Error(s(424)),n),Wi(o),n=up(e,n,l,a);break e}else{switch(e=n.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(et=Dn(e.firstChild),Ht=n,Le=!0,_a=null,Vn=!0,a=P0(n,null,l,a),n.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling}else{if($i(),l===o){n=gr(e,n,a);break e}xt(e,n,l,a)}n=n.child}return n;case 26:return ql(e,n),e===null?(a=yg(n.type,null,n.pendingProps,null))?n.memoizedState=a:Le||(a=n.type,e=n.pendingProps,l=ro(ue.current).createElement(a),l[ht]=n,l[Dt]=e,Rt(l,a,e),lt(l),n.stateNode=l):n.memoizedState=yg(n.type,e.memoizedProps,n.pendingProps,e.memoizedState),null;case 27:return Gn(n),e===null&&Le&&(l=n.stateNode=mg(n.type,n.pendingProps,ue.current),Ht=n,Vn=!0,o=et,Wr(n.type)?(Af=o,et=Dn(l.firstChild)):et=o),xt(e,n,n.pendingProps.children,a),ql(e,n),e===null&&(n.flags|=4194304),n.child;case 5:return e===null&&Le&&((o=l=et)&&(l=d2(l,n.type,n.pendingProps,Vn),l!==null?(n.stateNode=l,Ht=n,et=Dn(l.firstChild),Vn=!1,o=!0):o=!1),o||Ea(n)),Gn(n),o=n.type,f=n.pendingProps,g=e!==null?e.memoizedProps:null,l=f.children,_f(o,f)?l=null:g!==null&&_f(o,g)&&(n.flags|=32),n.memoizedState!==null&&(o=bc(e,n,NE,null,null,a),ws._currentValue=o),ql(e,n),xt(e,n,l,a),n.child;case 6:return e===null&&Le&&((e=a=et)&&(a=h2(a,n.pendingProps,Vn),a!==null?(n.stateNode=a,Ht=n,et=null,e=!0):e=!1),e||Ea(n)),null;case 13:return cp(e,n,a);case 4:return Ue(n,n.stateNode.containerInfo),l=n.pendingProps,e===null?n.child=fi(n,null,l,a):xt(e,n,l,a),n.child;case 11:return np(e,n,n.type,n.pendingProps,a);case 7:return xt(e,n,n.pendingProps,a),n.child;case 8:return xt(e,n,n.pendingProps.children,a),n.child;case 12:return xt(e,n,n.pendingProps.children,a),n.child;case 10:return l=n.pendingProps,jr(n,n.type,l.value),xt(e,n,l.children,a),n.child;case 9:return o=n.type._context,l=n.pendingProps.children,Ta(n),o=Bt(o),l=l(o),n.flags|=1,xt(e,n,l,a),n.child;case 14:return rp(e,n,n.type,n.pendingProps,a);case 15:return ap(e,n,n.type,n.pendingProps,a);case 19:return dp(e,n,a);case 31:return l=n.pendingProps,a=n.mode,l={mode:l.mode,children:l.children},e===null?(a=Fl(l,a),a.ref=n.ref,n.child=a,a.return=n,n=a):(a=ur(e.child,l),a.ref=n.ref,n.child=a,a.return=n,n=a),n;case 22:return ip(e,n,a);case 24:return Ta(n),l=Bt(pt),e===null?(o=uc(),o===null&&(o=Ve,f=lc(),o.pooledCache=f,f.refCount++,f!==null&&(o.pooledCacheLanes|=a),o=f),n.memoizedState={parent:l,cache:o},fc(n),jr(n,pt,o)):((e.lanes&a)!==0&&(dc(e,n),ss(n,null,null,a),is()),o=e.memoizedState,f=n.memoizedState,o.parent!==l?(o={parent:l,cache:l},n.memoizedState=o,n.lanes===0&&(n.memoizedState=n.updateQueue.baseState=o),jr(n,pt,l)):(l=f.cache,jr(n,pt,l),l!==o.cache&&sc(n,[pt],a,!0))),xt(e,n,n.pendingProps.children,a),n.child;case 29:throw n.pendingProps}throw Error(s(156,n.tag))}function yr(e){e.flags|=4}function mp(e,n){if(n.type!=="stylesheet"||(n.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!Sg(n)){if(n=vn.current,n!==null&&((Ne&4194048)===Ne?Pn!==null:(Ne&62914560)!==Ne&&(Ne&536870912)===0||n!==Pn))throw rs=cc,$m;e.flags|=8192}}function Vl(e,n){n!==null&&(e.flags|=4),e.flags&16384&&(n=e.tag!==22?ha():536870912,e.lanes|=n,pi|=n)}function hs(e,n){if(!Le)switch(e.tailMode){case"hidden":n=e.tail;for(var a=null;n!==null;)n.alternate!==null&&(a=n),n=n.sibling;a===null?e.tail=null:a.sibling=null;break;case"collapsed":a=e.tail;for(var l=null;a!==null;)a.alternate!==null&&(l=a),a=a.sibling;l===null?n||e.tail===null?e.tail=null:e.tail.sibling=null:l.sibling=null}}function Ke(e){var n=e.alternate!==null&&e.alternate.child===e.child,a=0,l=0;if(n)for(var o=e.child;o!==null;)a|=o.lanes|o.childLanes,l|=o.subtreeFlags&65011712,l|=o.flags&65011712,o.return=e,o=o.sibling;else for(o=e.child;o!==null;)a|=o.lanes|o.childLanes,l|=o.subtreeFlags,l|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=l,e.childLanes=a,n}function zE(e,n,a){var l=n.pendingProps;switch(nc(n),n.tag){case 31:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ke(n),null;case 1:return Ke(n),null;case 3:return a=n.stateNode,l=null,e!==null&&(l=e.memoizedState.cache),n.memoizedState.cache!==l&&(n.flags|=2048),hr(pt),St(),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),(e===null||e.child===null)&&(Ki(n)?yr(n):e===null||e.memoizedState.isDehydrated&&(n.flags&256)===0||(n.flags|=1024,Ym())),Ke(n),null;case 26:return a=n.memoizedState,e===null?(yr(n),a!==null?(Ke(n),mp(n,a)):(Ke(n),n.flags&=-16777217)):a?a!==e.memoizedState?(yr(n),Ke(n),mp(n,a)):(Ke(n),n.flags&=-16777217):(e.memoizedProps!==l&&yr(n),Ke(n),n.flags&=-16777217),null;case 27:Mr(n),a=ue.current;var o=n.type;if(e!==null&&n.stateNode!=null)e.memoizedProps!==l&&yr(n);else{if(!l){if(n.stateNode===null)throw Error(s(166));return Ke(n),null}e=te.current,Ki(n)?Vm(n):(e=mg(o,l,a),n.stateNode=e,yr(n))}return Ke(n),null;case 5:if(Mr(n),a=n.type,e!==null&&n.stateNode!=null)e.memoizedProps!==l&&yr(n);else{if(!l){if(n.stateNode===null)throw Error(s(166));return Ke(n),null}if(e=te.current,Ki(n))Vm(n);else{switch(o=ro(ue.current),e){case 1:e=o.createElementNS("http://www.w3.org/2000/svg",a);break;case 2:e=o.createElementNS("http://www.w3.org/1998/Math/MathML",a);break;default:switch(a){case"svg":e=o.createElementNS("http://www.w3.org/2000/svg",a);break;case"math":e=o.createElementNS("http://www.w3.org/1998/Math/MathML",a);break;case"script":e=o.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild);break;case"select":e=typeof l.is=="string"?o.createElement("select",{is:l.is}):o.createElement("select"),l.multiple?e.multiple=!0:l.size&&(e.size=l.size);break;default:e=typeof l.is=="string"?o.createElement(a,{is:l.is}):o.createElement(a)}}e[ht]=n,e[Dt]=l;e:for(o=n.child;o!==null;){if(o.tag===5||o.tag===6)e.appendChild(o.stateNode);else if(o.tag!==4&&o.tag!==27&&o.child!==null){o.child.return=o,o=o.child;continue}if(o===n)break e;for(;o.sibling===null;){if(o.return===null||o.return===n)break e;o=o.return}o.sibling.return=o.return,o=o.sibling}n.stateNode=e;e:switch(Rt(e,a,l),a){case"button":case"input":case"select":case"textarea":e=!!l.autoFocus;break e;case"img":e=!0;break e;default:e=!1}e&&yr(n)}}return Ke(n),n.flags&=-16777217,null;case 6:if(e&&n.stateNode!=null)e.memoizedProps!==l&&yr(n);else{if(typeof l!="string"&&n.stateNode===null)throw Error(s(166));if(e=ue.current,Ki(n)){if(e=n.stateNode,a=n.memoizedProps,l=null,o=Ht,o!==null)switch(o.tag){case 27:case 5:l=o.memoizedProps}e[ht]=n,e=!!(e.nodeValue===a||l!==null&&l.suppressHydrationWarning===!0||lg(e.nodeValue,a)),e||Ea(n)}else e=ro(e).createTextNode(l),e[ht]=n,n.stateNode=e}return Ke(n),null;case 13:if(l=n.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(o=Ki(n),l!==null&&l.dehydrated!==null){if(e===null){if(!o)throw Error(s(318));if(o=n.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(s(317));o[ht]=n}else $i(),(n.flags&128)===0&&(n.memoizedState=null),n.flags|=4;Ke(n),o=!1}else o=Ym(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=o),o=!0;if(!o)return n.flags&256?(pr(n),n):(pr(n),null)}if(pr(n),(n.flags&128)!==0)return n.lanes=a,n;if(a=l!==null,e=e!==null&&e.memoizedState!==null,a){l=n.child,o=null,l.alternate!==null&&l.alternate.memoizedState!==null&&l.alternate.memoizedState.cachePool!==null&&(o=l.alternate.memoizedState.cachePool.pool);var f=null;l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(f=l.memoizedState.cachePool.pool),f!==o&&(l.flags|=2048)}return a!==e&&a&&(n.child.flags|=8192),Vl(n,n.updateQueue),Ke(n),null;case 4:return St(),e===null&&pf(n.stateNode.containerInfo),Ke(n),null;case 10:return hr(n.type),Ke(n),null;case 19:if($(gt),o=n.memoizedState,o===null)return Ke(n),null;if(l=(n.flags&128)!==0,f=o.rendering,f===null)if(l)hs(o,!1);else{if(tt!==0||e!==null&&(e.flags&128)!==0)for(e=n.child;e!==null;){if(f=zl(e),f!==null){for(n.flags|=128,hs(o,!1),e=f.updateQueue,n.updateQueue=e,Vl(n,e),n.subtreeFlags=0,e=a,a=n.child;a!==null;)qm(a,e),a=a.sibling;return Y(gt,gt.current&1|2),n.child}e=e.sibling}o.tail!==null&&Tt()>Xl&&(n.flags|=128,l=!0,hs(o,!1),n.lanes=4194304)}else{if(!l)if(e=zl(f),e!==null){if(n.flags|=128,l=!0,e=e.updateQueue,n.updateQueue=e,Vl(n,e),hs(o,!0),o.tail===null&&o.tailMode==="hidden"&&!f.alternate&&!Le)return Ke(n),null}else 2*Tt()-o.renderingStartTime>Xl&&a!==536870912&&(n.flags|=128,l=!0,hs(o,!1),n.lanes=4194304);o.isBackwards?(f.sibling=n.child,n.child=f):(e=o.last,e!==null?e.sibling=f:n.child=f,o.last=f)}return o.tail!==null?(n=o.tail,o.rendering=n,o.tail=n.sibling,o.renderingStartTime=Tt(),n.sibling=null,e=gt.current,Y(gt,l?e&1|2:e&1),n):(Ke(n),null);case 22:case 23:return pr(n),gc(),l=n.memoizedState!==null,e!==null?e.memoizedState!==null!==l&&(n.flags|=8192):l&&(n.flags|=8192),l?(a&536870912)!==0&&(n.flags&128)===0&&(Ke(n),n.subtreeFlags&6&&(n.flags|=8192)):Ke(n),a=n.updateQueue,a!==null&&Vl(n,a.retryQueue),a=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),l=null,n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(l=n.memoizedState.cachePool.pool),l!==a&&(n.flags|=2048),e!==null&&$(Aa),null;case 24:return a=null,e!==null&&(a=e.memoizedState.cache),n.memoizedState.cache!==a&&(n.flags|=2048),hr(pt),Ke(n),null;case 25:return null;case 30:return null}throw Error(s(156,n.tag))}function GE(e,n){switch(nc(n),n.tag){case 1:return e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 3:return hr(pt),St(),e=n.flags,(e&65536)!==0&&(e&128)===0?(n.flags=e&-65537|128,n):null;case 26:case 27:case 5:return Mr(n),null;case 13:if(pr(n),e=n.memoizedState,e!==null&&e.dehydrated!==null){if(n.alternate===null)throw Error(s(340));$i()}return e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 19:return $(gt),null;case 4:return St(),null;case 10:return hr(n.type),null;case 22:case 23:return pr(n),gc(),e!==null&&$(Aa),e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 24:return hr(pt),null;case 25:return null;default:return null}}function pp(e,n){switch(nc(n),n.tag){case 3:hr(pt),St();break;case 26:case 27:case 5:Mr(n);break;case 4:St();break;case 13:pr(n);break;case 19:$(gt);break;case 10:hr(n.type);break;case 22:case 23:pr(n),gc(),e!==null&&$(Aa);break;case 24:hr(pt)}}function ms(e,n){try{var a=n.updateQueue,l=a!==null?a.lastEffect:null;if(l!==null){var o=l.next;a=o;do{if((a.tag&e)===e){l=void 0;var f=a.create,g=a.inst;l=f(),g.destroy=l}a=a.next}while(a!==o)}}catch(v){qe(n,n.return,v)}}function Vr(e,n,a){try{var l=n.updateQueue,o=l!==null?l.lastEffect:null;if(o!==null){var f=o.next;l=f;do{if((l.tag&e)===e){var g=l.inst,v=g.destroy;if(v!==void 0){g.destroy=void 0,o=n;var T=a,B=v;try{B()}catch(F){qe(o,T,F)}}}l=l.next}while(l!==f)}}catch(F){qe(n,n.return,F)}}function gp(e){var n=e.updateQueue;if(n!==null){var a=e.stateNode;try{r0(n,a)}catch(l){qe(e,e.return,l)}}}function yp(e,n,a){a.props=Oa(e.type,e.memoizedProps),a.state=e.memoizedState;try{a.componentWillUnmount()}catch(l){qe(e,n,l)}}function ps(e,n){try{var a=e.ref;if(a!==null){switch(e.tag){case 26:case 27:case 5:var l=e.stateNode;break;case 30:l=e.stateNode;break;default:l=e.stateNode}typeof a=="function"?e.refCleanup=a(l):a.current=l}}catch(o){qe(e,n,o)}}function Yn(e,n){var a=e.ref,l=e.refCleanup;if(a!==null)if(typeof l=="function")try{l()}catch(o){qe(e,n,o)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof a=="function")try{a(null)}catch(o){qe(e,n,o)}else a.current=null}function bp(e){var n=e.type,a=e.memoizedProps,l=e.stateNode;try{e:switch(n){case"button":case"input":case"select":case"textarea":a.autoFocus&&l.focus();break e;case"img":a.src?l.src=a.src:a.srcSet&&(l.srcset=a.srcSet)}}catch(o){qe(e,e.return,o)}}function Vc(e,n,a){try{var l=e.stateNode;l2(l,e.type,a,n),l[Dt]=n}catch(o){qe(e,e.return,o)}}function vp(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Wr(e.type)||e.tag===4}function Pc(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||vp(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&Wr(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Yc(e,n,a){var l=e.tag;if(l===5||l===6)e=e.stateNode,n?(a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a).insertBefore(e,n):(n=a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a,n.appendChild(e),a=a._reactRootContainer,a!=null||n.onclick!==null||(n.onclick=no));else if(l!==4&&(l===27&&Wr(e.type)&&(a=e.stateNode,n=null),e=e.child,e!==null))for(Yc(e,n,a),e=e.sibling;e!==null;)Yc(e,n,a),e=e.sibling}function Pl(e,n,a){var l=e.tag;if(l===5||l===6)e=e.stateNode,n?a.insertBefore(e,n):a.appendChild(e);else if(l!==4&&(l===27&&Wr(e.type)&&(a=e.stateNode),e=e.child,e!==null))for(Pl(e,n,a),e=e.sibling;e!==null;)Pl(e,n,a),e=e.sibling}function _p(e){var n=e.stateNode,a=e.memoizedProps;try{for(var l=e.type,o=n.attributes;o.length;)n.removeAttributeNode(o[0]);Rt(n,l,a),n[ht]=e,n[Dt]=a}catch(f){qe(e,e.return,f)}}var br=!1,it=!1,Xc=!1,Ep=typeof WeakSet=="function"?WeakSet:Set,bt=null;function kE(e,n){if(e=e.containerInfo,bf=uo,e=Dm(e),Pu(e)){if("selectionStart"in e)var a={start:e.selectionStart,end:e.selectionEnd};else e:{a=(a=e.ownerDocument)&&a.defaultView||window;var l=a.getSelection&&a.getSelection();if(l&&l.rangeCount!==0){a=l.anchorNode;var o=l.anchorOffset,f=l.focusNode;l=l.focusOffset;try{a.nodeType,f.nodeType}catch{a=null;break e}var g=0,v=-1,T=-1,B=0,F=0,P=e,j=null;t:for(;;){for(var I;P!==a||o!==0&&P.nodeType!==3||(v=g+o),P!==f||l!==0&&P.nodeType!==3||(T=g+l),P.nodeType===3&&(g+=P.nodeValue.length),(I=P.firstChild)!==null;)j=P,P=I;for(;;){if(P===e)break t;if(j===a&&++B===o&&(v=g),j===f&&++F===l&&(T=g),(I=P.nextSibling)!==null)break;P=j,j=P.parentNode}P=I}a=v===-1||T===-1?null:{start:v,end:T}}else a=null}a=a||{start:0,end:0}}else a=null;for(vf={focusedElem:e,selectionRange:a},uo=!1,bt=n;bt!==null;)if(n=bt,e=n.child,(n.subtreeFlags&1024)!==0&&e!==null)e.return=n,bt=e;else for(;bt!==null;){switch(n=bt,f=n.alternate,e=n.flags,n.tag){case 0:break;case 11:case 15:break;case 1:if((e&1024)!==0&&f!==null){e=void 0,a=n,o=f.memoizedProps,f=f.memoizedState,l=a.stateNode;try{var he=Oa(a.type,o,a.elementType===a.type);e=l.getSnapshotBeforeUpdate(he,f),l.__reactInternalSnapshotBeforeUpdate=e}catch(fe){qe(a,a.return,fe)}}break;case 3:if((e&1024)!==0){if(e=n.stateNode.containerInfo,a=e.nodeType,a===9)Sf(e);else if(a===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Sf(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((e&1024)!==0)throw Error(s(163))}if(e=n.sibling,e!==null){e.return=n.return,bt=e;break}bt=n.return}}function Sp(e,n,a){var l=a.flags;switch(a.tag){case 0:case 11:case 15:Pr(e,a),l&4&&ms(5,a);break;case 1:if(Pr(e,a),l&4)if(e=a.stateNode,n===null)try{e.componentDidMount()}catch(g){qe(a,a.return,g)}else{var o=Oa(a.type,n.memoizedProps);n=n.memoizedState;try{e.componentDidUpdate(o,n,e.__reactInternalSnapshotBeforeUpdate)}catch(g){qe(a,a.return,g)}}l&64&&gp(a),l&512&&ps(a,a.return);break;case 3:if(Pr(e,a),l&64&&(e=a.updateQueue,e!==null)){if(n=null,a.child!==null)switch(a.child.tag){case 27:case 5:n=a.child.stateNode;break;case 1:n=a.child.stateNode}try{r0(e,n)}catch(g){qe(a,a.return,g)}}break;case 27:n===null&&l&4&&_p(a);case 26:case 5:Pr(e,a),n===null&&l&4&&bp(a),l&512&&ps(a,a.return);break;case 12:Pr(e,a);break;case 13:Pr(e,a),l&4&&xp(e,a),l&64&&(e=a.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(a=KE.bind(null,a),m2(e,a))));break;case 22:if(l=a.memoizedState!==null||br,!l){n=n!==null&&n.memoizedState!==null||it,o=br;var f=it;br=l,(it=n)&&!f?Yr(e,a,(a.subtreeFlags&8772)!==0):Pr(e,a),br=o,it=f}break;case 30:break;default:Pr(e,a)}}function Tp(e){var n=e.alternate;n!==null&&(e.alternate=null,Tp(n)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(n=e.stateNode,n!==null&&Kt(n)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var Xe=null,Zt=!1;function vr(e,n,a){for(a=a.child;a!==null;)Ap(e,n,a),a=a.sibling}function Ap(e,n,a){if(Nt&&typeof Nt.onCommitFiberUnmount=="function")try{Nt.onCommitFiberUnmount(dn,a)}catch{}switch(a.tag){case 26:it||Yn(a,n),vr(e,n,a),a.memoizedState?a.memoizedState.count--:a.stateNode&&(a=a.stateNode,a.parentNode.removeChild(a));break;case 27:it||Yn(a,n);var l=Xe,o=Zt;Wr(a.type)&&(Xe=a.stateNode,Zt=!1),vr(e,n,a),As(a.stateNode),Xe=l,Zt=o;break;case 5:it||Yn(a,n);case 6:if(l=Xe,o=Zt,Xe=null,vr(e,n,a),Xe=l,Zt=o,Xe!==null)if(Zt)try{(Xe.nodeType===9?Xe.body:Xe.nodeName==="HTML"?Xe.ownerDocument.body:Xe).removeChild(a.stateNode)}catch(f){qe(a,n,f)}else try{Xe.removeChild(a.stateNode)}catch(f){qe(a,n,f)}break;case 18:Xe!==null&&(Zt?(e=Xe,dg(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,a.stateNode),Ds(e)):dg(Xe,a.stateNode));break;case 4:l=Xe,o=Zt,Xe=a.stateNode.containerInfo,Zt=!0,vr(e,n,a),Xe=l,Zt=o;break;case 0:case 11:case 14:case 15:it||Vr(2,a,n),it||Vr(4,a,n),vr(e,n,a);break;case 1:it||(Yn(a,n),l=a.stateNode,typeof l.componentWillUnmount=="function"&&yp(a,n,l)),vr(e,n,a);break;case 21:vr(e,n,a);break;case 22:it=(l=it)||a.memoizedState!==null,vr(e,n,a),it=l;break;default:vr(e,n,a)}}function xp(e,n){if(n.memoizedState===null&&(e=n.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Ds(e)}catch(a){qe(n,n.return,a)}}function qE(e){switch(e.tag){case 13:case 19:var n=e.stateNode;return n===null&&(n=e.stateNode=new Ep),n;case 22:return e=e.stateNode,n=e._retryCache,n===null&&(n=e._retryCache=new Ep),n;default:throw Error(s(435,e.tag))}}function Zc(e,n){var a=qE(e);n.forEach(function(l){var o=$E.bind(null,e,l);a.has(l)||(a.add(l),l.then(o,o))})}function en(e,n){var a=n.deletions;if(a!==null)for(var l=0;l<a.length;l++){var o=a[l],f=e,g=n,v=g;e:for(;v!==null;){switch(v.tag){case 27:if(Wr(v.type)){Xe=v.stateNode,Zt=!1;break e}break;case 5:Xe=v.stateNode,Zt=!1;break e;case 3:case 4:Xe=v.stateNode.containerInfo,Zt=!0;break e}v=v.return}if(Xe===null)throw Error(s(160));Ap(f,g,o),Xe=null,Zt=!1,f=o.alternate,f!==null&&(f.return=null),o.return=null}if(n.subtreeFlags&13878)for(n=n.child;n!==null;)Op(n,e),n=n.sibling}var Mn=null;function Op(e,n){var a=e.alternate,l=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:en(n,e),tn(e),l&4&&(Vr(3,e,e.return),ms(3,e),Vr(5,e,e.return));break;case 1:en(n,e),tn(e),l&512&&(it||a===null||Yn(a,a.return)),l&64&&br&&(e=e.updateQueue,e!==null&&(l=e.callbacks,l!==null&&(a=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=a===null?l:a.concat(l))));break;case 26:var o=Mn;if(en(n,e),tn(e),l&512&&(it||a===null||Yn(a,a.return)),l&4){var f=a!==null?a.memoizedState:null;if(l=e.memoizedState,a===null)if(l===null)if(e.stateNode===null){e:{l=e.type,a=e.memoizedProps,o=o.ownerDocument||o;t:switch(l){case"title":f=o.getElementsByTagName("title")[0],(!f||f[Br]||f[ht]||f.namespaceURI==="http://www.w3.org/2000/svg"||f.hasAttribute("itemprop"))&&(f=o.createElement(l),o.head.insertBefore(f,o.querySelector("head > title"))),Rt(f,l,a),f[ht]=e,lt(f),l=f;break e;case"link":var g=_g("link","href",o).get(l+(a.href||""));if(g){for(var v=0;v<g.length;v++)if(f=g[v],f.getAttribute("href")===(a.href==null||a.href===""?null:a.href)&&f.getAttribute("rel")===(a.rel==null?null:a.rel)&&f.getAttribute("title")===(a.title==null?null:a.title)&&f.getAttribute("crossorigin")===(a.crossOrigin==null?null:a.crossOrigin)){g.splice(v,1);break t}}f=o.createElement(l),Rt(f,l,a),o.head.appendChild(f);break;case"meta":if(g=_g("meta","content",o).get(l+(a.content||""))){for(v=0;v<g.length;v++)if(f=g[v],f.getAttribute("content")===(a.content==null?null:""+a.content)&&f.getAttribute("name")===(a.name==null?null:a.name)&&f.getAttribute("property")===(a.property==null?null:a.property)&&f.getAttribute("http-equiv")===(a.httpEquiv==null?null:a.httpEquiv)&&f.getAttribute("charset")===(a.charSet==null?null:a.charSet)){g.splice(v,1);break t}}f=o.createElement(l),Rt(f,l,a),o.head.appendChild(f);break;default:throw Error(s(468,l))}f[ht]=e,lt(f),l=f}e.stateNode=l}else Eg(o,e.type,e.stateNode);else e.stateNode=vg(o,l,e.memoizedProps);else f!==l?(f===null?a.stateNode!==null&&(a=a.stateNode,a.parentNode.removeChild(a)):f.count--,l===null?Eg(o,e.type,e.stateNode):vg(o,l,e.memoizedProps)):l===null&&e.stateNode!==null&&Vc(e,e.memoizedProps,a.memoizedProps)}break;case 27:en(n,e),tn(e),l&512&&(it||a===null||Yn(a,a.return)),a!==null&&l&4&&Vc(e,e.memoizedProps,a.memoizedProps);break;case 5:if(en(n,e),tn(e),l&512&&(it||a===null||Yn(a,a.return)),e.flags&32){o=e.stateNode;try{Xa(o,"")}catch(I){qe(e,e.return,I)}}l&4&&e.stateNode!=null&&(o=e.memoizedProps,Vc(e,o,a!==null?a.memoizedProps:o)),l&1024&&(Xc=!0);break;case 6:if(en(n,e),tn(e),l&4){if(e.stateNode===null)throw Error(s(162));l=e.memoizedProps,a=e.stateNode;try{a.nodeValue=l}catch(I){qe(e,e.return,I)}}break;case 3:if(so=null,o=Mn,Mn=ao(n.containerInfo),en(n,e),Mn=o,tn(e),l&4&&a!==null&&a.memoizedState.isDehydrated)try{Ds(n.containerInfo)}catch(I){qe(e,e.return,I)}Xc&&(Xc=!1,Rp(e));break;case 4:l=Mn,Mn=ao(e.stateNode.containerInfo),en(n,e),tn(e),Mn=l;break;case 12:en(n,e),tn(e);break;case 13:en(n,e),tn(e),e.child.flags&8192&&e.memoizedState!==null!=(a!==null&&a.memoizedState!==null)&&(ef=Tt()),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,Zc(e,l)));break;case 22:o=e.memoizedState!==null;var T=a!==null&&a.memoizedState!==null,B=br,F=it;if(br=B||o,it=F||T,en(n,e),it=F,br=B,tn(e),l&8192)e:for(n=e.stateNode,n._visibility=o?n._visibility&-2:n._visibility|1,o&&(a===null||T||br||it||Ra(e)),a=null,n=e;;){if(n.tag===5||n.tag===26){if(a===null){T=a=n;try{if(f=T.stateNode,o)g=f.style,typeof g.setProperty=="function"?g.setProperty("display","none","important"):g.display="none";else{v=T.stateNode;var P=T.memoizedProps.style,j=P!=null&&P.hasOwnProperty("display")?P.display:null;v.style.display=j==null||typeof j=="boolean"?"":(""+j).trim()}}catch(I){qe(T,T.return,I)}}}else if(n.tag===6){if(a===null){T=n;try{T.stateNode.nodeValue=o?"":T.memoizedProps}catch(I){qe(T,T.return,I)}}}else if((n.tag!==22&&n.tag!==23||n.memoizedState===null||n===e)&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===e)break e;for(;n.sibling===null;){if(n.return===null||n.return===e)break e;a===n&&(a=null),n=n.return}a===n&&(a=null),n.sibling.return=n.return,n=n.sibling}l&4&&(l=e.updateQueue,l!==null&&(a=l.retryQueue,a!==null&&(l.retryQueue=null,Zc(e,a))));break;case 19:en(n,e),tn(e),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,Zc(e,l)));break;case 30:break;case 21:break;default:en(n,e),tn(e)}}function tn(e){var n=e.flags;if(n&2){try{for(var a,l=e.return;l!==null;){if(vp(l)){a=l;break}l=l.return}if(a==null)throw Error(s(160));switch(a.tag){case 27:var o=a.stateNode,f=Pc(e);Pl(e,f,o);break;case 5:var g=a.stateNode;a.flags&32&&(Xa(g,""),a.flags&=-33);var v=Pc(e);Pl(e,v,g);break;case 3:case 4:var T=a.stateNode.containerInfo,B=Pc(e);Yc(e,B,T);break;default:throw Error(s(161))}}catch(F){qe(e,e.return,F)}e.flags&=-3}n&4096&&(e.flags&=-4097)}function Rp(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var n=e;Rp(n),n.tag===5&&n.flags&1024&&n.stateNode.reset(),e=e.sibling}}function Pr(e,n){if(n.subtreeFlags&8772)for(n=n.child;n!==null;)Sp(e,n.alternate,n),n=n.sibling}function Ra(e){for(e=e.child;e!==null;){var n=e;switch(n.tag){case 0:case 11:case 14:case 15:Vr(4,n,n.return),Ra(n);break;case 1:Yn(n,n.return);var a=n.stateNode;typeof a.componentWillUnmount=="function"&&yp(n,n.return,a),Ra(n);break;case 27:As(n.stateNode);case 26:case 5:Yn(n,n.return),Ra(n);break;case 22:n.memoizedState===null&&Ra(n);break;case 30:Ra(n);break;default:Ra(n)}e=e.sibling}}function Yr(e,n,a){for(a=a&&(n.subtreeFlags&8772)!==0,n=n.child;n!==null;){var l=n.alternate,o=e,f=n,g=f.flags;switch(f.tag){case 0:case 11:case 15:Yr(o,f,a),ms(4,f);break;case 1:if(Yr(o,f,a),l=f,o=l.stateNode,typeof o.componentDidMount=="function")try{o.componentDidMount()}catch(B){qe(l,l.return,B)}if(l=f,o=l.updateQueue,o!==null){var v=l.stateNode;try{var T=o.shared.hiddenCallbacks;if(T!==null)for(o.shared.hiddenCallbacks=null,o=0;o<T.length;o++)n0(T[o],v)}catch(B){qe(l,l.return,B)}}a&&g&64&&gp(f),ps(f,f.return);break;case 27:_p(f);case 26:case 5:Yr(o,f,a),a&&l===null&&g&4&&bp(f),ps(f,f.return);break;case 12:Yr(o,f,a);break;case 13:Yr(o,f,a),a&&g&4&&xp(o,f);break;case 22:f.memoizedState===null&&Yr(o,f,a),ps(f,f.return);break;case 30:break;default:Yr(o,f,a)}n=n.sibling}}function Qc(e,n){var a=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),e=null,n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(e=n.memoizedState.cachePool.pool),e!==a&&(e!=null&&e.refCount++,a!=null&&es(a))}function Kc(e,n){e=null,n.alternate!==null&&(e=n.alternate.memoizedState.cache),n=n.memoizedState.cache,n!==e&&(n.refCount++,e!=null&&es(e))}function Xn(e,n,a,l){if(n.subtreeFlags&10256)for(n=n.child;n!==null;)wp(e,n,a,l),n=n.sibling}function wp(e,n,a,l){var o=n.flags;switch(n.tag){case 0:case 11:case 15:Xn(e,n,a,l),o&2048&&ms(9,n);break;case 1:Xn(e,n,a,l);break;case 3:Xn(e,n,a,l),o&2048&&(e=null,n.alternate!==null&&(e=n.alternate.memoizedState.cache),n=n.memoizedState.cache,n!==e&&(n.refCount++,e!=null&&es(e)));break;case 12:if(o&2048){Xn(e,n,a,l),e=n.stateNode;try{var f=n.memoizedProps,g=f.id,v=f.onPostCommit;typeof v=="function"&&v(g,n.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(T){qe(n,n.return,T)}}else Xn(e,n,a,l);break;case 13:Xn(e,n,a,l);break;case 23:break;case 22:f=n.stateNode,g=n.alternate,n.memoizedState!==null?f._visibility&2?Xn(e,n,a,l):gs(e,n):f._visibility&2?Xn(e,n,a,l):(f._visibility|=2,di(e,n,a,l,(n.subtreeFlags&10256)!==0)),o&2048&&Qc(g,n);break;case 24:Xn(e,n,a,l),o&2048&&Kc(n.alternate,n);break;default:Xn(e,n,a,l)}}function di(e,n,a,l,o){for(o=o&&(n.subtreeFlags&10256)!==0,n=n.child;n!==null;){var f=e,g=n,v=a,T=l,B=g.flags;switch(g.tag){case 0:case 11:case 15:di(f,g,v,T,o),ms(8,g);break;case 23:break;case 22:var F=g.stateNode;g.memoizedState!==null?F._visibility&2?di(f,g,v,T,o):gs(f,g):(F._visibility|=2,di(f,g,v,T,o)),o&&B&2048&&Qc(g.alternate,g);break;case 24:di(f,g,v,T,o),o&&B&2048&&Kc(g.alternate,g);break;default:di(f,g,v,T,o)}n=n.sibling}}function gs(e,n){if(n.subtreeFlags&10256)for(n=n.child;n!==null;){var a=e,l=n,o=l.flags;switch(l.tag){case 22:gs(a,l),o&2048&&Qc(l.alternate,l);break;case 24:gs(a,l),o&2048&&Kc(l.alternate,l);break;default:gs(a,l)}n=n.sibling}}var ys=8192;function hi(e){if(e.subtreeFlags&ys)for(e=e.child;e!==null;)Cp(e),e=e.sibling}function Cp(e){switch(e.tag){case 26:hi(e),e.flags&ys&&e.memoizedState!==null&&R2(Mn,e.memoizedState,e.memoizedProps);break;case 5:hi(e);break;case 3:case 4:var n=Mn;Mn=ao(e.stateNode.containerInfo),hi(e),Mn=n;break;case 22:e.memoizedState===null&&(n=e.alternate,n!==null&&n.memoizedState!==null?(n=ys,ys=16777216,hi(e),ys=n):hi(e));break;default:hi(e)}}function Np(e){var n=e.alternate;if(n!==null&&(e=n.child,e!==null)){n.child=null;do n=e.sibling,e.sibling=null,e=n;while(e!==null)}}function bs(e){var n=e.deletions;if((e.flags&16)!==0){if(n!==null)for(var a=0;a<n.length;a++){var l=n[a];bt=l,Dp(l,e)}Np(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Mp(e),e=e.sibling}function Mp(e){switch(e.tag){case 0:case 11:case 15:bs(e),e.flags&2048&&Vr(9,e,e.return);break;case 3:bs(e);break;case 12:bs(e);break;case 22:var n=e.stateNode;e.memoizedState!==null&&n._visibility&2&&(e.return===null||e.return.tag!==13)?(n._visibility&=-3,Yl(e)):bs(e);break;default:bs(e)}}function Yl(e){var n=e.deletions;if((e.flags&16)!==0){if(n!==null)for(var a=0;a<n.length;a++){var l=n[a];bt=l,Dp(l,e)}Np(e)}for(e=e.child;e!==null;){switch(n=e,n.tag){case 0:case 11:case 15:Vr(8,n,n.return),Yl(n);break;case 22:a=n.stateNode,a._visibility&2&&(a._visibility&=-3,Yl(n));break;default:Yl(n)}e=e.sibling}}function Dp(e,n){for(;bt!==null;){var a=bt;switch(a.tag){case 0:case 11:case 15:Vr(8,a,n);break;case 23:case 22:if(a.memoizedState!==null&&a.memoizedState.cachePool!==null){var l=a.memoizedState.cachePool.pool;l!=null&&l.refCount++}break;case 24:es(a.memoizedState.cache)}if(l=a.child,l!==null)l.return=a,bt=l;else e:for(a=e;bt!==null;){l=bt;var o=l.sibling,f=l.return;if(Tp(l),l===a){bt=null;break e}if(o!==null){o.return=f,bt=o;break e}bt=f}}}var FE={getCacheForType:function(e){var n=Bt(pt),a=n.data.get(e);return a===void 0&&(a=e(),n.data.set(e,a)),a}},VE=typeof WeakMap=="function"?WeakMap:Map,He=0,Ve=null,xe=null,Ne=0,je=0,nn=null,Xr=!1,mi=!1,$c=!1,_r=0,tt=0,Zr=0,wa=0,Wc=0,_n=0,pi=0,vs=null,Qt=null,Jc=!1,ef=0,Xl=1/0,Zl=null,Qr=null,Ot=0,Kr=null,gi=null,yi=0,tf=0,nf=null,Lp=null,_s=0,rf=null;function rn(){if((He&2)!==0&&Ne!==0)return Ne&-Ne;if(z.T!==null){var e=ai;return e!==0?e:ff()}return Ii()}function Bp(){_n===0&&(_n=(Ne&536870912)===0||Le?da():536870912);var e=vn.current;return e!==null&&(e.flags|=32),_n}function an(e,n,a){(e===Ve&&(je===2||je===9)||e.cancelPendingCommit!==null)&&(bi(e,0),$r(e,Ne,_n,!1)),wn(e,a),((He&2)===0||e!==Ve)&&(e===Ve&&((He&2)===0&&(wa|=a),tt===4&&$r(e,Ne,_n,!1)),Zn(e))}function Up(e,n,a){if((He&6)!==0)throw Error(s(327));var l=!a&&(n&124)===0&&(n&e.expiredLanes)===0||rr(e,n),o=l?XE(e,n):lf(e,n,!0),f=l;do{if(o===0){mi&&!l&&$r(e,n,0,!1);break}else{if(a=e.current.alternate,f&&!PE(a)){o=lf(e,n,!1),f=!1;continue}if(o===2){if(f=n,e.errorRecoveryDisabledLanes&f)var g=0;else g=e.pendingLanes&-536870913,g=g!==0?g:g&536870912?536870912:0;if(g!==0){n=g;e:{var v=e;o=vs;var T=v.current.memoizedState.isDehydrated;if(T&&(bi(v,g).flags|=256),g=lf(v,g,!1),g!==2){if($c&&!T){v.errorRecoveryDisabledLanes|=f,wa|=f,o=4;break e}f=Qt,Qt=o,f!==null&&(Qt===null?Qt=f:Qt.push.apply(Qt,f))}o=g}if(f=!1,o!==2)continue}}if(o===1){bi(e,0),$r(e,n,0,!0);break}e:{switch(l=e,f=o,f){case 0:case 1:throw Error(s(345));case 4:if((n&4194048)!==n)break;case 6:$r(l,n,_n,!Xr);break e;case 2:Qt=null;break;case 3:case 5:break;default:throw Error(s(329))}if((n&62914560)===n&&(o=ef+300-Tt(),10<o)){if($r(l,n,_n,!Xr),Lr(l,0,!0)!==0)break e;l.timeoutHandle=cg(Hp.bind(null,l,a,Qt,Zl,Jc,n,_n,wa,pi,Xr,f,2,-0,0),o);break e}Hp(l,a,Qt,Zl,Jc,n,_n,wa,pi,Xr,f,0,-0,0)}}break}while(!0);Zn(e)}function Hp(e,n,a,l,o,f,g,v,T,B,F,P,j,I){if(e.timeoutHandle=-1,P=n.subtreeFlags,(P&8192||(P&16785408)===16785408)&&(Rs={stylesheets:null,count:0,unsuspend:O2},Cp(n),P=w2(),P!==null)){e.cancelPendingCommit=P(Fp.bind(null,e,n,f,a,l,o,g,v,T,F,1,j,I)),$r(e,f,g,!B);return}Fp(e,n,f,a,l,o,g,v,T)}function PE(e){for(var n=e;;){var a=n.tag;if((a===0||a===11||a===15)&&n.flags&16384&&(a=n.updateQueue,a!==null&&(a=a.stores,a!==null)))for(var l=0;l<a.length;l++){var o=a[l],f=o.getSnapshot;o=o.value;try{if(!Wt(f(),o))return!1}catch{return!1}}if(a=n.child,n.subtreeFlags&16384&&a!==null)a.return=n,n=a;else{if(n===e)break;for(;n.sibling===null;){if(n.return===null||n.return===e)return!0;n=n.return}n.sibling.return=n.return,n=n.sibling}}return!0}function $r(e,n,a,l){n&=~Wc,n&=~wa,e.suspendedLanes|=n,e.pingedLanes&=~n,l&&(e.warmLanes|=n),l=e.expirationTimes;for(var o=n;0<o;){var f=31-Mt(o),g=1<<f;l[f]=-1,o&=~g}a!==0&&il(e,a,n)}function Ql(){return(He&6)===0?(Es(0),!1):!0}function af(){if(xe!==null){if(je===0)var e=xe.return;else e=xe,dr=Sa=null,Ec(e),ci=null,fs=0,e=xe;for(;e!==null;)pp(e.alternate,e),e=e.return;xe=null}}function bi(e,n){var a=e.timeoutHandle;a!==-1&&(e.timeoutHandle=-1,u2(a)),a=e.cancelPendingCommit,a!==null&&(e.cancelPendingCommit=null,a()),af(),Ve=e,xe=a=ur(e.current,null),Ne=n,je=0,nn=null,Xr=!1,mi=rr(e,n),$c=!1,pi=_n=Wc=wa=Zr=tt=0,Qt=vs=null,Jc=!1,(n&8)!==0&&(n|=n&32);var l=e.entangledLanes;if(l!==0)for(e=e.entanglements,l&=n;0<l;){var o=31-Mt(l),f=1<<o;n|=e[o],l&=~f}return _r=n,yl(),a}function jp(e,n){_e=null,z.H=Hl,n===ns||n===Ol?(n=e0(),je=3):n===$m?(n=e0(),je=4):je=n===tp?8:n!==null&&typeof n=="object"&&typeof n.then=="function"?6:1,nn=n,xe===null&&(tt=1,kl(e,pn(n,e.current)))}function Ip(){var e=z.H;return z.H=Hl,e===null?Hl:e}function zp(){var e=z.A;return z.A=FE,e}function sf(){tt=4,Xr||(Ne&4194048)!==Ne&&vn.current!==null||(mi=!0),(Zr&134217727)===0&&(wa&134217727)===0||Ve===null||$r(Ve,Ne,_n,!1)}function lf(e,n,a){var l=He;He|=2;var o=Ip(),f=zp();(Ve!==e||Ne!==n)&&(Zl=null,bi(e,n)),n=!1;var g=tt;e:do try{if(je!==0&&xe!==null){var v=xe,T=nn;switch(je){case 8:af(),g=6;break e;case 3:case 2:case 9:case 6:vn.current===null&&(n=!0);var B=je;if(je=0,nn=null,vi(e,v,T,B),a&&mi){g=0;break e}break;default:B=je,je=0,nn=null,vi(e,v,T,B)}}YE(),g=tt;break}catch(F){jp(e,F)}while(!0);return n&&e.shellSuspendCounter++,dr=Sa=null,He=l,z.H=o,z.A=f,xe===null&&(Ve=null,Ne=0,yl()),g}function YE(){for(;xe!==null;)Gp(xe)}function XE(e,n){var a=He;He|=2;var l=Ip(),o=zp();Ve!==e||Ne!==n?(Zl=null,Xl=Tt()+500,bi(e,n)):mi=rr(e,n);e:do try{if(je!==0&&xe!==null){n=xe;var f=nn;t:switch(je){case 1:je=0,nn=null,vi(e,n,f,1);break;case 2:case 9:if(Wm(f)){je=0,nn=null,kp(n);break}n=function(){je!==2&&je!==9||Ve!==e||(je=7),Zn(e)},f.then(n,n);break e;case 3:je=7;break e;case 4:je=5;break e;case 7:Wm(f)?(je=0,nn=null,kp(n)):(je=0,nn=null,vi(e,n,f,7));break;case 5:var g=null;switch(xe.tag){case 26:g=xe.memoizedState;case 5:case 27:var v=xe;if(!g||Sg(g)){je=0,nn=null;var T=v.sibling;if(T!==null)xe=T;else{var B=v.return;B!==null?(xe=B,Kl(B)):xe=null}break t}}je=0,nn=null,vi(e,n,f,5);break;case 6:je=0,nn=null,vi(e,n,f,6);break;case 8:af(),tt=6;break e;default:throw Error(s(462))}}ZE();break}catch(F){jp(e,F)}while(!0);return dr=Sa=null,z.H=l,z.A=o,He=a,xe!==null?0:(Ve=null,Ne=0,yl(),tt)}function ZE(){for(;xe!==null&&!Di();)Gp(xe)}function Gp(e){var n=hp(e.alternate,e,_r);e.memoizedProps=e.pendingProps,n===null?Kl(e):xe=n}function kp(e){var n=e,a=n.alternate;switch(n.tag){case 15:case 0:n=lp(a,n,n.pendingProps,n.type,void 0,Ne);break;case 11:n=lp(a,n,n.pendingProps,n.type.render,n.ref,Ne);break;case 5:Ec(n);default:pp(a,n),n=xe=qm(n,_r),n=hp(a,n,_r)}e.memoizedProps=e.pendingProps,n===null?Kl(e):xe=n}function vi(e,n,a,l){dr=Sa=null,Ec(n),ci=null,fs=0;var o=n.return;try{if(jE(e,o,n,a,Ne)){tt=1,kl(e,pn(a,e.current)),xe=null;return}}catch(f){if(o!==null)throw xe=o,f;tt=1,kl(e,pn(a,e.current)),xe=null;return}n.flags&32768?(Le||l===1?e=!0:mi||(Ne&536870912)!==0?e=!1:(Xr=e=!0,(l===2||l===9||l===3||l===6)&&(l=vn.current,l!==null&&l.tag===13&&(l.flags|=16384))),qp(n,e)):Kl(n)}function Kl(e){var n=e;do{if((n.flags&32768)!==0){qp(n,Xr);return}e=n.return;var a=zE(n.alternate,n,_r);if(a!==null){xe=a;return}if(n=n.sibling,n!==null){xe=n;return}xe=n=e}while(n!==null);tt===0&&(tt=5)}function qp(e,n){do{var a=GE(e.alternate,e);if(a!==null){a.flags&=32767,xe=a;return}if(a=e.return,a!==null&&(a.flags|=32768,a.subtreeFlags=0,a.deletions=null),!n&&(e=e.sibling,e!==null)){xe=e;return}xe=e=a}while(e!==null);tt=6,xe=null}function Fp(e,n,a,l,o,f,g,v,T){e.cancelPendingCommit=null;do $l();while(Ot!==0);if((He&6)!==0)throw Error(s(327));if(n!==null){if(n===e.current)throw Error(s(177));if(f=n.lanes|n.childLanes,f|=Ku,Ru(e,a,f,g,v,T),e===Ve&&(xe=Ve=null,Ne=0),gi=n,Kr=e,yi=a,tf=f,nf=o,Lp=l,(n.subtreeFlags&10256)!==0||(n.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,WE(ca,function(){return Zp(),null})):(e.callbackNode=null,e.callbackPriority=0),l=(n.flags&13878)!==0,(n.subtreeFlags&13878)!==0||l){l=z.T,z.T=null,o=K.p,K.p=2,g=He,He|=4;try{kE(e,n,a)}finally{He=g,K.p=o,z.T=l}}Ot=1,Vp(),Pp(),Yp()}}function Vp(){if(Ot===1){Ot=0;var e=Kr,n=gi,a=(n.flags&13878)!==0;if((n.subtreeFlags&13878)!==0||a){a=z.T,z.T=null;var l=K.p;K.p=2;var o=He;He|=4;try{Op(n,e);var f=vf,g=Dm(e.containerInfo),v=f.focusedElem,T=f.selectionRange;if(g!==v&&v&&v.ownerDocument&&Mm(v.ownerDocument.documentElement,v)){if(T!==null&&Pu(v)){var B=T.start,F=T.end;if(F===void 0&&(F=B),"selectionStart"in v)v.selectionStart=B,v.selectionEnd=Math.min(F,v.value.length);else{var P=v.ownerDocument||document,j=P&&P.defaultView||window;if(j.getSelection){var I=j.getSelection(),he=v.textContent.length,fe=Math.min(T.start,he),ke=T.end===void 0?fe:Math.min(T.end,he);!I.extend&&fe>ke&&(g=ke,ke=fe,fe=g);var M=Nm(v,fe),w=Nm(v,ke);if(M&&w&&(I.rangeCount!==1||I.anchorNode!==M.node||I.anchorOffset!==M.offset||I.focusNode!==w.node||I.focusOffset!==w.offset)){var D=P.createRange();D.setStart(M.node,M.offset),I.removeAllRanges(),fe>ke?(I.addRange(D),I.extend(w.node,w.offset)):(D.setEnd(w.node,w.offset),I.addRange(D))}}}}for(P=[],I=v;I=I.parentNode;)I.nodeType===1&&P.push({element:I,left:I.scrollLeft,top:I.scrollTop});for(typeof v.focus=="function"&&v.focus(),v=0;v<P.length;v++){var V=P[v];V.element.scrollLeft=V.left,V.element.scrollTop=V.top}}uo=!!bf,vf=bf=null}finally{He=o,K.p=l,z.T=a}}e.current=n,Ot=2}}function Pp(){if(Ot===2){Ot=0;var e=Kr,n=gi,a=(n.flags&8772)!==0;if((n.subtreeFlags&8772)!==0||a){a=z.T,z.T=null;var l=K.p;K.p=2;var o=He;He|=4;try{Sp(e,n.alternate,n)}finally{He=o,K.p=l,z.T=a}}Ot=3}}function Yp(){if(Ot===4||Ot===3){Ot=0,Li();var e=Kr,n=gi,a=yi,l=Lp;(n.subtreeFlags&10256)!==0||(n.flags&10256)!==0?Ot=5:(Ot=0,gi=Kr=null,Xp(e,e.pendingLanes));var o=e.pendingLanes;if(o===0&&(Qr=null),ji(a),n=n.stateNode,Nt&&typeof Nt.onCommitFiberRoot=="function")try{Nt.onCommitFiberRoot(dn,n,void 0,(n.current.flags&128)===128)}catch{}if(l!==null){n=z.T,o=K.p,K.p=2,z.T=null;try{for(var f=e.onRecoverableError,g=0;g<l.length;g++){var v=l[g];f(v.value,{componentStack:v.stack})}}finally{z.T=n,K.p=o}}(yi&3)!==0&&$l(),Zn(e),o=e.pendingLanes,(a&4194090)!==0&&(o&42)!==0?e===rf?_s++:(_s=0,rf=e):_s=0,Es(0)}}function Xp(e,n){(e.pooledCacheLanes&=n)===0&&(n=e.pooledCache,n!=null&&(e.pooledCache=null,es(n)))}function $l(e){return Vp(),Pp(),Yp(),Zp()}function Zp(){if(Ot!==5)return!1;var e=Kr,n=tf;tf=0;var a=ji(yi),l=z.T,o=K.p;try{K.p=32>a?32:a,z.T=null,a=nf,nf=null;var f=Kr,g=yi;if(Ot=0,gi=Kr=null,yi=0,(He&6)!==0)throw Error(s(331));var v=He;if(He|=4,Mp(f.current),wp(f,f.current,g,a),He=v,Es(0,!1),Nt&&typeof Nt.onPostCommitFiberRoot=="function")try{Nt.onPostCommitFiberRoot(dn,f)}catch{}return!0}finally{K.p=o,z.T=l,Xp(e,n)}}function Qp(e,n,a){n=pn(a,n),n=Uc(e.stateNode,n,2),e=Gr(e,n,2),e!==null&&(wn(e,2),Zn(e))}function qe(e,n,a){if(e.tag===3)Qp(e,e,a);else for(;n!==null;){if(n.tag===3){Qp(n,e,a);break}else if(n.tag===1){var l=n.stateNode;if(typeof n.type.getDerivedStateFromError=="function"||typeof l.componentDidCatch=="function"&&(Qr===null||!Qr.has(l))){e=pn(a,e),a=J0(2),l=Gr(n,a,2),l!==null&&(ep(a,l,n,e),wn(l,2),Zn(l));break}}n=n.return}}function of(e,n,a){var l=e.pingCache;if(l===null){l=e.pingCache=new VE;var o=new Set;l.set(n,o)}else o=l.get(n),o===void 0&&(o=new Set,l.set(n,o));o.has(a)||($c=!0,o.add(a),e=QE.bind(null,e,n,a),n.then(e,e))}function QE(e,n,a){var l=e.pingCache;l!==null&&l.delete(n),e.pingedLanes|=e.suspendedLanes&a,e.warmLanes&=~a,Ve===e&&(Ne&a)===a&&(tt===4||tt===3&&(Ne&62914560)===Ne&&300>Tt()-ef?(He&2)===0&&bi(e,0):Wc|=a,pi===Ne&&(pi=0)),Zn(e)}function Kp(e,n){n===0&&(n=ha()),e=ei(e,n),e!==null&&(wn(e,n),Zn(e))}function KE(e){var n=e.memoizedState,a=0;n!==null&&(a=n.retryLane),Kp(e,a)}function $E(e,n){var a=0;switch(e.tag){case 13:var l=e.stateNode,o=e.memoizedState;o!==null&&(a=o.retryLane);break;case 19:l=e.stateNode;break;case 22:l=e.stateNode._retryCache;break;default:throw Error(s(314))}l!==null&&l.delete(n),Kp(e,a)}function WE(e,n){return qt(e,n)}var Wl=null,_i=null,uf=!1,Jl=!1,cf=!1,Ca=0;function Zn(e){e!==_i&&e.next===null&&(_i===null?Wl=_i=e:_i=_i.next=e),Jl=!0,uf||(uf=!0,e2())}function Es(e,n){if(!cf&&Jl){cf=!0;do for(var a=!1,l=Wl;l!==null;){if(e!==0){var o=l.pendingLanes;if(o===0)var f=0;else{var g=l.suspendedLanes,v=l.pingedLanes;f=(1<<31-Mt(42|e)+1)-1,f&=o&~(g&~v),f=f&201326741?f&201326741|1:f?f|2:0}f!==0&&(a=!0,eg(l,f))}else f=Ne,f=Lr(l,l===Ve?f:0,l.cancelPendingCommit!==null||l.timeoutHandle!==-1),(f&3)===0||rr(l,f)||(a=!0,eg(l,f));l=l.next}while(a);cf=!1}}function JE(){$p()}function $p(){Jl=uf=!1;var e=0;Ca!==0&&(o2()&&(e=Ca),Ca=0);for(var n=Tt(),a=null,l=Wl;l!==null;){var o=l.next,f=Wp(l,n);f===0?(l.next=null,a===null?Wl=o:a.next=o,o===null&&(_i=a)):(a=l,(e!==0||(f&3)!==0)&&(Jl=!0)),l=o}Es(e)}function Wp(e,n){for(var a=e.suspendedLanes,l=e.pingedLanes,o=e.expirationTimes,f=e.pendingLanes&-62914561;0<f;){var g=31-Mt(f),v=1<<g,T=o[g];T===-1?((v&a)===0||(v&l)!==0)&&(o[g]=Ou(v,n)):T<=n&&(e.expiredLanes|=v),f&=~v}if(n=Ve,a=Ne,a=Lr(e,e===n?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),l=e.callbackNode,a===0||e===n&&(je===2||je===9)||e.cancelPendingCommit!==null)return l!==null&&l!==null&&On(l),e.callbackNode=null,e.callbackPriority=0;if((a&3)===0||rr(e,a)){if(n=a&-a,n===e.callbackPriority)return n;switch(l!==null&&On(l),ji(a)){case 2:case 8:a=Bi;break;case 32:a=ca;break;case 268435456:a=Fa;break;default:a=ca}return l=Jp.bind(null,e),a=qt(a,l),e.callbackPriority=n,e.callbackNode=a,n}return l!==null&&l!==null&&On(l),e.callbackPriority=2,e.callbackNode=null,2}function Jp(e,n){if(Ot!==0&&Ot!==5)return e.callbackNode=null,e.callbackPriority=0,null;var a=e.callbackNode;if($l()&&e.callbackNode!==a)return null;var l=Ne;return l=Lr(e,e===Ve?l:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),l===0?null:(Up(e,l,n),Wp(e,Tt()),e.callbackNode!=null&&e.callbackNode===a?Jp.bind(null,e):null)}function eg(e,n){if($l())return null;Up(e,n,!0)}function e2(){c2(function(){(He&6)!==0?qt(ua,JE):$p()})}function ff(){return Ca===0&&(Ca=da()),Ca}function tg(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:cl(""+e)}function ng(e,n){var a=n.ownerDocument.createElement("input");return a.name=n.name,a.value=n.value,e.id&&a.setAttribute("form",e.id),n.parentNode.insertBefore(a,n),e=new FormData(e),a.parentNode.removeChild(a),e}function t2(e,n,a,l,o){if(n==="submit"&&a&&a.stateNode===o){var f=tg((o[Dt]||null).action),g=l.submitter;g&&(n=(n=g[Dt]||null)?tg(n.formAction):g.getAttribute("formAction"),n!==null&&(f=n,g=null));var v=new ml("action","action",null,l,o);e.push({event:v,listeners:[{instance:null,listener:function(){if(l.defaultPrevented){if(Ca!==0){var T=g?ng(o,g):new FormData(o);Nc(a,{pending:!0,data:T,method:o.method,action:f},null,T)}}else typeof f=="function"&&(v.preventDefault(),T=g?ng(o,g):new FormData(o),Nc(a,{pending:!0,data:T,method:o.method,action:f},f,T))},currentTarget:o}]})}}for(var df=0;df<Qu.length;df++){var hf=Qu[df],n2=hf.toLowerCase(),r2=hf[0].toUpperCase()+hf.slice(1);Nn(n2,"on"+r2)}Nn(Um,"onAnimationEnd"),Nn(Hm,"onAnimationIteration"),Nn(jm,"onAnimationStart"),Nn("dblclick","onDoubleClick"),Nn("focusin","onFocus"),Nn("focusout","onBlur"),Nn(_E,"onTransitionRun"),Nn(EE,"onTransitionStart"),Nn(SE,"onTransitionCancel"),Nn(Im,"onTransitionEnd"),J("onMouseEnter",["mouseout","mouseover"]),J("onMouseLeave",["mouseout","mouseover"]),J("onPointerEnter",["pointerout","pointerover"]),J("onPointerLeave",["pointerout","pointerover"]),X("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),X("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),X("onBeforeInput",["compositionend","keypress","textInput","paste"]),X("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),X("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),X("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Ss="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),a2=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Ss));function rg(e,n){n=(n&4)!==0;for(var a=0;a<e.length;a++){var l=e[a],o=l.event;l=l.listeners;e:{var f=void 0;if(n)for(var g=l.length-1;0<=g;g--){var v=l[g],T=v.instance,B=v.currentTarget;if(v=v.listener,T!==f&&o.isPropagationStopped())break e;f=v,o.currentTarget=B;try{f(o)}catch(F){Gl(F)}o.currentTarget=null,f=T}else for(g=0;g<l.length;g++){if(v=l[g],T=v.instance,B=v.currentTarget,v=v.listener,T!==f&&o.isPropagationStopped())break e;f=v,o.currentTarget=B;try{f(o)}catch(F){Gl(F)}o.currentTarget=null,f=T}}}}function Oe(e,n){var a=n[qn];a===void 0&&(a=n[qn]=new Set);var l=e+"__bubble";a.has(l)||(ag(n,e,2,!1),a.add(l))}function mf(e,n,a){var l=0;n&&(l|=4),ag(a,e,l,n)}var eo="_reactListening"+Math.random().toString(36).slice(2);function pf(e){if(!e[eo]){e[eo]=!0,le.forEach(function(a){a!=="selectionchange"&&(a2.has(a)||mf(a,!1,e),mf(a,!0,e))});var n=e.nodeType===9?e:e.ownerDocument;n===null||n[eo]||(n[eo]=!0,mf("selectionchange",!1,n))}}function ag(e,n,a,l){switch(wg(n)){case 2:var o=M2;break;case 8:o=D2;break;default:o=Cf}a=o.bind(null,n,a,e),o=void 0,!Hu||n!=="touchstart"&&n!=="touchmove"&&n!=="wheel"||(o=!0),l?o!==void 0?e.addEventListener(n,a,{capture:!0,passive:o}):e.addEventListener(n,a,!0):o!==void 0?e.addEventListener(n,a,{passive:o}):e.addEventListener(n,a,!1)}function gf(e,n,a,l,o){var f=l;if((n&1)===0&&(n&2)===0&&l!==null)e:for(;;){if(l===null)return;var g=l.tag;if(g===3||g===4){var v=l.stateNode.containerInfo;if(v===o)break;if(g===4)for(g=l.return;g!==null;){var T=g.tag;if((T===3||T===4)&&g.stateNode.containerInfo===o)return;g=g.return}for(;v!==null;){if(g=ar(v),g===null)return;if(T=g.tag,T===5||T===6||T===26||T===27){l=f=g;continue e}v=v.parentNode}}l=l.return}fm(function(){var B=f,F=Bu(a),P=[];e:{var j=zm.get(e);if(j!==void 0){var I=ml,he=e;switch(e){case"keypress":if(dl(a)===0)break e;case"keydown":case"keyup":I=W_;break;case"focusin":he="focus",I=Gu;break;case"focusout":he="blur",I=Gu;break;case"beforeblur":case"afterblur":I=Gu;break;case"click":if(a.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":I=mm;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":I=G_;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":I=tE;break;case Um:case Hm:case jm:I=F_;break;case Im:I=rE;break;case"scroll":case"scrollend":I=I_;break;case"wheel":I=iE;break;case"copy":case"cut":case"paste":I=P_;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":I=gm;break;case"toggle":case"beforetoggle":I=lE}var fe=(n&4)!==0,ke=!fe&&(e==="scroll"||e==="scrollend"),M=fe?j!==null?j+"Capture":null:j;fe=[];for(var w=B,D;w!==null;){var V=w;if(D=V.stateNode,V=V.tag,V!==5&&V!==26&&V!==27||D===null||M===null||(V=ki(w,M),V!=null&&fe.push(Ts(w,V,D))),ke)break;w=w.return}0<fe.length&&(j=new I(j,he,null,a,F),P.push({event:j,listeners:fe}))}}if((n&7)===0){e:{if(j=e==="mouseover"||e==="pointerover",I=e==="mouseout"||e==="pointerout",j&&a!==Lu&&(he=a.relatedTarget||a.fromElement)&&(ar(he)||he[At]))break e;if((I||j)&&(j=F.window===F?F:(j=F.ownerDocument)?j.defaultView||j.parentWindow:window,I?(he=a.relatedTarget||a.toElement,I=B,he=he?ar(he):null,he!==null&&(ke=c(he),fe=he.tag,he!==ke||fe!==5&&fe!==27&&fe!==6)&&(he=null)):(I=null,he=B),I!==he)){if(fe=mm,V="onMouseLeave",M="onMouseEnter",w="mouse",(e==="pointerout"||e==="pointerover")&&(fe=gm,V="onPointerLeave",M="onPointerEnter",w="pointer"),ke=I==null?j:Ur(I),D=he==null?j:Ur(he),j=new fe(V,w+"leave",I,a,F),j.target=ke,j.relatedTarget=D,V=null,ar(F)===B&&(fe=new fe(M,w+"enter",he,a,F),fe.target=D,fe.relatedTarget=ke,V=fe),ke=V,I&&he)t:{for(fe=I,M=he,w=0,D=fe;D;D=Ei(D))w++;for(D=0,V=M;V;V=Ei(V))D++;for(;0<w-D;)fe=Ei(fe),w--;for(;0<D-w;)M=Ei(M),D--;for(;w--;){if(fe===M||M!==null&&fe===M.alternate)break t;fe=Ei(fe),M=Ei(M)}fe=null}else fe=null;I!==null&&ig(P,j,I,fe,!1),he!==null&&ke!==null&&ig(P,ke,he,fe,!0)}}e:{if(j=B?Ur(B):window,I=j.nodeName&&j.nodeName.toLowerCase(),I==="select"||I==="input"&&j.type==="file")var ne=Am;else if(Sm(j))if(xm)ne=yE;else{ne=pE;var Se=mE}else I=j.nodeName,!I||I.toLowerCase()!=="input"||j.type!=="checkbox"&&j.type!=="radio"?B&&Du(B.elementType)&&(ne=Am):ne=gE;if(ne&&(ne=ne(e,B))){Tm(P,ne,a,F);break e}Se&&Se(e,j,B),e==="focusout"&&B&&j.type==="number"&&B.memoizedProps.value!=null&&Mu(j,"number",j.value)}switch(Se=B?Ur(B):window,e){case"focusin":(Sm(Se)||Se.contentEditable==="true")&&($a=Se,Yu=B,Qi=null);break;case"focusout":Qi=Yu=$a=null;break;case"mousedown":Xu=!0;break;case"contextmenu":case"mouseup":case"dragend":Xu=!1,Lm(P,a,F);break;case"selectionchange":if(vE)break;case"keydown":case"keyup":Lm(P,a,F)}var oe;if(qu)e:{switch(e){case"compositionstart":var de="onCompositionStart";break e;case"compositionend":de="onCompositionEnd";break e;case"compositionupdate":de="onCompositionUpdate";break e}de=void 0}else Ka?_m(e,a)&&(de="onCompositionEnd"):e==="keydown"&&a.keyCode===229&&(de="onCompositionStart");de&&(ym&&a.locale!=="ko"&&(Ka||de!=="onCompositionStart"?de==="onCompositionEnd"&&Ka&&(oe=dm()):(Hr=F,ju="value"in Hr?Hr.value:Hr.textContent,Ka=!0)),Se=to(B,de),0<Se.length&&(de=new pm(de,e,null,a,F),P.push({event:de,listeners:Se}),oe?de.data=oe:(oe=Em(a),oe!==null&&(de.data=oe)))),(oe=uE?cE(e,a):fE(e,a))&&(de=to(B,"onBeforeInput"),0<de.length&&(Se=new pm("onBeforeInput","beforeinput",null,a,F),P.push({event:Se,listeners:de}),Se.data=oe)),t2(P,e,B,a,F)}rg(P,n)})}function Ts(e,n,a){return{instance:e,listener:n,currentTarget:a}}function to(e,n){for(var a=n+"Capture",l=[];e!==null;){var o=e,f=o.stateNode;if(o=o.tag,o!==5&&o!==26&&o!==27||f===null||(o=ki(e,a),o!=null&&l.unshift(Ts(e,o,f)),o=ki(e,n),o!=null&&l.push(Ts(e,o,f))),e.tag===3)return l;e=e.return}return[]}function Ei(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function ig(e,n,a,l,o){for(var f=n._reactName,g=[];a!==null&&a!==l;){var v=a,T=v.alternate,B=v.stateNode;if(v=v.tag,T!==null&&T===l)break;v!==5&&v!==26&&v!==27||B===null||(T=B,o?(B=ki(a,f),B!=null&&g.unshift(Ts(a,B,T))):o||(B=ki(a,f),B!=null&&g.push(Ts(a,B,T)))),a=a.return}g.length!==0&&e.push({event:n,listeners:g})}var i2=/\r\n?/g,s2=/\u0000|\uFFFD/g;function sg(e){return(typeof e=="string"?e:""+e).replace(i2,`
49
+ `).replace(s2,"")}function lg(e,n){return n=sg(n),sg(e)===n}function no(){}function Ge(e,n,a,l,o,f){switch(a){case"children":typeof l=="string"?n==="body"||n==="textarea"&&l===""||Xa(e,l):(typeof l=="number"||typeof l=="bigint")&&n!=="body"&&Xa(e,""+l);break;case"className":Fn(e,"class",l);break;case"tabIndex":Fn(e,"tabindex",l);break;case"dir":case"role":case"viewBox":case"width":case"height":Fn(e,a,l);break;case"style":um(e,l,f);break;case"data":if(n!=="object"){Fn(e,"data",l);break}case"src":case"href":if(l===""&&(n!=="a"||a!=="href")){e.removeAttribute(a);break}if(l==null||typeof l=="function"||typeof l=="symbol"||typeof l=="boolean"){e.removeAttribute(a);break}l=cl(""+l),e.setAttribute(a,l);break;case"action":case"formAction":if(typeof l=="function"){e.setAttribute(a,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof f=="function"&&(a==="formAction"?(n!=="input"&&Ge(e,n,"name",o.name,o,null),Ge(e,n,"formEncType",o.formEncType,o,null),Ge(e,n,"formMethod",o.formMethod,o,null),Ge(e,n,"formTarget",o.formTarget,o,null)):(Ge(e,n,"encType",o.encType,o,null),Ge(e,n,"method",o.method,o,null),Ge(e,n,"target",o.target,o,null)));if(l==null||typeof l=="symbol"||typeof l=="boolean"){e.removeAttribute(a);break}l=cl(""+l),e.setAttribute(a,l);break;case"onClick":l!=null&&(e.onclick=no);break;case"onScroll":l!=null&&Oe("scroll",e);break;case"onScrollEnd":l!=null&&Oe("scrollend",e);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(s(61));if(a=l.__html,a!=null){if(o.children!=null)throw Error(s(60));e.innerHTML=a}}break;case"multiple":e.multiple=l&&typeof l!="function"&&typeof l!="symbol";break;case"muted":e.muted=l&&typeof l!="function"&&typeof l!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(l==null||typeof l=="function"||typeof l=="boolean"||typeof l=="symbol"){e.removeAttribute("xlink:href");break}a=cl(""+l),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",a);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":l!=null&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(a,""+l):e.removeAttribute(a);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":l&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(a,""):e.removeAttribute(a);break;case"capture":case"download":l===!0?e.setAttribute(a,""):l!==!1&&l!=null&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(a,l):e.removeAttribute(a);break;case"cols":case"rows":case"size":case"span":l!=null&&typeof l!="function"&&typeof l!="symbol"&&!isNaN(l)&&1<=l?e.setAttribute(a,l):e.removeAttribute(a);break;case"rowSpan":case"start":l==null||typeof l=="function"||typeof l=="symbol"||isNaN(l)?e.removeAttribute(a):e.setAttribute(a,l);break;case"popover":Oe("beforetoggle",e),Oe("toggle",e),Pt(e,"popover",l);break;case"xlinkActuate":$t(e,"http://www.w3.org/1999/xlink","xlink:actuate",l);break;case"xlinkArcrole":$t(e,"http://www.w3.org/1999/xlink","xlink:arcrole",l);break;case"xlinkRole":$t(e,"http://www.w3.org/1999/xlink","xlink:role",l);break;case"xlinkShow":$t(e,"http://www.w3.org/1999/xlink","xlink:show",l);break;case"xlinkTitle":$t(e,"http://www.w3.org/1999/xlink","xlink:title",l);break;case"xlinkType":$t(e,"http://www.w3.org/1999/xlink","xlink:type",l);break;case"xmlBase":$t(e,"http://www.w3.org/XML/1998/namespace","xml:base",l);break;case"xmlLang":$t(e,"http://www.w3.org/XML/1998/namespace","xml:lang",l);break;case"xmlSpace":$t(e,"http://www.w3.org/XML/1998/namespace","xml:space",l);break;case"is":Pt(e,"is",l);break;case"innerText":case"textContent":break;default:(!(2<a.length)||a[0]!=="o"&&a[0]!=="O"||a[1]!=="n"&&a[1]!=="N")&&(a=H_.get(a)||a,Pt(e,a,l))}}function yf(e,n,a,l,o,f){switch(a){case"style":um(e,l,f);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(s(61));if(a=l.__html,a!=null){if(o.children!=null)throw Error(s(60));e.innerHTML=a}}break;case"children":typeof l=="string"?Xa(e,l):(typeof l=="number"||typeof l=="bigint")&&Xa(e,""+l);break;case"onScroll":l!=null&&Oe("scroll",e);break;case"onScrollEnd":l!=null&&Oe("scrollend",e);break;case"onClick":l!=null&&(e.onclick=no);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!N.hasOwnProperty(a))e:{if(a[0]==="o"&&a[1]==="n"&&(o=a.endsWith("Capture"),n=a.slice(2,o?a.length-7:void 0),f=e[Dt]||null,f=f!=null?f[a]:null,typeof f=="function"&&e.removeEventListener(n,f,o),typeof l=="function")){typeof f!="function"&&f!==null&&(a in e?e[a]=null:e.hasAttribute(a)&&e.removeAttribute(a)),e.addEventListener(n,l,o);break e}a in e?e[a]=l:l===!0?e.setAttribute(a,""):Pt(e,a,l)}}}function Rt(e,n,a){switch(n){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Oe("error",e),Oe("load",e);var l=!1,o=!1,f;for(f in a)if(a.hasOwnProperty(f)){var g=a[f];if(g!=null)switch(f){case"src":l=!0;break;case"srcSet":o=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(s(137,n));default:Ge(e,n,f,g,a,null)}}o&&Ge(e,n,"srcSet",a.srcSet,a,null),l&&Ge(e,n,"src",a.src,a,null);return;case"input":Oe("invalid",e);var v=f=g=o=null,T=null,B=null;for(l in a)if(a.hasOwnProperty(l)){var F=a[l];if(F!=null)switch(l){case"name":o=F;break;case"type":g=F;break;case"checked":T=F;break;case"defaultChecked":B=F;break;case"value":f=F;break;case"defaultValue":v=F;break;case"children":case"dangerouslySetInnerHTML":if(F!=null)throw Error(s(137,n));break;default:Ge(e,n,l,F,a,null)}}im(e,f,v,T,B,g,o,!1),ol(e);return;case"select":Oe("invalid",e),l=g=f=null;for(o in a)if(a.hasOwnProperty(o)&&(v=a[o],v!=null))switch(o){case"value":f=v;break;case"defaultValue":g=v;break;case"multiple":l=v;default:Ge(e,n,o,v,a,null)}n=f,a=g,e.multiple=!!l,n!=null?Ya(e,!!l,n,!1):a!=null&&Ya(e,!!l,a,!0);return;case"textarea":Oe("invalid",e),f=o=l=null;for(g in a)if(a.hasOwnProperty(g)&&(v=a[g],v!=null))switch(g){case"value":l=v;break;case"defaultValue":o=v;break;case"children":f=v;break;case"dangerouslySetInnerHTML":if(v!=null)throw Error(s(91));break;default:Ge(e,n,g,v,a,null)}lm(e,l,o,f),ol(e);return;case"option":for(T in a)if(a.hasOwnProperty(T)&&(l=a[T],l!=null))switch(T){case"selected":e.selected=l&&typeof l!="function"&&typeof l!="symbol";break;default:Ge(e,n,T,l,a,null)}return;case"dialog":Oe("beforetoggle",e),Oe("toggle",e),Oe("cancel",e),Oe("close",e);break;case"iframe":case"object":Oe("load",e);break;case"video":case"audio":for(l=0;l<Ss.length;l++)Oe(Ss[l],e);break;case"image":Oe("error",e),Oe("load",e);break;case"details":Oe("toggle",e);break;case"embed":case"source":case"link":Oe("error",e),Oe("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(B in a)if(a.hasOwnProperty(B)&&(l=a[B],l!=null))switch(B){case"children":case"dangerouslySetInnerHTML":throw Error(s(137,n));default:Ge(e,n,B,l,a,null)}return;default:if(Du(n)){for(F in a)a.hasOwnProperty(F)&&(l=a[F],l!==void 0&&yf(e,n,F,l,a,void 0));return}}for(v in a)a.hasOwnProperty(v)&&(l=a[v],l!=null&&Ge(e,n,v,l,a,null))}function l2(e,n,a,l){switch(n){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var o=null,f=null,g=null,v=null,T=null,B=null,F=null;for(I in a){var P=a[I];if(a.hasOwnProperty(I)&&P!=null)switch(I){case"checked":break;case"value":break;case"defaultValue":T=P;default:l.hasOwnProperty(I)||Ge(e,n,I,null,l,P)}}for(var j in l){var I=l[j];if(P=a[j],l.hasOwnProperty(j)&&(I!=null||P!=null))switch(j){case"type":f=I;break;case"name":o=I;break;case"checked":B=I;break;case"defaultChecked":F=I;break;case"value":g=I;break;case"defaultValue":v=I;break;case"children":case"dangerouslySetInnerHTML":if(I!=null)throw Error(s(137,n));break;default:I!==P&&Ge(e,n,j,I,l,P)}}Nu(e,g,v,T,B,F,f,o);return;case"select":I=g=v=j=null;for(f in a)if(T=a[f],a.hasOwnProperty(f)&&T!=null)switch(f){case"value":break;case"multiple":I=T;default:l.hasOwnProperty(f)||Ge(e,n,f,null,l,T)}for(o in l)if(f=l[o],T=a[o],l.hasOwnProperty(o)&&(f!=null||T!=null))switch(o){case"value":j=f;break;case"defaultValue":v=f;break;case"multiple":g=f;default:f!==T&&Ge(e,n,o,f,l,T)}n=v,a=g,l=I,j!=null?Ya(e,!!a,j,!1):!!l!=!!a&&(n!=null?Ya(e,!!a,n,!0):Ya(e,!!a,a?[]:"",!1));return;case"textarea":I=j=null;for(v in a)if(o=a[v],a.hasOwnProperty(v)&&o!=null&&!l.hasOwnProperty(v))switch(v){case"value":break;case"children":break;default:Ge(e,n,v,null,l,o)}for(g in l)if(o=l[g],f=a[g],l.hasOwnProperty(g)&&(o!=null||f!=null))switch(g){case"value":j=o;break;case"defaultValue":I=o;break;case"children":break;case"dangerouslySetInnerHTML":if(o!=null)throw Error(s(91));break;default:o!==f&&Ge(e,n,g,o,l,f)}sm(e,j,I);return;case"option":for(var he in a)if(j=a[he],a.hasOwnProperty(he)&&j!=null&&!l.hasOwnProperty(he))switch(he){case"selected":e.selected=!1;break;default:Ge(e,n,he,null,l,j)}for(T in l)if(j=l[T],I=a[T],l.hasOwnProperty(T)&&j!==I&&(j!=null||I!=null))switch(T){case"selected":e.selected=j&&typeof j!="function"&&typeof j!="symbol";break;default:Ge(e,n,T,j,l,I)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var fe in a)j=a[fe],a.hasOwnProperty(fe)&&j!=null&&!l.hasOwnProperty(fe)&&Ge(e,n,fe,null,l,j);for(B in l)if(j=l[B],I=a[B],l.hasOwnProperty(B)&&j!==I&&(j!=null||I!=null))switch(B){case"children":case"dangerouslySetInnerHTML":if(j!=null)throw Error(s(137,n));break;default:Ge(e,n,B,j,l,I)}return;default:if(Du(n)){for(var ke in a)j=a[ke],a.hasOwnProperty(ke)&&j!==void 0&&!l.hasOwnProperty(ke)&&yf(e,n,ke,void 0,l,j);for(F in l)j=l[F],I=a[F],!l.hasOwnProperty(F)||j===I||j===void 0&&I===void 0||yf(e,n,F,j,l,I);return}}for(var M in a)j=a[M],a.hasOwnProperty(M)&&j!=null&&!l.hasOwnProperty(M)&&Ge(e,n,M,null,l,j);for(P in l)j=l[P],I=a[P],!l.hasOwnProperty(P)||j===I||j==null&&I==null||Ge(e,n,P,j,l,I)}var bf=null,vf=null;function ro(e){return e.nodeType===9?e:e.ownerDocument}function og(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function ug(e,n){if(e===0)switch(n){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&n==="foreignObject"?0:e}function _f(e,n){return e==="textarea"||e==="noscript"||typeof n.children=="string"||typeof n.children=="number"||typeof n.children=="bigint"||typeof n.dangerouslySetInnerHTML=="object"&&n.dangerouslySetInnerHTML!==null&&n.dangerouslySetInnerHTML.__html!=null}var Ef=null;function o2(){var e=window.event;return e&&e.type==="popstate"?e===Ef?!1:(Ef=e,!0):(Ef=null,!1)}var cg=typeof setTimeout=="function"?setTimeout:void 0,u2=typeof clearTimeout=="function"?clearTimeout:void 0,fg=typeof Promise=="function"?Promise:void 0,c2=typeof queueMicrotask=="function"?queueMicrotask:typeof fg<"u"?function(e){return fg.resolve(null).then(e).catch(f2)}:cg;function f2(e){setTimeout(function(){throw e})}function Wr(e){return e==="head"}function dg(e,n){var a=n,l=0,o=0;do{var f=a.nextSibling;if(e.removeChild(a),f&&f.nodeType===8)if(a=f.data,a==="/$"){if(0<l&&8>l){a=l;var g=e.ownerDocument;if(a&1&&As(g.documentElement),a&2&&As(g.body),a&4)for(a=g.head,As(a),g=a.firstChild;g;){var v=g.nextSibling,T=g.nodeName;g[Br]||T==="SCRIPT"||T==="STYLE"||T==="LINK"&&g.rel.toLowerCase()==="stylesheet"||a.removeChild(g),g=v}}if(o===0){e.removeChild(f),Ds(n);return}o--}else a==="$"||a==="$?"||a==="$!"?o++:l=a.charCodeAt(0)-48;else l=0;a=f}while(a);Ds(n)}function Sf(e){var n=e.firstChild;for(n&&n.nodeType===10&&(n=n.nextSibling);n;){var a=n;switch(n=n.nextSibling,a.nodeName){case"HTML":case"HEAD":case"BODY":Sf(a),Kt(a);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(a.rel.toLowerCase()==="stylesheet")continue}e.removeChild(a)}}function d2(e,n,a,l){for(;e.nodeType===1;){var o=a;if(e.nodeName.toLowerCase()!==n.toLowerCase()){if(!l&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(l){if(!e[Br])switch(n){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(f=e.getAttribute("rel"),f==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(f!==o.rel||e.getAttribute("href")!==(o.href==null||o.href===""?null:o.href)||e.getAttribute("crossorigin")!==(o.crossOrigin==null?null:o.crossOrigin)||e.getAttribute("title")!==(o.title==null?null:o.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(f=e.getAttribute("src"),(f!==(o.src==null?null:o.src)||e.getAttribute("type")!==(o.type==null?null:o.type)||e.getAttribute("crossorigin")!==(o.crossOrigin==null?null:o.crossOrigin))&&f&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(n==="input"&&e.type==="hidden"){var f=o.name==null?null:""+o.name;if(o.type==="hidden"&&e.getAttribute("name")===f)return e}else return e;if(e=Dn(e.nextSibling),e===null)break}return null}function h2(e,n,a){if(n==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!a||(e=Dn(e.nextSibling),e===null))return null;return e}function Tf(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState==="complete"}function m2(e,n){var a=e.ownerDocument;if(e.data!=="$?"||a.readyState==="complete")n();else{var l=function(){n(),a.removeEventListener("DOMContentLoaded",l)};a.addEventListener("DOMContentLoaded",l),e._reactRetry=l}}function Dn(e){for(;e!=null;e=e.nextSibling){var n=e.nodeType;if(n===1||n===3)break;if(n===8){if(n=e.data,n==="$"||n==="$!"||n==="$?"||n==="F!"||n==="F")break;if(n==="/$")return null}}return e}var Af=null;function hg(e){e=e.previousSibling;for(var n=0;e;){if(e.nodeType===8){var a=e.data;if(a==="$"||a==="$!"||a==="$?"){if(n===0)return e;n--}else a==="/$"&&n++}e=e.previousSibling}return null}function mg(e,n,a){switch(n=ro(a),e){case"html":if(e=n.documentElement,!e)throw Error(s(452));return e;case"head":if(e=n.head,!e)throw Error(s(453));return e;case"body":if(e=n.body,!e)throw Error(s(454));return e;default:throw Error(s(451))}}function As(e){for(var n=e.attributes;n.length;)e.removeAttributeNode(n[0]);Kt(e)}var En=new Map,pg=new Set;function ao(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var Er=K.d;K.d={f:p2,r:g2,D:y2,C:b2,L:v2,m:_2,X:S2,S:E2,M:T2};function p2(){var e=Er.f(),n=Ql();return e||n}function g2(e){var n=ir(e);n!==null&&n.tag===5&&n.type==="form"?U0(n):Er.r(e)}var Si=typeof document>"u"?null:document;function gg(e,n,a){var l=Si;if(l&&typeof n=="string"&&n){var o=mn(n);o='link[rel="'+e+'"][href="'+o+'"]',typeof a=="string"&&(o+='[crossorigin="'+a+'"]'),pg.has(o)||(pg.add(o),e={rel:e,crossOrigin:a,href:n},l.querySelector(o)===null&&(n=l.createElement("link"),Rt(n,"link",e),lt(n),l.head.appendChild(n)))}}function y2(e){Er.D(e),gg("dns-prefetch",e,null)}function b2(e,n){Er.C(e,n),gg("preconnect",e,n)}function v2(e,n,a){Er.L(e,n,a);var l=Si;if(l&&e&&n){var o='link[rel="preload"][as="'+mn(n)+'"]';n==="image"&&a&&a.imageSrcSet?(o+='[imagesrcset="'+mn(a.imageSrcSet)+'"]',typeof a.imageSizes=="string"&&(o+='[imagesizes="'+mn(a.imageSizes)+'"]')):o+='[href="'+mn(e)+'"]';var f=o;switch(n){case"style":f=Ti(e);break;case"script":f=Ai(e)}En.has(f)||(e=b({rel:"preload",href:n==="image"&&a&&a.imageSrcSet?void 0:e,as:n},a),En.set(f,e),l.querySelector(o)!==null||n==="style"&&l.querySelector(xs(f))||n==="script"&&l.querySelector(Os(f))||(n=l.createElement("link"),Rt(n,"link",e),lt(n),l.head.appendChild(n)))}}function _2(e,n){Er.m(e,n);var a=Si;if(a&&e){var l=n&&typeof n.as=="string"?n.as:"script",o='link[rel="modulepreload"][as="'+mn(l)+'"][href="'+mn(e)+'"]',f=o;switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":f=Ai(e)}if(!En.has(f)&&(e=b({rel:"modulepreload",href:e},n),En.set(f,e),a.querySelector(o)===null)){switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(a.querySelector(Os(f)))return}l=a.createElement("link"),Rt(l,"link",e),lt(l),a.head.appendChild(l)}}}function E2(e,n,a){Er.S(e,n,a);var l=Si;if(l&&e){var o=sr(l).hoistableStyles,f=Ti(e);n=n||"default";var g=o.get(f);if(!g){var v={loading:0,preload:null};if(g=l.querySelector(xs(f)))v.loading=5;else{e=b({rel:"stylesheet",href:e,"data-precedence":n},a),(a=En.get(f))&&xf(e,a);var T=g=l.createElement("link");lt(T),Rt(T,"link",e),T._p=new Promise(function(B,F){T.onload=B,T.onerror=F}),T.addEventListener("load",function(){v.loading|=1}),T.addEventListener("error",function(){v.loading|=2}),v.loading|=4,io(g,n,l)}g={type:"stylesheet",instance:g,count:1,state:v},o.set(f,g)}}}function S2(e,n){Er.X(e,n);var a=Si;if(a&&e){var l=sr(a).hoistableScripts,o=Ai(e),f=l.get(o);f||(f=a.querySelector(Os(o)),f||(e=b({src:e,async:!0},n),(n=En.get(o))&&Of(e,n),f=a.createElement("script"),lt(f),Rt(f,"link",e),a.head.appendChild(f)),f={type:"script",instance:f,count:1,state:null},l.set(o,f))}}function T2(e,n){Er.M(e,n);var a=Si;if(a&&e){var l=sr(a).hoistableScripts,o=Ai(e),f=l.get(o);f||(f=a.querySelector(Os(o)),f||(e=b({src:e,async:!0,type:"module"},n),(n=En.get(o))&&Of(e,n),f=a.createElement("script"),lt(f),Rt(f,"link",e),a.head.appendChild(f)),f={type:"script",instance:f,count:1,state:null},l.set(o,f))}}function yg(e,n,a,l){var o=(o=ue.current)?ao(o):null;if(!o)throw Error(s(446));switch(e){case"meta":case"title":return null;case"style":return typeof a.precedence=="string"&&typeof a.href=="string"?(n=Ti(a.href),a=sr(o).hoistableStyles,l=a.get(n),l||(l={type:"style",instance:null,count:0,state:null},a.set(n,l)),l):{type:"void",instance:null,count:0,state:null};case"link":if(a.rel==="stylesheet"&&typeof a.href=="string"&&typeof a.precedence=="string"){e=Ti(a.href);var f=sr(o).hoistableStyles,g=f.get(e);if(g||(o=o.ownerDocument||o,g={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},f.set(e,g),(f=o.querySelector(xs(e)))&&!f._p&&(g.instance=f,g.state.loading=5),En.has(e)||(a={rel:"preload",as:"style",href:a.href,crossOrigin:a.crossOrigin,integrity:a.integrity,media:a.media,hrefLang:a.hrefLang,referrerPolicy:a.referrerPolicy},En.set(e,a),f||A2(o,e,a,g.state))),n&&l===null)throw Error(s(528,""));return g}if(n&&l!==null)throw Error(s(529,""));return null;case"script":return n=a.async,a=a.src,typeof a=="string"&&n&&typeof n!="function"&&typeof n!="symbol"?(n=Ai(a),a=sr(o).hoistableScripts,l=a.get(n),l||(l={type:"script",instance:null,count:0,state:null},a.set(n,l)),l):{type:"void",instance:null,count:0,state:null};default:throw Error(s(444,e))}}function Ti(e){return'href="'+mn(e)+'"'}function xs(e){return'link[rel="stylesheet"]['+e+"]"}function bg(e){return b({},e,{"data-precedence":e.precedence,precedence:null})}function A2(e,n,a,l){e.querySelector('link[rel="preload"][as="style"]['+n+"]")?l.loading=1:(n=e.createElement("link"),l.preload=n,n.addEventListener("load",function(){return l.loading|=1}),n.addEventListener("error",function(){return l.loading|=2}),Rt(n,"link",a),lt(n),e.head.appendChild(n))}function Ai(e){return'[src="'+mn(e)+'"]'}function Os(e){return"script[async]"+e}function vg(e,n,a){if(n.count++,n.instance===null)switch(n.type){case"style":var l=e.querySelector('style[data-href~="'+mn(a.href)+'"]');if(l)return n.instance=l,lt(l),l;var o=b({},a,{"data-href":a.href,"data-precedence":a.precedence,href:null,precedence:null});return l=(e.ownerDocument||e).createElement("style"),lt(l),Rt(l,"style",o),io(l,a.precedence,e),n.instance=l;case"stylesheet":o=Ti(a.href);var f=e.querySelector(xs(o));if(f)return n.state.loading|=4,n.instance=f,lt(f),f;l=bg(a),(o=En.get(o))&&xf(l,o),f=(e.ownerDocument||e).createElement("link"),lt(f);var g=f;return g._p=new Promise(function(v,T){g.onload=v,g.onerror=T}),Rt(f,"link",l),n.state.loading|=4,io(f,a.precedence,e),n.instance=f;case"script":return f=Ai(a.src),(o=e.querySelector(Os(f)))?(n.instance=o,lt(o),o):(l=a,(o=En.get(f))&&(l=b({},a),Of(l,o)),e=e.ownerDocument||e,o=e.createElement("script"),lt(o),Rt(o,"link",l),e.head.appendChild(o),n.instance=o);case"void":return null;default:throw Error(s(443,n.type))}else n.type==="stylesheet"&&(n.state.loading&4)===0&&(l=n.instance,n.state.loading|=4,io(l,a.precedence,e));return n.instance}function io(e,n,a){for(var l=a.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),o=l.length?l[l.length-1]:null,f=o,g=0;g<l.length;g++){var v=l[g];if(v.dataset.precedence===n)f=v;else if(f!==o)break}f?f.parentNode.insertBefore(e,f.nextSibling):(n=a.nodeType===9?a.head:a,n.insertBefore(e,n.firstChild))}function xf(e,n){e.crossOrigin==null&&(e.crossOrigin=n.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=n.referrerPolicy),e.title==null&&(e.title=n.title)}function Of(e,n){e.crossOrigin==null&&(e.crossOrigin=n.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=n.referrerPolicy),e.integrity==null&&(e.integrity=n.integrity)}var so=null;function _g(e,n,a){if(so===null){var l=new Map,o=so=new Map;o.set(a,l)}else o=so,l=o.get(a),l||(l=new Map,o.set(a,l));if(l.has(e))return l;for(l.set(e,null),a=a.getElementsByTagName(e),o=0;o<a.length;o++){var f=a[o];if(!(f[Br]||f[ht]||e==="link"&&f.getAttribute("rel")==="stylesheet")&&f.namespaceURI!=="http://www.w3.org/2000/svg"){var g=f.getAttribute(n)||"";g=e+g;var v=l.get(g);v?v.push(f):l.set(g,[f])}}return l}function Eg(e,n,a){e=e.ownerDocument||e,e.head.insertBefore(a,n==="title"?e.querySelector("head > title"):null)}function x2(e,n,a){if(a===1||n.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof n.precedence!="string"||typeof n.href!="string"||n.href==="")break;return!0;case"link":if(typeof n.rel!="string"||typeof n.href!="string"||n.href===""||n.onLoad||n.onError)break;switch(n.rel){case"stylesheet":return e=n.disabled,typeof n.precedence=="string"&&e==null;default:return!0}case"script":if(n.async&&typeof n.async!="function"&&typeof n.async!="symbol"&&!n.onLoad&&!n.onError&&n.src&&typeof n.src=="string")return!0}return!1}function Sg(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}var Rs=null;function O2(){}function R2(e,n,a){if(Rs===null)throw Error(s(475));var l=Rs;if(n.type==="stylesheet"&&(typeof a.media!="string"||matchMedia(a.media).matches!==!1)&&(n.state.loading&4)===0){if(n.instance===null){var o=Ti(a.href),f=e.querySelector(xs(o));if(f){e=f._p,e!==null&&typeof e=="object"&&typeof e.then=="function"&&(l.count++,l=lo.bind(l),e.then(l,l)),n.state.loading|=4,n.instance=f,lt(f);return}f=e.ownerDocument||e,a=bg(a),(o=En.get(o))&&xf(a,o),f=f.createElement("link"),lt(f);var g=f;g._p=new Promise(function(v,T){g.onload=v,g.onerror=T}),Rt(f,"link",a),n.instance=f}l.stylesheets===null&&(l.stylesheets=new Map),l.stylesheets.set(n,e),(e=n.state.preload)&&(n.state.loading&3)===0&&(l.count++,n=lo.bind(l),e.addEventListener("load",n),e.addEventListener("error",n))}}function w2(){if(Rs===null)throw Error(s(475));var e=Rs;return e.stylesheets&&e.count===0&&Rf(e,e.stylesheets),0<e.count?function(n){var a=setTimeout(function(){if(e.stylesheets&&Rf(e,e.stylesheets),e.unsuspend){var l=e.unsuspend;e.unsuspend=null,l()}},6e4);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(a)}}:null}function lo(){if(this.count--,this.count===0){if(this.stylesheets)Rf(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var oo=null;function Rf(e,n){e.stylesheets=null,e.unsuspend!==null&&(e.count++,oo=new Map,n.forEach(C2,e),oo=null,lo.call(e))}function C2(e,n){if(!(n.state.loading&4)){var a=oo.get(e);if(a)var l=a.get(null);else{a=new Map,oo.set(e,a);for(var o=e.querySelectorAll("link[data-precedence],style[data-precedence]"),f=0;f<o.length;f++){var g=o[f];(g.nodeName==="LINK"||g.getAttribute("media")!=="not all")&&(a.set(g.dataset.precedence,g),l=g)}l&&a.set(null,l)}o=n.instance,g=o.getAttribute("data-precedence"),f=a.get(g)||l,f===l&&a.set(null,o),a.set(g,o),this.count++,l=lo.bind(this),o.addEventListener("load",l),o.addEventListener("error",l),f?f.parentNode.insertBefore(o,f.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(o,e.firstChild)),n.state.loading|=4}}var ws={$$typeof:S,Provider:null,Consumer:null,_currentValue:ee,_currentValue2:ee,_threadCount:0};function N2(e,n,a,l,o,f,g,v){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Hi(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Hi(0),this.hiddenUpdates=Hi(null),this.identifierPrefix=l,this.onUncaughtError=o,this.onCaughtError=f,this.onRecoverableError=g,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=v,this.incompleteTransitions=new Map}function Tg(e,n,a,l,o,f,g,v,T,B,F,P){return e=new N2(e,n,a,g,v,T,B,P),n=1,f===!0&&(n|=24),f=Jt(3,null,null,n),e.current=f,f.stateNode=e,n=lc(),n.refCount++,e.pooledCache=n,n.refCount++,f.memoizedState={element:l,isDehydrated:a,cache:n},fc(f),e}function Ag(e){return e?(e=ti,e):ti}function xg(e,n,a,l,o,f){o=Ag(o),l.context===null?l.context=o:l.pendingContext=o,l=zr(n),l.payload={element:a},f=f===void 0?null:f,f!==null&&(l.callback=f),a=Gr(e,l,n),a!==null&&(an(a,e,n),as(a,e,n))}function Og(e,n){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var a=e.retryLane;e.retryLane=a!==0&&a<n?a:n}}function wf(e,n){Og(e,n),(e=e.alternate)&&Og(e,n)}function Rg(e){if(e.tag===13){var n=ei(e,67108864);n!==null&&an(n,e,67108864),wf(e,67108864)}}var uo=!0;function M2(e,n,a,l){var o=z.T;z.T=null;var f=K.p;try{K.p=2,Cf(e,n,a,l)}finally{K.p=f,z.T=o}}function D2(e,n,a,l){var o=z.T;z.T=null;var f=K.p;try{K.p=8,Cf(e,n,a,l)}finally{K.p=f,z.T=o}}function Cf(e,n,a,l){if(uo){var o=Nf(l);if(o===null)gf(e,n,l,co,a),Cg(e,l);else if(B2(o,e,n,a,l))l.stopPropagation();else if(Cg(e,l),n&4&&-1<L2.indexOf(e)){for(;o!==null;){var f=ir(o);if(f!==null)switch(f.tag){case 3:if(f=f.stateNode,f.current.memoizedState.isDehydrated){var g=Vt(f.pendingLanes);if(g!==0){var v=f;for(v.pendingLanes|=2,v.entangledLanes|=2;g;){var T=1<<31-Mt(g);v.entanglements[1]|=T,g&=~T}Zn(f),(He&6)===0&&(Xl=Tt()+500,Es(0))}}break;case 13:v=ei(f,2),v!==null&&an(v,f,2),Ql(),wf(f,2)}if(f=Nf(l),f===null&&gf(e,n,l,co,a),f===o)break;o=f}o!==null&&l.stopPropagation()}else gf(e,n,l,null,a)}}function Nf(e){return e=Bu(e),Mf(e)}var co=null;function Mf(e){if(co=null,e=ar(e),e!==null){var n=c(e);if(n===null)e=null;else{var a=n.tag;if(a===13){if(e=d(n),e!==null)return e;e=null}else if(a===3){if(n.stateNode.current.memoizedState.isDehydrated)return n.tag===3?n.stateNode.containerInfo:null;e=null}else n!==e&&(e=null)}}return co=e,null}function wg(e){switch(e){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(qa()){case ua:return 2;case Bi:return 8;case ca:case xu:return 32;case Fa:return 268435456;default:return 32}default:return 32}}var Df=!1,Jr=null,ea=null,ta=null,Cs=new Map,Ns=new Map,na=[],L2="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function Cg(e,n){switch(e){case"focusin":case"focusout":Jr=null;break;case"dragenter":case"dragleave":ea=null;break;case"mouseover":case"mouseout":ta=null;break;case"pointerover":case"pointerout":Cs.delete(n.pointerId);break;case"gotpointercapture":case"lostpointercapture":Ns.delete(n.pointerId)}}function Ms(e,n,a,l,o,f){return e===null||e.nativeEvent!==f?(e={blockedOn:n,domEventName:a,eventSystemFlags:l,nativeEvent:f,targetContainers:[o]},n!==null&&(n=ir(n),n!==null&&Rg(n)),e):(e.eventSystemFlags|=l,n=e.targetContainers,o!==null&&n.indexOf(o)===-1&&n.push(o),e)}function B2(e,n,a,l,o){switch(n){case"focusin":return Jr=Ms(Jr,e,n,a,l,o),!0;case"dragenter":return ea=Ms(ea,e,n,a,l,o),!0;case"mouseover":return ta=Ms(ta,e,n,a,l,o),!0;case"pointerover":var f=o.pointerId;return Cs.set(f,Ms(Cs.get(f)||null,e,n,a,l,o)),!0;case"gotpointercapture":return f=o.pointerId,Ns.set(f,Ms(Ns.get(f)||null,e,n,a,l,o)),!0}return!1}function Ng(e){var n=ar(e.target);if(n!==null){var a=c(n);if(a!==null){if(n=a.tag,n===13){if(n=d(a),n!==null){e.blockedOn=n,zi(e.priority,function(){if(a.tag===13){var l=rn();l=kn(l);var o=ei(a,l);o!==null&&an(o,a,l),wf(a,l)}});return}}else if(n===3&&a.stateNode.current.memoizedState.isDehydrated){e.blockedOn=a.tag===3?a.stateNode.containerInfo:null;return}}}e.blockedOn=null}function fo(e){if(e.blockedOn!==null)return!1;for(var n=e.targetContainers;0<n.length;){var a=Nf(e.nativeEvent);if(a===null){a=e.nativeEvent;var l=new a.constructor(a.type,a);Lu=l,a.target.dispatchEvent(l),Lu=null}else return n=ir(a),n!==null&&Rg(n),e.blockedOn=a,!1;n.shift()}return!0}function Mg(e,n,a){fo(e)&&a.delete(n)}function U2(){Df=!1,Jr!==null&&fo(Jr)&&(Jr=null),ea!==null&&fo(ea)&&(ea=null),ta!==null&&fo(ta)&&(ta=null),Cs.forEach(Mg),Ns.forEach(Mg)}function ho(e,n){e.blockedOn===n&&(e.blockedOn=null,Df||(Df=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,U2)))}var mo=null;function Dg(e){mo!==e&&(mo=e,t.unstable_scheduleCallback(t.unstable_NormalPriority,function(){mo===e&&(mo=null);for(var n=0;n<e.length;n+=3){var a=e[n],l=e[n+1],o=e[n+2];if(typeof l!="function"){if(Mf(l||a)===null)continue;break}var f=ir(a);f!==null&&(e.splice(n,3),n-=3,Nc(f,{pending:!0,data:o,method:a.method,action:l},l,o))}}))}function Ds(e){function n(T){return ho(T,e)}Jr!==null&&ho(Jr,e),ea!==null&&ho(ea,e),ta!==null&&ho(ta,e),Cs.forEach(n),Ns.forEach(n);for(var a=0;a<na.length;a++){var l=na[a];l.blockedOn===e&&(l.blockedOn=null)}for(;0<na.length&&(a=na[0],a.blockedOn===null);)Ng(a),a.blockedOn===null&&na.shift();if(a=(e.ownerDocument||e).$$reactFormReplay,a!=null)for(l=0;l<a.length;l+=3){var o=a[l],f=a[l+1],g=o[Dt]||null;if(typeof f=="function")g||Dg(a);else if(g){var v=null;if(f&&f.hasAttribute("formAction")){if(o=f,g=f[Dt]||null)v=g.formAction;else if(Mf(o)!==null)continue}else v=g.action;typeof v=="function"?a[l+1]=v:(a.splice(l,3),l-=3),Dg(a)}}}function Lf(e){this._internalRoot=e}po.prototype.render=Lf.prototype.render=function(e){var n=this._internalRoot;if(n===null)throw Error(s(409));var a=n.current,l=rn();xg(a,l,e,n,null,null)},po.prototype.unmount=Lf.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var n=e.containerInfo;xg(e.current,2,null,e,null,null),Ql(),n[At]=null}};function po(e){this._internalRoot=e}po.prototype.unstable_scheduleHydration=function(e){if(e){var n=Ii();e={blockedOn:null,target:e,priority:n};for(var a=0;a<na.length&&n!==0&&n<na[a].priority;a++);na.splice(a,0,e),a===0&&Ng(e)}};var Lg=r.version;if(Lg!=="19.1.1")throw Error(s(527,Lg,"19.1.1"));K.findDOMNode=function(e){var n=e._reactInternals;if(n===void 0)throw typeof e.render=="function"?Error(s(188)):(e=Object.keys(e).join(","),Error(s(268,e)));return e=m(n),e=e!==null?p(e):null,e=e===null?null:e.stateNode,e};var H2={bundleType:0,version:"19.1.1",rendererPackageName:"react-dom",currentDispatcherRef:z,reconcilerVersion:"19.1.1"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var go=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!go.isDisabled&&go.supportsFiber)try{dn=go.inject(H2),Nt=go}catch{}}return Bs.createRoot=function(e,n){if(!u(e))throw Error(s(299));var a=!1,l="",o=Q0,f=K0,g=$0,v=null;return n!=null&&(n.unstable_strictMode===!0&&(a=!0),n.identifierPrefix!==void 0&&(l=n.identifierPrefix),n.onUncaughtError!==void 0&&(o=n.onUncaughtError),n.onCaughtError!==void 0&&(f=n.onCaughtError),n.onRecoverableError!==void 0&&(g=n.onRecoverableError),n.unstable_transitionCallbacks!==void 0&&(v=n.unstable_transitionCallbacks)),n=Tg(e,1,!1,null,null,a,l,o,f,g,v,null),e[At]=n.current,pf(e),new Lf(n)},Bs.hydrateRoot=function(e,n,a){if(!u(e))throw Error(s(299));var l=!1,o="",f=Q0,g=K0,v=$0,T=null,B=null;return a!=null&&(a.unstable_strictMode===!0&&(l=!0),a.identifierPrefix!==void 0&&(o=a.identifierPrefix),a.onUncaughtError!==void 0&&(f=a.onUncaughtError),a.onCaughtError!==void 0&&(g=a.onCaughtError),a.onRecoverableError!==void 0&&(v=a.onRecoverableError),a.unstable_transitionCallbacks!==void 0&&(T=a.unstable_transitionCallbacks),a.formState!==void 0&&(B=a.formState)),n=Tg(e,1,!0,n,a??null,l,o,f,g,v,T,B),n.context=Ag(null),a=n.current,l=rn(),l=kn(l),o=zr(l),o.callback=null,Gr(a,o,l),a=l,n.current.lanes=a,wn(n,a),Zn(n),e[At]=n.current,pf(e),new po(n)},Bs.version="19.1.1",Bs}var Fg;function Y2(){if(Fg)return Uf.exports;Fg=1;function t(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(r){console.error(r)}}return t(),Uf.exports=P2(),Uf.exports}var X2=Y2(),U=ou();const _1=lu(U);var Gf={exports:{}},kf={};/**
50
50
  * @license React
51
51
  * use-sync-external-store-with-selector.production.js
52
52
  *
@@ -54,71 +54,71 @@ Error generating stack: `+a.message+`
54
54
  *
55
55
  * This source code is licensed under the MIT license found in the
56
56
  * LICENSE file in the root directory of this source tree.
57
- */var Vg;function X2(){if(Vg)return Gf;Vg=1;var t=lu();function r(m,p){return m===p&&(m!==0||1/m===1/p)||m!==m&&p!==p}var i=typeof Object.is=="function"?Object.is:r,s=t.useSyncExternalStore,u=t.useRef,c=t.useEffect,d=t.useMemo,h=t.useDebugValue;return Gf.useSyncExternalStoreWithSelector=function(m,p,b,E,A){var U=u(null);if(U.current===null){var R={hasValue:!1,value:null};U.current=R}else R=U.current;U=d(function(){function G(O){if(!_){if(_=!0,C=O,O=E(O),A!==void 0&&R.hasValue){var Q=R.value;if(A(Q,O))return S=Q}return S=O}if(Q=S,i(C,O))return Q;var W=E(O);return A!==void 0&&A(Q,W)?(C=O,Q):(C=O,S=W)}var _=!1,C,S,H=b===void 0?null:b;return[function(){return G(p())},H===null?void 0:function(){return G(H())}]},[p,b,E,A]);var q=s(m,U[0],U[1]);return c(function(){R.hasValue=!0,R.value=q},[q]),h(q),q},Gf}var Pg;function Z2(){return Pg||(Pg=1,zf.exports=X2()),zf.exports}var Q2=Z2(),K2=B.version.startsWith("19"),$2=Symbol.for(K2?"react.transitional.element":"react.element"),W2=Symbol.for("react.portal"),J2=Symbol.for("react.fragment"),eS=Symbol.for("react.strict_mode"),tS=Symbol.for("react.profiler"),nS=Symbol.for("react.consumer"),rS=Symbol.for("react.context"),E1=Symbol.for("react.forward_ref"),aS=Symbol.for("react.suspense"),iS=Symbol.for("react.suspense_list"),bh=Symbol.for("react.memo"),sS=Symbol.for("react.lazy"),lS=E1,oS=bh;function uS(t){if(typeof t=="object"&&t!==null){const{$$typeof:r}=t;switch(r){case $2:switch(t=t.type,t){case J2:case tS:case eS:case aS:case iS:return t;default:switch(t=t&&t.$$typeof,t){case rS:case E1:case sS:case bh:return t;case nS:return t;default:return r}}case W2:return r}}}function cS(t){return uS(t)===bh}function fS(t,r,i,s,{areStatesEqual:u,areOwnPropsEqual:c,areStatePropsEqual:d}){let h=!1,m,p,b,E,A;function U(C,S){return m=C,p=S,b=t(m,p),E=r(s,p),A=i(b,E,p),h=!0,A}function R(){return b=t(m,p),r.dependsOnOwnProps&&(E=r(s,p)),A=i(b,E,p),A}function q(){return t.dependsOnOwnProps&&(b=t(m,p)),r.dependsOnOwnProps&&(E=r(s,p)),A=i(b,E,p),A}function G(){const C=t(m,p),S=!d(C,b);return b=C,S&&(A=i(b,E,p)),A}function _(C,S){const H=!c(S,p),O=!u(C,m,S,p);return m=C,p=S,H&&O?R():H?q():O?G():A}return function(S,H){return h?_(S,H):U(S,H)}}function dS(t,{initMapStateToProps:r,initMapDispatchToProps:i,initMergeProps:s,...u}){const c=r(t,u),d=i(t,u),h=s(t,u);return fS(c,d,h,t,u)}function hS(t,r){const i={};for(const s in t){const u=t[s];typeof u=="function"&&(i[s]=(...c)=>r(u(...c)))}return i}function kd(t){return function(i){const s=t(i);function u(){return s}return u.dependsOnOwnProps=!1,u}}function Yg(t){return t.dependsOnOwnProps?!!t.dependsOnOwnProps:t.length!==1}function S1(t,r){return function(s,{displayName:u}){const c=function(h,m){return c.dependsOnOwnProps?c.mapToProps(h,m):c.mapToProps(h,void 0)};return c.dependsOnOwnProps=!0,c.mapToProps=function(h,m){c.mapToProps=t,c.dependsOnOwnProps=Yg(t);let p=c(h,m);return typeof p=="function"&&(c.mapToProps=p,c.dependsOnOwnProps=Yg(p),p=c(h,m)),p},c}}function vh(t,r){return(i,s)=>{throw new Error(`Invalid value of type ${typeof t} for ${r} argument when connecting component ${s.wrappedComponentName}.`)}}function mS(t){return t&&typeof t=="object"?kd(r=>hS(t,r)):t?typeof t=="function"?S1(t):vh(t,"mapDispatchToProps"):kd(r=>({dispatch:r}))}function pS(t){return t?typeof t=="function"?S1(t):vh(t,"mapStateToProps"):kd(()=>({}))}function gS(t,r,i){return{...i,...t,...r}}function yS(t){return function(i,{displayName:s,areMergedPropsEqual:u}){let c=!1,d;return function(m,p,b){const E=t(m,p,b);return c?u(E,d)||(d=E):(c=!0,d=E),d}}}function bS(t){return t?typeof t=="function"?yS(t):vh(t,"mergeProps"):()=>gS}function vS(t){t()}function _S(){let t=null,r=null;return{clear(){t=null,r=null},notify(){vS(()=>{let i=t;for(;i;)i.callback(),i=i.next})},get(){const i=[];let s=t;for(;s;)i.push(s),s=s.next;return i},subscribe(i){let s=!0;const u=r={callback:i,next:null,prev:r};return u.prev?u.prev.next=u:t=u,function(){!s||t===null||(s=!1,u.next?u.next.prev=u.prev:r=u.prev,u.prev?u.prev.next=u.next:t=u.next)}}}}var Xg={notify(){},get:()=>[]};function T1(t,r){let i,s=Xg,u=0,c=!1;function d(q){b();const G=s.subscribe(q);let _=!1;return()=>{_||(_=!0,G(),E())}}function h(){s.notify()}function m(){R.onStateChange&&R.onStateChange()}function p(){return c}function b(){u++,i||(i=r?r.addNestedSub(m):t.subscribe(m),s=_S())}function E(){u--,i&&u===0&&(i(),i=void 0,s.clear(),s=Xg)}function A(){c||(c=!0,b())}function U(){c&&(c=!1,E())}const R={addNestedSub:d,notifyNestedSubs:h,handleChangeWrapper:m,isSubscribed:p,trySubscribe:A,tryUnsubscribe:U,getListeners:()=>s};return R}var ES=()=>typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",SS=ES(),TS=()=>typeof navigator<"u"&&navigator.product==="ReactNative",AS=TS(),OS=()=>SS||AS?B.useLayoutEffect:B.useEffect,$o=OS();function Zg(t,r){return t===r?t!==0||r!==0||1/t===1/r:t!==t&&r!==r}function kf(t,r){if(Zg(t,r))return!0;if(typeof t!="object"||t===null||typeof r!="object"||r===null)return!1;const i=Object.keys(t),s=Object.keys(r);if(i.length!==s.length)return!1;for(let u=0;u<i.length;u++)if(!Object.prototype.hasOwnProperty.call(r,i[u])||!Zg(t[i[u]],r[i[u]]))return!1;return!0}var xS={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},RS={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},wS={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},A1={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},CS={[lS]:wS,[oS]:A1};function Qg(t){return cS(t)?A1:CS[t.$$typeof]||xS}var NS=Object.defineProperty,MS=Object.getOwnPropertyNames,Kg=Object.getOwnPropertySymbols,DS=Object.getOwnPropertyDescriptor,LS=Object.getPrototypeOf,$g=Object.prototype;function qd(t,r){if(typeof r!="string"){if($g){const c=LS(r);c&&c!==$g&&qd(t,c)}let i=MS(r);Kg&&(i=i.concat(Kg(r)));const s=Qg(t),u=Qg(r);for(let c=0;c<i.length;++c){const d=i[c];if(!RS[d]&&!(u&&u[d])&&!(s&&s[d])){const h=DS(r,d);try{NS(t,d,h)}catch{}}}}return t}var BS=Symbol.for("react-redux-context"),US=typeof globalThis<"u"?globalThis:{};function HS(){if(!B.createContext)return{};const t=US[BS]??=new Map;let r=t.get(B.createContext);return r||(r=B.createContext(null),t.set(B.createContext,r)),r}var wr=HS(),jS=[null,null];function IS(t,r,i){$o(()=>t(...r),i)}function zS(t,r,i,s,u,c){t.current=s,i.current=!1,u.current&&(u.current=null,c())}function GS(t,r,i,s,u,c,d,h,m,p,b){if(!t)return()=>{};let E=!1,A=null;const U=()=>{if(E||!h.current)return;const q=r.getState();let G,_;try{G=s(q,u.current)}catch(C){_=C,A=C}_||(A=null),G===c.current?d.current||p():(c.current=G,m.current=G,d.current=!0,b())};return i.onStateChange=U,i.trySubscribe(),U(),()=>{if(E=!0,i.tryUnsubscribe(),i.onStateChange=null,A)throw A}}function kS(t,r){return t===r}function qS(t,r,i,{pure:s,areStatesEqual:u=kS,areOwnPropsEqual:c=kf,areStatePropsEqual:d=kf,areMergedPropsEqual:h=kf,forwardRef:m=!1,context:p=wr}={}){const b=p,E=pS(t),A=mS(r),U=bS(i),R=!!t;return G=>{const _=G.displayName||G.name||"Component",C=`Connect(${_})`,S={shouldHandleStateChanges:R,displayName:C,wrappedComponentName:_,WrappedComponent:G,initMapStateToProps:E,initMapDispatchToProps:A,initMergeProps:U,areStatesEqual:u,areStatePropsEqual:d,areOwnPropsEqual:c,areMergedPropsEqual:h};function H(W){const[ae,ye,Ee]=B.useMemo(()=>{const{reactReduxForwardedRef:Qe,...qt}=W;return[W.context,Qe,qt]},[W]),se=B.useMemo(()=>{let Qe=b;return ae?.Consumer,Qe},[ae,b]),me=B.useContext(se),ce=!!W.store&&!!W.store.getState&&!!W.store.dispatch,Pe=!!me&&!!me.store,ve=ce?W.store:me.store,z=Pe?me.getServerState:ve.getState,K=B.useMemo(()=>dS(ve.dispatch,S),[ve]),[ee,Ae]=B.useMemo(()=>{if(!R)return jS;const Qe=T1(ve,ce?void 0:me.subscription),qt=Qe.notifyNestedSubs.bind(Qe);return[Qe,qt]},[ve,ce,me]),x=B.useMemo(()=>ce?me:{...me,subscription:ee},[ce,me,ee]),k=B.useRef(void 0),$=B.useRef(Ee),Y=B.useRef(void 0),te=B.useRef(!1),re=B.useRef(!1),ue=B.useRef(void 0);$o(()=>(re.current=!0,()=>{re.current=!1}),[]);const We=B.useMemo(()=>()=>Y.current&&Ee===$.current?Y.current:K(ve.getState(),Ee),[ve,Ee]),Ue=B.useMemo(()=>qt=>ee?GS(R,ve,ee,K,$,k,te,re,Y,Ae,qt):()=>{},[ee]);IS(zS,[$,k,te,Ee,Y,Ae]);let St;try{St=B.useSyncExternalStore(Ue,We,z?()=>K(z(),Ee):We)}catch(Qe){throw ue.current&&(Qe.message+=`
57
+ */var Vg;function Z2(){if(Vg)return kf;Vg=1;var t=ou();function r(m,p){return m===p&&(m!==0||1/m===1/p)||m!==m&&p!==p}var i=typeof Object.is=="function"?Object.is:r,s=t.useSyncExternalStore,u=t.useRef,c=t.useEffect,d=t.useMemo,h=t.useDebugValue;return kf.useSyncExternalStoreWithSelector=function(m,p,b,E,A){var L=u(null);if(L.current===null){var R={hasValue:!1,value:null};L.current=R}else R=L.current;L=d(function(){function G(x){if(!_){if(_=!0,C=x,x=E(x),A!==void 0&&R.hasValue){var Q=R.value;if(A(Q,x))return S=Q}return S=x}if(Q=S,i(C,x))return Q;var W=E(x);return A!==void 0&&A(Q,W)?(C=x,Q):(C=x,S=W)}var _=!1,C,S,H=b===void 0?null:b;return[function(){return G(p())},H===null?void 0:function(){return G(H())}]},[p,b,E,A]);var q=s(m,L[0],L[1]);return c(function(){R.hasValue=!0,R.value=q},[q]),h(q),q},kf}var Pg;function Q2(){return Pg||(Pg=1,Gf.exports=Z2()),Gf.exports}var K2=Q2(),$2=U.version.startsWith("19"),W2=Symbol.for($2?"react.transitional.element":"react.element"),J2=Symbol.for("react.portal"),eS=Symbol.for("react.fragment"),tS=Symbol.for("react.strict_mode"),nS=Symbol.for("react.profiler"),rS=Symbol.for("react.consumer"),aS=Symbol.for("react.context"),E1=Symbol.for("react.forward_ref"),iS=Symbol.for("react.suspense"),sS=Symbol.for("react.suspense_list"),bh=Symbol.for("react.memo"),lS=Symbol.for("react.lazy"),oS=E1,uS=bh;function cS(t){if(typeof t=="object"&&t!==null){const{$$typeof:r}=t;switch(r){case W2:switch(t=t.type,t){case eS:case nS:case tS:case iS:case sS:return t;default:switch(t=t&&t.$$typeof,t){case aS:case E1:case lS:case bh:return t;case rS:return t;default:return r}}case J2:return r}}}function fS(t){return cS(t)===bh}function dS(t,r,i,s,{areStatesEqual:u,areOwnPropsEqual:c,areStatePropsEqual:d}){let h=!1,m,p,b,E,A;function L(C,S){return m=C,p=S,b=t(m,p),E=r(s,p),A=i(b,E,p),h=!0,A}function R(){return b=t(m,p),r.dependsOnOwnProps&&(E=r(s,p)),A=i(b,E,p),A}function q(){return t.dependsOnOwnProps&&(b=t(m,p)),r.dependsOnOwnProps&&(E=r(s,p)),A=i(b,E,p),A}function G(){const C=t(m,p),S=!d(C,b);return b=C,S&&(A=i(b,E,p)),A}function _(C,S){const H=!c(S,p),x=!u(C,m,S,p);return m=C,p=S,H&&x?R():H?q():x?G():A}return function(S,H){return h?_(S,H):L(S,H)}}function hS(t,{initMapStateToProps:r,initMapDispatchToProps:i,initMergeProps:s,...u}){const c=r(t,u),d=i(t,u),h=s(t,u);return dS(c,d,h,t,u)}function mS(t,r){const i={};for(const s in t){const u=t[s];typeof u=="function"&&(i[s]=(...c)=>r(u(...c)))}return i}function qd(t){return function(i){const s=t(i);function u(){return s}return u.dependsOnOwnProps=!1,u}}function Yg(t){return t.dependsOnOwnProps?!!t.dependsOnOwnProps:t.length!==1}function S1(t,r){return function(s,{displayName:u}){const c=function(h,m){return c.dependsOnOwnProps?c.mapToProps(h,m):c.mapToProps(h,void 0)};return c.dependsOnOwnProps=!0,c.mapToProps=function(h,m){c.mapToProps=t,c.dependsOnOwnProps=Yg(t);let p=c(h,m);return typeof p=="function"&&(c.mapToProps=p,c.dependsOnOwnProps=Yg(p),p=c(h,m)),p},c}}function vh(t,r){return(i,s)=>{throw new Error(`Invalid value of type ${typeof t} for ${r} argument when connecting component ${s.wrappedComponentName}.`)}}function pS(t){return t&&typeof t=="object"?qd(r=>mS(t,r)):t?typeof t=="function"?S1(t):vh(t,"mapDispatchToProps"):qd(r=>({dispatch:r}))}function gS(t){return t?typeof t=="function"?S1(t):vh(t,"mapStateToProps"):qd(()=>({}))}function yS(t,r,i){return{...i,...t,...r}}function bS(t){return function(i,{displayName:s,areMergedPropsEqual:u}){let c=!1,d;return function(m,p,b){const E=t(m,p,b);return c?u(E,d)||(d=E):(c=!0,d=E),d}}}function vS(t){return t?typeof t=="function"?bS(t):vh(t,"mergeProps"):()=>yS}function _S(t){t()}function ES(){let t=null,r=null;return{clear(){t=null,r=null},notify(){_S(()=>{let i=t;for(;i;)i.callback(),i=i.next})},get(){const i=[];let s=t;for(;s;)i.push(s),s=s.next;return i},subscribe(i){let s=!0;const u=r={callback:i,next:null,prev:r};return u.prev?u.prev.next=u:t=u,function(){!s||t===null||(s=!1,u.next?u.next.prev=u.prev:r=u.prev,u.prev?u.prev.next=u.next:t=u.next)}}}}var Xg={notify(){},get:()=>[]};function T1(t,r){let i,s=Xg,u=0,c=!1;function d(q){b();const G=s.subscribe(q);let _=!1;return()=>{_||(_=!0,G(),E())}}function h(){s.notify()}function m(){R.onStateChange&&R.onStateChange()}function p(){return c}function b(){u++,i||(i=r?r.addNestedSub(m):t.subscribe(m),s=ES())}function E(){u--,i&&u===0&&(i(),i=void 0,s.clear(),s=Xg)}function A(){c||(c=!0,b())}function L(){c&&(c=!1,E())}const R={addNestedSub:d,notifyNestedSubs:h,handleChangeWrapper:m,isSubscribed:p,trySubscribe:A,tryUnsubscribe:L,getListeners:()=>s};return R}var SS=()=>typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",TS=SS(),AS=()=>typeof navigator<"u"&&navigator.product==="ReactNative",xS=AS(),OS=()=>TS||xS?U.useLayoutEffect:U.useEffect,$o=OS();function Zg(t,r){return t===r?t!==0||r!==0||1/t===1/r:t!==t&&r!==r}function qf(t,r){if(Zg(t,r))return!0;if(typeof t!="object"||t===null||typeof r!="object"||r===null)return!1;const i=Object.keys(t),s=Object.keys(r);if(i.length!==s.length)return!1;for(let u=0;u<i.length;u++)if(!Object.prototype.hasOwnProperty.call(r,i[u])||!Zg(t[i[u]],r[i[u]]))return!1;return!0}var RS={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},wS={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},CS={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},A1={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},NS={[oS]:CS,[uS]:A1};function Qg(t){return fS(t)?A1:NS[t.$$typeof]||RS}var MS=Object.defineProperty,DS=Object.getOwnPropertyNames,Kg=Object.getOwnPropertySymbols,LS=Object.getOwnPropertyDescriptor,BS=Object.getPrototypeOf,$g=Object.prototype;function Fd(t,r){if(typeof r!="string"){if($g){const c=BS(r);c&&c!==$g&&Fd(t,c)}let i=DS(r);Kg&&(i=i.concat(Kg(r)));const s=Qg(t),u=Qg(r);for(let c=0;c<i.length;++c){const d=i[c];if(!wS[d]&&!(u&&u[d])&&!(s&&s[d])){const h=LS(r,d);try{MS(t,d,h)}catch{}}}}return t}var US=Symbol.for("react-redux-context"),HS=typeof globalThis<"u"?globalThis:{};function jS(){if(!U.createContext)return{};const t=HS[US]??=new Map;let r=t.get(U.createContext);return r||(r=U.createContext(null),t.set(U.createContext,r)),r}var wr=jS(),IS=[null,null];function zS(t,r,i){$o(()=>t(...r),i)}function GS(t,r,i,s,u,c){t.current=s,i.current=!1,u.current&&(u.current=null,c())}function kS(t,r,i,s,u,c,d,h,m,p,b){if(!t)return()=>{};let E=!1,A=null;const L=()=>{if(E||!h.current)return;const q=r.getState();let G,_;try{G=s(q,u.current)}catch(C){_=C,A=C}_||(A=null),G===c.current?d.current||p():(c.current=G,m.current=G,d.current=!0,b())};return i.onStateChange=L,i.trySubscribe(),L(),()=>{if(E=!0,i.tryUnsubscribe(),i.onStateChange=null,A)throw A}}function qS(t,r){return t===r}function FS(t,r,i,{pure:s,areStatesEqual:u=qS,areOwnPropsEqual:c=qf,areStatePropsEqual:d=qf,areMergedPropsEqual:h=qf,forwardRef:m=!1,context:p=wr}={}){const b=p,E=gS(t),A=pS(r),L=vS(i),R=!!t;return G=>{const _=G.displayName||G.name||"Component",C=`Connect(${_})`,S={shouldHandleStateChanges:R,displayName:C,wrappedComponentName:_,WrappedComponent:G,initMapStateToProps:E,initMapDispatchToProps:A,initMergeProps:L,areStatesEqual:u,areStatePropsEqual:d,areOwnPropsEqual:c,areMergedPropsEqual:h};function H(W){const[ae,ye,Ee]=U.useMemo(()=>{const{reactReduxForwardedRef:Qe,...qt}=W;return[W.context,Qe,qt]},[W]),se=U.useMemo(()=>{let Qe=b;return ae?.Consumer,Qe},[ae,b]),me=U.useContext(se),ce=!!W.store&&!!W.store.getState&&!!W.store.dispatch,Pe=!!me&&!!me.store,ve=ce?W.store:me.store,z=Pe?me.getServerState:ve.getState,K=U.useMemo(()=>hS(ve.dispatch,S),[ve]),[ee,Ae]=U.useMemo(()=>{if(!R)return IS;const Qe=T1(ve,ce?void 0:me.subscription),qt=Qe.notifyNestedSubs.bind(Qe);return[Qe,qt]},[ve,ce,me]),O=U.useMemo(()=>ce?me:{...me,subscription:ee},[ce,me,ee]),k=U.useRef(void 0),$=U.useRef(Ee),Y=U.useRef(void 0),te=U.useRef(!1),re=U.useRef(!1),ue=U.useRef(void 0);$o(()=>(re.current=!0,()=>{re.current=!1}),[]);const We=U.useMemo(()=>()=>Y.current&&Ee===$.current?Y.current:K(ve.getState(),Ee),[ve,Ee]),Ue=U.useMemo(()=>qt=>ee?kS(R,ve,ee,K,$,k,te,re,Y,Ae,qt):()=>{},[ee]);zS(GS,[$,k,te,Ee,Y,Ae]);let St;try{St=U.useSyncExternalStore(Ue,We,z?()=>K(z(),Ee):We)}catch(Qe){throw ue.current&&(Qe.message+=`
58
58
  The error may be correlated with this previous error:
59
59
  ${ue.current.stack}
60
60
 
61
- `),Qe}$o(()=>{ue.current=void 0,Y.current=void 0,k.current=St});const Gn=B.useMemo(()=>B.createElement(G,{...St,ref:ye}),[ye,G,St]);return B.useMemo(()=>R?B.createElement(se.Provider,{value:x},Gn):Gn,[se,Gn,x])}const Q=B.memo(H);if(Q.WrappedComponent=G,Q.displayName=H.displayName=C,m){const ae=B.forwardRef(function(Ee,se){return B.createElement(Q,{...Ee,reactReduxForwardedRef:se})});return ae.displayName=C,ae.WrappedComponent=G,qd(ae,G)}return qd(Q,G)}}var FS=qS;function VS(t){const{children:r,context:i,serverState:s,store:u}=t,c=B.useMemo(()=>{const m=T1(u);return{store:u,subscription:m,getServerState:s?()=>s:void 0}},[u,s]),d=B.useMemo(()=>u.getState(),[u]);$o(()=>{const{subscription:m}=c;return m.onStateChange=m.notifyNestedSubs,m.trySubscribe(),d!==u.getState()&&m.notifyNestedSubs(),()=>{m.tryUnsubscribe(),m.onStateChange=void 0}},[c,d]);const h=i||wr;return B.createElement(h.Provider,{value:c},r)}var PS=VS;function _h(t=wr){return function(){return B.useContext(t)}}var O1=_h();function x1(t=wr){const r=t===wr?O1:_h(t),i=()=>{const{store:s}=r();return s};return Object.assign(i,{withTypes:()=>i}),i}var YS=x1();function XS(t=wr){const r=t===wr?YS:x1(t),i=()=>r().dispatch;return Object.assign(i,{withTypes:()=>i}),i}var ZS=XS(),QS=(t,r)=>t===r;function KS(t=wr){const r=t===wr?O1:_h(t),i=(s,u={})=>{const{equalityFn:c=QS}=typeof u=="function"?{equalityFn:u}:u,d=r(),{store:h,subscription:m,getServerState:p}=d;B.useRef(!0);const b=B.useCallback({[s.name](A){return s(A)}}[s.name],[s]),E=Q2.useSyncExternalStoreWithSelector(m.addNestedSub,h.getState,p||h.getState,b,c);return B.useDebugValue(E),E};return Object.assign(i,{withTypes:()=>i}),i}var $S=KS(),qf={exports:{}};/*!
61
+ `),Qe}$o(()=>{ue.current=void 0,Y.current=void 0,k.current=St});const Gn=U.useMemo(()=>U.createElement(G,{...St,ref:ye}),[ye,G,St]);return U.useMemo(()=>R?U.createElement(se.Provider,{value:O},Gn):Gn,[se,Gn,O])}const Q=U.memo(H);if(Q.WrappedComponent=G,Q.displayName=H.displayName=C,m){const ae=U.forwardRef(function(Ee,se){return U.createElement(Q,{...Ee,reactReduxForwardedRef:se})});return ae.displayName=C,ae.WrappedComponent=G,Fd(ae,G)}return Fd(Q,G)}}var VS=FS;function PS(t){const{children:r,context:i,serverState:s,store:u}=t,c=U.useMemo(()=>{const m=T1(u);return{store:u,subscription:m,getServerState:s?()=>s:void 0}},[u,s]),d=U.useMemo(()=>u.getState(),[u]);$o(()=>{const{subscription:m}=c;return m.onStateChange=m.notifyNestedSubs,m.trySubscribe(),d!==u.getState()&&m.notifyNestedSubs(),()=>{m.tryUnsubscribe(),m.onStateChange=void 0}},[c,d]);const h=i||wr;return U.createElement(h.Provider,{value:c},r)}var YS=PS;function _h(t=wr){return function(){return U.useContext(t)}}var x1=_h();function O1(t=wr){const r=t===wr?x1:_h(t),i=()=>{const{store:s}=r();return s};return Object.assign(i,{withTypes:()=>i}),i}var XS=O1();function ZS(t=wr){const r=t===wr?XS:O1(t),i=()=>r().dispatch;return Object.assign(i,{withTypes:()=>i}),i}var QS=ZS(),KS=(t,r)=>t===r;function $S(t=wr){const r=t===wr?x1:_h(t),i=(s,u={})=>{const{equalityFn:c=KS}=typeof u=="function"?{equalityFn:u}:u,d=r(),{store:h,subscription:m,getServerState:p}=d;U.useRef(!0);const b=U.useCallback({[s.name](A){return s(A)}}[s.name],[s]),E=K2.useSyncExternalStoreWithSelector(m.addNestedSub,h.getState,p||h.getState,b,c);return U.useDebugValue(E),E};return Object.assign(i,{withTypes:()=>i}),i}var WS=$S(),Ff={exports:{}};/*!
62
62
  Copyright (c) 2018 Jed Watson.
63
63
  Licensed under the MIT License (MIT), see
64
64
  http://jedwatson.github.io/classnames
65
- */var Wg;function WS(){return Wg||(Wg=1,function(t){(function(){var r={}.hasOwnProperty;function i(){for(var c="",d=0;d<arguments.length;d++){var h=arguments[d];h&&(c=u(c,s(h)))}return c}function s(c){if(typeof c=="string"||typeof c=="number")return c;if(typeof c!="object")return"";if(Array.isArray(c))return i.apply(null,c);if(c.toString!==Object.prototype.toString&&!c.toString.toString().includes("[native code]"))return c.toString();var d="";for(var h in c)r.call(c,h)&&c[h]&&(d=u(d,h));return d}function u(c,d){return d?c?c+" "+d:c+d:c}t.exports?(i.default=i,t.exports=i):window.classNames=i})()}(qf)),qf.exports}var JS=WS();const Z=yh(JS);var Fd=function(t,r){return Fd=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,s){i.__proto__=s}||function(i,s){for(var u in s)Object.prototype.hasOwnProperty.call(s,u)&&(i[u]=s[u])},Fd(t,r)};function An(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");Fd(t,r);function i(){this.constructor=t}t.prototype=r===null?Object.create(r):(i.prototype=r.prototype,new i)}var ie=function(){return ie=Object.assign||function(r){for(var i,s=1,u=arguments.length;s<u;s++){i=arguments[s];for(var c in i)Object.prototype.hasOwnProperty.call(i,c)&&(r[c]=i[c])}return r},ie.apply(this,arguments)};function ou(t,r){var i={};for(var s in t)Object.prototype.hasOwnProperty.call(t,s)&&r.indexOf(s)<0&&(i[s]=t[s]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var u=0,s=Object.getOwnPropertySymbols(t);u<s.length;u++)r.indexOf(s[u])<0&&Object.prototype.propertyIsEnumerable.call(t,s[u])&&(i[s[u]]=t[s[u]]);return i}function Wn(t,r,i){if(i||arguments.length===2)for(var s=0,u=r.length,c;s<u;s++)(c||!(s in r))&&(c||(c=Array.prototype.slice.call(r,0,s)),c[s]=r[s]);return t.concat(c||Array.prototype.slice.call(r))}function Kn(t,r){var i=r&&r.cache?r.cache:sT,s=r&&r.serializer?r.serializer:aT,u=r&&r.strategy?r.strategy:nT;return u(t,{cache:i,serializer:s})}function eT(t){return t==null||typeof t=="number"||typeof t=="boolean"}function tT(t,r,i,s){var u=eT(s)?s:i(s),c=r.get(u);return typeof c>"u"&&(c=t.call(this,s),r.set(u,c)),c}function R1(t,r,i){var s=Array.prototype.slice.call(arguments,3),u=i(s),c=r.get(u);return typeof c>"u"&&(c=t.apply(this,s),r.set(u,c)),c}function w1(t,r,i,s,u){return i.bind(r,t,s,u)}function nT(t,r){var i=t.length===1?tT:R1;return w1(t,this,i,r.cache.create(),r.serializer)}function rT(t,r){return w1(t,this,R1,r.cache.create(),r.serializer)}var aT=function(){return JSON.stringify(arguments)},iT=function(){function t(){this.cache=Object.create(null)}return t.prototype.get=function(r){return this.cache[r]},t.prototype.set=function(r,i){this.cache[r]=i},t}(),sT={create:function(){return new iT}},$n={variadic:rT},we;(function(t){t[t.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",t[t.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",t[t.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",t[t.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",t[t.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",t[t.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",t[t.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",t[t.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",t[t.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",t[t.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",t[t.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",t[t.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",t[t.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",t[t.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",t[t.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",t[t.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",t[t.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",t[t.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",t[t.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",t[t.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",t[t.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",t[t.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",t[t.INVALID_TAG=23]="INVALID_TAG",t[t.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",t[t.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",t[t.UNCLOSED_TAG=27]="UNCLOSED_TAG"})(we||(we={}));var Ye;(function(t){t[t.literal=0]="literal",t[t.argument=1]="argument",t[t.number=2]="number",t[t.date=3]="date",t[t.time=4]="time",t[t.select=5]="select",t[t.plural=6]="plural",t[t.pound=7]="pound",t[t.tag=8]="tag"})(Ye||(Ye={}));var Ri;(function(t){t[t.number=0]="number",t[t.dateTime=1]="dateTime"})(Ri||(Ri={}));function Jg(t){return t.type===Ye.literal}function lT(t){return t.type===Ye.argument}function C1(t){return t.type===Ye.number}function N1(t){return t.type===Ye.date}function M1(t){return t.type===Ye.time}function D1(t){return t.type===Ye.select}function L1(t){return t.type===Ye.plural}function oT(t){return t.type===Ye.pound}function B1(t){return t.type===Ye.tag}function U1(t){return!!(t&&typeof t=="object"&&t.type===Ri.number)}function Vd(t){return!!(t&&typeof t=="object"&&t.type===Ri.dateTime)}var H1=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,uT=/(?:[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 cT(t){var r={};return t.replace(uT,function(i){var s=i.length;switch(i[0]){case"G":r.era=s===4?"long":s===5?"narrow":"short";break;case"y":r.year=s===2?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw new RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":r.month=["numeric","2-digit","short","long","narrow"][s-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":r.day=["numeric","2-digit"][s-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":r.weekday=s===4?"long":s===5?"narrow":"short";break;case"e":if(s<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");r.weekday=["short","long","narrow","short"][s-4];break;case"c":if(s<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");r.weekday=["short","long","narrow","short"][s-4];break;case"a":r.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":r.hourCycle="h12",r.hour=["numeric","2-digit"][s-1];break;case"H":r.hourCycle="h23",r.hour=["numeric","2-digit"][s-1];break;case"K":r.hourCycle="h11",r.hour=["numeric","2-digit"][s-1];break;case"k":r.hourCycle="h24",r.hour=["numeric","2-digit"][s-1];break;case"j":case"J":case"C":throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":r.minute=["numeric","2-digit"][s-1];break;case"s":r.second=["numeric","2-digit"][s-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":r.timeZoneName=s<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""}),r}var fT=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function dT(t){if(t.length===0)throw new Error("Number skeleton cannot be empty");for(var r=t.split(fT).filter(function(A){return A.length>0}),i=[],s=0,u=r;s<u.length;s++){var c=u[s],d=c.split("/");if(d.length===0)throw new Error("Invalid number skeleton");for(var h=d[0],m=d.slice(1),p=0,b=m;p<b.length;p++){var E=b[p];if(E.length===0)throw new Error("Invalid number skeleton")}i.push({stem:h,options:m})}return i}function hT(t){return t.replace(/^(.*?)-/,"")}var ey=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,j1=/^(@+)?(\+|#+)?[rs]?$/g,mT=/(\*)(0+)|(#+)(0+)|(0+)/g,I1=/^(0+)$/;function ty(t){var r={};return t[t.length-1]==="r"?r.roundingPriority="morePrecision":t[t.length-1]==="s"&&(r.roundingPriority="lessPrecision"),t.replace(j1,function(i,s,u){return typeof u!="string"?(r.minimumSignificantDigits=s.length,r.maximumSignificantDigits=s.length):u==="+"?r.minimumSignificantDigits=s.length:s[0]==="#"?r.maximumSignificantDigits=s.length:(r.minimumSignificantDigits=s.length,r.maximumSignificantDigits=s.length+(typeof u=="string"?u.length:0)),""}),r}function z1(t){switch(t){case"sign-auto":return{signDisplay:"auto"};case"sign-accounting":case"()":return{currencySign:"accounting"};case"sign-always":case"+!":return{signDisplay:"always"};case"sign-accounting-always":case"()!":return{signDisplay:"always",currencySign:"accounting"};case"sign-except-zero":case"+?":return{signDisplay:"exceptZero"};case"sign-accounting-except-zero":case"()?":return{signDisplay:"exceptZero",currencySign:"accounting"};case"sign-never":case"+_":return{signDisplay:"never"}}}function pT(t){var r;if(t[0]==="E"&&t[1]==="E"?(r={notation:"engineering"},t=t.slice(2)):t[0]==="E"&&(r={notation:"scientific"},t=t.slice(1)),r){var i=t.slice(0,2);if(i==="+!"?(r.signDisplay="always",t=t.slice(2)):i==="+?"&&(r.signDisplay="exceptZero",t=t.slice(2)),!I1.test(t))throw new Error("Malformed concise eng/scientific notation");r.minimumIntegerDigits=t.length}return r}function ny(t){var r={},i=z1(t);return i||r}function gT(t){for(var r={},i=0,s=t;i<s.length;i++){var u=s[i];switch(u.stem){case"percent":case"%":r.style="percent";continue;case"%x100":r.style="percent",r.scale=100;continue;case"currency":r.style="currency",r.currency=u.options[0];continue;case"group-off":case",_":r.useGrouping=!1;continue;case"precision-integer":case".":r.maximumFractionDigits=0;continue;case"measure-unit":case"unit":r.style="unit",r.unit=hT(u.options[0]);continue;case"compact-short":case"K":r.notation="compact",r.compactDisplay="short";continue;case"compact-long":case"KK":r.notation="compact",r.compactDisplay="long";continue;case"scientific":r=ie(ie(ie({},r),{notation:"scientific"}),u.options.reduce(function(m,p){return ie(ie({},m),ny(p))},{}));continue;case"engineering":r=ie(ie(ie({},r),{notation:"engineering"}),u.options.reduce(function(m,p){return ie(ie({},m),ny(p))},{}));continue;case"notation-simple":r.notation="standard";continue;case"unit-width-narrow":r.currencyDisplay="narrowSymbol",r.unitDisplay="narrow";continue;case"unit-width-short":r.currencyDisplay="code",r.unitDisplay="short";continue;case"unit-width-full-name":r.currencyDisplay="name",r.unitDisplay="long";continue;case"unit-width-iso-code":r.currencyDisplay="symbol";continue;case"scale":r.scale=parseFloat(u.options[0]);continue;case"rounding-mode-floor":r.roundingMode="floor";continue;case"rounding-mode-ceiling":r.roundingMode="ceil";continue;case"rounding-mode-down":r.roundingMode="trunc";continue;case"rounding-mode-up":r.roundingMode="expand";continue;case"rounding-mode-half-even":r.roundingMode="halfEven";continue;case"rounding-mode-half-down":r.roundingMode="halfTrunc";continue;case"rounding-mode-half-up":r.roundingMode="halfExpand";continue;case"integer-width":if(u.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");u.options[0].replace(mT,function(m,p,b,E,A,U){if(p)r.minimumIntegerDigits=b.length;else{if(E&&A)throw new Error("We currently do not support maximum integer digits");if(U)throw new Error("We currently do not support exact integer digits")}return""});continue}if(I1.test(u.stem)){r.minimumIntegerDigits=u.stem.length;continue}if(ey.test(u.stem)){if(u.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");u.stem.replace(ey,function(m,p,b,E,A,U){return b==="*"?r.minimumFractionDigits=p.length:E&&E[0]==="#"?r.maximumFractionDigits=E.length:A&&U?(r.minimumFractionDigits=A.length,r.maximumFractionDigits=A.length+U.length):(r.minimumFractionDigits=p.length,r.maximumFractionDigits=p.length),""});var c=u.options[0];c==="w"?r=ie(ie({},r),{trailingZeroDisplay:"stripIfInteger"}):c&&(r=ie(ie({},r),ty(c)));continue}if(j1.test(u.stem)){r=ie(ie({},r),ty(u.stem));continue}var d=z1(u.stem);d&&(r=ie(ie({},r),d));var h=pT(u.stem);h&&(r=ie(ie({},r),h))}return r}var bo={"001":["H","h"],419:["h","H","hB","hb"],AC:["H","h","hb","hB"],AD:["H","hB"],AE:["h","hB","hb","H"],AF:["H","hb","hB","h"],AG:["h","hb","H","hB"],AI:["H","h","hb","hB"],AL:["h","H","hB"],AM:["H","hB"],AO:["H","hB"],AR:["h","H","hB","hb"],AS:["h","H"],AT:["H","hB"],AU:["h","hb","H","hB"],AW:["H","hB"],AX:["H"],AZ:["H","hB","h"],BA:["H","hB","h"],BB:["h","hb","H","hB"],BD:["h","hB","H"],BE:["H","hB"],BF:["H","hB"],BG:["H","hB","h"],BH:["h","hB","hb","H"],BI:["H","h"],BJ:["H","hB"],BL:["H","hB"],BM:["h","hb","H","hB"],BN:["hb","hB","h","H"],BO:["h","H","hB","hb"],BQ:["H"],BR:["H","hB"],BS:["h","hb","H","hB"],BT:["h","H"],BW:["H","h","hb","hB"],BY:["H","h"],BZ:["H","h","hb","hB"],CA:["h","hb","H","hB"],CC:["H","h","hb","hB"],CD:["hB","H"],CF:["H","h","hB"],CG:["H","hB"],CH:["H","hB","h"],CI:["H","hB"],CK:["H","h","hb","hB"],CL:["h","H","hB","hb"],CM:["H","h","hB"],CN:["H","hB","hb","h"],CO:["h","H","hB","hb"],CP:["H"],CR:["h","H","hB","hb"],CU:["h","H","hB","hb"],CV:["H","hB"],CW:["H","hB"],CX:["H","h","hb","hB"],CY:["h","H","hb","hB"],CZ:["H"],DE:["H","hB"],DG:["H","h","hb","hB"],DJ:["h","H"],DK:["H"],DM:["h","hb","H","hB"],DO:["h","H","hB","hb"],DZ:["h","hB","hb","H"],EA:["H","h","hB","hb"],EC:["h","H","hB","hb"],EE:["H","hB"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],ER:["h","H"],ES:["H","hB","h","hb"],ET:["hB","hb","h","H"],FI:["H"],FJ:["h","hb","H","hB"],FK:["H","h","hb","hB"],FM:["h","hb","H","hB"],FO:["H","h"],FR:["H","hB"],GA:["H","hB"],GB:["H","h","hb","hB"],GD:["h","hb","H","hB"],GE:["H","hB","h"],GF:["H","hB"],GG:["H","h","hb","hB"],GH:["h","H"],GI:["H","h","hb","hB"],GL:["H","h"],GM:["h","hb","H","hB"],GN:["H","hB"],GP:["H","hB"],GQ:["H","hB","h","hb"],GR:["h","H","hb","hB"],GT:["h","H","hB","hb"],GU:["h","hb","H","hB"],GW:["H","hB"],GY:["h","hb","H","hB"],HK:["h","hB","hb","H"],HN:["h","H","hB","hb"],HR:["H","hB"],HU:["H","h"],IC:["H","h","hB","hb"],ID:["H"],IE:["H","h","hb","hB"],IL:["H","hB"],IM:["H","h","hb","hB"],IN:["h","H"],IO:["H","h","hb","hB"],IQ:["h","hB","hb","H"],IR:["hB","H"],IS:["H"],IT:["H","hB"],JE:["H","h","hb","hB"],JM:["h","hb","H","hB"],JO:["h","hB","hb","H"],JP:["H","K","h"],KE:["hB","hb","H","h"],KG:["H","h","hB","hb"],KH:["hB","h","H","hb"],KI:["h","hb","H","hB"],KM:["H","h","hB","hb"],KN:["h","hb","H","hB"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],KW:["h","hB","hb","H"],KY:["h","hb","H","hB"],KZ:["H","hB"],LA:["H","hb","hB","h"],LB:["h","hB","hb","H"],LC:["h","hb","H","hB"],LI:["H","hB","h"],LK:["H","h","hB","hb"],LR:["h","hb","H","hB"],LS:["h","H"],LT:["H","h","hb","hB"],LU:["H","h","hB"],LV:["H","hB","hb","h"],LY:["h","hB","hb","H"],MA:["H","h","hB","hb"],MC:["H","hB"],MD:["H","hB"],ME:["H","hB","h"],MF:["H","hB"],MG:["H","h"],MH:["h","hb","H","hB"],MK:["H","h","hb","hB"],ML:["H"],MM:["hB","hb","H","h"],MN:["H","h","hb","hB"],MO:["h","hB","hb","H"],MP:["h","hb","H","hB"],MQ:["H","hB"],MR:["h","hB","hb","H"],MS:["H","h","hb","hB"],MT:["H","h"],MU:["H","h"],MV:["H","h"],MW:["h","hb","H","hB"],MX:["h","H","hB","hb"],MY:["hb","hB","h","H"],MZ:["H","hB"],NA:["h","H","hB","hb"],NC:["H","hB"],NE:["H"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NI:["h","H","hB","hb"],NL:["H","hB"],NO:["H","h"],NP:["H","h","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],NZ:["h","hb","H","hB"],OM:["h","hB","hb","H"],PA:["h","H","hB","hb"],PE:["h","H","hB","hb"],PF:["H","h","hB"],PG:["h","H"],PH:["h","hB","hb","H"],PK:["h","hB","H"],PL:["H","h"],PM:["H","hB"],PN:["H","h","hb","hB"],PR:["h","H","hB","hb"],PS:["h","hB","hb","H"],PT:["H","hB"],PW:["h","H"],PY:["h","H","hB","hb"],QA:["h","hB","hb","H"],RE:["H","hB"],RO:["H","hB"],RS:["H","hB","h"],RU:["H"],RW:["H","h"],SA:["h","hB","hb","H"],SB:["h","hb","H","hB"],SC:["H","h","hB"],SD:["h","hB","hb","H"],SE:["H"],SG:["h","hb","H","hB"],SH:["H","h","hb","hB"],SI:["H","hB"],SJ:["H"],SK:["H"],SL:["h","hb","H","hB"],SM:["H","h","hB"],SN:["H","h","hB"],SO:["h","H"],SR:["H","hB"],SS:["h","hb","H","hB"],ST:["H","hB"],SV:["h","H","hB","hb"],SX:["H","h","hb","hB"],SY:["h","hB","hb","H"],SZ:["h","hb","H","hB"],TA:["H","h","hb","hB"],TC:["h","hb","H","hB"],TD:["h","H","hB"],TF:["H","h","hB"],TG:["H","hB"],TH:["H","h"],TJ:["H","h"],TL:["H","hB","hb","h"],TM:["H","h"],TN:["h","hB","hb","H"],TO:["h","H"],TR:["H","hB"],TT:["h","hb","H","hB"],TW:["hB","hb","h","H"],TZ:["hB","hb","H","h"],UA:["H","hB","h"],UG:["hB","hb","H","h"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],UY:["h","H","hB","hb"],UZ:["H","hB","h"],VA:["H","h","hB"],VC:["h","hb","H","hB"],VE:["h","H","hB","hb"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],VN:["H","h"],VU:["h","H"],WF:["H","hB"],WS:["h","H"],XK:["H","hB","h"],YE:["h","hB","hb","H"],YT:["H","hB"],ZA:["H","h","hb","hB"],ZM:["h","hb","H","hB"],ZW:["H","h"],"af-ZA":["H","h","hB","hb"],"ar-001":["h","hB","hb","H"],"ca-ES":["H","h","hB"],"en-001":["h","hb","H","hB"],"en-HK":["h","hb","H","hB"],"en-IL":["H","h","hb","hB"],"en-MY":["h","hb","H","hB"],"es-BR":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"gu-IN":["hB","hb","h","H"],"hi-IN":["hB","h","H"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],"ta-IN":["hB","h","hb","H"],"te-IN":["hB","h","H"],"zu-ZA":["H","hB","hb","h"]};function yT(t,r){for(var i="",s=0;s<t.length;s++){var u=t.charAt(s);if(u==="j"){for(var c=0;s+1<t.length&&t.charAt(s+1)===u;)c++,s++;var d=1+(c&1),h=c<2?1:3+(c>>1),m="a",p=bT(r);for((p=="H"||p=="k")&&(h=0);h-- >0;)i+=m;for(;d-- >0;)i=p+i}else u==="J"?i+="H":i+=u}return i}function bT(t){var r=t.hourCycle;if(r===void 0&&t.hourCycles&&t.hourCycles.length&&(r=t.hourCycles[0]),r)switch(r){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}var i=t.language,s;i!=="root"&&(s=t.maximize().region);var u=bo[s||""]||bo[i||""]||bo["".concat(i,"-001")]||bo["001"];return u[0]}var Ff,vT=new RegExp("^".concat(H1.source,"*")),_T=new RegExp("".concat(H1.source,"*$"));function Me(t,r){return{start:t,end:r}}var ET=!!String.prototype.startsWith&&"_a".startsWith("a",1),ST=!!String.fromCodePoint,TT=!!Object.fromEntries,AT=!!String.prototype.codePointAt,OT=!!String.prototype.trimStart,xT=!!String.prototype.trimEnd,RT=!!Number.isSafeInteger,wT=RT?Number.isSafeInteger:function(t){return typeof t=="number"&&isFinite(t)&&Math.floor(t)===t&&Math.abs(t)<=9007199254740991},Pd=!0;try{var CT=k1("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");Pd=((Ff=CT.exec("a"))===null||Ff===void 0?void 0:Ff[0])==="a"}catch{Pd=!1}var ry=ET?function(r,i,s){return r.startsWith(i,s)}:function(r,i,s){return r.slice(s,s+i.length)===i},Yd=ST?String.fromCodePoint:function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];for(var s="",u=r.length,c=0,d;u>c;){if(d=r[c++],d>1114111)throw RangeError(d+" is not a valid code point");s+=d<65536?String.fromCharCode(d):String.fromCharCode(((d-=65536)>>10)+55296,d%1024+56320)}return s},ay=TT?Object.fromEntries:function(r){for(var i={},s=0,u=r;s<u.length;s++){var c=u[s],d=c[0],h=c[1];i[d]=h}return i},G1=AT?function(r,i){return r.codePointAt(i)}:function(r,i){var s=r.length;if(!(i<0||i>=s)){var u=r.charCodeAt(i),c;return u<55296||u>56319||i+1===s||(c=r.charCodeAt(i+1))<56320||c>57343?u:(u-55296<<10)+(c-56320)+65536}},NT=OT?function(r){return r.trimStart()}:function(r){return r.replace(vT,"")},MT=xT?function(r){return r.trimEnd()}:function(r){return r.replace(_T,"")};function k1(t,r){return new RegExp(t,r)}var Xd;if(Pd){var iy=k1("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");Xd=function(r,i){var s;iy.lastIndex=i;var u=iy.exec(r);return(s=u[1])!==null&&s!==void 0?s:""}}else Xd=function(r,i){for(var s=[];;){var u=G1(r,i);if(u===void 0||q1(u)||UT(u))break;s.push(u),i+=u>=65536?2:1}return Yd.apply(void 0,s)};var DT=function(){function t(r,i){i===void 0&&(i={}),this.message=r,this.position={offset:0,line:1,column:1},this.ignoreTag=!!i.ignoreTag,this.locale=i.locale,this.requiresOtherClause=!!i.requiresOtherClause,this.shouldParseSkeletons=!!i.shouldParseSkeletons}return t.prototype.parse=function(){if(this.offset()!==0)throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},t.prototype.parseMessage=function(r,i,s){for(var u=[];!this.isEOF();){var c=this.char();if(c===123){var d=this.parseArgument(r,s);if(d.err)return d;u.push(d.val)}else{if(c===125&&r>0)break;if(c===35&&(i==="plural"||i==="selectordinal")){var h=this.clonePosition();this.bump(),u.push({type:Ye.pound,location:Me(h,this.clonePosition())})}else if(c===60&&!this.ignoreTag&&this.peek()===47){if(s)break;return this.error(we.UNMATCHED_CLOSING_TAG,Me(this.clonePosition(),this.clonePosition()))}else if(c===60&&!this.ignoreTag&&Zd(this.peek()||0)){var d=this.parseTag(r,i);if(d.err)return d;u.push(d.val)}else{var d=this.parseLiteral(r,i);if(d.err)return d;u.push(d.val)}}}return{val:u,err:null}},t.prototype.parseTag=function(r,i){var s=this.clonePosition();this.bump();var u=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:Ye.literal,value:"<".concat(u,"/>"),location:Me(s,this.clonePosition())},err:null};if(this.bumpIf(">")){var c=this.parseMessage(r+1,i,!0);if(c.err)return c;var d=c.val,h=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!Zd(this.char()))return this.error(we.INVALID_TAG,Me(h,this.clonePosition()));var m=this.clonePosition(),p=this.parseTagName();return u!==p?this.error(we.UNMATCHED_CLOSING_TAG,Me(m,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:Ye.tag,value:u,children:d,location:Me(s,this.clonePosition())},err:null}:this.error(we.INVALID_TAG,Me(h,this.clonePosition())))}else return this.error(we.UNCLOSED_TAG,Me(s,this.clonePosition()))}else return this.error(we.INVALID_TAG,Me(s,this.clonePosition()))},t.prototype.parseTagName=function(){var r=this.offset();for(this.bump();!this.isEOF()&&BT(this.char());)this.bump();return this.message.slice(r,this.offset())},t.prototype.parseLiteral=function(r,i){for(var s=this.clonePosition(),u="";;){var c=this.tryParseQuote(i);if(c){u+=c;continue}var d=this.tryParseUnquoted(r,i);if(d){u+=d;continue}var h=this.tryParseLeftAngleBracket();if(h){u+=h;continue}break}var m=Me(s,this.clonePosition());return{val:{type:Ye.literal,value:u,location:m},err:null}},t.prototype.tryParseLeftAngleBracket=function(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!LT(this.peek()||0))?(this.bump(),"<"):null},t.prototype.tryParseQuote=function(r){if(this.isEOF()||this.char()!==39)return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if(r==="plural"||r==="selectordinal")break;return null;default:return null}this.bump();var i=[this.char()];for(this.bump();!this.isEOF();){var s=this.char();if(s===39)if(this.peek()===39)i.push(39),this.bump();else{this.bump();break}else i.push(s);this.bump()}return Yd.apply(void 0,i)},t.prototype.tryParseUnquoted=function(r,i){if(this.isEOF())return null;var s=this.char();return s===60||s===123||s===35&&(i==="plural"||i==="selectordinal")||s===125&&r>0?null:(this.bump(),Yd(s))},t.prototype.parseArgument=function(r,i){var s=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(we.EXPECT_ARGUMENT_CLOSING_BRACE,Me(s,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(we.EMPTY_ARGUMENT,Me(s,this.clonePosition()));var u=this.parseIdentifierIfPossible().value;if(!u)return this.error(we.MALFORMED_ARGUMENT,Me(s,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(we.EXPECT_ARGUMENT_CLOSING_BRACE,Me(s,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:Ye.argument,value:u,location:Me(s,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(we.EXPECT_ARGUMENT_CLOSING_BRACE,Me(s,this.clonePosition())):this.parseArgumentOptions(r,i,u,s);default:return this.error(we.MALFORMED_ARGUMENT,Me(s,this.clonePosition()))}},t.prototype.parseIdentifierIfPossible=function(){var r=this.clonePosition(),i=this.offset(),s=Xd(this.message,i),u=i+s.length;this.bumpTo(u);var c=this.clonePosition(),d=Me(r,c);return{value:s,location:d}},t.prototype.parseArgumentOptions=function(r,i,s,u){var c,d=this.clonePosition(),h=this.parseIdentifierIfPossible().value,m=this.clonePosition();switch(h){case"":return this.error(we.EXPECT_ARGUMENT_TYPE,Me(d,m));case"number":case"date":case"time":{this.bumpSpace();var p=null;if(this.bumpIf(",")){this.bumpSpace();var b=this.clonePosition(),E=this.parseSimpleArgStyleIfPossible();if(E.err)return E;var A=MT(E.val);if(A.length===0)return this.error(we.EXPECT_ARGUMENT_STYLE,Me(this.clonePosition(),this.clonePosition()));var U=Me(b,this.clonePosition());p={style:A,styleLocation:U}}var R=this.tryParseArgumentClose(u);if(R.err)return R;var q=Me(u,this.clonePosition());if(p&&ry(p?.style,"::",0)){var G=NT(p.style.slice(2));if(h==="number"){var E=this.parseNumberSkeletonFromString(G,p.styleLocation);return E.err?E:{val:{type:Ye.number,value:s,location:q,style:E.val},err:null}}else{if(G.length===0)return this.error(we.EXPECT_DATE_TIME_SKELETON,q);var _=G;this.locale&&(_=yT(G,this.locale));var A={type:Ri.dateTime,pattern:_,location:p.styleLocation,parsedOptions:this.shouldParseSkeletons?cT(_):{}},C=h==="date"?Ye.date:Ye.time;return{val:{type:C,value:s,location:q,style:A},err:null}}}return{val:{type:h==="number"?Ye.number:h==="date"?Ye.date:Ye.time,value:s,location:q,style:(c=p?.style)!==null&&c!==void 0?c:null},err:null}}case"plural":case"selectordinal":case"select":{var S=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(we.EXPECT_SELECT_ARGUMENT_OPTIONS,Me(S,ie({},S)));this.bumpSpace();var H=this.parseIdentifierIfPossible(),O=0;if(h!=="select"&&H.value==="offset"){if(!this.bumpIf(":"))return this.error(we.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,Me(this.clonePosition(),this.clonePosition()));this.bumpSpace();var E=this.tryParseDecimalInteger(we.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,we.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(E.err)return E;this.bumpSpace(),H=this.parseIdentifierIfPossible(),O=E.val}var Q=this.tryParsePluralOrSelectOptions(r,h,i,H);if(Q.err)return Q;var R=this.tryParseArgumentClose(u);if(R.err)return R;var W=Me(u,this.clonePosition());return h==="select"?{val:{type:Ye.select,value:s,options:ay(Q.val),location:W},err:null}:{val:{type:Ye.plural,value:s,options:ay(Q.val),offset:O,pluralType:h==="plural"?"cardinal":"ordinal",location:W},err:null}}default:return this.error(we.INVALID_ARGUMENT_TYPE,Me(d,m))}},t.prototype.tryParseArgumentClose=function(r){return this.isEOF()||this.char()!==125?this.error(we.EXPECT_ARGUMENT_CLOSING_BRACE,Me(r,this.clonePosition())):(this.bump(),{val:!0,err:null})},t.prototype.parseSimpleArgStyleIfPossible=function(){for(var r=0,i=this.clonePosition();!this.isEOF();){var s=this.char();switch(s){case 39:{this.bump();var u=this.clonePosition();if(!this.bumpUntil("'"))return this.error(we.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,Me(u,this.clonePosition()));this.bump();break}case 123:{r+=1,this.bump();break}case 125:{if(r>0)r-=1;else return{val:this.message.slice(i.offset,this.offset()),err:null};break}default:this.bump();break}}return{val:this.message.slice(i.offset,this.offset()),err:null}},t.prototype.parseNumberSkeletonFromString=function(r,i){var s=[];try{s=dT(r)}catch{return this.error(we.INVALID_NUMBER_SKELETON,i)}return{val:{type:Ri.number,tokens:s,location:i,parsedOptions:this.shouldParseSkeletons?gT(s):{}},err:null}},t.prototype.tryParsePluralOrSelectOptions=function(r,i,s,u){for(var c,d=!1,h=[],m=new Set,p=u.value,b=u.location;;){if(p.length===0){var E=this.clonePosition();if(i!=="select"&&this.bumpIf("=")){var A=this.tryParseDecimalInteger(we.EXPECT_PLURAL_ARGUMENT_SELECTOR,we.INVALID_PLURAL_ARGUMENT_SELECTOR);if(A.err)return A;b=Me(E,this.clonePosition()),p=this.message.slice(E.offset,this.offset())}else break}if(m.has(p))return this.error(i==="select"?we.DUPLICATE_SELECT_ARGUMENT_SELECTOR:we.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,b);p==="other"&&(d=!0),this.bumpSpace();var U=this.clonePosition();if(!this.bumpIf("{"))return this.error(i==="select"?we.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:we.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,Me(this.clonePosition(),this.clonePosition()));var R=this.parseMessage(r+1,i,s);if(R.err)return R;var q=this.tryParseArgumentClose(U);if(q.err)return q;h.push([p,{value:R.val,location:Me(U,this.clonePosition())}]),m.add(p),this.bumpSpace(),c=this.parseIdentifierIfPossible(),p=c.value,b=c.location}return h.length===0?this.error(i==="select"?we.EXPECT_SELECT_ARGUMENT_SELECTOR:we.EXPECT_PLURAL_ARGUMENT_SELECTOR,Me(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!d?this.error(we.MISSING_OTHER_CLAUSE,Me(this.clonePosition(),this.clonePosition())):{val:h,err:null}},t.prototype.tryParseDecimalInteger=function(r,i){var s=1,u=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(s=-1);for(var c=!1,d=0;!this.isEOF();){var h=this.char();if(h>=48&&h<=57)c=!0,d=d*10+(h-48),this.bump();else break}var m=Me(u,this.clonePosition());return c?(d*=s,wT(d)?{val:d,err:null}:this.error(i,m)):this.error(r,m)},t.prototype.offset=function(){return this.position.offset},t.prototype.isEOF=function(){return this.offset()===this.message.length},t.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},t.prototype.char=function(){var r=this.position.offset;if(r>=this.message.length)throw Error("out of bound");var i=G1(this.message,r);if(i===void 0)throw Error("Offset ".concat(r," is at invalid UTF-16 code unit boundary"));return i},t.prototype.error=function(r,i){return{val:null,err:{kind:r,message:this.message,location:i}}},t.prototype.bump=function(){if(!this.isEOF()){var r=this.char();r===10?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=r<65536?1:2)}},t.prototype.bumpIf=function(r){if(ry(this.message,r,this.offset())){for(var i=0;i<r.length;i++)this.bump();return!0}return!1},t.prototype.bumpUntil=function(r){var i=this.offset(),s=this.message.indexOf(r,i);return s>=0?(this.bumpTo(s),!0):(this.bumpTo(this.message.length),!1)},t.prototype.bumpTo=function(r){if(this.offset()>r)throw Error("targetOffset ".concat(r," must be greater than or equal to the current offset ").concat(this.offset()));for(r=Math.min(r,this.message.length);;){var i=this.offset();if(i===r)break;if(i>r)throw Error("targetOffset ".concat(r," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},t.prototype.bumpSpace=function(){for(;!this.isEOF()&&q1(this.char());)this.bump()},t.prototype.peek=function(){if(this.isEOF())return null;var r=this.char(),i=this.offset(),s=this.message.charCodeAt(i+(r>=65536?2:1));return s??null},t}();function Zd(t){return t>=97&&t<=122||t>=65&&t<=90}function LT(t){return Zd(t)||t===47}function BT(t){return t===45||t===46||t>=48&&t<=57||t===95||t>=97&&t<=122||t>=65&&t<=90||t==183||t>=192&&t<=214||t>=216&&t<=246||t>=248&&t<=893||t>=895&&t<=8191||t>=8204&&t<=8205||t>=8255&&t<=8256||t>=8304&&t<=8591||t>=11264&&t<=12271||t>=12289&&t<=55295||t>=63744&&t<=64975||t>=65008&&t<=65533||t>=65536&&t<=983039}function q1(t){return t>=9&&t<=13||t===32||t===133||t>=8206&&t<=8207||t===8232||t===8233}function UT(t){return t>=33&&t<=35||t===36||t>=37&&t<=39||t===40||t===41||t===42||t===43||t===44||t===45||t>=46&&t<=47||t>=58&&t<=59||t>=60&&t<=62||t>=63&&t<=64||t===91||t===92||t===93||t===94||t===96||t===123||t===124||t===125||t===126||t===161||t>=162&&t<=165||t===166||t===167||t===169||t===171||t===172||t===174||t===176||t===177||t===182||t===187||t===191||t===215||t===247||t>=8208&&t<=8213||t>=8214&&t<=8215||t===8216||t===8217||t===8218||t>=8219&&t<=8220||t===8221||t===8222||t===8223||t>=8224&&t<=8231||t>=8240&&t<=8248||t===8249||t===8250||t>=8251&&t<=8254||t>=8257&&t<=8259||t===8260||t===8261||t===8262||t>=8263&&t<=8273||t===8274||t===8275||t>=8277&&t<=8286||t>=8592&&t<=8596||t>=8597&&t<=8601||t>=8602&&t<=8603||t>=8604&&t<=8607||t===8608||t>=8609&&t<=8610||t===8611||t>=8612&&t<=8613||t===8614||t>=8615&&t<=8621||t===8622||t>=8623&&t<=8653||t>=8654&&t<=8655||t>=8656&&t<=8657||t===8658||t===8659||t===8660||t>=8661&&t<=8691||t>=8692&&t<=8959||t>=8960&&t<=8967||t===8968||t===8969||t===8970||t===8971||t>=8972&&t<=8991||t>=8992&&t<=8993||t>=8994&&t<=9e3||t===9001||t===9002||t>=9003&&t<=9083||t===9084||t>=9085&&t<=9114||t>=9115&&t<=9139||t>=9140&&t<=9179||t>=9180&&t<=9185||t>=9186&&t<=9254||t>=9255&&t<=9279||t>=9280&&t<=9290||t>=9291&&t<=9311||t>=9472&&t<=9654||t===9655||t>=9656&&t<=9664||t===9665||t>=9666&&t<=9719||t>=9720&&t<=9727||t>=9728&&t<=9838||t===9839||t>=9840&&t<=10087||t===10088||t===10089||t===10090||t===10091||t===10092||t===10093||t===10094||t===10095||t===10096||t===10097||t===10098||t===10099||t===10100||t===10101||t>=10132&&t<=10175||t>=10176&&t<=10180||t===10181||t===10182||t>=10183&&t<=10213||t===10214||t===10215||t===10216||t===10217||t===10218||t===10219||t===10220||t===10221||t===10222||t===10223||t>=10224&&t<=10239||t>=10240&&t<=10495||t>=10496&&t<=10626||t===10627||t===10628||t===10629||t===10630||t===10631||t===10632||t===10633||t===10634||t===10635||t===10636||t===10637||t===10638||t===10639||t===10640||t===10641||t===10642||t===10643||t===10644||t===10645||t===10646||t===10647||t===10648||t>=10649&&t<=10711||t===10712||t===10713||t===10714||t===10715||t>=10716&&t<=10747||t===10748||t===10749||t>=10750&&t<=11007||t>=11008&&t<=11055||t>=11056&&t<=11076||t>=11077&&t<=11078||t>=11079&&t<=11084||t>=11085&&t<=11123||t>=11124&&t<=11125||t>=11126&&t<=11157||t===11158||t>=11159&&t<=11263||t>=11776&&t<=11777||t===11778||t===11779||t===11780||t===11781||t>=11782&&t<=11784||t===11785||t===11786||t===11787||t===11788||t===11789||t>=11790&&t<=11798||t===11799||t>=11800&&t<=11801||t===11802||t===11803||t===11804||t===11805||t>=11806&&t<=11807||t===11808||t===11809||t===11810||t===11811||t===11812||t===11813||t===11814||t===11815||t===11816||t===11817||t>=11818&&t<=11822||t===11823||t>=11824&&t<=11833||t>=11834&&t<=11835||t>=11836&&t<=11839||t===11840||t===11841||t===11842||t>=11843&&t<=11855||t>=11856&&t<=11857||t===11858||t>=11859&&t<=11903||t>=12289&&t<=12291||t===12296||t===12297||t===12298||t===12299||t===12300||t===12301||t===12302||t===12303||t===12304||t===12305||t>=12306&&t<=12307||t===12308||t===12309||t===12310||t===12311||t===12312||t===12313||t===12314||t===12315||t===12316||t===12317||t>=12318&&t<=12319||t===12320||t===12336||t===64830||t===64831||t>=65093&&t<=65094}function Qd(t){t.forEach(function(r){if(delete r.location,D1(r)||L1(r))for(var i in r.options)delete r.options[i].location,Qd(r.options[i].value);else C1(r)&&U1(r.style)||(N1(r)||M1(r))&&Vd(r.style)?delete r.style.location:B1(r)&&Qd(r.children)})}function HT(t,r){r===void 0&&(r={}),r=ie({shouldParseSkeletons:!0,requiresOtherClause:!0},r);var i=new DT(t,r).parse();if(i.err){var s=SyntaxError(we[i.err.kind]);throw s.location=i.err.location,s.originalMessage=i.err.message,s}return r?.captureLocation||Qd(i.val),i.val}var er;(function(t){t.MISSING_VALUE="MISSING_VALUE",t.INVALID_VALUE="INVALID_VALUE",t.MISSING_INTL_API="MISSING_INTL_API"})(er||(er={}));var oa=function(t){An(r,t);function r(i,s,u){var c=t.call(this,i)||this;return c.code=s,c.originalMessage=u,c}return r.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},r}(Error),sy=function(t){An(r,t);function r(i,s,u,c){return t.call(this,'Invalid values for "'.concat(i,'": "').concat(s,'". Options are "').concat(Object.keys(u).join('", "'),'"'),er.INVALID_VALUE,c)||this}return r}(oa),jT=function(t){An(r,t);function r(i,s,u){return t.call(this,'Value for "'.concat(i,'" must be of type ').concat(s),er.INVALID_VALUE,u)||this}return r}(oa),IT=function(t){An(r,t);function r(i,s){return t.call(this,'The intl string context variable "'.concat(i,'" was not provided to the string "').concat(s,'"'),er.MISSING_VALUE,s)||this}return r}(oa),It;(function(t){t[t.literal=0]="literal",t[t.object=1]="object"})(It||(It={}));function zT(t){return t.length<2?t:t.reduce(function(r,i){var s=r[r.length-1];return!s||s.type!==It.literal||i.type!==It.literal?r.push(i):s.value+=i.value,r},[])}function F1(t){return typeof t=="function"}function Fo(t,r,i,s,u,c,d){if(t.length===1&&Jg(t[0]))return[{type:It.literal,value:t[0].value}];for(var h=[],m=0,p=t;m<p.length;m++){var b=p[m];if(Jg(b)){h.push({type:It.literal,value:b.value});continue}if(oT(b)){typeof c=="number"&&h.push({type:It.literal,value:i.getNumberFormat(r).format(c)});continue}var E=b.value;if(!(u&&E in u))throw new IT(E,d);var A=u[E];if(lT(b)){(!A||typeof A=="string"||typeof A=="number")&&(A=typeof A=="string"||typeof A=="number"?String(A):""),h.push({type:typeof A=="string"?It.literal:It.object,value:A});continue}if(N1(b)){var U=typeof b.style=="string"?s.date[b.style]:Vd(b.style)?b.style.parsedOptions:void 0;h.push({type:It.literal,value:i.getDateTimeFormat(r,U).format(A)});continue}if(M1(b)){var U=typeof b.style=="string"?s.time[b.style]:Vd(b.style)?b.style.parsedOptions:s.time.medium;h.push({type:It.literal,value:i.getDateTimeFormat(r,U).format(A)});continue}if(C1(b)){var U=typeof b.style=="string"?s.number[b.style]:U1(b.style)?b.style.parsedOptions:void 0;U&&U.scale&&(A=A*(U.scale||1)),h.push({type:It.literal,value:i.getNumberFormat(r,U).format(A)});continue}if(B1(b)){var R=b.children,q=b.value,G=u[q];if(!F1(G))throw new jT(q,"function",d);var _=Fo(R,r,i,s,u,c),C=G(_.map(function(O){return O.value}));Array.isArray(C)||(C=[C]),h.push.apply(h,C.map(function(O){return{type:typeof O=="string"?It.literal:It.object,value:O}}))}if(D1(b)){var S=b.options[A]||b.options.other;if(!S)throw new sy(b.value,A,Object.keys(b.options),d);h.push.apply(h,Fo(S.value,r,i,s,u));continue}if(L1(b)){var S=b.options["=".concat(A)];if(!S){if(!Intl.PluralRules)throw new oa(`Intl.PluralRules is not available in this environment.
65
+ */var Wg;function JS(){return Wg||(Wg=1,function(t){(function(){var r={}.hasOwnProperty;function i(){for(var c="",d=0;d<arguments.length;d++){var h=arguments[d];h&&(c=u(c,s(h)))}return c}function s(c){if(typeof c=="string"||typeof c=="number")return c;if(typeof c!="object")return"";if(Array.isArray(c))return i.apply(null,c);if(c.toString!==Object.prototype.toString&&!c.toString.toString().includes("[native code]"))return c.toString();var d="";for(var h in c)r.call(c,h)&&c[h]&&(d=u(d,h));return d}function u(c,d){return d?c?c+" "+d:c+d:c}t.exports?(i.default=i,t.exports=i):window.classNames=i})()}(Ff)),Ff.exports}var eT=JS();const Z=lu(eT);var Vd=function(t,r){return Vd=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,s){i.__proto__=s}||function(i,s){for(var u in s)Object.prototype.hasOwnProperty.call(s,u)&&(i[u]=s[u])},Vd(t,r)};function An(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");Vd(t,r);function i(){this.constructor=t}t.prototype=r===null?Object.create(r):(i.prototype=r.prototype,new i)}var ie=function(){return ie=Object.assign||function(r){for(var i,s=1,u=arguments.length;s<u;s++){i=arguments[s];for(var c in i)Object.prototype.hasOwnProperty.call(i,c)&&(r[c]=i[c])}return r},ie.apply(this,arguments)};function uu(t,r){var i={};for(var s in t)Object.prototype.hasOwnProperty.call(t,s)&&r.indexOf(s)<0&&(i[s]=t[s]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var u=0,s=Object.getOwnPropertySymbols(t);u<s.length;u++)r.indexOf(s[u])<0&&Object.prototype.propertyIsEnumerable.call(t,s[u])&&(i[s[u]]=t[s[u]]);return i}function Wn(t,r,i){if(i||arguments.length===2)for(var s=0,u=r.length,c;s<u;s++)(c||!(s in r))&&(c||(c=Array.prototype.slice.call(r,0,s)),c[s]=r[s]);return t.concat(c||Array.prototype.slice.call(r))}function Kn(t,r){var i=r&&r.cache?r.cache:lT,s=r&&r.serializer?r.serializer:iT,u=r&&r.strategy?r.strategy:rT;return u(t,{cache:i,serializer:s})}function tT(t){return t==null||typeof t=="number"||typeof t=="boolean"}function nT(t,r,i,s){var u=tT(s)?s:i(s),c=r.get(u);return typeof c>"u"&&(c=t.call(this,s),r.set(u,c)),c}function R1(t,r,i){var s=Array.prototype.slice.call(arguments,3),u=i(s),c=r.get(u);return typeof c>"u"&&(c=t.apply(this,s),r.set(u,c)),c}function w1(t,r,i,s,u){return i.bind(r,t,s,u)}function rT(t,r){var i=t.length===1?nT:R1;return w1(t,this,i,r.cache.create(),r.serializer)}function aT(t,r){return w1(t,this,R1,r.cache.create(),r.serializer)}var iT=function(){return JSON.stringify(arguments)},sT=function(){function t(){this.cache=Object.create(null)}return t.prototype.get=function(r){return this.cache[r]},t.prototype.set=function(r,i){this.cache[r]=i},t}(),lT={create:function(){return new sT}},$n={variadic:aT},we;(function(t){t[t.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",t[t.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",t[t.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",t[t.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",t[t.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",t[t.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",t[t.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",t[t.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",t[t.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",t[t.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",t[t.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",t[t.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",t[t.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",t[t.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",t[t.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",t[t.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",t[t.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",t[t.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",t[t.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",t[t.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",t[t.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",t[t.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",t[t.INVALID_TAG=23]="INVALID_TAG",t[t.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",t[t.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",t[t.UNCLOSED_TAG=27]="UNCLOSED_TAG"})(we||(we={}));var Ye;(function(t){t[t.literal=0]="literal",t[t.argument=1]="argument",t[t.number=2]="number",t[t.date=3]="date",t[t.time=4]="time",t[t.select=5]="select",t[t.plural=6]="plural",t[t.pound=7]="pound",t[t.tag=8]="tag"})(Ye||(Ye={}));var Ri;(function(t){t[t.number=0]="number",t[t.dateTime=1]="dateTime"})(Ri||(Ri={}));function Jg(t){return t.type===Ye.literal}function oT(t){return t.type===Ye.argument}function C1(t){return t.type===Ye.number}function N1(t){return t.type===Ye.date}function M1(t){return t.type===Ye.time}function D1(t){return t.type===Ye.select}function L1(t){return t.type===Ye.plural}function uT(t){return t.type===Ye.pound}function B1(t){return t.type===Ye.tag}function U1(t){return!!(t&&typeof t=="object"&&t.type===Ri.number)}function Pd(t){return!!(t&&typeof t=="object"&&t.type===Ri.dateTime)}var H1=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,cT=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;function fT(t){var r={};return t.replace(cT,function(i){var s=i.length;switch(i[0]){case"G":r.era=s===4?"long":s===5?"narrow":"short";break;case"y":r.year=s===2?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw new RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":r.month=["numeric","2-digit","short","long","narrow"][s-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":r.day=["numeric","2-digit"][s-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":r.weekday=s===4?"long":s===5?"narrow":"short";break;case"e":if(s<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");r.weekday=["short","long","narrow","short"][s-4];break;case"c":if(s<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");r.weekday=["short","long","narrow","short"][s-4];break;case"a":r.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":r.hourCycle="h12",r.hour=["numeric","2-digit"][s-1];break;case"H":r.hourCycle="h23",r.hour=["numeric","2-digit"][s-1];break;case"K":r.hourCycle="h11",r.hour=["numeric","2-digit"][s-1];break;case"k":r.hourCycle="h24",r.hour=["numeric","2-digit"][s-1];break;case"j":case"J":case"C":throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":r.minute=["numeric","2-digit"][s-1];break;case"s":r.second=["numeric","2-digit"][s-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":r.timeZoneName=s<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""}),r}var dT=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function hT(t){if(t.length===0)throw new Error("Number skeleton cannot be empty");for(var r=t.split(dT).filter(function(A){return A.length>0}),i=[],s=0,u=r;s<u.length;s++){var c=u[s],d=c.split("/");if(d.length===0)throw new Error("Invalid number skeleton");for(var h=d[0],m=d.slice(1),p=0,b=m;p<b.length;p++){var E=b[p];if(E.length===0)throw new Error("Invalid number skeleton")}i.push({stem:h,options:m})}return i}function mT(t){return t.replace(/^(.*?)-/,"")}var ey=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,j1=/^(@+)?(\+|#+)?[rs]?$/g,pT=/(\*)(0+)|(#+)(0+)|(0+)/g,I1=/^(0+)$/;function ty(t){var r={};return t[t.length-1]==="r"?r.roundingPriority="morePrecision":t[t.length-1]==="s"&&(r.roundingPriority="lessPrecision"),t.replace(j1,function(i,s,u){return typeof u!="string"?(r.minimumSignificantDigits=s.length,r.maximumSignificantDigits=s.length):u==="+"?r.minimumSignificantDigits=s.length:s[0]==="#"?r.maximumSignificantDigits=s.length:(r.minimumSignificantDigits=s.length,r.maximumSignificantDigits=s.length+(typeof u=="string"?u.length:0)),""}),r}function z1(t){switch(t){case"sign-auto":return{signDisplay:"auto"};case"sign-accounting":case"()":return{currencySign:"accounting"};case"sign-always":case"+!":return{signDisplay:"always"};case"sign-accounting-always":case"()!":return{signDisplay:"always",currencySign:"accounting"};case"sign-except-zero":case"+?":return{signDisplay:"exceptZero"};case"sign-accounting-except-zero":case"()?":return{signDisplay:"exceptZero",currencySign:"accounting"};case"sign-never":case"+_":return{signDisplay:"never"}}}function gT(t){var r;if(t[0]==="E"&&t[1]==="E"?(r={notation:"engineering"},t=t.slice(2)):t[0]==="E"&&(r={notation:"scientific"},t=t.slice(1)),r){var i=t.slice(0,2);if(i==="+!"?(r.signDisplay="always",t=t.slice(2)):i==="+?"&&(r.signDisplay="exceptZero",t=t.slice(2)),!I1.test(t))throw new Error("Malformed concise eng/scientific notation");r.minimumIntegerDigits=t.length}return r}function ny(t){var r={},i=z1(t);return i||r}function yT(t){for(var r={},i=0,s=t;i<s.length;i++){var u=s[i];switch(u.stem){case"percent":case"%":r.style="percent";continue;case"%x100":r.style="percent",r.scale=100;continue;case"currency":r.style="currency",r.currency=u.options[0];continue;case"group-off":case",_":r.useGrouping=!1;continue;case"precision-integer":case".":r.maximumFractionDigits=0;continue;case"measure-unit":case"unit":r.style="unit",r.unit=mT(u.options[0]);continue;case"compact-short":case"K":r.notation="compact",r.compactDisplay="short";continue;case"compact-long":case"KK":r.notation="compact",r.compactDisplay="long";continue;case"scientific":r=ie(ie(ie({},r),{notation:"scientific"}),u.options.reduce(function(m,p){return ie(ie({},m),ny(p))},{}));continue;case"engineering":r=ie(ie(ie({},r),{notation:"engineering"}),u.options.reduce(function(m,p){return ie(ie({},m),ny(p))},{}));continue;case"notation-simple":r.notation="standard";continue;case"unit-width-narrow":r.currencyDisplay="narrowSymbol",r.unitDisplay="narrow";continue;case"unit-width-short":r.currencyDisplay="code",r.unitDisplay="short";continue;case"unit-width-full-name":r.currencyDisplay="name",r.unitDisplay="long";continue;case"unit-width-iso-code":r.currencyDisplay="symbol";continue;case"scale":r.scale=parseFloat(u.options[0]);continue;case"rounding-mode-floor":r.roundingMode="floor";continue;case"rounding-mode-ceiling":r.roundingMode="ceil";continue;case"rounding-mode-down":r.roundingMode="trunc";continue;case"rounding-mode-up":r.roundingMode="expand";continue;case"rounding-mode-half-even":r.roundingMode="halfEven";continue;case"rounding-mode-half-down":r.roundingMode="halfTrunc";continue;case"rounding-mode-half-up":r.roundingMode="halfExpand";continue;case"integer-width":if(u.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");u.options[0].replace(pT,function(m,p,b,E,A,L){if(p)r.minimumIntegerDigits=b.length;else{if(E&&A)throw new Error("We currently do not support maximum integer digits");if(L)throw new Error("We currently do not support exact integer digits")}return""});continue}if(I1.test(u.stem)){r.minimumIntegerDigits=u.stem.length;continue}if(ey.test(u.stem)){if(u.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");u.stem.replace(ey,function(m,p,b,E,A,L){return b==="*"?r.minimumFractionDigits=p.length:E&&E[0]==="#"?r.maximumFractionDigits=E.length:A&&L?(r.minimumFractionDigits=A.length,r.maximumFractionDigits=A.length+L.length):(r.minimumFractionDigits=p.length,r.maximumFractionDigits=p.length),""});var c=u.options[0];c==="w"?r=ie(ie({},r),{trailingZeroDisplay:"stripIfInteger"}):c&&(r=ie(ie({},r),ty(c)));continue}if(j1.test(u.stem)){r=ie(ie({},r),ty(u.stem));continue}var d=z1(u.stem);d&&(r=ie(ie({},r),d));var h=gT(u.stem);h&&(r=ie(ie({},r),h))}return r}var bo={"001":["H","h"],419:["h","H","hB","hb"],AC:["H","h","hb","hB"],AD:["H","hB"],AE:["h","hB","hb","H"],AF:["H","hb","hB","h"],AG:["h","hb","H","hB"],AI:["H","h","hb","hB"],AL:["h","H","hB"],AM:["H","hB"],AO:["H","hB"],AR:["h","H","hB","hb"],AS:["h","H"],AT:["H","hB"],AU:["h","hb","H","hB"],AW:["H","hB"],AX:["H"],AZ:["H","hB","h"],BA:["H","hB","h"],BB:["h","hb","H","hB"],BD:["h","hB","H"],BE:["H","hB"],BF:["H","hB"],BG:["H","hB","h"],BH:["h","hB","hb","H"],BI:["H","h"],BJ:["H","hB"],BL:["H","hB"],BM:["h","hb","H","hB"],BN:["hb","hB","h","H"],BO:["h","H","hB","hb"],BQ:["H"],BR:["H","hB"],BS:["h","hb","H","hB"],BT:["h","H"],BW:["H","h","hb","hB"],BY:["H","h"],BZ:["H","h","hb","hB"],CA:["h","hb","H","hB"],CC:["H","h","hb","hB"],CD:["hB","H"],CF:["H","h","hB"],CG:["H","hB"],CH:["H","hB","h"],CI:["H","hB"],CK:["H","h","hb","hB"],CL:["h","H","hB","hb"],CM:["H","h","hB"],CN:["H","hB","hb","h"],CO:["h","H","hB","hb"],CP:["H"],CR:["h","H","hB","hb"],CU:["h","H","hB","hb"],CV:["H","hB"],CW:["H","hB"],CX:["H","h","hb","hB"],CY:["h","H","hb","hB"],CZ:["H"],DE:["H","hB"],DG:["H","h","hb","hB"],DJ:["h","H"],DK:["H"],DM:["h","hb","H","hB"],DO:["h","H","hB","hb"],DZ:["h","hB","hb","H"],EA:["H","h","hB","hb"],EC:["h","H","hB","hb"],EE:["H","hB"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],ER:["h","H"],ES:["H","hB","h","hb"],ET:["hB","hb","h","H"],FI:["H"],FJ:["h","hb","H","hB"],FK:["H","h","hb","hB"],FM:["h","hb","H","hB"],FO:["H","h"],FR:["H","hB"],GA:["H","hB"],GB:["H","h","hb","hB"],GD:["h","hb","H","hB"],GE:["H","hB","h"],GF:["H","hB"],GG:["H","h","hb","hB"],GH:["h","H"],GI:["H","h","hb","hB"],GL:["H","h"],GM:["h","hb","H","hB"],GN:["H","hB"],GP:["H","hB"],GQ:["H","hB","h","hb"],GR:["h","H","hb","hB"],GT:["h","H","hB","hb"],GU:["h","hb","H","hB"],GW:["H","hB"],GY:["h","hb","H","hB"],HK:["h","hB","hb","H"],HN:["h","H","hB","hb"],HR:["H","hB"],HU:["H","h"],IC:["H","h","hB","hb"],ID:["H"],IE:["H","h","hb","hB"],IL:["H","hB"],IM:["H","h","hb","hB"],IN:["h","H"],IO:["H","h","hb","hB"],IQ:["h","hB","hb","H"],IR:["hB","H"],IS:["H"],IT:["H","hB"],JE:["H","h","hb","hB"],JM:["h","hb","H","hB"],JO:["h","hB","hb","H"],JP:["H","K","h"],KE:["hB","hb","H","h"],KG:["H","h","hB","hb"],KH:["hB","h","H","hb"],KI:["h","hb","H","hB"],KM:["H","h","hB","hb"],KN:["h","hb","H","hB"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],KW:["h","hB","hb","H"],KY:["h","hb","H","hB"],KZ:["H","hB"],LA:["H","hb","hB","h"],LB:["h","hB","hb","H"],LC:["h","hb","H","hB"],LI:["H","hB","h"],LK:["H","h","hB","hb"],LR:["h","hb","H","hB"],LS:["h","H"],LT:["H","h","hb","hB"],LU:["H","h","hB"],LV:["H","hB","hb","h"],LY:["h","hB","hb","H"],MA:["H","h","hB","hb"],MC:["H","hB"],MD:["H","hB"],ME:["H","hB","h"],MF:["H","hB"],MG:["H","h"],MH:["h","hb","H","hB"],MK:["H","h","hb","hB"],ML:["H"],MM:["hB","hb","H","h"],MN:["H","h","hb","hB"],MO:["h","hB","hb","H"],MP:["h","hb","H","hB"],MQ:["H","hB"],MR:["h","hB","hb","H"],MS:["H","h","hb","hB"],MT:["H","h"],MU:["H","h"],MV:["H","h"],MW:["h","hb","H","hB"],MX:["h","H","hB","hb"],MY:["hb","hB","h","H"],MZ:["H","hB"],NA:["h","H","hB","hb"],NC:["H","hB"],NE:["H"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NI:["h","H","hB","hb"],NL:["H","hB"],NO:["H","h"],NP:["H","h","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],NZ:["h","hb","H","hB"],OM:["h","hB","hb","H"],PA:["h","H","hB","hb"],PE:["h","H","hB","hb"],PF:["H","h","hB"],PG:["h","H"],PH:["h","hB","hb","H"],PK:["h","hB","H"],PL:["H","h"],PM:["H","hB"],PN:["H","h","hb","hB"],PR:["h","H","hB","hb"],PS:["h","hB","hb","H"],PT:["H","hB"],PW:["h","H"],PY:["h","H","hB","hb"],QA:["h","hB","hb","H"],RE:["H","hB"],RO:["H","hB"],RS:["H","hB","h"],RU:["H"],RW:["H","h"],SA:["h","hB","hb","H"],SB:["h","hb","H","hB"],SC:["H","h","hB"],SD:["h","hB","hb","H"],SE:["H"],SG:["h","hb","H","hB"],SH:["H","h","hb","hB"],SI:["H","hB"],SJ:["H"],SK:["H"],SL:["h","hb","H","hB"],SM:["H","h","hB"],SN:["H","h","hB"],SO:["h","H"],SR:["H","hB"],SS:["h","hb","H","hB"],ST:["H","hB"],SV:["h","H","hB","hb"],SX:["H","h","hb","hB"],SY:["h","hB","hb","H"],SZ:["h","hb","H","hB"],TA:["H","h","hb","hB"],TC:["h","hb","H","hB"],TD:["h","H","hB"],TF:["H","h","hB"],TG:["H","hB"],TH:["H","h"],TJ:["H","h"],TL:["H","hB","hb","h"],TM:["H","h"],TN:["h","hB","hb","H"],TO:["h","H"],TR:["H","hB"],TT:["h","hb","H","hB"],TW:["hB","hb","h","H"],TZ:["hB","hb","H","h"],UA:["H","hB","h"],UG:["hB","hb","H","h"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],UY:["h","H","hB","hb"],UZ:["H","hB","h"],VA:["H","h","hB"],VC:["h","hb","H","hB"],VE:["h","H","hB","hb"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],VN:["H","h"],VU:["h","H"],WF:["H","hB"],WS:["h","H"],XK:["H","hB","h"],YE:["h","hB","hb","H"],YT:["H","hB"],ZA:["H","h","hb","hB"],ZM:["h","hb","H","hB"],ZW:["H","h"],"af-ZA":["H","h","hB","hb"],"ar-001":["h","hB","hb","H"],"ca-ES":["H","h","hB"],"en-001":["h","hb","H","hB"],"en-HK":["h","hb","H","hB"],"en-IL":["H","h","hb","hB"],"en-MY":["h","hb","H","hB"],"es-BR":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"gu-IN":["hB","hb","h","H"],"hi-IN":["hB","h","H"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],"ta-IN":["hB","h","hb","H"],"te-IN":["hB","h","H"],"zu-ZA":["H","hB","hb","h"]};function bT(t,r){for(var i="",s=0;s<t.length;s++){var u=t.charAt(s);if(u==="j"){for(var c=0;s+1<t.length&&t.charAt(s+1)===u;)c++,s++;var d=1+(c&1),h=c<2?1:3+(c>>1),m="a",p=vT(r);for((p=="H"||p=="k")&&(h=0);h-- >0;)i+=m;for(;d-- >0;)i=p+i}else u==="J"?i+="H":i+=u}return i}function vT(t){var r=t.hourCycle;if(r===void 0&&t.hourCycles&&t.hourCycles.length&&(r=t.hourCycles[0]),r)switch(r){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}var i=t.language,s;i!=="root"&&(s=t.maximize().region);var u=bo[s||""]||bo[i||""]||bo["".concat(i,"-001")]||bo["001"];return u[0]}var Vf,_T=new RegExp("^".concat(H1.source,"*")),ET=new RegExp("".concat(H1.source,"*$"));function Me(t,r){return{start:t,end:r}}var ST=!!String.prototype.startsWith&&"_a".startsWith("a",1),TT=!!String.fromCodePoint,AT=!!Object.fromEntries,xT=!!String.prototype.codePointAt,OT=!!String.prototype.trimStart,RT=!!String.prototype.trimEnd,wT=!!Number.isSafeInteger,CT=wT?Number.isSafeInteger:function(t){return typeof t=="number"&&isFinite(t)&&Math.floor(t)===t&&Math.abs(t)<=9007199254740991},Yd=!0;try{var NT=k1("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");Yd=((Vf=NT.exec("a"))===null||Vf===void 0?void 0:Vf[0])==="a"}catch{Yd=!1}var ry=ST?function(r,i,s){return r.startsWith(i,s)}:function(r,i,s){return r.slice(s,s+i.length)===i},Xd=TT?String.fromCodePoint:function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];for(var s="",u=r.length,c=0,d;u>c;){if(d=r[c++],d>1114111)throw RangeError(d+" is not a valid code point");s+=d<65536?String.fromCharCode(d):String.fromCharCode(((d-=65536)>>10)+55296,d%1024+56320)}return s},ay=AT?Object.fromEntries:function(r){for(var i={},s=0,u=r;s<u.length;s++){var c=u[s],d=c[0],h=c[1];i[d]=h}return i},G1=xT?function(r,i){return r.codePointAt(i)}:function(r,i){var s=r.length;if(!(i<0||i>=s)){var u=r.charCodeAt(i),c;return u<55296||u>56319||i+1===s||(c=r.charCodeAt(i+1))<56320||c>57343?u:(u-55296<<10)+(c-56320)+65536}},MT=OT?function(r){return r.trimStart()}:function(r){return r.replace(_T,"")},DT=RT?function(r){return r.trimEnd()}:function(r){return r.replace(ET,"")};function k1(t,r){return new RegExp(t,r)}var Zd;if(Yd){var iy=k1("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");Zd=function(r,i){var s;iy.lastIndex=i;var u=iy.exec(r);return(s=u[1])!==null&&s!==void 0?s:""}}else Zd=function(r,i){for(var s=[];;){var u=G1(r,i);if(u===void 0||q1(u)||HT(u))break;s.push(u),i+=u>=65536?2:1}return Xd.apply(void 0,s)};var LT=function(){function t(r,i){i===void 0&&(i={}),this.message=r,this.position={offset:0,line:1,column:1},this.ignoreTag=!!i.ignoreTag,this.locale=i.locale,this.requiresOtherClause=!!i.requiresOtherClause,this.shouldParseSkeletons=!!i.shouldParseSkeletons}return t.prototype.parse=function(){if(this.offset()!==0)throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},t.prototype.parseMessage=function(r,i,s){for(var u=[];!this.isEOF();){var c=this.char();if(c===123){var d=this.parseArgument(r,s);if(d.err)return d;u.push(d.val)}else{if(c===125&&r>0)break;if(c===35&&(i==="plural"||i==="selectordinal")){var h=this.clonePosition();this.bump(),u.push({type:Ye.pound,location:Me(h,this.clonePosition())})}else if(c===60&&!this.ignoreTag&&this.peek()===47){if(s)break;return this.error(we.UNMATCHED_CLOSING_TAG,Me(this.clonePosition(),this.clonePosition()))}else if(c===60&&!this.ignoreTag&&Qd(this.peek()||0)){var d=this.parseTag(r,i);if(d.err)return d;u.push(d.val)}else{var d=this.parseLiteral(r,i);if(d.err)return d;u.push(d.val)}}}return{val:u,err:null}},t.prototype.parseTag=function(r,i){var s=this.clonePosition();this.bump();var u=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:Ye.literal,value:"<".concat(u,"/>"),location:Me(s,this.clonePosition())},err:null};if(this.bumpIf(">")){var c=this.parseMessage(r+1,i,!0);if(c.err)return c;var d=c.val,h=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!Qd(this.char()))return this.error(we.INVALID_TAG,Me(h,this.clonePosition()));var m=this.clonePosition(),p=this.parseTagName();return u!==p?this.error(we.UNMATCHED_CLOSING_TAG,Me(m,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:Ye.tag,value:u,children:d,location:Me(s,this.clonePosition())},err:null}:this.error(we.INVALID_TAG,Me(h,this.clonePosition())))}else return this.error(we.UNCLOSED_TAG,Me(s,this.clonePosition()))}else return this.error(we.INVALID_TAG,Me(s,this.clonePosition()))},t.prototype.parseTagName=function(){var r=this.offset();for(this.bump();!this.isEOF()&&UT(this.char());)this.bump();return this.message.slice(r,this.offset())},t.prototype.parseLiteral=function(r,i){for(var s=this.clonePosition(),u="";;){var c=this.tryParseQuote(i);if(c){u+=c;continue}var d=this.tryParseUnquoted(r,i);if(d){u+=d;continue}var h=this.tryParseLeftAngleBracket();if(h){u+=h;continue}break}var m=Me(s,this.clonePosition());return{val:{type:Ye.literal,value:u,location:m},err:null}},t.prototype.tryParseLeftAngleBracket=function(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!BT(this.peek()||0))?(this.bump(),"<"):null},t.prototype.tryParseQuote=function(r){if(this.isEOF()||this.char()!==39)return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if(r==="plural"||r==="selectordinal")break;return null;default:return null}this.bump();var i=[this.char()];for(this.bump();!this.isEOF();){var s=this.char();if(s===39)if(this.peek()===39)i.push(39),this.bump();else{this.bump();break}else i.push(s);this.bump()}return Xd.apply(void 0,i)},t.prototype.tryParseUnquoted=function(r,i){if(this.isEOF())return null;var s=this.char();return s===60||s===123||s===35&&(i==="plural"||i==="selectordinal")||s===125&&r>0?null:(this.bump(),Xd(s))},t.prototype.parseArgument=function(r,i){var s=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(we.EXPECT_ARGUMENT_CLOSING_BRACE,Me(s,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(we.EMPTY_ARGUMENT,Me(s,this.clonePosition()));var u=this.parseIdentifierIfPossible().value;if(!u)return this.error(we.MALFORMED_ARGUMENT,Me(s,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(we.EXPECT_ARGUMENT_CLOSING_BRACE,Me(s,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:Ye.argument,value:u,location:Me(s,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(we.EXPECT_ARGUMENT_CLOSING_BRACE,Me(s,this.clonePosition())):this.parseArgumentOptions(r,i,u,s);default:return this.error(we.MALFORMED_ARGUMENT,Me(s,this.clonePosition()))}},t.prototype.parseIdentifierIfPossible=function(){var r=this.clonePosition(),i=this.offset(),s=Zd(this.message,i),u=i+s.length;this.bumpTo(u);var c=this.clonePosition(),d=Me(r,c);return{value:s,location:d}},t.prototype.parseArgumentOptions=function(r,i,s,u){var c,d=this.clonePosition(),h=this.parseIdentifierIfPossible().value,m=this.clonePosition();switch(h){case"":return this.error(we.EXPECT_ARGUMENT_TYPE,Me(d,m));case"number":case"date":case"time":{this.bumpSpace();var p=null;if(this.bumpIf(",")){this.bumpSpace();var b=this.clonePosition(),E=this.parseSimpleArgStyleIfPossible();if(E.err)return E;var A=DT(E.val);if(A.length===0)return this.error(we.EXPECT_ARGUMENT_STYLE,Me(this.clonePosition(),this.clonePosition()));var L=Me(b,this.clonePosition());p={style:A,styleLocation:L}}var R=this.tryParseArgumentClose(u);if(R.err)return R;var q=Me(u,this.clonePosition());if(p&&ry(p?.style,"::",0)){var G=MT(p.style.slice(2));if(h==="number"){var E=this.parseNumberSkeletonFromString(G,p.styleLocation);return E.err?E:{val:{type:Ye.number,value:s,location:q,style:E.val},err:null}}else{if(G.length===0)return this.error(we.EXPECT_DATE_TIME_SKELETON,q);var _=G;this.locale&&(_=bT(G,this.locale));var A={type:Ri.dateTime,pattern:_,location:p.styleLocation,parsedOptions:this.shouldParseSkeletons?fT(_):{}},C=h==="date"?Ye.date:Ye.time;return{val:{type:C,value:s,location:q,style:A},err:null}}}return{val:{type:h==="number"?Ye.number:h==="date"?Ye.date:Ye.time,value:s,location:q,style:(c=p?.style)!==null&&c!==void 0?c:null},err:null}}case"plural":case"selectordinal":case"select":{var S=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(we.EXPECT_SELECT_ARGUMENT_OPTIONS,Me(S,ie({},S)));this.bumpSpace();var H=this.parseIdentifierIfPossible(),x=0;if(h!=="select"&&H.value==="offset"){if(!this.bumpIf(":"))return this.error(we.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,Me(this.clonePosition(),this.clonePosition()));this.bumpSpace();var E=this.tryParseDecimalInteger(we.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,we.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(E.err)return E;this.bumpSpace(),H=this.parseIdentifierIfPossible(),x=E.val}var Q=this.tryParsePluralOrSelectOptions(r,h,i,H);if(Q.err)return Q;var R=this.tryParseArgumentClose(u);if(R.err)return R;var W=Me(u,this.clonePosition());return h==="select"?{val:{type:Ye.select,value:s,options:ay(Q.val),location:W},err:null}:{val:{type:Ye.plural,value:s,options:ay(Q.val),offset:x,pluralType:h==="plural"?"cardinal":"ordinal",location:W},err:null}}default:return this.error(we.INVALID_ARGUMENT_TYPE,Me(d,m))}},t.prototype.tryParseArgumentClose=function(r){return this.isEOF()||this.char()!==125?this.error(we.EXPECT_ARGUMENT_CLOSING_BRACE,Me(r,this.clonePosition())):(this.bump(),{val:!0,err:null})},t.prototype.parseSimpleArgStyleIfPossible=function(){for(var r=0,i=this.clonePosition();!this.isEOF();){var s=this.char();switch(s){case 39:{this.bump();var u=this.clonePosition();if(!this.bumpUntil("'"))return this.error(we.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,Me(u,this.clonePosition()));this.bump();break}case 123:{r+=1,this.bump();break}case 125:{if(r>0)r-=1;else return{val:this.message.slice(i.offset,this.offset()),err:null};break}default:this.bump();break}}return{val:this.message.slice(i.offset,this.offset()),err:null}},t.prototype.parseNumberSkeletonFromString=function(r,i){var s=[];try{s=hT(r)}catch{return this.error(we.INVALID_NUMBER_SKELETON,i)}return{val:{type:Ri.number,tokens:s,location:i,parsedOptions:this.shouldParseSkeletons?yT(s):{}},err:null}},t.prototype.tryParsePluralOrSelectOptions=function(r,i,s,u){for(var c,d=!1,h=[],m=new Set,p=u.value,b=u.location;;){if(p.length===0){var E=this.clonePosition();if(i!=="select"&&this.bumpIf("=")){var A=this.tryParseDecimalInteger(we.EXPECT_PLURAL_ARGUMENT_SELECTOR,we.INVALID_PLURAL_ARGUMENT_SELECTOR);if(A.err)return A;b=Me(E,this.clonePosition()),p=this.message.slice(E.offset,this.offset())}else break}if(m.has(p))return this.error(i==="select"?we.DUPLICATE_SELECT_ARGUMENT_SELECTOR:we.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,b);p==="other"&&(d=!0),this.bumpSpace();var L=this.clonePosition();if(!this.bumpIf("{"))return this.error(i==="select"?we.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:we.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,Me(this.clonePosition(),this.clonePosition()));var R=this.parseMessage(r+1,i,s);if(R.err)return R;var q=this.tryParseArgumentClose(L);if(q.err)return q;h.push([p,{value:R.val,location:Me(L,this.clonePosition())}]),m.add(p),this.bumpSpace(),c=this.parseIdentifierIfPossible(),p=c.value,b=c.location}return h.length===0?this.error(i==="select"?we.EXPECT_SELECT_ARGUMENT_SELECTOR:we.EXPECT_PLURAL_ARGUMENT_SELECTOR,Me(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!d?this.error(we.MISSING_OTHER_CLAUSE,Me(this.clonePosition(),this.clonePosition())):{val:h,err:null}},t.prototype.tryParseDecimalInteger=function(r,i){var s=1,u=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(s=-1);for(var c=!1,d=0;!this.isEOF();){var h=this.char();if(h>=48&&h<=57)c=!0,d=d*10+(h-48),this.bump();else break}var m=Me(u,this.clonePosition());return c?(d*=s,CT(d)?{val:d,err:null}:this.error(i,m)):this.error(r,m)},t.prototype.offset=function(){return this.position.offset},t.prototype.isEOF=function(){return this.offset()===this.message.length},t.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},t.prototype.char=function(){var r=this.position.offset;if(r>=this.message.length)throw Error("out of bound");var i=G1(this.message,r);if(i===void 0)throw Error("Offset ".concat(r," is at invalid UTF-16 code unit boundary"));return i},t.prototype.error=function(r,i){return{val:null,err:{kind:r,message:this.message,location:i}}},t.prototype.bump=function(){if(!this.isEOF()){var r=this.char();r===10?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=r<65536?1:2)}},t.prototype.bumpIf=function(r){if(ry(this.message,r,this.offset())){for(var i=0;i<r.length;i++)this.bump();return!0}return!1},t.prototype.bumpUntil=function(r){var i=this.offset(),s=this.message.indexOf(r,i);return s>=0?(this.bumpTo(s),!0):(this.bumpTo(this.message.length),!1)},t.prototype.bumpTo=function(r){if(this.offset()>r)throw Error("targetOffset ".concat(r," must be greater than or equal to the current offset ").concat(this.offset()));for(r=Math.min(r,this.message.length);;){var i=this.offset();if(i===r)break;if(i>r)throw Error("targetOffset ".concat(r," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},t.prototype.bumpSpace=function(){for(;!this.isEOF()&&q1(this.char());)this.bump()},t.prototype.peek=function(){if(this.isEOF())return null;var r=this.char(),i=this.offset(),s=this.message.charCodeAt(i+(r>=65536?2:1));return s??null},t}();function Qd(t){return t>=97&&t<=122||t>=65&&t<=90}function BT(t){return Qd(t)||t===47}function UT(t){return t===45||t===46||t>=48&&t<=57||t===95||t>=97&&t<=122||t>=65&&t<=90||t==183||t>=192&&t<=214||t>=216&&t<=246||t>=248&&t<=893||t>=895&&t<=8191||t>=8204&&t<=8205||t>=8255&&t<=8256||t>=8304&&t<=8591||t>=11264&&t<=12271||t>=12289&&t<=55295||t>=63744&&t<=64975||t>=65008&&t<=65533||t>=65536&&t<=983039}function q1(t){return t>=9&&t<=13||t===32||t===133||t>=8206&&t<=8207||t===8232||t===8233}function HT(t){return t>=33&&t<=35||t===36||t>=37&&t<=39||t===40||t===41||t===42||t===43||t===44||t===45||t>=46&&t<=47||t>=58&&t<=59||t>=60&&t<=62||t>=63&&t<=64||t===91||t===92||t===93||t===94||t===96||t===123||t===124||t===125||t===126||t===161||t>=162&&t<=165||t===166||t===167||t===169||t===171||t===172||t===174||t===176||t===177||t===182||t===187||t===191||t===215||t===247||t>=8208&&t<=8213||t>=8214&&t<=8215||t===8216||t===8217||t===8218||t>=8219&&t<=8220||t===8221||t===8222||t===8223||t>=8224&&t<=8231||t>=8240&&t<=8248||t===8249||t===8250||t>=8251&&t<=8254||t>=8257&&t<=8259||t===8260||t===8261||t===8262||t>=8263&&t<=8273||t===8274||t===8275||t>=8277&&t<=8286||t>=8592&&t<=8596||t>=8597&&t<=8601||t>=8602&&t<=8603||t>=8604&&t<=8607||t===8608||t>=8609&&t<=8610||t===8611||t>=8612&&t<=8613||t===8614||t>=8615&&t<=8621||t===8622||t>=8623&&t<=8653||t>=8654&&t<=8655||t>=8656&&t<=8657||t===8658||t===8659||t===8660||t>=8661&&t<=8691||t>=8692&&t<=8959||t>=8960&&t<=8967||t===8968||t===8969||t===8970||t===8971||t>=8972&&t<=8991||t>=8992&&t<=8993||t>=8994&&t<=9e3||t===9001||t===9002||t>=9003&&t<=9083||t===9084||t>=9085&&t<=9114||t>=9115&&t<=9139||t>=9140&&t<=9179||t>=9180&&t<=9185||t>=9186&&t<=9254||t>=9255&&t<=9279||t>=9280&&t<=9290||t>=9291&&t<=9311||t>=9472&&t<=9654||t===9655||t>=9656&&t<=9664||t===9665||t>=9666&&t<=9719||t>=9720&&t<=9727||t>=9728&&t<=9838||t===9839||t>=9840&&t<=10087||t===10088||t===10089||t===10090||t===10091||t===10092||t===10093||t===10094||t===10095||t===10096||t===10097||t===10098||t===10099||t===10100||t===10101||t>=10132&&t<=10175||t>=10176&&t<=10180||t===10181||t===10182||t>=10183&&t<=10213||t===10214||t===10215||t===10216||t===10217||t===10218||t===10219||t===10220||t===10221||t===10222||t===10223||t>=10224&&t<=10239||t>=10240&&t<=10495||t>=10496&&t<=10626||t===10627||t===10628||t===10629||t===10630||t===10631||t===10632||t===10633||t===10634||t===10635||t===10636||t===10637||t===10638||t===10639||t===10640||t===10641||t===10642||t===10643||t===10644||t===10645||t===10646||t===10647||t===10648||t>=10649&&t<=10711||t===10712||t===10713||t===10714||t===10715||t>=10716&&t<=10747||t===10748||t===10749||t>=10750&&t<=11007||t>=11008&&t<=11055||t>=11056&&t<=11076||t>=11077&&t<=11078||t>=11079&&t<=11084||t>=11085&&t<=11123||t>=11124&&t<=11125||t>=11126&&t<=11157||t===11158||t>=11159&&t<=11263||t>=11776&&t<=11777||t===11778||t===11779||t===11780||t===11781||t>=11782&&t<=11784||t===11785||t===11786||t===11787||t===11788||t===11789||t>=11790&&t<=11798||t===11799||t>=11800&&t<=11801||t===11802||t===11803||t===11804||t===11805||t>=11806&&t<=11807||t===11808||t===11809||t===11810||t===11811||t===11812||t===11813||t===11814||t===11815||t===11816||t===11817||t>=11818&&t<=11822||t===11823||t>=11824&&t<=11833||t>=11834&&t<=11835||t>=11836&&t<=11839||t===11840||t===11841||t===11842||t>=11843&&t<=11855||t>=11856&&t<=11857||t===11858||t>=11859&&t<=11903||t>=12289&&t<=12291||t===12296||t===12297||t===12298||t===12299||t===12300||t===12301||t===12302||t===12303||t===12304||t===12305||t>=12306&&t<=12307||t===12308||t===12309||t===12310||t===12311||t===12312||t===12313||t===12314||t===12315||t===12316||t===12317||t>=12318&&t<=12319||t===12320||t===12336||t===64830||t===64831||t>=65093&&t<=65094}function Kd(t){t.forEach(function(r){if(delete r.location,D1(r)||L1(r))for(var i in r.options)delete r.options[i].location,Kd(r.options[i].value);else C1(r)&&U1(r.style)||(N1(r)||M1(r))&&Pd(r.style)?delete r.style.location:B1(r)&&Kd(r.children)})}function jT(t,r){r===void 0&&(r={}),r=ie({shouldParseSkeletons:!0,requiresOtherClause:!0},r);var i=new LT(t,r).parse();if(i.err){var s=SyntaxError(we[i.err.kind]);throw s.location=i.err.location,s.originalMessage=i.err.message,s}return r?.captureLocation||Kd(i.val),i.val}var er;(function(t){t.MISSING_VALUE="MISSING_VALUE",t.INVALID_VALUE="INVALID_VALUE",t.MISSING_INTL_API="MISSING_INTL_API"})(er||(er={}));var oa=function(t){An(r,t);function r(i,s,u){var c=t.call(this,i)||this;return c.code=s,c.originalMessage=u,c}return r.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},r}(Error),sy=function(t){An(r,t);function r(i,s,u,c){return t.call(this,'Invalid values for "'.concat(i,'": "').concat(s,'". Options are "').concat(Object.keys(u).join('", "'),'"'),er.INVALID_VALUE,c)||this}return r}(oa),IT=function(t){An(r,t);function r(i,s,u){return t.call(this,'Value for "'.concat(i,'" must be of type ').concat(s),er.INVALID_VALUE,u)||this}return r}(oa),zT=function(t){An(r,t);function r(i,s){return t.call(this,'The intl string context variable "'.concat(i,'" was not provided to the string "').concat(s,'"'),er.MISSING_VALUE,s)||this}return r}(oa),It;(function(t){t[t.literal=0]="literal",t[t.object=1]="object"})(It||(It={}));function GT(t){return t.length<2?t:t.reduce(function(r,i){var s=r[r.length-1];return!s||s.type!==It.literal||i.type!==It.literal?r.push(i):s.value+=i.value,r},[])}function F1(t){return typeof t=="function"}function Fo(t,r,i,s,u,c,d){if(t.length===1&&Jg(t[0]))return[{type:It.literal,value:t[0].value}];for(var h=[],m=0,p=t;m<p.length;m++){var b=p[m];if(Jg(b)){h.push({type:It.literal,value:b.value});continue}if(uT(b)){typeof c=="number"&&h.push({type:It.literal,value:i.getNumberFormat(r).format(c)});continue}var E=b.value;if(!(u&&E in u))throw new zT(E,d);var A=u[E];if(oT(b)){(!A||typeof A=="string"||typeof A=="number")&&(A=typeof A=="string"||typeof A=="number"?String(A):""),h.push({type:typeof A=="string"?It.literal:It.object,value:A});continue}if(N1(b)){var L=typeof b.style=="string"?s.date[b.style]:Pd(b.style)?b.style.parsedOptions:void 0;h.push({type:It.literal,value:i.getDateTimeFormat(r,L).format(A)});continue}if(M1(b)){var L=typeof b.style=="string"?s.time[b.style]:Pd(b.style)?b.style.parsedOptions:s.time.medium;h.push({type:It.literal,value:i.getDateTimeFormat(r,L).format(A)});continue}if(C1(b)){var L=typeof b.style=="string"?s.number[b.style]:U1(b.style)?b.style.parsedOptions:void 0;L&&L.scale&&(A=A*(L.scale||1)),h.push({type:It.literal,value:i.getNumberFormat(r,L).format(A)});continue}if(B1(b)){var R=b.children,q=b.value,G=u[q];if(!F1(G))throw new IT(q,"function",d);var _=Fo(R,r,i,s,u,c),C=G(_.map(function(x){return x.value}));Array.isArray(C)||(C=[C]),h.push.apply(h,C.map(function(x){return{type:typeof x=="string"?It.literal:It.object,value:x}}))}if(D1(b)){var S=b.options[A]||b.options.other;if(!S)throw new sy(b.value,A,Object.keys(b.options),d);h.push.apply(h,Fo(S.value,r,i,s,u));continue}if(L1(b)){var S=b.options["=".concat(A)];if(!S){if(!Intl.PluralRules)throw new oa(`Intl.PluralRules is not available in this environment.
66
66
  Try polyfilling it using "@formatjs/intl-pluralrules"
67
- `,er.MISSING_INTL_API,d);var H=i.getPluralRules(r,{type:b.pluralType}).select(A-(b.offset||0));S=b.options[H]||b.options.other}if(!S)throw new sy(b.value,A,Object.keys(b.options),d);h.push.apply(h,Fo(S.value,r,i,s,u,A-(b.offset||0)));continue}}return zT(h)}function GT(t,r){return r?ie(ie(ie({},t||{}),r||{}),Object.keys(t).reduce(function(i,s){return i[s]=ie(ie({},t[s]),r[s]||{}),i},{})):t}function kT(t,r){return r?Object.keys(t).reduce(function(i,s){return i[s]=GT(t[s],r[s]),i},ie({},t)):t}function Vf(t){return{create:function(){return{get:function(r){return t[r]},set:function(r,i){t[r]=i}}}}}function qT(t){return t===void 0&&(t={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:Kn(function(){for(var r,i=[],s=0;s<arguments.length;s++)i[s]=arguments[s];return new((r=Intl.NumberFormat).bind.apply(r,Wn([void 0],i,!1)))},{cache:Vf(t.number),strategy:$n.variadic}),getDateTimeFormat:Kn(function(){for(var r,i=[],s=0;s<arguments.length;s++)i[s]=arguments[s];return new((r=Intl.DateTimeFormat).bind.apply(r,Wn([void 0],i,!1)))},{cache:Vf(t.dateTime),strategy:$n.variadic}),getPluralRules:Kn(function(){for(var r,i=[],s=0;s<arguments.length;s++)i[s]=arguments[s];return new((r=Intl.PluralRules).bind.apply(r,Wn([void 0],i,!1)))},{cache:Vf(t.pluralRules),strategy:$n.variadic})}}var V1=function(){function t(r,i,s,u){i===void 0&&(i=t.defaultLocale);var c=this;if(this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(m){var p=c.formatToParts(m);if(p.length===1)return p[0].value;var b=p.reduce(function(E,A){return!E.length||A.type!==It.literal||typeof E[E.length-1]!="string"?E.push(A.value):E[E.length-1]+=A.value,E},[]);return b.length<=1?b[0]||"":b},this.formatToParts=function(m){return Fo(c.ast,c.locales,c.formatters,c.formats,m,void 0,c.message)},this.resolvedOptions=function(){var m;return{locale:((m=c.resolvedLocale)===null||m===void 0?void 0:m.toString())||Intl.NumberFormat.supportedLocalesOf(c.locales)[0]}},this.getAst=function(){return c.ast},this.locales=i,this.resolvedLocale=t.resolveLocale(i),typeof r=="string"){if(this.message=r,!t.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");var d=u||{};d.formatters;var h=ou(d,["formatters"]);this.ast=t.__parse(r,ie(ie({},h),{locale:this.resolvedLocale}))}else this.ast=r;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=kT(t.formats,s),this.formatters=u&&u.formatters||qT(this.formatterCache)}return Object.defineProperty(t,"defaultLocale",{get:function(){return t.memoizedDefaultLocale||(t.memoizedDefaultLocale=new Intl.NumberFormat().resolvedOptions().locale),t.memoizedDefaultLocale},enumerable:!1,configurable:!0}),t.memoizedDefaultLocale=null,t.resolveLocale=function(r){if(!(typeof Intl.Locale>"u")){var i=Intl.NumberFormat.supportedLocalesOf(r);return i.length>0?new Intl.Locale(i[0]):new Intl.Locale(typeof r=="string"?r:r[0])}},t.__parse=HT,t.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},t}(),za;(function(t){t.FORMAT_ERROR="FORMAT_ERROR",t.UNSUPPORTED_FORMATTER="UNSUPPORTED_FORMATTER",t.INVALID_CONFIG="INVALID_CONFIG",t.MISSING_DATA="MISSING_DATA",t.MISSING_TRANSLATION="MISSING_TRANSLATION"})(za||(za={}));var tl=function(t){An(r,t);function r(i,s,u){var c=this,d=u?u instanceof Error?u:new Error(String(u)):void 0;return c=t.call(this,"[@formatjs/intl Error ".concat(i,"] ").concat(s,`
67
+ `,er.MISSING_INTL_API,d);var H=i.getPluralRules(r,{type:b.pluralType}).select(A-(b.offset||0));S=b.options[H]||b.options.other}if(!S)throw new sy(b.value,A,Object.keys(b.options),d);h.push.apply(h,Fo(S.value,r,i,s,u,A-(b.offset||0)));continue}}return GT(h)}function kT(t,r){return r?ie(ie(ie({},t||{}),r||{}),Object.keys(t).reduce(function(i,s){return i[s]=ie(ie({},t[s]),r[s]||{}),i},{})):t}function qT(t,r){return r?Object.keys(t).reduce(function(i,s){return i[s]=kT(t[s],r[s]),i},ie({},t)):t}function Pf(t){return{create:function(){return{get:function(r){return t[r]},set:function(r,i){t[r]=i}}}}}function FT(t){return t===void 0&&(t={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:Kn(function(){for(var r,i=[],s=0;s<arguments.length;s++)i[s]=arguments[s];return new((r=Intl.NumberFormat).bind.apply(r,Wn([void 0],i,!1)))},{cache:Pf(t.number),strategy:$n.variadic}),getDateTimeFormat:Kn(function(){for(var r,i=[],s=0;s<arguments.length;s++)i[s]=arguments[s];return new((r=Intl.DateTimeFormat).bind.apply(r,Wn([void 0],i,!1)))},{cache:Pf(t.dateTime),strategy:$n.variadic}),getPluralRules:Kn(function(){for(var r,i=[],s=0;s<arguments.length;s++)i[s]=arguments[s];return new((r=Intl.PluralRules).bind.apply(r,Wn([void 0],i,!1)))},{cache:Pf(t.pluralRules),strategy:$n.variadic})}}var V1=function(){function t(r,i,s,u){i===void 0&&(i=t.defaultLocale);var c=this;if(this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(m){var p=c.formatToParts(m);if(p.length===1)return p[0].value;var b=p.reduce(function(E,A){return!E.length||A.type!==It.literal||typeof E[E.length-1]!="string"?E.push(A.value):E[E.length-1]+=A.value,E},[]);return b.length<=1?b[0]||"":b},this.formatToParts=function(m){return Fo(c.ast,c.locales,c.formatters,c.formats,m,void 0,c.message)},this.resolvedOptions=function(){var m;return{locale:((m=c.resolvedLocale)===null||m===void 0?void 0:m.toString())||Intl.NumberFormat.supportedLocalesOf(c.locales)[0]}},this.getAst=function(){return c.ast},this.locales=i,this.resolvedLocale=t.resolveLocale(i),typeof r=="string"){if(this.message=r,!t.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");var d=u||{};d.formatters;var h=uu(d,["formatters"]);this.ast=t.__parse(r,ie(ie({},h),{locale:this.resolvedLocale}))}else this.ast=r;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=qT(t.formats,s),this.formatters=u&&u.formatters||FT(this.formatterCache)}return Object.defineProperty(t,"defaultLocale",{get:function(){return t.memoizedDefaultLocale||(t.memoizedDefaultLocale=new Intl.NumberFormat().resolvedOptions().locale),t.memoizedDefaultLocale},enumerable:!1,configurable:!0}),t.memoizedDefaultLocale=null,t.resolveLocale=function(r){if(!(typeof Intl.Locale>"u")){var i=Intl.NumberFormat.supportedLocalesOf(r);return i.length>0?new Intl.Locale(i[0]):new Intl.Locale(typeof r=="string"?r:r[0])}},t.__parse=jT,t.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},t}(),za;(function(t){t.FORMAT_ERROR="FORMAT_ERROR",t.UNSUPPORTED_FORMATTER="UNSUPPORTED_FORMATTER",t.INVALID_CONFIG="INVALID_CONFIG",t.MISSING_DATA="MISSING_DATA",t.MISSING_TRANSLATION="MISSING_TRANSLATION"})(za||(za={}));var tl=function(t){An(r,t);function r(i,s,u){var c=this,d=u?u instanceof Error?u:new Error(String(u)):void 0;return c=t.call(this,"[@formatjs/intl Error ".concat(i,"] ").concat(s,`
68
68
  `).concat(d?`
69
69
  `.concat(d.message,`
70
- `).concat(d.stack):""))||this,c.code=i,typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(c,r),c}return r}(Error),FT=function(t){An(r,t);function r(i,s){return t.call(this,za.UNSUPPORTED_FORMATTER,i,s)||this}return r}(tl),VT=function(t){An(r,t);function r(i,s){return t.call(this,za.INVALID_CONFIG,i,s)||this}return r}(tl),ly=function(t){An(r,t);function r(i,s){return t.call(this,za.MISSING_DATA,i,s)||this}return r}(tl),On=function(t){An(r,t);function r(i,s,u){var c=t.call(this,za.FORMAT_ERROR,"".concat(i,`
70
+ `).concat(d.stack):""))||this,c.code=i,typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(c,r),c}return r}(Error),VT=function(t){An(r,t);function r(i,s){return t.call(this,za.UNSUPPORTED_FORMATTER,i,s)||this}return r}(tl),PT=function(t){An(r,t);function r(i,s){return t.call(this,za.INVALID_CONFIG,i,s)||this}return r}(tl),ly=function(t){An(r,t);function r(i,s){return t.call(this,za.MISSING_DATA,i,s)||this}return r}(tl),xn=function(t){An(r,t);function r(i,s,u){var c=t.call(this,za.FORMAT_ERROR,"".concat(i,`
71
71
  Locale: `).concat(s,`
72
- `),u)||this;return c.locale=s,c}return r}(tl),Pf=function(t){An(r,t);function r(i,s,u,c){var d=t.call(this,"".concat(i,`
72
+ `),u)||this;return c.locale=s,c}return r}(tl),Yf=function(t){An(r,t);function r(i,s,u,c){var d=t.call(this,"".concat(i,`
73
73
  MessageID: `).concat(u?.id,`
74
74
  Default Message: `).concat(u?.defaultMessage,`
75
75
  Description: `).concat(u?.description,`
76
- `),s,c)||this;return d.descriptor=u,d.locale=s,d}return r}(On),PT=function(t){An(r,t);function r(i,s){var u=t.call(this,za.MISSING_TRANSLATION,'Missing message: "'.concat(i.id,'" for locale "').concat(s,'", using ').concat(i.defaultMessage?"default message (".concat(typeof i.defaultMessage=="string"?i.defaultMessage:i.defaultMessage.map(function(c){var d;return(d=c.value)!==null&&d!==void 0?d:JSON.stringify(c)}).join(),")"):"id"," as fallback."))||this;return u.descriptor=i,u}return r}(tl);function YT(t,r,i){if(i===void 0&&(i=Error),!t)throw new i(r)}function Ni(t,r,i){return i===void 0&&(i={}),r.reduce(function(s,u){return u in t?s[u]=t[u]:u in i&&(s[u]=i[u]),s},{})}var XT=function(t){},ZT=function(t){},P1={formats:{},messages:{},timeZone:void 0,defaultLocale:"en",defaultFormats:{},fallbackOnEmptyString:!0,onError:XT,onWarn:ZT};function Y1(){return{dateTime:{},number:{},message:{},relativeTime:{},pluralRules:{},list:{},displayNames:{}}}function Na(t){return{create:function(){return{get:function(r){return t[r]},set:function(r,i){t[r]=i}}}}}function QT(t){t===void 0&&(t=Y1());var r=Intl.RelativeTimeFormat,i=Intl.ListFormat,s=Intl.DisplayNames,u=Kn(function(){for(var h,m=[],p=0;p<arguments.length;p++)m[p]=arguments[p];return new((h=Intl.DateTimeFormat).bind.apply(h,Wn([void 0],m,!1)))},{cache:Na(t.dateTime),strategy:$n.variadic}),c=Kn(function(){for(var h,m=[],p=0;p<arguments.length;p++)m[p]=arguments[p];return new((h=Intl.NumberFormat).bind.apply(h,Wn([void 0],m,!1)))},{cache:Na(t.number),strategy:$n.variadic}),d=Kn(function(){for(var h,m=[],p=0;p<arguments.length;p++)m[p]=arguments[p];return new((h=Intl.PluralRules).bind.apply(h,Wn([void 0],m,!1)))},{cache:Na(t.pluralRules),strategy:$n.variadic});return{getDateTimeFormat:u,getNumberFormat:c,getMessageFormat:Kn(function(h,m,p,b){return new V1(h,m,p,ie({formatters:{getNumberFormat:c,getDateTimeFormat:u,getPluralRules:d}},b||{}))},{cache:Na(t.message),strategy:$n.variadic}),getRelativeTimeFormat:Kn(function(){for(var h=[],m=0;m<arguments.length;m++)h[m]=arguments[m];return new(r.bind.apply(r,Wn([void 0],h,!1)))},{cache:Na(t.relativeTime),strategy:$n.variadic}),getPluralRules:d,getListFormat:Kn(function(){for(var h=[],m=0;m<arguments.length;m++)h[m]=arguments[m];return new(i.bind.apply(i,Wn([void 0],h,!1)))},{cache:Na(t.list),strategy:$n.variadic}),getDisplayNames:Kn(function(){for(var h=[],m=0;m<arguments.length;m++)h[m]=arguments[m];return new(s.bind.apply(s,Wn([void 0],h,!1)))},{cache:Na(t.displayNames),strategy:$n.variadic})}}function Eh(t,r,i,s){var u=t&&t[r],c;if(u&&(c=u[i]),c)return c;s(new FT("No ".concat(r," format named: ").concat(i)))}function vo(t,r){return Object.keys(t).reduce(function(i,s){return i[s]=ie({timeZone:r},t[s]),i},{})}function oy(t,r){var i=Object.keys(ie(ie({},t),r));return i.reduce(function(s,u){return s[u]=ie(ie({},t[u]||{}),r[u]||{}),s},{})}function uy(t,r){if(!r)return t;var i=V1.formats;return ie(ie(ie({},i),t),{date:oy(vo(i.date,r),vo(t.date||{},r)),time:oy(vo(i.time,r),vo(t.time||{},r))})}var Kd=function(t,r,i,s,u){var c=t.locale,d=t.formats,h=t.messages,m=t.defaultLocale,p=t.defaultFormats,b=t.fallbackOnEmptyString,E=t.onError,A=t.timeZone,U=t.defaultRichTextElements;i===void 0&&(i={id:""});var R=i.id,q=i.defaultMessage;YT(!!R,"[@formatjs/intl] An `id` must be provided to format a message. You can either:\n1. Configure your build toolchain with [babel-plugin-formatjs](https://formatjs.github.io/docs/tooling/babel-plugin)\nor [@formatjs/ts-transformer](https://formatjs.github.io/docs/tooling/ts-transformer) OR\n2. Configure your `eslint` config to include [eslint-plugin-formatjs](https://formatjs.github.io/docs/tooling/linter#enforce-id)\nto autofix this issue");var G=String(R),_=h&&Object.prototype.hasOwnProperty.call(h,G)&&h[G];if(Array.isArray(_)&&_.length===1&&_[0].type===Ye.literal)return _[0].value;if(!s&&_&&typeof _=="string"&&!U)return _.replace(/'\{(.*?)\}'/gi,"{$1}");if(s=ie(ie({},U),s||{}),d=uy(d,A),p=uy(p,A),!_){if(b===!1&&_==="")return _;if((!q||c&&c.toLowerCase()!==m.toLowerCase())&&E(new PT(i,c)),q)try{var C=r.getMessageFormat(q,m,p,u);return C.format(s)}catch(S){return E(new Pf('Error formatting default message for: "'.concat(G,'", rendering default message verbatim'),c,i,S)),typeof q=="string"?q:G}return G}try{var C=r.getMessageFormat(_,c,d,ie({formatters:r},u||{}));return C.format(s)}catch(S){E(new Pf('Error formatting message: "'.concat(G,'", using ').concat(q?"default message":"id"," as fallback."),c,i,S))}if(q)try{var C=r.getMessageFormat(q,m,p,u);return C.format(s)}catch(S){E(new Pf('Error formatting the default message for: "'.concat(G,'", rendering message verbatim'),c,i,S))}return typeof _=="string"?_:typeof q=="string"?q:G},KT=["formatMatcher","timeZone","hour12","weekday","era","year","month","day","hour","minute","second","timeZoneName","hourCycle","dateStyle","timeStyle","calendar","numberingSystem","fractionalSecondDigits"];function nl(t,r,i,s){var u=t.locale,c=t.formats,d=t.onError,h=t.timeZone;s===void 0&&(s={});var m=s.format,p=ie(ie({},h&&{timeZone:h}),m&&Eh(c,r,m,d)),b=Ni(s,KT,p);return r==="time"&&!b.hour&&!b.minute&&!b.second&&!b.timeStyle&&!b.dateStyle&&(b=ie(ie({},b),{hour:"numeric",minute:"numeric"})),i(u,b)}function $T(t,r){for(var i=[],s=2;s<arguments.length;s++)i[s-2]=arguments[s];var u=i[0],c=i[1],d=c===void 0?{}:c,h=typeof u=="string"?new Date(u||0):u;try{return nl(t,"date",r,d).format(h)}catch(m){t.onError(new On("Error formatting date.",t.locale,m))}return String(h)}function WT(t,r){for(var i=[],s=2;s<arguments.length;s++)i[s-2]=arguments[s];var u=i[0],c=i[1],d=c===void 0?{}:c,h=typeof u=="string"?new Date(u||0):u;try{return nl(t,"time",r,d).format(h)}catch(m){t.onError(new On("Error formatting time.",t.locale,m))}return String(h)}function JT(t,r){for(var i=[],s=2;s<arguments.length;s++)i[s-2]=arguments[s];var u=i[0],c=i[1],d=i[2],h=d===void 0?{}:d,m=typeof u=="string"?new Date(u||0):u,p=typeof c=="string"?new Date(c||0):c;try{return nl(t,"dateTimeRange",r,h).formatRange(m,p)}catch(b){t.onError(new On("Error formatting date time range.",t.locale,b))}return String(m)}function eA(t,r){for(var i=[],s=2;s<arguments.length;s++)i[s-2]=arguments[s];var u=i[0],c=i[1],d=c===void 0?{}:c,h=typeof u=="string"?new Date(u||0):u;try{return nl(t,"date",r,d).formatToParts(h)}catch(m){t.onError(new On("Error formatting date.",t.locale,m))}return[]}function tA(t,r){for(var i=[],s=2;s<arguments.length;s++)i[s-2]=arguments[s];var u=i[0],c=i[1],d=c===void 0?{}:c,h=typeof u=="string"?new Date(u||0):u;try{return nl(t,"time",r,d).formatToParts(h)}catch(m){t.onError(new On("Error formatting time.",t.locale,m))}return[]}var nA=["style","type","fallback","languageDisplay"];function rA(t,r,i,s){var u=t.locale,c=t.onError,d=Intl.DisplayNames;d||c(new oa(`Intl.DisplayNames is not available in this environment.
76
+ `),s,c)||this;return d.descriptor=u,d.locale=s,d}return r}(xn),YT=function(t){An(r,t);function r(i,s){var u=t.call(this,za.MISSING_TRANSLATION,'Missing message: "'.concat(i.id,'" for locale "').concat(s,'", using ').concat(i.defaultMessage?"default message (".concat(typeof i.defaultMessage=="string"?i.defaultMessage:i.defaultMessage.map(function(c){var d;return(d=c.value)!==null&&d!==void 0?d:JSON.stringify(c)}).join(),")"):"id"," as fallback."))||this;return u.descriptor=i,u}return r}(tl);function XT(t,r,i){if(i===void 0&&(i=Error),!t)throw new i(r)}function Ni(t,r,i){return i===void 0&&(i={}),r.reduce(function(s,u){return u in t?s[u]=t[u]:u in i&&(s[u]=i[u]),s},{})}var ZT=function(t){},QT=function(t){},P1={formats:{},messages:{},timeZone:void 0,defaultLocale:"en",defaultFormats:{},fallbackOnEmptyString:!0,onError:ZT,onWarn:QT};function Y1(){return{dateTime:{},number:{},message:{},relativeTime:{},pluralRules:{},list:{},displayNames:{}}}function Na(t){return{create:function(){return{get:function(r){return t[r]},set:function(r,i){t[r]=i}}}}}function KT(t){t===void 0&&(t=Y1());var r=Intl.RelativeTimeFormat,i=Intl.ListFormat,s=Intl.DisplayNames,u=Kn(function(){for(var h,m=[],p=0;p<arguments.length;p++)m[p]=arguments[p];return new((h=Intl.DateTimeFormat).bind.apply(h,Wn([void 0],m,!1)))},{cache:Na(t.dateTime),strategy:$n.variadic}),c=Kn(function(){for(var h,m=[],p=0;p<arguments.length;p++)m[p]=arguments[p];return new((h=Intl.NumberFormat).bind.apply(h,Wn([void 0],m,!1)))},{cache:Na(t.number),strategy:$n.variadic}),d=Kn(function(){for(var h,m=[],p=0;p<arguments.length;p++)m[p]=arguments[p];return new((h=Intl.PluralRules).bind.apply(h,Wn([void 0],m,!1)))},{cache:Na(t.pluralRules),strategy:$n.variadic});return{getDateTimeFormat:u,getNumberFormat:c,getMessageFormat:Kn(function(h,m,p,b){return new V1(h,m,p,ie({formatters:{getNumberFormat:c,getDateTimeFormat:u,getPluralRules:d}},b||{}))},{cache:Na(t.message),strategy:$n.variadic}),getRelativeTimeFormat:Kn(function(){for(var h=[],m=0;m<arguments.length;m++)h[m]=arguments[m];return new(r.bind.apply(r,Wn([void 0],h,!1)))},{cache:Na(t.relativeTime),strategy:$n.variadic}),getPluralRules:d,getListFormat:Kn(function(){for(var h=[],m=0;m<arguments.length;m++)h[m]=arguments[m];return new(i.bind.apply(i,Wn([void 0],h,!1)))},{cache:Na(t.list),strategy:$n.variadic}),getDisplayNames:Kn(function(){for(var h=[],m=0;m<arguments.length;m++)h[m]=arguments[m];return new(s.bind.apply(s,Wn([void 0],h,!1)))},{cache:Na(t.displayNames),strategy:$n.variadic})}}function Eh(t,r,i,s){var u=t&&t[r],c;if(u&&(c=u[i]),c)return c;s(new VT("No ".concat(r," format named: ").concat(i)))}function vo(t,r){return Object.keys(t).reduce(function(i,s){return i[s]=ie({timeZone:r},t[s]),i},{})}function oy(t,r){var i=Object.keys(ie(ie({},t),r));return i.reduce(function(s,u){return s[u]=ie(ie({},t[u]||{}),r[u]||{}),s},{})}function uy(t,r){if(!r)return t;var i=V1.formats;return ie(ie(ie({},i),t),{date:oy(vo(i.date,r),vo(t.date||{},r)),time:oy(vo(i.time,r),vo(t.time||{},r))})}var $d=function(t,r,i,s,u){var c=t.locale,d=t.formats,h=t.messages,m=t.defaultLocale,p=t.defaultFormats,b=t.fallbackOnEmptyString,E=t.onError,A=t.timeZone,L=t.defaultRichTextElements;i===void 0&&(i={id:""});var R=i.id,q=i.defaultMessage;XT(!!R,"[@formatjs/intl] An `id` must be provided to format a message. You can either:\n1. Configure your build toolchain with [babel-plugin-formatjs](https://formatjs.github.io/docs/tooling/babel-plugin)\nor [@formatjs/ts-transformer](https://formatjs.github.io/docs/tooling/ts-transformer) OR\n2. Configure your `eslint` config to include [eslint-plugin-formatjs](https://formatjs.github.io/docs/tooling/linter#enforce-id)\nto autofix this issue");var G=String(R),_=h&&Object.prototype.hasOwnProperty.call(h,G)&&h[G];if(Array.isArray(_)&&_.length===1&&_[0].type===Ye.literal)return _[0].value;if(!s&&_&&typeof _=="string"&&!L)return _.replace(/'\{(.*?)\}'/gi,"{$1}");if(s=ie(ie({},L),s||{}),d=uy(d,A),p=uy(p,A),!_){if(b===!1&&_==="")return _;if((!q||c&&c.toLowerCase()!==m.toLowerCase())&&E(new YT(i,c)),q)try{var C=r.getMessageFormat(q,m,p,u);return C.format(s)}catch(S){return E(new Yf('Error formatting default message for: "'.concat(G,'", rendering default message verbatim'),c,i,S)),typeof q=="string"?q:G}return G}try{var C=r.getMessageFormat(_,c,d,ie({formatters:r},u||{}));return C.format(s)}catch(S){E(new Yf('Error formatting message: "'.concat(G,'", using ').concat(q?"default message":"id"," as fallback."),c,i,S))}if(q)try{var C=r.getMessageFormat(q,m,p,u);return C.format(s)}catch(S){E(new Yf('Error formatting the default message for: "'.concat(G,'", rendering message verbatim'),c,i,S))}return typeof _=="string"?_:typeof q=="string"?q:G},$T=["formatMatcher","timeZone","hour12","weekday","era","year","month","day","hour","minute","second","timeZoneName","hourCycle","dateStyle","timeStyle","calendar","numberingSystem","fractionalSecondDigits"];function nl(t,r,i,s){var u=t.locale,c=t.formats,d=t.onError,h=t.timeZone;s===void 0&&(s={});var m=s.format,p=ie(ie({},h&&{timeZone:h}),m&&Eh(c,r,m,d)),b=Ni(s,$T,p);return r==="time"&&!b.hour&&!b.minute&&!b.second&&!b.timeStyle&&!b.dateStyle&&(b=ie(ie({},b),{hour:"numeric",minute:"numeric"})),i(u,b)}function WT(t,r){for(var i=[],s=2;s<arguments.length;s++)i[s-2]=arguments[s];var u=i[0],c=i[1],d=c===void 0?{}:c,h=typeof u=="string"?new Date(u||0):u;try{return nl(t,"date",r,d).format(h)}catch(m){t.onError(new xn("Error formatting date.",t.locale,m))}return String(h)}function JT(t,r){for(var i=[],s=2;s<arguments.length;s++)i[s-2]=arguments[s];var u=i[0],c=i[1],d=c===void 0?{}:c,h=typeof u=="string"?new Date(u||0):u;try{return nl(t,"time",r,d).format(h)}catch(m){t.onError(new xn("Error formatting time.",t.locale,m))}return String(h)}function eA(t,r){for(var i=[],s=2;s<arguments.length;s++)i[s-2]=arguments[s];var u=i[0],c=i[1],d=i[2],h=d===void 0?{}:d,m=typeof u=="string"?new Date(u||0):u,p=typeof c=="string"?new Date(c||0):c;try{return nl(t,"dateTimeRange",r,h).formatRange(m,p)}catch(b){t.onError(new xn("Error formatting date time range.",t.locale,b))}return String(m)}function tA(t,r){for(var i=[],s=2;s<arguments.length;s++)i[s-2]=arguments[s];var u=i[0],c=i[1],d=c===void 0?{}:c,h=typeof u=="string"?new Date(u||0):u;try{return nl(t,"date",r,d).formatToParts(h)}catch(m){t.onError(new xn("Error formatting date.",t.locale,m))}return[]}function nA(t,r){for(var i=[],s=2;s<arguments.length;s++)i[s-2]=arguments[s];var u=i[0],c=i[1],d=c===void 0?{}:c,h=typeof u=="string"?new Date(u||0):u;try{return nl(t,"time",r,d).formatToParts(h)}catch(m){t.onError(new xn("Error formatting time.",t.locale,m))}return[]}var rA=["style","type","fallback","languageDisplay"];function aA(t,r,i,s){var u=t.locale,c=t.onError,d=Intl.DisplayNames;d||c(new oa(`Intl.DisplayNames is not available in this environment.
77
77
  Try polyfilling it using "@formatjs/intl-displaynames"
78
- `,er.MISSING_INTL_API));var h=Ni(s,nA);try{return r(u,h).of(i)}catch(m){c(new On("Error formatting display name.",u,m))}}var aA=["type","style"],cy=Date.now();function iA(t){return"".concat(cy,"_").concat(t,"_").concat(cy)}function sA(t,r,i,s){s===void 0&&(s={});var u=X1(t,r,i,s).reduce(function(c,d){var h=d.value;return typeof h!="string"?c.push(h):typeof c[c.length-1]=="string"?c[c.length-1]+=h:c.push(h),c},[]);return u.length===1?u[0]:u.length===0?"":u}function X1(t,r,i,s){var u=t.locale,c=t.onError;s===void 0&&(s={});var d=Intl.ListFormat;d||c(new oa(`Intl.ListFormat is not available in this environment.
78
+ `,er.MISSING_INTL_API));var h=Ni(s,rA);try{return r(u,h).of(i)}catch(m){c(new xn("Error formatting display name.",u,m))}}var iA=["type","style"],cy=Date.now();function sA(t){return"".concat(cy,"_").concat(t,"_").concat(cy)}function lA(t,r,i,s){s===void 0&&(s={});var u=X1(t,r,i,s).reduce(function(c,d){var h=d.value;return typeof h!="string"?c.push(h):typeof c[c.length-1]=="string"?c[c.length-1]+=h:c.push(h),c},[]);return u.length===1?u[0]:u.length===0?"":u}function X1(t,r,i,s){var u=t.locale,c=t.onError;s===void 0&&(s={});var d=Intl.ListFormat;d||c(new oa(`Intl.ListFormat is not available in this environment.
79
79
  Try polyfilling it using "@formatjs/intl-listformat"
80
- `,er.MISSING_INTL_API));var h=Ni(s,aA);try{var m={},p=i.map(function(b,E){if(typeof b=="object"){var A=iA(E);return m[A]=b,A}return String(b)});return r(u,h).formatToParts(p).map(function(b){return b.type==="literal"?b:ie(ie({},b),{value:m[b.value]||b.value})})}catch(b){c(new On("Error formatting list.",u,b))}return i}var lA=["type"];function oA(t,r,i,s){var u=t.locale,c=t.onError;s===void 0&&(s={}),Intl.PluralRules||c(new oa(`Intl.PluralRules is not available in this environment.
80
+ `,er.MISSING_INTL_API));var h=Ni(s,iA);try{var m={},p=i.map(function(b,E){if(typeof b=="object"){var A=sA(E);return m[A]=b,A}return String(b)});return r(u,h).formatToParts(p).map(function(b){return b.type==="literal"?b:ie(ie({},b),{value:m[b.value]||b.value})})}catch(b){c(new xn("Error formatting list.",u,b))}return i}var oA=["type"];function uA(t,r,i,s){var u=t.locale,c=t.onError;s===void 0&&(s={}),Intl.PluralRules||c(new oa(`Intl.PluralRules is not available in this environment.
81
81
  Try polyfilling it using "@formatjs/intl-pluralrules"
82
- `,er.MISSING_INTL_API));var d=Ni(s,lA);try{return r(u,d).select(i)}catch(h){c(new On("Error formatting plural.",u,h))}return"other"}var uA=["numeric","style"];function cA(t,r,i){var s=t.locale,u=t.formats,c=t.onError;i===void 0&&(i={});var d=i.format,h=!!d&&Eh(u,"relative",d,c)||{},m=Ni(i,uA,h);return r(s,m)}function fA(t,r,i,s,u){u===void 0&&(u={}),s||(s="second");var c=Intl.RelativeTimeFormat;c||t.onError(new oa(`Intl.RelativeTimeFormat is not available in this environment.
82
+ `,er.MISSING_INTL_API));var d=Ni(s,oA);try{return r(u,d).select(i)}catch(h){c(new xn("Error formatting plural.",u,h))}return"other"}var cA=["numeric","style"];function fA(t,r,i){var s=t.locale,u=t.formats,c=t.onError;i===void 0&&(i={});var d=i.format,h=!!d&&Eh(u,"relative",d,c)||{},m=Ni(i,cA,h);return r(s,m)}function dA(t,r,i,s,u){u===void 0&&(u={}),s||(s="second");var c=Intl.RelativeTimeFormat;c||t.onError(new oa(`Intl.RelativeTimeFormat is not available in this environment.
83
83
  Try polyfilling it using "@formatjs/intl-relativetimeformat"
84
- `,er.MISSING_INTL_API));try{return cA(t,r,u).format(i,s)}catch(d){t.onError(new On("Error formatting relative time.",t.locale,d))}return String(i)}var dA=["style","currency","unit","unitDisplay","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","currencyDisplay","currencySign","notation","signDisplay","unit","unitDisplay","numberingSystem","trailingZeroDisplay","roundingPriority","roundingIncrement","roundingMode"];function Z1(t,r,i){var s=t.locale,u=t.formats,c=t.onError;i===void 0&&(i={});var d=i.format,h=d&&Eh(u,"number",d,c)||{},m=Ni(i,dA,h);return r(s,m)}function hA(t,r,i,s){s===void 0&&(s={});try{return Z1(t,r,s).format(i)}catch(u){t.onError(new On("Error formatting number.",t.locale,u))}return String(i)}function mA(t,r,i,s){s===void 0&&(s={});try{return Z1(t,r,s).formatToParts(i)}catch(u){t.onError(new On("Error formatting number.",t.locale,u))}return[]}function pA(t){var r=t?t[Object.keys(t)[0]]:void 0;return typeof r=="string"}function gA(t){t.onWarn&&t.defaultRichTextElements&&pA(t.messages||{})&&t.onWarn(`[@formatjs/intl] "defaultRichTextElements" was specified but "message" was not pre-compiled.
84
+ `,er.MISSING_INTL_API));try{return fA(t,r,u).format(i,s)}catch(d){t.onError(new xn("Error formatting relative time.",t.locale,d))}return String(i)}var hA=["style","currency","unit","unitDisplay","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","currencyDisplay","currencySign","notation","signDisplay","unit","unitDisplay","numberingSystem","trailingZeroDisplay","roundingPriority","roundingIncrement","roundingMode"];function Z1(t,r,i){var s=t.locale,u=t.formats,c=t.onError;i===void 0&&(i={});var d=i.format,h=d&&Eh(u,"number",d,c)||{},m=Ni(i,hA,h);return r(s,m)}function mA(t,r,i,s){s===void 0&&(s={});try{return Z1(t,r,s).format(i)}catch(u){t.onError(new xn("Error formatting number.",t.locale,u))}return String(i)}function pA(t,r,i,s){s===void 0&&(s={});try{return Z1(t,r,s).formatToParts(i)}catch(u){t.onError(new xn("Error formatting number.",t.locale,u))}return[]}function gA(t){var r=t?t[Object.keys(t)[0]]:void 0;return typeof r=="string"}function yA(t){t.onWarn&&t.defaultRichTextElements&&gA(t.messages||{})&&t.onWarn(`[@formatjs/intl] "defaultRichTextElements" was specified but "message" was not pre-compiled.
85
85
  Please consider using "@formatjs/cli" to pre-compile your messages for performance.
86
- For more details see https://formatjs.github.io/docs/getting-started/message-distribution`)}function yA(t,r){var i=QT(r),s=ie(ie({},P1),t),u=s.locale,c=s.defaultLocale,d=s.onError;return u?!Intl.NumberFormat.supportedLocalesOf(u).length&&d?d(new ly('Missing locale data for locale: "'.concat(u,'" in Intl.NumberFormat. Using default locale: "').concat(c,'" as fallback. See https://formatjs.github.io/docs/react-intl#runtime-requirements for more details'))):!Intl.DateTimeFormat.supportedLocalesOf(u).length&&d&&d(new ly('Missing locale data for locale: "'.concat(u,'" in Intl.DateTimeFormat. Using default locale: "').concat(c,'" as fallback. See https://formatjs.github.io/docs/react-intl#runtime-requirements for more details'))):(d&&d(new VT('"locale" was not configured, using "'.concat(c,'" as fallback. See https://formatjs.github.io/docs/react-intl/api#intlshape for more details'))),s.locale=s.defaultLocale||"en"),gA(s),ie(ie({},s),{formatters:i,formatNumber:hA.bind(null,s,i.getNumberFormat),formatNumberToParts:mA.bind(null,s,i.getNumberFormat),formatRelativeTime:fA.bind(null,s,i.getRelativeTimeFormat),formatDate:$T.bind(null,s,i.getDateTimeFormat),formatDateToParts:eA.bind(null,s,i.getDateTimeFormat),formatTime:WT.bind(null,s,i.getDateTimeFormat),formatDateTimeRange:JT.bind(null,s,i.getDateTimeFormat),formatTimeToParts:tA.bind(null,s,i.getDateTimeFormat),formatPlural:oA.bind(null,s,i.getPluralRules),formatMessage:Kd.bind(null,s,i),$t:Kd.bind(null,s,i),formatList:sA.bind(null,s,i.getListFormat),formatListToParts:X1.bind(null,s,i.getListFormat),formatDisplayName:rA.bind(null,s,i.getDisplayNames)})}function bA(t,r,i){if(i===void 0&&(i=Error),!t)throw new i(r)}function Q1(t){bA(t,"[React Intl] Could not find required `intl` object. <IntlProvider> needs to exist in the component ancestry.")}var K1=ie(ie({},P1),{textComponent:B.Fragment}),vA={key:42},_A=function(t){return B.isValidElement(t)?B.createElement(B.Fragment,vA,t):t},EA=function(t){var r;return(r=B.Children.map(t,_A))!==null&&r!==void 0?r:[]};function SA(t){return function(r){return t(B.Children.toArray(r))}}function TA(t,r){if(t===r)return!0;if(!t||!r)return!1;var i=Object.keys(t),s=Object.keys(r),u=i.length;if(s.length!==u)return!1;for(var c=0;c<u;c++){var d=i[c];if(t[d]!==r[d]||!Object.prototype.hasOwnProperty.call(r,d))return!1}return!0}var Yf={exports:{}},Be={};/** @license React v16.13.1
86
+ For more details see https://formatjs.github.io/docs/getting-started/message-distribution`)}function bA(t,r){var i=KT(r),s=ie(ie({},P1),t),u=s.locale,c=s.defaultLocale,d=s.onError;return u?!Intl.NumberFormat.supportedLocalesOf(u).length&&d?d(new ly('Missing locale data for locale: "'.concat(u,'" in Intl.NumberFormat. Using default locale: "').concat(c,'" as fallback. See https://formatjs.github.io/docs/react-intl#runtime-requirements for more details'))):!Intl.DateTimeFormat.supportedLocalesOf(u).length&&d&&d(new ly('Missing locale data for locale: "'.concat(u,'" in Intl.DateTimeFormat. Using default locale: "').concat(c,'" as fallback. See https://formatjs.github.io/docs/react-intl#runtime-requirements for more details'))):(d&&d(new PT('"locale" was not configured, using "'.concat(c,'" as fallback. See https://formatjs.github.io/docs/react-intl/api#intlshape for more details'))),s.locale=s.defaultLocale||"en"),yA(s),ie(ie({},s),{formatters:i,formatNumber:mA.bind(null,s,i.getNumberFormat),formatNumberToParts:pA.bind(null,s,i.getNumberFormat),formatRelativeTime:dA.bind(null,s,i.getRelativeTimeFormat),formatDate:WT.bind(null,s,i.getDateTimeFormat),formatDateToParts:tA.bind(null,s,i.getDateTimeFormat),formatTime:JT.bind(null,s,i.getDateTimeFormat),formatDateTimeRange:eA.bind(null,s,i.getDateTimeFormat),formatTimeToParts:nA.bind(null,s,i.getDateTimeFormat),formatPlural:uA.bind(null,s,i.getPluralRules),formatMessage:$d.bind(null,s,i),$t:$d.bind(null,s,i),formatList:lA.bind(null,s,i.getListFormat),formatListToParts:X1.bind(null,s,i.getListFormat),formatDisplayName:aA.bind(null,s,i.getDisplayNames)})}function vA(t,r,i){if(i===void 0&&(i=Error),!t)throw new i(r)}function Q1(t){vA(t,"[React Intl] Could not find required `intl` object. <IntlProvider> needs to exist in the component ancestry.")}var K1=ie(ie({},P1),{textComponent:U.Fragment}),_A={key:42},EA=function(t){return U.isValidElement(t)?U.createElement(U.Fragment,_A,t):t},SA=function(t){var r;return(r=U.Children.map(t,EA))!==null&&r!==void 0?r:[]};function TA(t){return function(r){return t(U.Children.toArray(r))}}function AA(t,r){if(t===r)return!0;if(!t||!r)return!1;var i=Object.keys(t),s=Object.keys(r),u=i.length;if(s.length!==u)return!1;for(var c=0;c<u;c++){var d=i[c];if(t[d]!==r[d]||!Object.prototype.hasOwnProperty.call(r,d))return!1}return!0}var Xf={exports:{}},Be={};/** @license React v16.13.1
87
87
  * react-is.production.min.js
88
88
  *
89
89
  * Copyright (c) Facebook, Inc. and its affiliates.
90
90
  *
91
91
  * This source code is licensed under the MIT license found in the
92
92
  * LICENSE file in the root directory of this source tree.
93
- */var fy;function AA(){if(fy)return Be;fy=1;var t=typeof Symbol=="function"&&Symbol.for,r=t?Symbol.for("react.element"):60103,i=t?Symbol.for("react.portal"):60106,s=t?Symbol.for("react.fragment"):60107,u=t?Symbol.for("react.strict_mode"):60108,c=t?Symbol.for("react.profiler"):60114,d=t?Symbol.for("react.provider"):60109,h=t?Symbol.for("react.context"):60110,m=t?Symbol.for("react.async_mode"):60111,p=t?Symbol.for("react.concurrent_mode"):60111,b=t?Symbol.for("react.forward_ref"):60112,E=t?Symbol.for("react.suspense"):60113,A=t?Symbol.for("react.suspense_list"):60120,U=t?Symbol.for("react.memo"):60115,R=t?Symbol.for("react.lazy"):60116,q=t?Symbol.for("react.block"):60121,G=t?Symbol.for("react.fundamental"):60117,_=t?Symbol.for("react.responder"):60118,C=t?Symbol.for("react.scope"):60119;function S(O){if(typeof O=="object"&&O!==null){var Q=O.$$typeof;switch(Q){case r:switch(O=O.type,O){case m:case p:case s:case c:case u:case E:return O;default:switch(O=O&&O.$$typeof,O){case h:case b:case R:case U:case d:return O;default:return Q}}case i:return Q}}}function H(O){return S(O)===p}return Be.AsyncMode=m,Be.ConcurrentMode=p,Be.ContextConsumer=h,Be.ContextProvider=d,Be.Element=r,Be.ForwardRef=b,Be.Fragment=s,Be.Lazy=R,Be.Memo=U,Be.Portal=i,Be.Profiler=c,Be.StrictMode=u,Be.Suspense=E,Be.isAsyncMode=function(O){return H(O)||S(O)===m},Be.isConcurrentMode=H,Be.isContextConsumer=function(O){return S(O)===h},Be.isContextProvider=function(O){return S(O)===d},Be.isElement=function(O){return typeof O=="object"&&O!==null&&O.$$typeof===r},Be.isForwardRef=function(O){return S(O)===b},Be.isFragment=function(O){return S(O)===s},Be.isLazy=function(O){return S(O)===R},Be.isMemo=function(O){return S(O)===U},Be.isPortal=function(O){return S(O)===i},Be.isProfiler=function(O){return S(O)===c},Be.isStrictMode=function(O){return S(O)===u},Be.isSuspense=function(O){return S(O)===E},Be.isValidElementType=function(O){return typeof O=="string"||typeof O=="function"||O===s||O===p||O===c||O===u||O===E||O===A||typeof O=="object"&&O!==null&&(O.$$typeof===R||O.$$typeof===U||O.$$typeof===d||O.$$typeof===h||O.$$typeof===b||O.$$typeof===G||O.$$typeof===_||O.$$typeof===C||O.$$typeof===q)},Be.typeOf=S,Be}var dy;function OA(){return dy||(dy=1,Yf.exports=AA()),Yf.exports}var Xf,hy;function xA(){if(hy)return Xf;hy=1;var t=OA(),r={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},s={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},u={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},c={};c[t.ForwardRef]=s,c[t.Memo]=u;function d(R){return t.isMemo(R)?u:c[R.$$typeof]||r}var h=Object.defineProperty,m=Object.getOwnPropertyNames,p=Object.getOwnPropertySymbols,b=Object.getOwnPropertyDescriptor,E=Object.getPrototypeOf,A=Object.prototype;function U(R,q,G){if(typeof q!="string"){if(A){var _=E(q);_&&_!==A&&U(R,_,G)}var C=m(q);p&&(C=C.concat(p(q)));for(var S=d(R),H=d(q),O=0;O<C.length;++O){var Q=C[O];if(!i[Q]&&!(G&&G[Q])&&!(H&&H[Q])&&!(S&&S[Q])){var W=b(q,Q);try{h(R,Q,W)}catch{}}}}return R}return Xf=U,Xf}xA();var Sh=typeof window<"u"&&!window.__REACT_INTL_BYPASS_GLOBAL_CONTEXT__?window.__REACT_INTL_CONTEXT__||(window.__REACT_INTL_CONTEXT__=B.createContext(null)):B.createContext(null);Sh.Consumer;var RA=Sh.Provider,wA=RA,CA=Sh;function uu(){var t=B.useContext(CA);return Q1(t),t}var $d;(function(t){t.formatDate="FormattedDate",t.formatTime="FormattedTime",t.formatNumber="FormattedNumber",t.formatList="FormattedList",t.formatDisplayName="FormattedDisplayName"})($d||($d={}));var Wd;(function(t){t.formatDate="FormattedDateParts",t.formatTime="FormattedTimeParts",t.formatNumber="FormattedNumberParts",t.formatList="FormattedListParts"})(Wd||(Wd={}));function $1(t){var r=function(i){var s=uu(),u=i.value,c=i.children,d=ou(i,["value","children"]),h=typeof u=="string"?new Date(u||0):u,m=t==="formatDate"?s.formatDateToParts(h,d):s.formatTimeToParts(h,d);return c(m)};return r.displayName=Wd[t],r}function rl(t){var r=function(i){var s=uu(),u=i.value,c=i.children,d=ou(i,["value","children"]),h=s[t](u,d);if(typeof c=="function")return c(h);var m=s.textComponent||B.Fragment;return B.createElement(m,null,h)};return r.displayName=$d[t],r}function W1(t){return t&&Object.keys(t).reduce(function(r,i){var s=t[i];return r[i]=F1(s)?SA(s):s,r},{})}var my=function(t,r,i,s){for(var u=[],c=4;c<arguments.length;c++)u[c-4]=arguments[c];var d=W1(s),h=Kd.apply(void 0,Wn([t,r,i,d],u,!1));return Array.isArray(h)?EA(h):h},py=function(t,r){var i=t.defaultRichTextElements,s=ou(t,["defaultRichTextElements"]),u=W1(i),c=yA(ie(ie(ie({},K1),s),{defaultRichTextElements:u}),r),d={locale:c.locale,timeZone:c.timeZone,fallbackOnEmptyString:c.fallbackOnEmptyString,formats:c.formats,defaultLocale:c.defaultLocale,defaultFormats:c.defaultFormats,messages:c.messages,onError:c.onError,defaultRichTextElements:u};return ie(ie({},c),{formatMessage:my.bind(null,d,c.formatters),$t:my.bind(null,d,c.formatters)})};function Zf(t){return{locale:t.locale,timeZone:t.timeZone,fallbackOnEmptyString:t.fallbackOnEmptyString,formats:t.formats,textComponent:t.textComponent,messages:t.messages,defaultLocale:t.defaultLocale,defaultFormats:t.defaultFormats,onError:t.onError,onWarn:t.onWarn,wrapRichTextChunksInFragment:t.wrapRichTextChunksInFragment,defaultRichTextElements:t.defaultRichTextElements}}var NA=function(t){An(r,t);function r(){var i=t!==null&&t.apply(this,arguments)||this;return i.cache=Y1(),i.state={cache:i.cache,intl:py(Zf(i.props),i.cache),prevConfig:Zf(i.props)},i}return r.getDerivedStateFromProps=function(i,s){var u=s.prevConfig,c=s.cache,d=Zf(i);return TA(u,d)?null:{intl:py(d,c),prevConfig:d}},r.prototype.render=function(){return Q1(this.state.intl),B.createElement(wA,{value:this.state.intl},this.props.children)},r.displayName="IntlProvider",r.defaultProps=K1,r}(B.PureComponent);rl("formatDate");rl("formatTime");rl("formatNumber");rl("formatList");rl("formatDisplayName");$1("formatDate");$1("formatTime");const MA="_app_1rj0t_1",DA={app:MA},Nr=ZS,it=$S,J1="%[a-f0-9]{2}",gy=new RegExp("("+J1+")|([^%]+?)","gi"),yy=new RegExp("("+J1+")+","gi");function Jd(t,r){try{return[decodeURIComponent(t.join(""))]}catch{}if(t.length===1)return t;r=r||1;const i=t.slice(0,r),s=t.slice(r);return Array.prototype.concat.call([],Jd(i),Jd(s))}function LA(t){try{return decodeURIComponent(t)}catch{let r=t.match(gy)||[];for(let i=1;i<r.length;i++)t=Jd(r,i).join(""),r=t.match(gy)||[];return t}}function BA(t){const r={"%FE%FF":"��","%FF%FE":"��"};let i=yy.exec(t);for(;i;){try{r[i[0]]=decodeURIComponent(i[0])}catch{const u=LA(i[0]);u!==i[0]&&(r[i[0]]=u)}i=yy.exec(t)}r["%C2"]="�";const s=Object.keys(r);for(const u of s)t=t.replace(new RegExp(u,"g"),r[u]);return t}function UA(t){if(typeof t!="string")throw new TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof t+"`");try{return decodeURIComponent(t)}catch{return BA(t)}}function HA(t,r){const i={};if(Array.isArray(r))for(const s of r){const u=Object.getOwnPropertyDescriptor(t,s);u?.enumerable&&Object.defineProperty(i,s,u)}else for(const s of Reflect.ownKeys(t)){const u=Object.getOwnPropertyDescriptor(t,s);if(u.enumerable){const c=t[s];r(s,c,t)&&Object.defineProperty(i,s,u)}}return i}function ev(t,r){if(!(typeof t=="string"&&typeof r=="string"))throw new TypeError("Expected the arguments to be of type `string`");if(t===""||r==="")return[];const i=t.indexOf(r);return i===-1?[]:[t.slice(0,i),t.slice(i+r.length)]}const jA=t=>t==null,IA=t=>encodeURIComponent(t).replaceAll(/[!'()*]/g,r=>`%${r.charCodeAt(0).toString(16).toUpperCase()}`),eh=Symbol("encodeFragmentIdentifier");function zA(t){switch(t.arrayFormat){case"index":return r=>(i,s)=>{const u=i.length;return s===void 0||t.skipNull&&s===null||t.skipEmptyString&&s===""?i:s===null?[...i,[ft(r,t),"[",u,"]"].join("")]:[...i,[ft(r,t),"[",ft(u,t),"]=",ft(s,t)].join("")]};case"bracket":return r=>(i,s)=>s===void 0||t.skipNull&&s===null||t.skipEmptyString&&s===""?i:s===null?[...i,[ft(r,t),"[]"].join("")]:[...i,[ft(r,t),"[]=",ft(s,t)].join("")];case"colon-list-separator":return r=>(i,s)=>s===void 0||t.skipNull&&s===null||t.skipEmptyString&&s===""?i:s===null?[...i,[ft(r,t),":list="].join("")]:[...i,[ft(r,t),":list=",ft(s,t)].join("")];case"comma":case"separator":case"bracket-separator":{const r=t.arrayFormat==="bracket-separator"?"[]=":"=";return i=>(s,u)=>u===void 0||t.skipNull&&u===null||t.skipEmptyString&&u===""?s:(u=u===null?"":u,s.length===0?[[ft(i,t),r,ft(u,t)].join("")]:[[s,ft(u,t)].join(t.arrayFormatSeparator)])}default:return r=>(i,s)=>s===void 0||t.skipNull&&s===null||t.skipEmptyString&&s===""?i:s===null?[...i,ft(r,t)]:[...i,[ft(r,t),"=",ft(s,t)].join("")]}}function GA(t){let r;switch(t.arrayFormat){case"index":return(i,s,u)=>{if(r=/\[(\d*)]$/.exec(i),i=i.replace(/\[\d*]$/,""),!r){u[i]=s;return}u[i]===void 0&&(u[i]={}),u[i][r[1]]=s};case"bracket":return(i,s,u)=>{if(r=/(\[])$/.exec(i),i=i.replace(/\[]$/,""),!r){u[i]=s;return}if(u[i]===void 0){u[i]=[s];return}u[i]=[...u[i],s]};case"colon-list-separator":return(i,s,u)=>{if(r=/(:list)$/.exec(i),i=i.replace(/:list$/,""),!r){u[i]=s;return}if(u[i]===void 0){u[i]=[s];return}u[i]=[...u[i],s]};case"comma":case"separator":return(i,s,u)=>{const c=typeof s=="string"&&s.includes(t.arrayFormatSeparator),d=typeof s=="string"&&!c&&Ar(s,t).includes(t.arrayFormatSeparator);s=d?Ar(s,t):s;const h=c||d?s.split(t.arrayFormatSeparator).map(m=>Ar(m,t)):s===null?s:Ar(s,t);u[i]=h};case"bracket-separator":return(i,s,u)=>{const c=/(\[])$/.test(i);if(i=i.replace(/\[]$/,""),!c){u[i]=s&&Ar(s,t);return}const d=s===null?[]:Ar(s,t).split(t.arrayFormatSeparator);if(u[i]===void 0){u[i]=d;return}u[i]=[...u[i],...d]};default:return(i,s,u)=>{if(u[i]===void 0){u[i]=s;return}u[i]=[...[u[i]].flat(),s]}}}function tv(t){if(typeof t!="string"||t.length!==1)throw new TypeError("arrayFormatSeparator must be single character string")}function ft(t,r){return r.encode?r.strict?IA(t):encodeURIComponent(t):t}function Ar(t,r){return r.decode?UA(t):t}function nv(t){return Array.isArray(t)?t.sort():typeof t=="object"?nv(Object.keys(t)).sort((r,i)=>Number(r)-Number(i)).map(r=>t[r]):t}function rv(t){const r=t.indexOf("#");return r!==-1&&(t=t.slice(0,r)),t}function kA(t){let r="";const i=t.indexOf("#");return i!==-1&&(r=t.slice(i)),r}function by(t,r,i){return i==="string"&&typeof t=="string"?t:typeof i=="function"&&typeof t=="string"?i(t):i==="boolean"&&t===null?!0:i==="boolean"&&t!==null&&(t.toLowerCase()==="true"||t.toLowerCase()==="false")?t.toLowerCase()==="true":i==="boolean"&&t!==null&&(t.toLowerCase()==="1"||t.toLowerCase()==="0")?t.toLowerCase()==="1":i==="string[]"&&r.arrayFormat!=="none"&&typeof t=="string"?[t]:i==="number[]"&&r.arrayFormat!=="none"&&!Number.isNaN(Number(t))&&typeof t=="string"&&t.trim()!==""?[Number(t)]:i==="number"&&!Number.isNaN(Number(t))&&typeof t=="string"&&t.trim()!==""?Number(t):r.parseBooleans&&t!==null&&(t.toLowerCase()==="true"||t.toLowerCase()==="false")?t.toLowerCase()==="true":r.parseNumbers&&!Number.isNaN(Number(t))&&typeof t=="string"&&t.trim()!==""?Number(t):t}function Th(t){t=rv(t);const r=t.indexOf("?");return r===-1?"":t.slice(r+1)}function Ah(t,r){r={decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1,types:Object.create(null),...r},tv(r.arrayFormatSeparator);const i=GA(r),s=Object.create(null);if(typeof t!="string"||(t=t.trim().replace(/^[?#&]/,""),!t))return s;for(const u of t.split("&")){if(u==="")continue;const c=r.decode?u.replaceAll("+"," "):u;let[d,h]=ev(c,"=");d===void 0&&(d=c),h=h===void 0?null:["comma","separator","bracket-separator"].includes(r.arrayFormat)?h:Ar(h,r),i(Ar(d,r),h,s)}for(const[u,c]of Object.entries(s))if(typeof c=="object"&&c!==null&&r.types[u]!=="string")for(const[d,h]of Object.entries(c)){const m=r.types[u]?r.types[u].replace("[]",""):void 0;c[d]=by(h,r,m)}else typeof c=="object"&&c!==null&&r.types[u]==="string"?s[u]=Object.values(c).join(r.arrayFormatSeparator):s[u]=by(c,r,r.types[u]);return r.sort===!1?s:(r.sort===!0?Object.keys(s).sort():Object.keys(s).sort(r.sort)).reduce((u,c)=>{const d=s[c];return u[c]=d&&typeof d=="object"&&!Array.isArray(d)?nv(d):d,u},Object.create(null))}function av(t,r){if(!t)return"";r={encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:",",...r},tv(r.arrayFormatSeparator);const i=d=>r.skipNull&&jA(t[d])||r.skipEmptyString&&t[d]==="",s=zA(r),u={};for(const[d,h]of Object.entries(t))i(d)||(u[d]=h);const c=Object.keys(u);return r.sort!==!1&&c.sort(r.sort),c.map(d=>{const h=t[d];return h===void 0?"":h===null?ft(d,r):Array.isArray(h)?h.length===0&&r.arrayFormat==="bracket-separator"?ft(d,r)+"[]":h.reduce(s(d),[]).join("&"):ft(d,r)+"="+ft(h,r)}).filter(d=>d.length>0).join("&")}function iv(t,r){r={decode:!0,...r};let[i,s]=ev(t,"#");return i===void 0&&(i=t),{url:i?.split("?")?.[0]??"",query:Ah(Th(t),r),...r&&r.parseFragmentIdentifier&&s?{fragmentIdentifier:Ar(s,r)}:{}}}function sv(t,r){r={encode:!0,strict:!0,[eh]:!0,...r};const i=rv(t.url).split("?")[0]||"",s=Th(t.url),u={...Ah(s,{sort:!1,...r}),...t.query};let c=av(u,r);c&&=`?${c}`;let d=kA(t.url);if(typeof t.fragmentIdentifier=="string"){const h=new URL(i);h.hash=t.fragmentIdentifier,d=r[eh]?h.hash:`#${t.fragmentIdentifier}`}return`${i}${c}${d}`}function lv(t,r,i){i={parseFragmentIdentifier:!0,[eh]:!1,...i};const{url:s,query:u,fragmentIdentifier:c}=iv(t,i);return sv({url:s,query:HA(u,r),fragmentIdentifier:c},i)}function qA(t,r,i){const s=Array.isArray(r)?u=>!r.includes(u):(u,c)=>!r(u,c);return lv(t,s,i)}const cu=Object.freeze(Object.defineProperty({__proto__:null,exclude:qA,extract:Th,parse:Ah,parseUrl:iv,pick:lv,stringify:av,stringifyUrl:sv},Symbol.toStringTag,{value:"Module"}));var Ln={},Bn={},Ie={},_o={},pe={},vy;function fn(){return vy||(vy=1,Object.defineProperty(pe,"__esModule",{value:!0}),pe.GUEST_LOCALE_CHANGED=pe.DRAWER_CLOSE=pe.DRAWER_OPEN=pe.CONVERSATION_RATING_FROM_GUEST=pe.TRANSCRIPT_ITEM_GUEST_REACTION=pe.TRANSCRIPT_MAIL_REQUEST=pe.INBOX_CONNECT_REQUEST=pe.RESTART_CHAT_REQUEST=pe.EVENT_TO_GUEST=pe.NLU_REQUEST_EVENT=pe.EXPERTS_DISCONNECTED=pe.EXPERTS_DISCONNECT_REQUEST=pe.EXPERTS_CONNECTED=pe.EXPERTS_CONNECT_REQUEST=pe.MESSAGE_TO_GUEST=pe.MESSAGE_WITHOUT_ANALYSIS_FROM_GUEST=pe.MESSAGE_FROM_GUEST=pe.GUEST_FEEDBACK_RESPONSE=pe.GUEST_DISCONNECTED=pe.GUEST_CONNECTED=pe.TYPING_OFF=pe.TYPING_ON=void 0,pe.TYPING_ON="core.typing.on",pe.TYPING_OFF="core.typing.off",pe.GUEST_CONNECTED="core.guest.connected",pe.GUEST_DISCONNECTED="core.guest.disconnected",pe.GUEST_FEEDBACK_RESPONSE="core.guest.feedback.response",pe.MESSAGE_FROM_GUEST="core.message.from.guest",pe.MESSAGE_WITHOUT_ANALYSIS_FROM_GUEST="core.message.without.analysis.from.guest",pe.MESSAGE_TO_GUEST="core.message.to.guest",pe.EXPERTS_CONNECT_REQUEST="core.experts.connect.request",pe.EXPERTS_CONNECTED="core.experts.connected",pe.EXPERTS_DISCONNECT_REQUEST="core.experts.disconnect.request",pe.EXPERTS_DISCONNECTED="core.experts.disconnected",pe.NLU_REQUEST_EVENT="core.nlu.request.event",pe.EVENT_TO_GUEST="core.event.to.guest",pe.RESTART_CHAT_REQUEST="core.chat.restart.request",pe.INBOX_CONNECT_REQUEST="core.inbox.connect.request",pe.TRANSCRIPT_MAIL_REQUEST="core.transcript.mail.request",pe.TRANSCRIPT_ITEM_GUEST_REACTION="core.transcript.item.guest.reaction",pe.CONVERSATION_RATING_FROM_GUEST="core.conversation.rating.from.guest",pe.DRAWER_OPEN="core.drawer.open",pe.DRAWER_CLOSE="core.drawer.close",pe.GUEST_LOCALE_CHANGED="core.guest.locale.changed"),pe}var _y;function FA(){if(_y)return _o;_y=1,Object.defineProperty(_o,"__esModule",{value:!0});const t=fn(),r=()=>({type:t.DRAWER_CLOSE});return _o.default=r,_o}var Eo={},Ey;function VA(){if(Ey)return Eo;Ey=1,Object.defineProperty(Eo,"__esModule",{value:!0});const t=fn(),r=(i,s)=>({type:t.GUEST_FEEDBACK_RESPONSE,payload:{satisfaction:i,intent:s}});return Eo.default=r,Eo}var So={},Sy;function PA(){if(Sy)return So;Sy=1,Object.defineProperty(So,"__esModule",{value:!0});const t=fn(),r=i=>({type:t.GUEST_CONNECTED,payload:{sessionId:i}});return So.default=r,So}var To={},Ty;function YA(){if(Ty)return To;Ty=1,Object.defineProperty(To,"__esModule",{value:!0});const t=fn(),r=i=>({type:t.GUEST_DISCONNECTED,payload:{sessionId:i}});return To.default=r,To}var Ao={},Ay;function XA(){if(Ay)return Ao;Ay=1,Object.defineProperty(Ao,"__esModule",{value:!0});const t=fn(),r=(i,s)=>({type:t.GUEST_LOCALE_CHANGED,payload:{previousLocale:i,newLocale:s}});return Ao.default=r,Ao}var Oo={},Oy;function ZA(){if(Oy)return Oo;Oy=1,Object.defineProperty(Oo,"__esModule",{value:!0});const t=fn(),r=i=>({type:t.DRAWER_OPEN,payload:{parameters:{contentUrl:i}}});return Oo.default=r,Oo}var xo={},$e={},xy;function Oh(){if(xy)return $e;xy=1,Object.defineProperty($e,"__esModule",{value:!0}),$e.getStringRepresentationFromMessage=$e.MessageTypeEnum=$e.AudioMessage=$e.FileMessage=$e.ImageMessage=$e.VideoMessage=$e.MarkdownMessage=$e.DetailMessage=$e.TextMessage=$e.Message=void 0;class t{type;sender;sources;quickReplies;constructor(E,A,U=[],R=[]){this.type=E,this.sender=A,this.sources=U,this.quickReplies=R}addQuickReply(E,A){this.quickReplies.push({label:E,payload:A})}}$e.Message=t;class r extends t{text;constructor(E,A,U=[],R=[]){super(m.TEXT,A,U,R),this.text=E}}$e.TextMessage=r;class i extends t{title;text;imageUrl;itemUrl;buttons;constructor(E,A){super(m.DETAIL,A),this.title=E,this.text="",this.imageUrl="",this.itemUrl="",this.buttons=[]}setImageUrl(E){this.imageUrl=E}setItemUrl(E){this.itemUrl=E}setText(E){this.text=E}addButton(E){this.buttons.push(E)}}$e.DetailMessage=i;class s extends t{markdown;constructor(E,A,U=[],R=[]){super(m.MARKDOWN,A,U,R),this.markdown=E}}$e.MarkdownMessage=s;class u extends t{url;constructor(E,A){super(m.VIDEO,A),this.url=E}}$e.VideoMessage=u;class c extends t{url;constructor(E,A){super(m.IMAGE,A),this.url=E}}$e.ImageMessage=c;class d extends t{url;constructor(E,A){super(m.FILE,A),this.url=E}}$e.FileMessage=d;class h extends t{url;constructor(E,A){super(m.AUDIO,A),this.url=E}}$e.AudioMessage=h;var m;(function(b){b.TEXT="TEXT",b.DETAIL="DETAIL",b.MARKDOWN="MARKDOWN",b.VIDEO="VIDEO",b.IMAGE="IMAGE",b.FILE="FILE",b.AUDIO="AUDIO"})(m||($e.MessageTypeEnum=m={}));const p=b=>{switch(b.type){case m.TEXT:return b.text;case m.DETAIL:return`${b.title}`;case m.MARKDOWN:return b.markdown;case m.VIDEO:return`Video Url: ${b.url}`;case m.IMAGE:return`Image Url: ${b.url}`;case m.FILE:return`File Url: ${b.url}`;case m.AUDIO:return`Audio Url: ${b.url}`;default:throw new Error("Unknown message type "+b.type)}};return $e.getStringRepresentationFromMessage=p,$e}var sn={},Ry;function xh(){if(Ry)return sn;Ry=1,Object.defineProperty(sn,"__esModule",{value:!0}),sn.UserType=sn.PersonUser=sn.GuestUser=sn.BotUser=sn.User=void 0;class t{type;id;name;avatar;constructor(d,h,m,p){this.type=d,this.id=h,this.name=m,this.avatar=p}}sn.User=t;class r extends t{constructor(){super(u.BOT,null,"Chatbot","bot.svg")}}sn.BotUser=r;class i extends t{constructor(){super(u.GUEST,null,"Guest","visitor.svg")}}sn.GuestUser=i;class s extends t{constructor(d,h,m){super(u.PERSON,d,h,m)}}sn.PersonUser=s;var u;return function(c){c.GUEST="GUEST",c.BOT="BOT",c.PERSON="PERSON"}(u||(sn.UserType=u={})),sn}var wy;function QA(){if(wy)return xo;wy=1,Object.defineProperty(xo,"__esModule",{value:!0});const t=Oh(),r=xh(),i=fn(),s=u=>{const c=new t.TextMessage(u,new r.GuestUser);return{type:i.MESSAGE_FROM_GUEST,message:c}};return xo.default=s,xo}var Ro={},Cy;function KA(){if(Cy)return Ro;Cy=1,Object.defineProperty(Ro,"__esModule",{value:!0});const t=Oh(),r=xh(),i=fn(),s=(u,c={})=>{const d=new t.TextMessage(u,new r.GuestUser);return{type:i.MESSAGE_WITHOUT_ANALYSIS_FROM_GUEST,message:d,payload:c}};return Ro.default=s,Ro}var wo={},Ny;function $A(){if(Ny)return wo;Ny=1,Object.defineProperty(wo,"__esModule",{value:!0});const t=fn(),r=i=>({type:t.NLU_REQUEST_EVENT,event:i});return wo.default=r,wo}var Co={},My;function WA(){if(My)return Co;My=1,Object.defineProperty(Co,"__esModule",{value:!0});const t=fn(),r=()=>({type:t.RESTART_CHAT_REQUEST});return Co.default=r,Co}var No={},Dy;function JA(){if(Dy)return No;Dy=1,Object.defineProperty(No,"__esModule",{value:!0});const t=fn(),r=i=>({type:t.MESSAGE_TO_GUEST,message:i});return No.default=r,No}var Mo={},Ly;function eO(){if(Ly)return Mo;Ly=1,Object.defineProperty(Mo,"__esModule",{value:!0});const t=fn(),r=(i,s,u=null,c=null)=>({type:t.TRANSCRIPT_ITEM_GUEST_REACTION,payload:{actionId:i,reaction:s,category:u,comment:c}});return Mo.default=r,Mo}var By;function tO(){if(By)return Ie;By=1;var t=Ie&&Ie.__importDefault||function(U){return U&&U.__esModule?U:{default:U}};Object.defineProperty(Ie,"__esModule",{value:!0}),Ie.transcriptItemGuestReaction=Ie.sendMessageToGuest=Ie.restartChatRequest=Ie.requestNLUEvent=Ie.receiveTextMessageWithoutAnalysisFromGuest=Ie.receiveTextMessageFromGuest=Ie.openDrawer=Ie.guestLocaleChanged=Ie.guestDisconnected=Ie.guestConnected=Ie.feedbackFromGuestResponse=Ie.closeDrawer=void 0;const r=t(FA());Ie.closeDrawer=r.default;const i=t(VA());Ie.feedbackFromGuestResponse=i.default;const s=t(PA());Ie.guestConnected=s.default;const u=t(YA());Ie.guestDisconnected=u.default;const c=t(XA());Ie.guestLocaleChanged=c.default;const d=t(ZA());Ie.openDrawer=d.default;const h=t(QA());Ie.receiveTextMessageFromGuest=h.default;const m=t(KA());Ie.receiveTextMessageWithoutAnalysisFromGuest=m.default;const p=t($A());Ie.requestNLUEvent=p.default;const b=t(WA());Ie.restartChatRequest=b.default;const E=t(JA());Ie.sendMessageToGuest=E.default;const A=t(eO());return Ie.transcriptItemGuestReaction=A.default,Ie}var Qf={},Uy;function nO(){return Uy||(Uy=1,Object.defineProperty(Qf,"__esModule",{value:!0})),Qf}var Hy;function rO(){return Hy||(Hy=1,function(t){var r=Bn&&Bn.__createBinding||(Object.create?function(c,d,h,m){m===void 0&&(m=h);var p=Object.getOwnPropertyDescriptor(d,h);(!p||("get"in p?!d.__esModule:p.writable||p.configurable))&&(p={enumerable:!0,get:function(){return d[h]}}),Object.defineProperty(c,m,p)}:function(c,d,h,m){m===void 0&&(m=h),c[m]=d[h]}),i=Bn&&Bn.__setModuleDefault||(Object.create?function(c,d){Object.defineProperty(c,"default",{enumerable:!0,value:d})}:function(c,d){c.default=d}),s=Bn&&Bn.__importStar||function(){var c=function(d){return c=Object.getOwnPropertyNames||function(h){var m=[];for(var p in h)Object.prototype.hasOwnProperty.call(h,p)&&(m[m.length]=p);return m},c(d)};return function(d){if(d&&d.__esModule)return d;var h={};if(d!=null)for(var m=c(d),p=0;p<m.length;p++)m[p]!=="default"&&r(h,d,m[p]);return i(h,d),h}}(),u=Bn&&Bn.__exportStar||function(c,d){for(var h in c)h!=="default"&&!Object.prototype.hasOwnProperty.call(d,h)&&r(d,c,h)};Object.defineProperty(t,"__esModule",{value:!0}),t.ActionTypes=t.Actions=void 0,t.Actions=s(tO()),t.ActionTypes=s(fn()),u(nO(),t)}(Bn)),Bn}var ln={},Kf={},jy;function aO(){return jy||(jy=1,Object.defineProperty(Kf,"__esModule",{value:!0})),Kf}var Us={},Iy;function iO(){if(Iy)return Us;Iy=1,Object.defineProperty(Us,"__esModule",{value:!0}),Us.NullableKnowledgeBaseAdapter=void 0;class t{async createApiKnowledgeBase(i){throw new Error("Method not implemented.")}async updateApiKnowledgeBase(i,s){throw new Error("Method not implemented.")}async deleteApiKnowledgeBase(i){throw new Error("Method not implemented.")}async upsertApiKnowledgeBase(i){throw new Error("Method not implemented.")}async findApiKnowledgeBaseById(i){throw new Error("Method not implemented.")}async findApiKnowledgeBaseByName(i){throw new Error("Method not implemented.")}async findApiKnowledgeBases(){throw new Error("Method not implemented.")}async deleteApiKnowledgeBaseByName(i){throw new Error("Method not implemented.")}async findKnowledgeBaseEntries(i){throw new Error("Method not implemented.")}async createKnowledgeBaseEntry(i,s){throw new Error("Method not implemented.")}async updateKnowledgeBaseEntry(i,s,u){throw new Error("Method not implemented.")}async deleteKnowledgeBaseEntry(i,s){throw new Error("Method not implemented.")}async upsertKnowledgeBaseEntry(i,s){throw new Error("Method not implemented.")}async retrieveKnowledgeBaseEntryConfig(i,s){throw new Error("Method not implemented.")}async findKnowledgeBaseEntryByUriAlias(i,s){throw new Error("Method not implemented.")}async deleteKnowledgeBaseEntriesIndexedBeforeDate(i,s){throw new Error("Method not implemented.")}async findKnowledgeBaseEntryAttachments(i,s){throw new Error("Method not implemented.")}async createKnowledgeBaseEntryAttachment(i,s,u){throw new Error("Method not implemented.")}async updateKnowledgeBaseEntryAttachment(i,s,u,c){throw new Error("Method not implemented.")}async deleteKnowledgeBaseEntryAttachment(i,s,u){throw new Error("Method not implemented.")}async setIndexingStatus(i,s){throw new Error("Method not implemented.")}async subscribeToReindex(i,s){throw new Error("Method not implemented.")}isContentTypeSupported(i){throw new Error("Method not implemented.")}registerTool(i,s){throw new Error("Method not implemented.")}async getTools(i){throw new Error("Method not implemented.")}}return Us.NullableKnowledgeBaseAdapter=t,Us}var zy;function sO(){if(zy)return ln;zy=1;var t=ln&&ln.__createBinding||(Object.create?function(u,c,d,h){h===void 0&&(h=d);var m=Object.getOwnPropertyDescriptor(c,d);(!m||("get"in m?!c.__esModule:m.writable||m.configurable))&&(m={enumerable:!0,get:function(){return c[d]}}),Object.defineProperty(u,h,m)}:function(u,c,d,h){h===void 0&&(h=d),u[h]=c[d]}),r=ln&&ln.__setModuleDefault||(Object.create?function(u,c){Object.defineProperty(u,"default",{enumerable:!0,value:c})}:function(u,c){u.default=c}),i=ln&&ln.__importStar||function(){var u=function(c){return u=Object.getOwnPropertyNames||function(d){var h=[];for(var m in d)Object.prototype.hasOwnProperty.call(d,m)&&(h[h.length]=m);return h},u(c)};return function(c){if(c&&c.__esModule)return c;var d={};if(c!=null)for(var h=u(c),m=0;m<h.length;m++)h[m]!=="default"&&t(d,c,h[m]);return r(d,c),d}}();Object.defineProperty(ln,"__esModule",{value:!0}),ln.NullableCmsAdapter=ln.KnowledgeBase=void 0,ln.KnowledgeBase=i(aO());const s=iO();return ln.NullableCmsAdapter={knowledgeBase:new s.NullableKnowledgeBaseAdapter},ln}var Ma={},$f={},Gy;function lO(){return Gy||(Gy=1,Object.defineProperty($f,"__esModule",{value:!0})),$f}var Wf={},ky;function oO(){return ky||(ky=1,Object.defineProperty(Wf,"__esModule",{value:!0})),Wf}var Jf={},qy;function uO(){return qy||(qy=1,Object.defineProperty(Jf,"__esModule",{value:!0})),Jf}var ed={},Fy;function cO(){return Fy||(Fy=1,Object.defineProperty(ed,"__esModule",{value:!0})),ed}var Hs={},Vy;function fO(){if(Vy)return Hs;Vy=1,Object.defineProperty(Hs,"__esModule",{value:!0}),Hs.checkMiddlewareCondition=void 0;const t=async(r,i,s)=>(Array.isArray(r)?r:[r]).reduce(async(c,d)=>await c?await d(i,s):!1,Promise.resolve(!0));return Hs.checkMiddlewareCondition=t,Hs}var td={},Py;function dO(){return Py||(Py=1,Object.defineProperty(td,"__esModule",{value:!0})),td}var nd={},Yy;function hO(){return Yy||(Yy=1,Object.defineProperty(nd,"__esModule",{value:!0})),nd}var rd={},Xy;function mO(){return Xy||(Xy=1,Object.defineProperty(rd,"__esModule",{value:!0})),rd}var Zy;function pO(){return Zy||(Zy=1,function(t){var r=Ma&&Ma.__createBinding||(Object.create?function(s,u,c,d){d===void 0&&(d=c);var h=Object.getOwnPropertyDescriptor(u,c);(!h||("get"in h?!u.__esModule:h.writable||h.configurable))&&(h={enumerable:!0,get:function(){return u[c]}}),Object.defineProperty(s,d,h)}:function(s,u,c,d){d===void 0&&(d=c),s[d]=u[c]}),i=Ma&&Ma.__exportStar||function(s,u){for(var c in s)c!=="default"&&!Object.prototype.hasOwnProperty.call(u,c)&&r(u,s,c)};Object.defineProperty(t,"__esModule",{value:!0}),i(lO(),t),i(oO(),t),i(uO(),t),i(cO(),t),i(fO(),t),i(dO(),t),i(hO(),t),i(mO(),t)}(Ma)),Ma}var Da={},Un={},Qy;function gO(){if(Qy)return Un;Qy=1,Object.defineProperty(Un,"__esModule",{value:!0}),Un.ButtonTypeEnum=Un.PostbackButton=Un.UrlButton=Un.Button=void 0;class t{title;type;constructor(c,d){this.title=c,this.type=d}}Un.Button=t;class r extends t{url;constructor(c,d){super(c,s.WEB_URL),this.url=d}}Un.UrlButton=r;class i extends t{payload;constructor(c,d){super(c,s.POSTBACK),this.payload=d}}Un.PostbackButton=i;var s;return function(u){u.WEB_URL="web_url",u.POSTBACK="postback"}(s||(Un.ButtonTypeEnum=s={})),Un}var ad={},Ky;function yO(){return Ky||(Ky=1,Object.defineProperty(ad,"__esModule",{value:!0})),ad}var js={},$y;function bO(){if($y)return js;$y=1,Object.defineProperty(js,"__esModule",{value:!0}),js.SatisfactionEnum=void 0;var t;return function(r){r.GOOD="GOOD",r.BAD="BAD"}(t||(js.SatisfactionEnum=t={})),js}var Wy;function Jy(){return Wy||(Wy=1,function(t){var r=Da&&Da.__createBinding||(Object.create?function(s,u,c,d){d===void 0&&(d=c);var h=Object.getOwnPropertyDescriptor(u,c);(!h||("get"in h?!u.__esModule:h.writable||h.configurable))&&(h={enumerable:!0,get:function(){return u[c]}}),Object.defineProperty(s,d,h)}:function(s,u,c,d){d===void 0&&(d=c),s[d]=u[c]}),i=Da&&Da.__exportStar||function(s,u){for(var c in s)c!=="default"&&!Object.prototype.hasOwnProperty.call(u,c)&&r(u,s,c)};Object.defineProperty(t,"__esModule",{value:!0}),i(gO(),t),i(yO(),t),i(bO(),t),i(Oh(),t),i(xh(),t)}(Da)),Da}var eb;function vO(){return eb||(eb=1,function(t){var r=Ln&&Ln.__createBinding||(Object.create?function(c,d,h,m){m===void 0&&(m=h);var p=Object.getOwnPropertyDescriptor(d,h);(!p||("get"in p?!d.__esModule:p.writable||p.configurable))&&(p={enumerable:!0,get:function(){return d[h]}}),Object.defineProperty(c,m,p)}:function(c,d,h,m){m===void 0&&(m=h),c[m]=d[h]}),i=Ln&&Ln.__setModuleDefault||(Object.create?function(c,d){Object.defineProperty(c,"default",{enumerable:!0,value:d})}:function(c,d){c.default=d}),s=Ln&&Ln.__exportStar||function(c,d){for(var h in c)h!=="default"&&!Object.prototype.hasOwnProperty.call(d,h)&&r(d,c,h)},u=Ln&&Ln.__importStar||function(){var c=function(d){return c=Object.getOwnPropertyNames||function(h){var m=[];for(var p in h)Object.prototype.hasOwnProperty.call(h,p)&&(m[m.length]=p);return m},c(d)};return function(d){if(d&&d.__esModule)return d;var h={};if(d!=null)for(var m=c(d),p=0;p<m.length;p++)m[p]!=="default"&&r(h,d,m[p]);return i(h,d),h}}();Object.defineProperty(t,"__esModule",{value:!0}),t.Model=t.CMS=void 0,s(rO(),t),t.CMS=u(sO()),s(pO(),t),t.Model=u(Jy()),s(Jy(),t)}(Ln)),Ln}var Te=vO();const ov=t=>r=>(t.payload.type!==Te.ActionTypes.MESSAGE_FROM_GUEST&&r(Te.Actions.receiveTextMessageWithoutAnalysisFromGuest(t.label,t.payload)),r(t.payload)),uv=t=>(r,i)=>{const{quickReplies:s}=i().chat,u=s.find(c=>t.toLocaleLowerCase().indexOf(c.label.toLocaleLowerCase())>-1);return r(u?ov({...u,label:t}):JSON.parse(JSON.stringify(Te.Actions.receiveTextMessageFromGuest(t))))},Rh="MESSAGE_TO_PARENT_PAGE",wh="RESTORE_PREVIOUS_CHAT_MESSAGES",Ch="AUDIO_MESSAGE_FROM_USER",Nh="RECEIVE_SPEECH_TRANSCRIPTION",Mh="ENABLE_CONVERSATION_RATING",cv="LOAD_SOURCE_INFOS_RESPONSE",Dh="LOAD_SOURCE_INFOS_ERROR",Lh="LOAD_SOURCE_INFOS_REQUEST",Bh="CLOSE_SOURCE_INFOS",_O="webclient.get.started",fv="webclient.window.expand",dv="webclient.window.close",hv="webclient.transcript.pdf.download",EO=[Rh,wh,Ch,Nh,Mh,Lh,Bh],SO=t=>({type:Ch,buffer:t}),TO=t=>({type:Nh,transcription:t}),AO=t=>({type:Te.ActionTypes.TRANSCRIPT_MAIL_REQUEST,payload:{parameters:{mailTo:t}}}),OO=()=>({type:hv}),xO=({rating:t})=>({type:Mh,payload:{rating:t}}),RO=(t,r)=>({type:Te.ActionTypes.CONVERSATION_RATING_FROM_GUEST,payload:{value:t,feedback:r}}),mv=t=>Te.Actions.requestNLUEvent(t),wO=t=>({type:wh,messages:t}),CO=t=>{switch(t.type){case Te.ButtonTypeEnum.WEB_URL:return gv(t.url);case Te.ButtonTypeEnum.POSTBACK:return t.payload;default:throw new Error(`unknown button type ${t.type}`)}},pv=t=>gv(t),gv=t=>({type:Rh,message:{type:"webclient.change.url",url:t}});/*! js-cookie v3.0.5 | MIT */function Do(t){for(var r=1;r<arguments.length;r++){var i=arguments[r];for(var s in i)t[s]=i[s]}return t}var NO={read:function(t){return t[0]==='"'&&(t=t.slice(1,-1)),t.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(t){return encodeURIComponent(t).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}};function th(t,r){function i(u,c,d){if(!(typeof document>"u")){d=Do({},r,d),typeof d.expires=="number"&&(d.expires=new Date(Date.now()+d.expires*864e5)),d.expires&&(d.expires=d.expires.toUTCString()),u=encodeURIComponent(u).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var h="";for(var m in d)d[m]&&(h+="; "+m,d[m]!==!0&&(h+="="+d[m].split(";")[0]));return document.cookie=u+"="+t.write(c,u)+h}}function s(u){if(!(typeof document>"u"||arguments.length&&!u)){for(var c=document.cookie?document.cookie.split("; "):[],d={},h=0;h<c.length;h++){var m=c[h].split("="),p=m.slice(1).join("=");try{var b=decodeURIComponent(m[0]);if(d[b]=t.read(p,b),u===b)break}catch{}}return u?d[u]:d}}return Object.create({set:i,get:s,remove:function(u,c){i(u,"",Do({},c,{expires:-1}))},withAttributes:function(u){return th(this.converter,Do({},this.attributes,u))},withConverter:function(u){return th(Do({},this.converter,u),this.attributes)}},{attributes:{value:Object.freeze(r)},converter:{value:Object.freeze(t)}})}var Lo=th(NO,{path:"/"});const wt=[];for(let t=0;t<256;++t)wt.push((t+256).toString(16).slice(1));function MO(t,r=0){return(wt[t[r+0]]+wt[t[r+1]]+wt[t[r+2]]+wt[t[r+3]]+"-"+wt[t[r+4]]+wt[t[r+5]]+"-"+wt[t[r+6]]+wt[t[r+7]]+"-"+wt[t[r+8]]+wt[t[r+9]]+"-"+wt[t[r+10]]+wt[t[r+11]]+wt[t[r+12]]+wt[t[r+13]]+wt[t[r+14]]+wt[t[r+15]]).toLowerCase()}let id;const DO=new Uint8Array(16);function LO(){if(!id){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");id=crypto.getRandomValues.bind(crypto)}return id(DO)}const BO=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),tb={randomUUID:BO};function Wo(t,r,i){if(tb.randomUUID&&!t)return tb.randomUUID();t=t||{};const s=t.random??t.rng?.()??LO();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,MO(s)}function Ct(t){return`Minified Redux error #${t}; visit https://redux.js.org/Errors?code=${t} for the full message or use the non-minified dev environment for full errors. `}var UO=typeof Symbol=="function"&&Symbol.observable||"@@observable",nb=UO,sd=()=>Math.random().toString(36).substring(7).split("").join("."),HO={INIT:`@@redux/INIT${sd()}`,REPLACE:`@@redux/REPLACE${sd()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${sd()}`},Jo=HO;function Uh(t){if(typeof t!="object"||t===null)return!1;let r=t;for(;Object.getPrototypeOf(r)!==null;)r=Object.getPrototypeOf(r);return Object.getPrototypeOf(t)===r||Object.getPrototypeOf(t)===null}function yv(t,r,i){if(typeof t!="function")throw new Error(Ct(2));if(typeof r=="function"&&typeof i=="function"||typeof i=="function"&&typeof arguments[3]=="function")throw new Error(Ct(0));if(typeof r=="function"&&typeof i>"u"&&(i=r,r=void 0),typeof i<"u"){if(typeof i!="function")throw new Error(Ct(1));return i(yv)(t,r)}let s=t,u=r,c=new Map,d=c,h=0,m=!1;function p(){d===c&&(d=new Map,c.forEach((G,_)=>{d.set(_,G)}))}function b(){if(m)throw new Error(Ct(3));return u}function E(G){if(typeof G!="function")throw new Error(Ct(4));if(m)throw new Error(Ct(5));let _=!0;p();const C=h++;return d.set(C,G),function(){if(_){if(m)throw new Error(Ct(6));_=!1,p(),d.delete(C),c=null}}}function A(G){if(!Uh(G))throw new Error(Ct(7));if(typeof G.type>"u")throw new Error(Ct(8));if(typeof G.type!="string")throw new Error(Ct(17));if(m)throw new Error(Ct(9));try{m=!0,u=s(u,G)}finally{m=!1}return(c=d).forEach(C=>{C()}),G}function U(G){if(typeof G!="function")throw new Error(Ct(10));s=G,A({type:Jo.REPLACE})}function R(){const G=E;return{subscribe(_){if(typeof _!="object"||_===null)throw new Error(Ct(11));function C(){const H=_;H.next&&H.next(b())}return C(),{unsubscribe:G(C)}},[nb](){return this}}}return A({type:Jo.INIT}),{dispatch:A,subscribe:E,getState:b,replaceReducer:U,[nb]:R}}function jO(t){Object.keys(t).forEach(r=>{const i=t[r];if(typeof i(void 0,{type:Jo.INIT})>"u")throw new Error(Ct(12));if(typeof i(void 0,{type:Jo.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(Ct(13))})}function bv(t){const r=Object.keys(t),i={};for(let c=0;c<r.length;c++){const d=r[c];typeof t[d]=="function"&&(i[d]=t[d])}const s=Object.keys(i);let u;try{jO(i)}catch(c){u=c}return function(d={},h){if(u)throw u;let m=!1;const p={};for(let b=0;b<s.length;b++){const E=s[b],A=i[E],U=d[E],R=A(U,h);if(typeof R>"u")throw h&&h.type,new Error(Ct(14));p[E]=R,m=m||R!==U}return m=m||s.length!==Object.keys(d).length,m?p:d}}function eu(...t){return t.length===0?r=>r:t.length===1?t[0]:t.reduce((r,i)=>(...s)=>r(i(...s)))}function IO(...t){return r=>(i,s)=>{const u=r(i,s);let c=()=>{throw new Error(Ct(15))};const d={getState:u.getState,dispatch:(m,...p)=>c(m,...p)},h=t.map(m=>m(d));return c=eu(...h)(u.dispatch),{...u,dispatch:c}}}function zO(t){return Uh(t)&&"type"in t&&typeof t.type=="string"}var vv=Symbol.for("immer-nothing"),rb=Symbol.for("immer-draftable"),un=Symbol.for("immer-state");function zn(t,...r){throw new Error(`[Immer] minified error nr: ${t}. Full error at: https://bit.ly/3cXEKWf`)}var wi=Object.getPrototypeOf;function Ga(t){return!!t&&!!t[un]}function Cr(t){return t?_v(t)||Array.isArray(t)||!!t[rb]||!!t.constructor?.[rb]||du(t)||hu(t):!1}var GO=Object.prototype.constructor.toString();function _v(t){if(!t||typeof t!="object")return!1;const r=wi(t);if(r===null)return!0;const i=Object.hasOwnProperty.call(r,"constructor")&&r.constructor;return i===Object?!0:typeof i=="function"&&Function.toString.call(i)===GO}function tu(t,r){fu(t)===0?Reflect.ownKeys(t).forEach(i=>{r(i,t[i],t)}):t.forEach((i,s)=>r(s,i,t))}function fu(t){const r=t[un];return r?r.type_:Array.isArray(t)?1:du(t)?2:hu(t)?3:0}function nh(t,r){return fu(t)===2?t.has(r):Object.prototype.hasOwnProperty.call(t,r)}function Ev(t,r,i){const s=fu(t);s===2?t.set(r,i):s===3?t.add(i):t[r]=i}function kO(t,r){return t===r?t!==0||1/t===1/r:t!==t&&r!==r}function du(t){return t instanceof Map}function hu(t){return t instanceof Set}function Ha(t){return t.copy_||t.base_}function rh(t,r){if(du(t))return new Map(t);if(hu(t))return new Set(t);if(Array.isArray(t))return Array.prototype.slice.call(t);const i=_v(t);if(r===!0||r==="class_only"&&!i){const s=Object.getOwnPropertyDescriptors(t);delete s[un];let u=Reflect.ownKeys(s);for(let c=0;c<u.length;c++){const d=u[c],h=s[d];h.writable===!1&&(h.writable=!0,h.configurable=!0),(h.get||h.set)&&(s[d]={configurable:!0,writable:!0,enumerable:h.enumerable,value:t[d]})}return Object.create(wi(t),s)}else{const s=wi(t);if(s!==null&&i)return{...t};const u=Object.create(s);return Object.assign(u,t)}}function Hh(t,r=!1){return mu(t)||Ga(t)||!Cr(t)||(fu(t)>1&&(t.set=t.add=t.clear=t.delete=qO),Object.freeze(t),r&&Object.entries(t).forEach(([i,s])=>Hh(s,!0))),t}function qO(){zn(2)}function mu(t){return Object.isFrozen(t)}var FO={};function ka(t){const r=FO[t];return r||zn(0,t),r}var Ws;function Sv(){return Ws}function VO(t,r){return{drafts_:[],parent_:t,immer_:r,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function ab(t,r){r&&(ka("Patches"),t.patches_=[],t.inversePatches_=[],t.patchListener_=r)}function ah(t){ih(t),t.drafts_.forEach(PO),t.drafts_=null}function ih(t){t===Ws&&(Ws=t.parent_)}function ib(t){return Ws=VO(Ws,t)}function PO(t){const r=t[un];r.type_===0||r.type_===1?r.revoke_():r.revoked_=!0}function sb(t,r){r.unfinalizedDrafts_=r.drafts_.length;const i=r.drafts_[0];return t!==void 0&&t!==i?(i[un].modified_&&(ah(r),zn(4)),Cr(t)&&(t=nu(r,t),r.parent_||ru(r,t)),r.patches_&&ka("Patches").generateReplacementPatches_(i[un].base_,t,r.patches_,r.inversePatches_)):t=nu(r,i,[]),ah(r),r.patches_&&r.patchListener_(r.patches_,r.inversePatches_),t!==vv?t:void 0}function nu(t,r,i){if(mu(r))return r;const s=r[un];if(!s)return tu(r,(u,c)=>lb(t,s,r,u,c,i)),r;if(s.scope_!==t)return r;if(!s.modified_)return ru(t,s.base_,!0),s.base_;if(!s.finalized_){s.finalized_=!0,s.scope_.unfinalizedDrafts_--;const u=s.copy_;let c=u,d=!1;s.type_===3&&(c=new Set(u),u.clear(),d=!0),tu(c,(h,m)=>lb(t,s,u,h,m,i,d)),ru(t,u,!1),i&&t.patches_&&ka("Patches").generatePatches_(s,i,t.patches_,t.inversePatches_)}return s.copy_}function lb(t,r,i,s,u,c,d){if(Ga(u)){const h=c&&r&&r.type_!==3&&!nh(r.assigned_,s)?c.concat(s):void 0,m=nu(t,u,h);if(Ev(i,s,m),Ga(m))t.canAutoFreeze_=!1;else return}else d&&i.add(u);if(Cr(u)&&!mu(u)){if(!t.immer_.autoFreeze_&&t.unfinalizedDrafts_<1)return;nu(t,u),(!r||!r.scope_.parent_)&&typeof s!="symbol"&&Object.prototype.propertyIsEnumerable.call(i,s)&&ru(t,u)}}function ru(t,r,i=!1){!t.parent_&&t.immer_.autoFreeze_&&t.canAutoFreeze_&&Hh(r,i)}function YO(t,r){const i=Array.isArray(t),s={type_:i?1:0,scope_:r?r.scope_:Sv(),modified_:!1,finalized_:!1,assigned_:{},parent_:r,base_:t,draft_:null,copy_:null,revoke_:null,isManual_:!1};let u=s,c=jh;i&&(u=[s],c=Js);const{revoke:d,proxy:h}=Proxy.revocable(u,c);return s.draft_=h,s.revoke_=d,h}var jh={get(t,r){if(r===un)return t;const i=Ha(t);if(!nh(i,r))return XO(t,i,r);const s=i[r];return t.finalized_||!Cr(s)?s:s===ld(t.base_,r)?(od(t),t.copy_[r]=lh(s,t)):s},has(t,r){return r in Ha(t)},ownKeys(t){return Reflect.ownKeys(Ha(t))},set(t,r,i){const s=Tv(Ha(t),r);if(s?.set)return s.set.call(t.draft_,i),!0;if(!t.modified_){const u=ld(Ha(t),r),c=u?.[un];if(c&&c.base_===i)return t.copy_[r]=i,t.assigned_[r]=!1,!0;if(kO(i,u)&&(i!==void 0||nh(t.base_,r)))return!0;od(t),sh(t)}return t.copy_[r]===i&&(i!==void 0||r in t.copy_)||Number.isNaN(i)&&Number.isNaN(t.copy_[r])||(t.copy_[r]=i,t.assigned_[r]=!0),!0},deleteProperty(t,r){return ld(t.base_,r)!==void 0||r in t.base_?(t.assigned_[r]=!1,od(t),sh(t)):delete t.assigned_[r],t.copy_&&delete t.copy_[r],!0},getOwnPropertyDescriptor(t,r){const i=Ha(t),s=Reflect.getOwnPropertyDescriptor(i,r);return s&&{writable:!0,configurable:t.type_!==1||r!=="length",enumerable:s.enumerable,value:i[r]}},defineProperty(){zn(11)},getPrototypeOf(t){return wi(t.base_)},setPrototypeOf(){zn(12)}},Js={};tu(jh,(t,r)=>{Js[t]=function(){return arguments[0]=arguments[0][0],r.apply(this,arguments)}});Js.deleteProperty=function(t,r){return Js.set.call(this,t,r,void 0)};Js.set=function(t,r,i){return jh.set.call(this,t[0],r,i,t[0])};function ld(t,r){const i=t[un];return(i?Ha(i):t)[r]}function XO(t,r,i){const s=Tv(r,i);return s?"value"in s?s.value:s.get?.call(t.draft_):void 0}function Tv(t,r){if(!(r in t))return;let i=wi(t);for(;i;){const s=Object.getOwnPropertyDescriptor(i,r);if(s)return s;i=wi(i)}}function sh(t){t.modified_||(t.modified_=!0,t.parent_&&sh(t.parent_))}function od(t){t.copy_||(t.copy_=rh(t.base_,t.scope_.immer_.useStrictShallowCopy_))}var ZO=class{constructor(t){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(r,i,s)=>{if(typeof r=="function"&&typeof i!="function"){const c=i;i=r;const d=this;return function(m=c,...p){return d.produce(m,b=>i.call(this,b,...p))}}typeof i!="function"&&zn(6),s!==void 0&&typeof s!="function"&&zn(7);let u;if(Cr(r)){const c=ib(this),d=lh(r,void 0);let h=!0;try{u=i(d),h=!1}finally{h?ah(c):ih(c)}return ab(c,s),sb(u,c)}else if(!r||typeof r!="object"){if(u=i(r),u===void 0&&(u=r),u===vv&&(u=void 0),this.autoFreeze_&&Hh(u,!0),s){const c=[],d=[];ka("Patches").generateReplacementPatches_(r,u,c,d),s(c,d)}return u}else zn(1,r)},this.produceWithPatches=(r,i)=>{if(typeof r=="function")return(d,...h)=>this.produceWithPatches(d,m=>r(m,...h));let s,u;return[this.produce(r,i,(d,h)=>{s=d,u=h}),s,u]},typeof t?.autoFreeze=="boolean"&&this.setAutoFreeze(t.autoFreeze),typeof t?.useStrictShallowCopy=="boolean"&&this.setUseStrictShallowCopy(t.useStrictShallowCopy)}createDraft(t){Cr(t)||zn(8),Ga(t)&&(t=QO(t));const r=ib(this),i=lh(t,void 0);return i[un].isManual_=!0,ih(r),i}finishDraft(t,r){const i=t&&t[un];(!i||!i.isManual_)&&zn(9);const{scope_:s}=i;return ab(s,r),sb(void 0,s)}setAutoFreeze(t){this.autoFreeze_=t}setUseStrictShallowCopy(t){this.useStrictShallowCopy_=t}applyPatches(t,r){let i;for(i=r.length-1;i>=0;i--){const u=r[i];if(u.path.length===0&&u.op==="replace"){t=u.value;break}}i>-1&&(r=r.slice(i+1));const s=ka("Patches").applyPatches_;return Ga(t)?s(t,r):this.produce(t,u=>s(u,r))}};function lh(t,r){const i=du(t)?ka("MapSet").proxyMap_(t,r):hu(t)?ka("MapSet").proxySet_(t,r):YO(t,r);return(r?r.scope_:Sv()).drafts_.push(i),i}function QO(t){return Ga(t)||zn(10,t),Av(t)}function Av(t){if(!Cr(t)||mu(t))return t;const r=t[un];let i;if(r){if(!r.modified_)return r.base_;r.finalized_=!0,i=rh(t,r.scope_.immer_.useStrictShallowCopy_)}else i=rh(t,!0);return tu(i,(s,u)=>{Ev(i,s,Av(u))}),r&&(r.finalized_=!1),i}var cn=new ZO,Ov=cn.produce;cn.produceWithPatches.bind(cn);cn.setAutoFreeze.bind(cn);cn.setUseStrictShallowCopy.bind(cn);cn.applyPatches.bind(cn);cn.createDraft.bind(cn);cn.finishDraft.bind(cn);function xv(t){return({dispatch:i,getState:s})=>u=>c=>typeof c=="function"?c(i,s,t):u(c)}var KO=xv(),$O=xv,WO=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?eu:eu.apply(null,arguments)};function ob(t,r){function i(...s){if(r){let u=r(...s);if(!u)throw new Error(Or(0));return{type:t,payload:u.payload,..."meta"in u&&{meta:u.meta},..."error"in u&&{error:u.error}}}return{type:t,payload:s[0]}}return i.toString=()=>`${t}`,i.type=t,i.match=s=>zO(s)&&s.type===t,i}var Rv=class Zs extends Array{constructor(...r){super(...r),Object.setPrototypeOf(this,Zs.prototype)}static get[Symbol.species](){return Zs}concat(...r){return super.concat.apply(this,r)}prepend(...r){return r.length===1&&Array.isArray(r[0])?new Zs(...r[0].concat(this)):new Zs(...r.concat(this))}};function ub(t){return Cr(t)?Ov(t,()=>{}):t}function Bo(t,r,i){return t.has(r)?t.get(r):t.set(r,i(r)).get(r)}function JO(t){return typeof t=="boolean"}var ex=()=>function(r){const{thunk:i=!0,immutableCheck:s=!0,serializableCheck:u=!0,actionCreatorCheck:c=!0}=r??{};let d=new Rv;return i&&(JO(i)?d.push(KO):d.push($O(i.extraArgument))),d},tx="RTK_autoBatch",cb=t=>r=>{setTimeout(r,t)},nx=(t={type:"raf"})=>r=>(...i)=>{const s=r(...i);let u=!0,c=!1,d=!1;const h=new Set,m=t.type==="tick"?queueMicrotask:t.type==="raf"?typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:cb(10):t.type==="callback"?t.queueNotification:cb(t.timeout),p=()=>{d=!1,c&&(c=!1,h.forEach(b=>b()))};return Object.assign({},s,{subscribe(b){const E=()=>u&&b(),A=s.subscribe(E);return h.add(b),()=>{A(),h.delete(b)}},dispatch(b){try{return u=!b?.meta?.[tx],c=!u,c&&(d||(d=!0,m(p))),s.dispatch(b)}finally{u=!0}}})},rx=t=>function(i){const{autoBatch:s=!0}=i??{};let u=new Rv(t);return s&&u.push(nx(typeof s=="object"?s:void 0)),u};function ax(t){const r=ex(),{reducer:i=void 0,middleware:s,devTools:u=!0,preloadedState:c=void 0,enhancers:d=void 0}=t||{};let h;if(typeof i=="function")h=i;else if(Uh(i))h=bv(i);else throw new Error(Or(1));let m;typeof s=="function"?m=s(r):m=r();let p=eu;u&&(p=WO({trace:!1,...typeof u=="object"&&u}));const b=IO(...m),E=rx(b);let A=typeof d=="function"?d(E):E();const U=p(...A);return yv(h,c,U)}function wv(t){const r={},i=[];let s;const u={addCase(c,d){const h=typeof c=="string"?c:c.type;if(!h)throw new Error(Or(28));if(h in r)throw new Error(Or(29));return r[h]=d,u},addMatcher(c,d){return i.push({matcher:c,reducer:d}),u},addDefaultCase(c){return s=c,u}};return t(u),[r,i,s]}function ix(t){return typeof t=="function"}function sx(t,r){let[i,s,u]=wv(r),c;if(ix(t))c=()=>ub(t());else{const h=ub(t);c=()=>h}function d(h=c(),m){let p=[i[m.type],...s.filter(({matcher:b})=>b(m)).map(({reducer:b})=>b)];return p.filter(b=>!!b).length===0&&(p=[u]),p.reduce((b,E)=>{if(E)if(Ga(b)){const U=E(b,m);return U===void 0?b:U}else{if(Cr(b))return Ov(b,A=>E(A,m));{const A=E(b,m);if(A===void 0){if(b===null)return b;throw Error("A case reducer on a non-draftable value must not return undefined")}return A}}return b},h)}return d.getInitialState=c,d}var lx=Symbol.for("rtk-slice-createasyncthunk");function ox(t,r){return`${t}/${r}`}function ux({creators:t}={}){const r=t?.asyncThunk?.[lx];return function(s){const{name:u,reducerPath:c=u}=s;if(!u)throw new Error(Or(11));const d=(typeof s.reducers=="function"?s.reducers(fx()):s.reducers)||{},h=Object.keys(d),m={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},p={addCase(S,H){const O=typeof S=="string"?S:S.type;if(!O)throw new Error(Or(12));if(O in m.sliceCaseReducersByType)throw new Error(Or(13));return m.sliceCaseReducersByType[O]=H,p},addMatcher(S,H){return m.sliceMatchers.push({matcher:S,reducer:H}),p},exposeAction(S,H){return m.actionCreators[S]=H,p},exposeCaseReducer(S,H){return m.sliceCaseReducersByName[S]=H,p}};h.forEach(S=>{const H=d[S],O={reducerName:S,type:ox(u,S),createNotation:typeof s.reducers=="function"};hx(H)?px(O,H,p,r):dx(O,H,p)});function b(){const[S={},H=[],O=void 0]=typeof s.extraReducers=="function"?wv(s.extraReducers):[s.extraReducers],Q={...S,...m.sliceCaseReducersByType};return sx(s.initialState,W=>{for(let ae in Q)W.addCase(ae,Q[ae]);for(let ae of m.sliceMatchers)W.addMatcher(ae.matcher,ae.reducer);for(let ae of H)W.addMatcher(ae.matcher,ae.reducer);O&&W.addDefaultCase(O)})}const E=S=>S,A=new Map,U=new WeakMap;let R;function q(S,H){return R||(R=b()),R(S,H)}function G(){return R||(R=b()),R.getInitialState()}function _(S,H=!1){function O(W){let ae=W[S];return typeof ae>"u"&&H&&(ae=Bo(U,O,G)),ae}function Q(W=E){const ae=Bo(A,H,()=>new WeakMap);return Bo(ae,W,()=>{const ye={};for(const[Ee,se]of Object.entries(s.selectors??{}))ye[Ee]=cx(se,W,()=>Bo(U,W,G),H);return ye})}return{reducerPath:S,getSelectors:Q,get selectors(){return Q(O)},selectSlice:O}}const C={name:u,reducer:q,actions:m.actionCreators,caseReducers:m.sliceCaseReducersByName,getInitialState:G,..._(c),injectInto(S,{reducerPath:H,...O}={}){const Q=H??c;return S.inject({reducerPath:Q,reducer:q},O),{...C,..._(Q,!0)}}};return C}}function cx(t,r,i,s){function u(c,...d){let h=r(c);return typeof h>"u"&&s&&(h=i()),t(h,...d)}return u.unwrapped=t,u}var Ih=ux();function fx(){function t(r,i){return{_reducerDefinitionType:"asyncThunk",payloadCreator:r,...i}}return t.withTypes=()=>t,{reducer(r){return Object.assign({[r.name](...i){return r(...i)}}[r.name],{_reducerDefinitionType:"reducer"})},preparedReducer(r,i){return{_reducerDefinitionType:"reducerWithPrepare",prepare:r,reducer:i}},asyncThunk:t}}function dx({type:t,reducerName:r,createNotation:i},s,u){let c,d;if("reducer"in s){if(i&&!mx(s))throw new Error(Or(17));c=s.reducer,d=s.prepare}else c=s;u.addCase(t,c).exposeCaseReducer(r,c).exposeAction(r,d?ob(t,d):ob(t))}function hx(t){return t._reducerDefinitionType==="asyncThunk"}function mx(t){return t._reducerDefinitionType==="reducerWithPrepare"}function px({type:t,reducerName:r},i,s,u){if(!u)throw new Error(Or(18));const{payloadCreator:c,fulfilled:d,pending:h,rejected:m,settled:p,options:b}=i,E=u(t,c,b);s.exposeAction(r,E),d&&s.addCase(E.fulfilled,d),h&&s.addCase(E.pending,h),m&&s.addCase(E.rejected,m),p&&s.addMatcher(E.settled,p),s.exposeCaseReducer(r,{fulfilled:d||Uo,pending:h||Uo,rejected:m||Uo,settled:p||Uo})}function Uo(){}function Or(t){return`Minified Redux Toolkit error #${t}; visit https://redux-toolkit.js.org/Errors?code=${t} for the full message or use the non-minified dev environment for full errors. `}const gx={formValues:{}},Cv=Ih({name:"start-screen",initialState:gx,reducers:{showStartScreen(t){t.startScreenStatus="VISIBLE",t.formValues={}},startChat(t,r){t.startScreenStatus="HIDDEN",t.formValues=r.payload.formValues},startAuthenticatedChat(t,r){t.startScreenStatus="HIDDEN",t.loginToken=r.payload.loginToken,t.loginRequestToken=void 0},requestLogin(t,r){t.loginRequestToken=r.payload.loginRequestToken,t.formValues=r.payload.formValues},loginWindowClosed(t){t.loginRequestToken=void 0}}}),{startChat:yx,startAuthenticatedChat:bx,showStartScreen:vx,requestLogin:_x,loginWindowClosed:Ex}=Cv.actions,Sx=Cv.reducer,Nv="RESET_CHAT_STATE",Mv="TOGGLE_TRANSCRIPT_MAIL_OVERLAY",Dv="SHOW_CONVERSATION_RATING_OVERLAY",Lv="HIDE_CONVERSATION_RATING_OVERLAY",Bv=()=>({type:dv}),Tx=()=>({type:Nv}),Uv=()=>({type:Mv}),zh=(t,r=void 0)=>({type:Dv,payload:{opener:t,defaultRating:r}}),Ax=()=>({type:Lv}),fb=(t,r,i)=>(s,u)=>{try{const c=u().connection.sessionId;if(!c)throw new Error("Session ID is not available");s({type:Lh,payload:{chunkId:i}}),db(t,c,r,i,!1,s),db(t,c,r,i,!0,s)}catch(c){console.error("Error loading source infos:",c),s({type:Dh})}},db=(t,r,i,s,u,c)=>{const d=`/${t}/me/chat-widget/transcript/${i}/chunks/${s}?highlight=${u}`;fetch(d,{headers:{"x-bubble-chat-session-id":r}}).then(h=>{if(!h.ok)throw new Error(`HTTP error! Status: ${h.status}`);return h.json()}).then(h=>{const m={...h,chunkId:s,highlighted:u};c({type:cv,payload:m})}).catch(h=>{console.error("Error fetching source infos:",h),c({type:Dh,payload:{highlighted:u}})})},Ox=()=>({type:Bh}),Gh="CONNECT",kh="CONNECTING",qh="CONNECTED",Fh="DISCONNECTED",Vh="RECONNECTED",Ph="RESTORE_SESSION_ID",pu="START",gu="CLEAR_SESSION_ID",xx=[Gh,kh,qh,Fh,Vh,Ph],Rx=(t,r)=>({type:Gh,clientName:t,querystrings:r}),wx=t=>({type:Ph,sessionId:t}),Cx=()=>({type:kh}),Nx=()=>({type:qh}),Mx=()=>({type:Fh}),Dx=()=>({type:Vh}),Hv=(t,r)=>(i,s)=>{const u=s().connection,{formValues:c,loginToken:d}=s().startScreen;let h=u.sessionId;h===void 0&&(h=Wo());let m=u.userId;if(m===void 0){const p=Lo.get("bubble-chat-user-id")||Lo.get("bubble-chat-userId")||Lo.get("bf-webclient-userId");m=p||Wo(),Lo.set("bubble-chat-user-id",m)}i({type:pu,payload:{sessionId:h,userId:m,clientName:t,loginToken:d,querystrings:{...r,...c}}})},yu=(t,r)=>(i,s)=>{const u=s().connection.sessionId||"";if(i(Lx(u)),i(Tx()),s().settings.enableStartScreen)i(vx());else return i(Hv(t,r))},Lx=t=>({type:gu,payload:{sessionId:t}}),Ze=()=>{const t=uu();return i=>{const s=t.formatMessage({id:i});return s===i?void 0:s}};var Ia=(t=>(t[t.CONNECTING=0]="CONNECTING",t[t.CONNECTED=1]="CONNECTED",t[t.RECONNECTED=2]="RECONNECTED",t[t.DISCONNECTED=3]="DISCONNECTED",t))(Ia||{}),au=(t=>(t.GUEST="GUEST",t.BOT="BOT",t.PERSON="PERSON",t))(au||{});const Bx="_container_q2uun_1",Ux="_chatcontent_q2uun_6",Hx="_accessabilityHidden_q2uun_12",ud={container:Bx,chatcontent:Ux,accessabilityHidden:Hx},jx="_messageContainer_ofi0g_1",Ix="_messages_ofi0g_12",hb={messageContainer:jx,messages:Ix};function ja(){return ja=Object.assign?Object.assign.bind():function(t){for(var r=1;r<arguments.length;r++){var i=arguments[r];for(var s in i)Object.prototype.hasOwnProperty.call(i,s)&&(t[s]=i[s])}return t},ja.apply(this,arguments)}const zx=["children","options"],Gx={footnoteReference:"7"},mb=["allowFullScreen","allowTransparency","autoComplete","autoFocus","autoPlay","cellPadding","cellSpacing","charSet","classId","colSpan","contentEditable","contextMenu","crossOrigin","encType","formAction","formEncType","formMethod","formNoValidate","formTarget","frameBorder","hrefLang","inputMode","keyParams","keyType","marginHeight","marginWidth","maxLength","mediaGroup","minLength","noValidate","radioGroup","readOnly","rowSpan","spellCheck","srcDoc","srcLang","srcSet","tabIndex","useMap"].reduce((t,r)=>(t[r.toLowerCase()]=r,t),{class:"className",for:"htmlFor"}),pb={amp:"&",apos:"'",gt:">",lt:"<",nbsp:" ",quot:"“"},kx=["style","script","pre"],qx=["src","href","data","formAction","srcDoc","action"],Fx=/([-A-Z0-9_:]+)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|(?:\{((?:\\.|{[^}]*?}|[^}])*)\})))?/gi,Vx=/mailto:/i,Px=/\n{2,}$/,gb=/^(\s*>[\s\S]*?)(?=\n\n|$)/,Yx=/^ *> ?/gm,Xx=/^(?:\[!([^\]]*)\]\n)?([\s\S]*)/,Zx=/^ {2,}\n/,Qx=/^(?:( *[-*_])){3,} *(?:\n *)+\n/,yb=/^(?: {1,3})?(`{3,}|~{3,}) *(\S+)? *([^\n]*?)?\n([\s\S]*?)(?:\1\n?|$)/,bb=/^(?: {4}[^\n]+\n*)+(?:\n *)+\n?/,Kx=/^(`+)((?:\\`|(?!\1)`|[^`])+)\1/,$x=/^(?:\n *)*\n/,Wx=/\r\n?/g,Jx=/^\[\^([^\]]+)](:(.*)((\n+ {4,}.*)|(\n(?!\[\^).+))*)/,eR=/^\[\^([^\]]+)]/,tR=/\f/g,nR=/^---[ \t]*\n(.|\n)*\n---[ \t]*\n/,rR=/^\s*?\[(x|\s)\]/,vb=/^ *(#{1,6}) *([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,_b=/^ *(#{1,6}) +([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,Eb=/^([^\n]+)\n *(=|-){3,} *\n/,cd=/^ *(?!<[a-z][^ >/]* ?\/>)<([a-z][^ >/]*) ?((?:[^>]*[^/])?)>\n?(\s*(?:<\1[^>]*?>[\s\S]*?<\/\1>|(?!<\1\b)[\s\S])*?)<\/\1>(?!<\/\1>)\n*/i,aR=/&([a-z0-9]+|#[0-9]{1,6}|#x[0-9a-fA-F]{1,6});/gi,Sb=/^<!--[\s\S]*?(?:-->)/,iR=/^(data|aria|x)-[a-z_][a-z\d_.-]*$/,fd=/^ *<([a-z][a-z0-9:]*)(?:\s+((?:<.*?>|[^>])*))?\/?>(?!<\/\1>)(\s*\n)?/i,sR=/^\{.*\}$/,lR=/^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/,oR=/^<([^ >]+@[^ >]+)>/,uR=/^<([^ >]+:\/[^ >]+)>/,cR=/-([a-z])?/gi,Tb=/^(\|.*)\n(?: *(\|? *[-:]+ *\|[-| :]*)\n((?:.*\|.*\n)*))?\n?/,fR=/^[^\n]+(?: \n|\n{2,})/,dR=/^\[([^\]]*)\]:\s+<?([^\s>]+)>?\s*("([^"]*)")?/,hR=/^!\[([^\]]*)\] ?\[([^\]]*)\]/,mR=/^\[([^\]]*)\] ?\[([^\]]*)\]/,pR=/(\n|^[-*]\s|^#|^ {2,}|^-{2,}|^>\s)/,gR=/\t/g,yR=/(^ *\||\| *$)/g,bR=/^ *:-+: *$/,vR=/^ *:-+ *$/,_R=/^ *-+: *$/,bu=t=>`(?=[\\s\\S]+?\\1${t?"\\1":""})`,vu="((?:\\[.*?\\][([].*?[)\\]]|<.*?>(?:.*?<.*?>)?|`.*?`|\\\\\\1|[\\s\\S])+?)",ER=RegExp(`^([*_])\\1${bu(1)}${vu}\\1\\1(?!\\1)`),SR=RegExp(`^([*_])${bu(0)}${vu}\\1(?!\\1)`),TR=RegExp(`^(==)${bu(0)}${vu}\\1`),AR=RegExp(`^(~~)${bu(0)}${vu}\\1`),OR=/^(:[a-zA-Z0-9-_]+:)/,xR=/^\\([^0-9A-Za-z\s])/,RR=/\\([^0-9A-Za-z\s])/g,wR=/^[\s\S](?:(?! \n|[0-9]\.|http)[^=*_~\-\n:<`\\\[!])*/,CR=/^\n+/,NR=/^([ \t]*)/,MR=/(?:^|\n)( *)$/,Yh="(?:\\d+\\.)",Xh="(?:[*+-])";function jv(t){return"( *)("+(t===1?Yh:Xh)+") +"}const Iv=jv(1),zv=jv(2);function Gv(t){return RegExp("^"+(t===1?Iv:zv))}const DR=Gv(1),LR=Gv(2);function kv(t){return RegExp("^"+(t===1?Iv:zv)+"[^\\n]*(?:\\n(?!\\1"+(t===1?Yh:Xh)+" )[^\\n]*)*(\\n|$)","gm")}const BR=kv(1),UR=kv(2);function qv(t){const r=t===1?Yh:Xh;return RegExp("^( *)("+r+") [\\s\\S]+?(?:\\n{2,}(?! )(?!\\1"+r+" (?!"+r+" ))\\n*|\\s*\\n*$)")}const Fv=qv(1),Vv=qv(2);function Ab(t,r){const i=r===1,s=i?Fv:Vv,u=i?BR:UR,c=i?DR:LR;return{t:d=>c.test(d),o:Ci(function(d,h){const m=MR.exec(h.prevCapture);return m&&(h.list||!h.inline&&!h.simple)?s.exec(d=m[1]+d):null}),i:1,u(d,h,m){const p=i?+d[2]:void 0,b=d[0].replace(Px,`
94
- `).match(u);let E=!1;return{items:b.map(function(A,U){const R=c.exec(A)[0].length,q=RegExp("^ {1,"+R+"}","gm"),G=A.replace(q,"").replace(c,""),_=U===b.length-1,C=G.indexOf(`
93
+ */var fy;function xA(){if(fy)return Be;fy=1;var t=typeof Symbol=="function"&&Symbol.for,r=t?Symbol.for("react.element"):60103,i=t?Symbol.for("react.portal"):60106,s=t?Symbol.for("react.fragment"):60107,u=t?Symbol.for("react.strict_mode"):60108,c=t?Symbol.for("react.profiler"):60114,d=t?Symbol.for("react.provider"):60109,h=t?Symbol.for("react.context"):60110,m=t?Symbol.for("react.async_mode"):60111,p=t?Symbol.for("react.concurrent_mode"):60111,b=t?Symbol.for("react.forward_ref"):60112,E=t?Symbol.for("react.suspense"):60113,A=t?Symbol.for("react.suspense_list"):60120,L=t?Symbol.for("react.memo"):60115,R=t?Symbol.for("react.lazy"):60116,q=t?Symbol.for("react.block"):60121,G=t?Symbol.for("react.fundamental"):60117,_=t?Symbol.for("react.responder"):60118,C=t?Symbol.for("react.scope"):60119;function S(x){if(typeof x=="object"&&x!==null){var Q=x.$$typeof;switch(Q){case r:switch(x=x.type,x){case m:case p:case s:case c:case u:case E:return x;default:switch(x=x&&x.$$typeof,x){case h:case b:case R:case L:case d:return x;default:return Q}}case i:return Q}}}function H(x){return S(x)===p}return Be.AsyncMode=m,Be.ConcurrentMode=p,Be.ContextConsumer=h,Be.ContextProvider=d,Be.Element=r,Be.ForwardRef=b,Be.Fragment=s,Be.Lazy=R,Be.Memo=L,Be.Portal=i,Be.Profiler=c,Be.StrictMode=u,Be.Suspense=E,Be.isAsyncMode=function(x){return H(x)||S(x)===m},Be.isConcurrentMode=H,Be.isContextConsumer=function(x){return S(x)===h},Be.isContextProvider=function(x){return S(x)===d},Be.isElement=function(x){return typeof x=="object"&&x!==null&&x.$$typeof===r},Be.isForwardRef=function(x){return S(x)===b},Be.isFragment=function(x){return S(x)===s},Be.isLazy=function(x){return S(x)===R},Be.isMemo=function(x){return S(x)===L},Be.isPortal=function(x){return S(x)===i},Be.isProfiler=function(x){return S(x)===c},Be.isStrictMode=function(x){return S(x)===u},Be.isSuspense=function(x){return S(x)===E},Be.isValidElementType=function(x){return typeof x=="string"||typeof x=="function"||x===s||x===p||x===c||x===u||x===E||x===A||typeof x=="object"&&x!==null&&(x.$$typeof===R||x.$$typeof===L||x.$$typeof===d||x.$$typeof===h||x.$$typeof===b||x.$$typeof===G||x.$$typeof===_||x.$$typeof===C||x.$$typeof===q)},Be.typeOf=S,Be}var dy;function OA(){return dy||(dy=1,Xf.exports=xA()),Xf.exports}var Zf,hy;function RA(){if(hy)return Zf;hy=1;var t=OA(),r={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},s={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},u={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},c={};c[t.ForwardRef]=s,c[t.Memo]=u;function d(R){return t.isMemo(R)?u:c[R.$$typeof]||r}var h=Object.defineProperty,m=Object.getOwnPropertyNames,p=Object.getOwnPropertySymbols,b=Object.getOwnPropertyDescriptor,E=Object.getPrototypeOf,A=Object.prototype;function L(R,q,G){if(typeof q!="string"){if(A){var _=E(q);_&&_!==A&&L(R,_,G)}var C=m(q);p&&(C=C.concat(p(q)));for(var S=d(R),H=d(q),x=0;x<C.length;++x){var Q=C[x];if(!i[Q]&&!(G&&G[Q])&&!(H&&H[Q])&&!(S&&S[Q])){var W=b(q,Q);try{h(R,Q,W)}catch{}}}}return R}return Zf=L,Zf}RA();var Sh=typeof window<"u"&&!window.__REACT_INTL_BYPASS_GLOBAL_CONTEXT__?window.__REACT_INTL_CONTEXT__||(window.__REACT_INTL_CONTEXT__=U.createContext(null)):U.createContext(null);Sh.Consumer;var wA=Sh.Provider,CA=wA,NA=Sh;function cu(){var t=U.useContext(NA);return Q1(t),t}var Wd;(function(t){t.formatDate="FormattedDate",t.formatTime="FormattedTime",t.formatNumber="FormattedNumber",t.formatList="FormattedList",t.formatDisplayName="FormattedDisplayName"})(Wd||(Wd={}));var Jd;(function(t){t.formatDate="FormattedDateParts",t.formatTime="FormattedTimeParts",t.formatNumber="FormattedNumberParts",t.formatList="FormattedListParts"})(Jd||(Jd={}));function $1(t){var r=function(i){var s=cu(),u=i.value,c=i.children,d=uu(i,["value","children"]),h=typeof u=="string"?new Date(u||0):u,m=t==="formatDate"?s.formatDateToParts(h,d):s.formatTimeToParts(h,d);return c(m)};return r.displayName=Jd[t],r}function rl(t){var r=function(i){var s=cu(),u=i.value,c=i.children,d=uu(i,["value","children"]),h=s[t](u,d);if(typeof c=="function")return c(h);var m=s.textComponent||U.Fragment;return U.createElement(m,null,h)};return r.displayName=Wd[t],r}function W1(t){return t&&Object.keys(t).reduce(function(r,i){var s=t[i];return r[i]=F1(s)?TA(s):s,r},{})}var my=function(t,r,i,s){for(var u=[],c=4;c<arguments.length;c++)u[c-4]=arguments[c];var d=W1(s),h=$d.apply(void 0,Wn([t,r,i,d],u,!1));return Array.isArray(h)?SA(h):h},py=function(t,r){var i=t.defaultRichTextElements,s=uu(t,["defaultRichTextElements"]),u=W1(i),c=bA(ie(ie(ie({},K1),s),{defaultRichTextElements:u}),r),d={locale:c.locale,timeZone:c.timeZone,fallbackOnEmptyString:c.fallbackOnEmptyString,formats:c.formats,defaultLocale:c.defaultLocale,defaultFormats:c.defaultFormats,messages:c.messages,onError:c.onError,defaultRichTextElements:u};return ie(ie({},c),{formatMessage:my.bind(null,d,c.formatters),$t:my.bind(null,d,c.formatters)})};function Qf(t){return{locale:t.locale,timeZone:t.timeZone,fallbackOnEmptyString:t.fallbackOnEmptyString,formats:t.formats,textComponent:t.textComponent,messages:t.messages,defaultLocale:t.defaultLocale,defaultFormats:t.defaultFormats,onError:t.onError,onWarn:t.onWarn,wrapRichTextChunksInFragment:t.wrapRichTextChunksInFragment,defaultRichTextElements:t.defaultRichTextElements}}var MA=function(t){An(r,t);function r(){var i=t!==null&&t.apply(this,arguments)||this;return i.cache=Y1(),i.state={cache:i.cache,intl:py(Qf(i.props),i.cache),prevConfig:Qf(i.props)},i}return r.getDerivedStateFromProps=function(i,s){var u=s.prevConfig,c=s.cache,d=Qf(i);return AA(u,d)?null:{intl:py(d,c),prevConfig:d}},r.prototype.render=function(){return Q1(this.state.intl),U.createElement(CA,{value:this.state.intl},this.props.children)},r.displayName="IntlProvider",r.defaultProps=K1,r}(U.PureComponent);rl("formatDate");rl("formatTime");rl("formatNumber");rl("formatList");rl("formatDisplayName");$1("formatDate");$1("formatTime");const DA="_app_1rj0t_1",LA={app:DA},Nr=QS,st=WS,J1="%[a-f0-9]{2}",gy=new RegExp("("+J1+")|([^%]+?)","gi"),yy=new RegExp("("+J1+")+","gi");function eh(t,r){try{return[decodeURIComponent(t.join(""))]}catch{}if(t.length===1)return t;r=r||1;const i=t.slice(0,r),s=t.slice(r);return Array.prototype.concat.call([],eh(i),eh(s))}function BA(t){try{return decodeURIComponent(t)}catch{let r=t.match(gy)||[];for(let i=1;i<r.length;i++)t=eh(r,i).join(""),r=t.match(gy)||[];return t}}function UA(t){const r={"%FE%FF":"��","%FF%FE":"��"};let i=yy.exec(t);for(;i;){try{r[i[0]]=decodeURIComponent(i[0])}catch{const u=BA(i[0]);u!==i[0]&&(r[i[0]]=u)}i=yy.exec(t)}r["%C2"]="�";const s=Object.keys(r);for(const u of s)t=t.replace(new RegExp(u,"g"),r[u]);return t}function HA(t){if(typeof t!="string")throw new TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof t+"`");try{return decodeURIComponent(t)}catch{return UA(t)}}function jA(t,r){const i={};if(Array.isArray(r))for(const s of r){const u=Object.getOwnPropertyDescriptor(t,s);u?.enumerable&&Object.defineProperty(i,s,u)}else for(const s of Reflect.ownKeys(t)){const u=Object.getOwnPropertyDescriptor(t,s);if(u.enumerable){const c=t[s];r(s,c,t)&&Object.defineProperty(i,s,u)}}return i}function ev(t,r){if(!(typeof t=="string"&&typeof r=="string"))throw new TypeError("Expected the arguments to be of type `string`");if(t===""||r==="")return[];const i=t.indexOf(r);return i===-1?[]:[t.slice(0,i),t.slice(i+r.length)]}const IA=t=>t==null,zA=t=>encodeURIComponent(t).replaceAll(/[!'()*]/g,r=>`%${r.charCodeAt(0).toString(16).toUpperCase()}`),th=Symbol("encodeFragmentIdentifier");function GA(t){switch(t.arrayFormat){case"index":return r=>(i,s)=>{const u=i.length;return s===void 0||t.skipNull&&s===null||t.skipEmptyString&&s===""?i:s===null?[...i,[ft(r,t),"[",u,"]"].join("")]:[...i,[ft(r,t),"[",ft(u,t),"]=",ft(s,t)].join("")]};case"bracket":return r=>(i,s)=>s===void 0||t.skipNull&&s===null||t.skipEmptyString&&s===""?i:s===null?[...i,[ft(r,t),"[]"].join("")]:[...i,[ft(r,t),"[]=",ft(s,t)].join("")];case"colon-list-separator":return r=>(i,s)=>s===void 0||t.skipNull&&s===null||t.skipEmptyString&&s===""?i:s===null?[...i,[ft(r,t),":list="].join("")]:[...i,[ft(r,t),":list=",ft(s,t)].join("")];case"comma":case"separator":case"bracket-separator":{const r=t.arrayFormat==="bracket-separator"?"[]=":"=";return i=>(s,u)=>u===void 0||t.skipNull&&u===null||t.skipEmptyString&&u===""?s:(u=u===null?"":u,s.length===0?[[ft(i,t),r,ft(u,t)].join("")]:[[s,ft(u,t)].join(t.arrayFormatSeparator)])}default:return r=>(i,s)=>s===void 0||t.skipNull&&s===null||t.skipEmptyString&&s===""?i:s===null?[...i,ft(r,t)]:[...i,[ft(r,t),"=",ft(s,t)].join("")]}}function kA(t){let r;switch(t.arrayFormat){case"index":return(i,s,u)=>{if(r=/\[(\d*)]$/.exec(i),i=i.replace(/\[\d*]$/,""),!r){u[i]=s;return}u[i]===void 0&&(u[i]={}),u[i][r[1]]=s};case"bracket":return(i,s,u)=>{if(r=/(\[])$/.exec(i),i=i.replace(/\[]$/,""),!r){u[i]=s;return}if(u[i]===void 0){u[i]=[s];return}u[i]=[...u[i],s]};case"colon-list-separator":return(i,s,u)=>{if(r=/(:list)$/.exec(i),i=i.replace(/:list$/,""),!r){u[i]=s;return}if(u[i]===void 0){u[i]=[s];return}u[i]=[...u[i],s]};case"comma":case"separator":return(i,s,u)=>{const c=typeof s=="string"&&s.includes(t.arrayFormatSeparator),d=typeof s=="string"&&!c&&Ar(s,t).includes(t.arrayFormatSeparator);s=d?Ar(s,t):s;const h=c||d?s.split(t.arrayFormatSeparator).map(m=>Ar(m,t)):s===null?s:Ar(s,t);u[i]=h};case"bracket-separator":return(i,s,u)=>{const c=/(\[])$/.test(i);if(i=i.replace(/\[]$/,""),!c){u[i]=s&&Ar(s,t);return}const d=s===null?[]:Ar(s,t).split(t.arrayFormatSeparator);if(u[i]===void 0){u[i]=d;return}u[i]=[...u[i],...d]};default:return(i,s,u)=>{if(u[i]===void 0){u[i]=s;return}u[i]=[...[u[i]].flat(),s]}}}function tv(t){if(typeof t!="string"||t.length!==1)throw new TypeError("arrayFormatSeparator must be single character string")}function ft(t,r){return r.encode?r.strict?zA(t):encodeURIComponent(t):t}function Ar(t,r){return r.decode?HA(t):t}function nv(t){return Array.isArray(t)?t.sort():typeof t=="object"?nv(Object.keys(t)).sort((r,i)=>Number(r)-Number(i)).map(r=>t[r]):t}function rv(t){const r=t.indexOf("#");return r!==-1&&(t=t.slice(0,r)),t}function qA(t){let r="";const i=t.indexOf("#");return i!==-1&&(r=t.slice(i)),r}function by(t,r,i){return i==="string"&&typeof t=="string"?t:typeof i=="function"&&typeof t=="string"?i(t):i==="boolean"&&t===null?!0:i==="boolean"&&t!==null&&(t.toLowerCase()==="true"||t.toLowerCase()==="false")?t.toLowerCase()==="true":i==="boolean"&&t!==null&&(t.toLowerCase()==="1"||t.toLowerCase()==="0")?t.toLowerCase()==="1":i==="string[]"&&r.arrayFormat!=="none"&&typeof t=="string"?[t]:i==="number[]"&&r.arrayFormat!=="none"&&!Number.isNaN(Number(t))&&typeof t=="string"&&t.trim()!==""?[Number(t)]:i==="number"&&!Number.isNaN(Number(t))&&typeof t=="string"&&t.trim()!==""?Number(t):r.parseBooleans&&t!==null&&(t.toLowerCase()==="true"||t.toLowerCase()==="false")?t.toLowerCase()==="true":r.parseNumbers&&!Number.isNaN(Number(t))&&typeof t=="string"&&t.trim()!==""?Number(t):t}function Th(t){t=rv(t);const r=t.indexOf("?");return r===-1?"":t.slice(r+1)}function Ah(t,r){r={decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1,types:Object.create(null),...r},tv(r.arrayFormatSeparator);const i=kA(r),s=Object.create(null);if(typeof t!="string"||(t=t.trim().replace(/^[?#&]/,""),!t))return s;for(const u of t.split("&")){if(u==="")continue;const c=r.decode?u.replaceAll("+"," "):u;let[d,h]=ev(c,"=");d===void 0&&(d=c),h=h===void 0?null:["comma","separator","bracket-separator"].includes(r.arrayFormat)?h:Ar(h,r),i(Ar(d,r),h,s)}for(const[u,c]of Object.entries(s))if(typeof c=="object"&&c!==null&&r.types[u]!=="string")for(const[d,h]of Object.entries(c)){const m=r.types[u]?r.types[u].replace("[]",""):void 0;c[d]=by(h,r,m)}else typeof c=="object"&&c!==null&&r.types[u]==="string"?s[u]=Object.values(c).join(r.arrayFormatSeparator):s[u]=by(c,r,r.types[u]);return r.sort===!1?s:(r.sort===!0?Object.keys(s).sort():Object.keys(s).sort(r.sort)).reduce((u,c)=>{const d=s[c];return u[c]=d&&typeof d=="object"&&!Array.isArray(d)?nv(d):d,u},Object.create(null))}function av(t,r){if(!t)return"";r={encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:",",...r},tv(r.arrayFormatSeparator);const i=d=>r.skipNull&&IA(t[d])||r.skipEmptyString&&t[d]==="",s=GA(r),u={};for(const[d,h]of Object.entries(t))i(d)||(u[d]=h);const c=Object.keys(u);return r.sort!==!1&&c.sort(r.sort),c.map(d=>{const h=t[d];return h===void 0?"":h===null?ft(d,r):Array.isArray(h)?h.length===0&&r.arrayFormat==="bracket-separator"?ft(d,r)+"[]":h.reduce(s(d),[]).join("&"):ft(d,r)+"="+ft(h,r)}).filter(d=>d.length>0).join("&")}function iv(t,r){r={decode:!0,...r};let[i,s]=ev(t,"#");return i===void 0&&(i=t),{url:i?.split("?")?.[0]??"",query:Ah(Th(t),r),...r&&r.parseFragmentIdentifier&&s?{fragmentIdentifier:Ar(s,r)}:{}}}function sv(t,r){r={encode:!0,strict:!0,[th]:!0,...r};const i=rv(t.url).split("?")[0]||"",s=Th(t.url),u={...Ah(s,{sort:!1,...r}),...t.query};let c=av(u,r);c&&=`?${c}`;let d=qA(t.url);if(typeof t.fragmentIdentifier=="string"){const h=new URL(i);h.hash=t.fragmentIdentifier,d=r[th]?h.hash:`#${t.fragmentIdentifier}`}return`${i}${c}${d}`}function lv(t,r,i){i={parseFragmentIdentifier:!0,[th]:!1,...i};const{url:s,query:u,fragmentIdentifier:c}=iv(t,i);return sv({url:s,query:jA(u,r),fragmentIdentifier:c},i)}function FA(t,r,i){const s=Array.isArray(r)?u=>!r.includes(u):(u,c)=>!r(u,c);return lv(t,s,i)}const fu=Object.freeze(Object.defineProperty({__proto__:null,exclude:FA,extract:Th,parse:Ah,parseUrl:iv,pick:lv,stringify:av,stringifyUrl:sv},Symbol.toStringTag,{value:"Module"}));var Ln={},Bn={},Ie={},_o={},pe={},vy;function fn(){return vy||(vy=1,Object.defineProperty(pe,"__esModule",{value:!0}),pe.GUEST_LOCALE_CHANGED=pe.DRAWER_CLOSE=pe.DRAWER_OPEN=pe.CONVERSATION_RATING_FROM_GUEST=pe.TRANSCRIPT_ITEM_GUEST_REACTION=pe.TRANSCRIPT_MAIL_REQUEST=pe.INBOX_CONNECT_REQUEST=pe.RESTART_CHAT_REQUEST=pe.EVENT_TO_GUEST=pe.NLU_REQUEST_EVENT=pe.EXPERTS_DISCONNECTED=pe.EXPERTS_DISCONNECT_REQUEST=pe.EXPERTS_CONNECTED=pe.EXPERTS_CONNECT_REQUEST=pe.MESSAGE_TO_GUEST=pe.MESSAGE_WITHOUT_ANALYSIS_FROM_GUEST=pe.MESSAGE_FROM_GUEST=pe.GUEST_FEEDBACK_RESPONSE=pe.GUEST_DISCONNECTED=pe.GUEST_CONNECTED=pe.TYPING_OFF=pe.TYPING_ON=void 0,pe.TYPING_ON="core.typing.on",pe.TYPING_OFF="core.typing.off",pe.GUEST_CONNECTED="core.guest.connected",pe.GUEST_DISCONNECTED="core.guest.disconnected",pe.GUEST_FEEDBACK_RESPONSE="core.guest.feedback.response",pe.MESSAGE_FROM_GUEST="core.message.from.guest",pe.MESSAGE_WITHOUT_ANALYSIS_FROM_GUEST="core.message.without.analysis.from.guest",pe.MESSAGE_TO_GUEST="core.message.to.guest",pe.EXPERTS_CONNECT_REQUEST="core.experts.connect.request",pe.EXPERTS_CONNECTED="core.experts.connected",pe.EXPERTS_DISCONNECT_REQUEST="core.experts.disconnect.request",pe.EXPERTS_DISCONNECTED="core.experts.disconnected",pe.NLU_REQUEST_EVENT="core.nlu.request.event",pe.EVENT_TO_GUEST="core.event.to.guest",pe.RESTART_CHAT_REQUEST="core.chat.restart.request",pe.INBOX_CONNECT_REQUEST="core.inbox.connect.request",pe.TRANSCRIPT_MAIL_REQUEST="core.transcript.mail.request",pe.TRANSCRIPT_ITEM_GUEST_REACTION="core.transcript.item.guest.reaction",pe.CONVERSATION_RATING_FROM_GUEST="core.conversation.rating.from.guest",pe.DRAWER_OPEN="core.drawer.open",pe.DRAWER_CLOSE="core.drawer.close",pe.GUEST_LOCALE_CHANGED="core.guest.locale.changed"),pe}var _y;function VA(){if(_y)return _o;_y=1,Object.defineProperty(_o,"__esModule",{value:!0});const t=fn(),r=()=>({type:t.DRAWER_CLOSE});return _o.default=r,_o}var Eo={},Ey;function PA(){if(Ey)return Eo;Ey=1,Object.defineProperty(Eo,"__esModule",{value:!0});const t=fn(),r=(i,s)=>({type:t.GUEST_FEEDBACK_RESPONSE,payload:{satisfaction:i,intent:s}});return Eo.default=r,Eo}var So={},Sy;function YA(){if(Sy)return So;Sy=1,Object.defineProperty(So,"__esModule",{value:!0});const t=fn(),r=i=>({type:t.GUEST_CONNECTED,payload:{sessionId:i}});return So.default=r,So}var To={},Ty;function XA(){if(Ty)return To;Ty=1,Object.defineProperty(To,"__esModule",{value:!0});const t=fn(),r=i=>({type:t.GUEST_DISCONNECTED,payload:{sessionId:i}});return To.default=r,To}var Ao={},Ay;function ZA(){if(Ay)return Ao;Ay=1,Object.defineProperty(Ao,"__esModule",{value:!0});const t=fn(),r=(i,s)=>({type:t.GUEST_LOCALE_CHANGED,payload:{previousLocale:i,newLocale:s}});return Ao.default=r,Ao}var xo={},xy;function QA(){if(xy)return xo;xy=1,Object.defineProperty(xo,"__esModule",{value:!0});const t=fn(),r=i=>({type:t.DRAWER_OPEN,payload:{parameters:{contentUrl:i}}});return xo.default=r,xo}var Oo={},$e={},Oy;function xh(){if(Oy)return $e;Oy=1,Object.defineProperty($e,"__esModule",{value:!0}),$e.getStringRepresentationFromMessage=$e.MessageTypeEnum=$e.AudioMessage=$e.FileMessage=$e.ImageMessage=$e.VideoMessage=$e.MarkdownMessage=$e.DetailMessage=$e.TextMessage=$e.Message=void 0;class t{type;sender;sources;quickReplies;constructor(E,A,L=[],R=[]){this.type=E,this.sender=A,this.sources=L,this.quickReplies=R}addQuickReply(E,A){this.quickReplies.push({label:E,payload:A})}}$e.Message=t;class r extends t{text;constructor(E,A,L=[],R=[]){super(m.TEXT,A,L,R),this.text=E}}$e.TextMessage=r;class i extends t{title;text;imageUrl;itemUrl;buttons;constructor(E,A){super(m.DETAIL,A),this.title=E,this.text="",this.imageUrl="",this.itemUrl="",this.buttons=[]}setImageUrl(E){this.imageUrl=E}setItemUrl(E){this.itemUrl=E}setText(E){this.text=E}addButton(E){this.buttons.push(E)}}$e.DetailMessage=i;class s extends t{markdown;constructor(E,A,L=[],R=[]){super(m.MARKDOWN,A,L,R),this.markdown=E}}$e.MarkdownMessage=s;class u extends t{url;constructor(E,A){super(m.VIDEO,A),this.url=E}}$e.VideoMessage=u;class c extends t{url;constructor(E,A){super(m.IMAGE,A),this.url=E}}$e.ImageMessage=c;class d extends t{url;constructor(E,A){super(m.FILE,A),this.url=E}}$e.FileMessage=d;class h extends t{url;constructor(E,A){super(m.AUDIO,A),this.url=E}}$e.AudioMessage=h;var m;(function(b){b.TEXT="TEXT",b.DETAIL="DETAIL",b.MARKDOWN="MARKDOWN",b.VIDEO="VIDEO",b.IMAGE="IMAGE",b.FILE="FILE",b.AUDIO="AUDIO"})(m||($e.MessageTypeEnum=m={}));const p=b=>{switch(b.type){case m.TEXT:return b.text;case m.DETAIL:return`${b.title}`;case m.MARKDOWN:return b.markdown;case m.VIDEO:return`Video Url: ${b.url}`;case m.IMAGE:return`Image Url: ${b.url}`;case m.FILE:return`File Url: ${b.url}`;case m.AUDIO:return`Audio Url: ${b.url}`;default:throw new Error("Unknown message type "+b.type)}};return $e.getStringRepresentationFromMessage=p,$e}var sn={},Ry;function Oh(){if(Ry)return sn;Ry=1,Object.defineProperty(sn,"__esModule",{value:!0}),sn.UserType=sn.PersonUser=sn.GuestUser=sn.BotUser=sn.User=void 0;class t{type;id;name;avatar;constructor(d,h,m,p){this.type=d,this.id=h,this.name=m,this.avatar=p}}sn.User=t;class r extends t{constructor(){super(u.BOT,null,"Chatbot","bot.svg")}}sn.BotUser=r;class i extends t{constructor(){super(u.GUEST,null,"Guest","visitor.svg")}}sn.GuestUser=i;class s extends t{constructor(d,h,m){super(u.PERSON,d,h,m)}}sn.PersonUser=s;var u;return function(c){c.GUEST="GUEST",c.BOT="BOT",c.PERSON="PERSON"}(u||(sn.UserType=u={})),sn}var wy;function KA(){if(wy)return Oo;wy=1,Object.defineProperty(Oo,"__esModule",{value:!0});const t=xh(),r=Oh(),i=fn(),s=u=>{const c=new t.TextMessage(u,new r.GuestUser);return{type:i.MESSAGE_FROM_GUEST,message:c}};return Oo.default=s,Oo}var Ro={},Cy;function $A(){if(Cy)return Ro;Cy=1,Object.defineProperty(Ro,"__esModule",{value:!0});const t=xh(),r=Oh(),i=fn(),s=(u,c={})=>{const d=new t.TextMessage(u,new r.GuestUser);return{type:i.MESSAGE_WITHOUT_ANALYSIS_FROM_GUEST,message:d,payload:c}};return Ro.default=s,Ro}var wo={},Ny;function WA(){if(Ny)return wo;Ny=1,Object.defineProperty(wo,"__esModule",{value:!0});const t=fn(),r=i=>({type:t.NLU_REQUEST_EVENT,event:i});return wo.default=r,wo}var Co={},My;function JA(){if(My)return Co;My=1,Object.defineProperty(Co,"__esModule",{value:!0});const t=fn(),r=()=>({type:t.RESTART_CHAT_REQUEST});return Co.default=r,Co}var No={},Dy;function ex(){if(Dy)return No;Dy=1,Object.defineProperty(No,"__esModule",{value:!0});const t=fn(),r=i=>({type:t.MESSAGE_TO_GUEST,message:i});return No.default=r,No}var Mo={},Ly;function tx(){if(Ly)return Mo;Ly=1,Object.defineProperty(Mo,"__esModule",{value:!0});const t=fn(),r=(i,s,u=null,c=null)=>({type:t.TRANSCRIPT_ITEM_GUEST_REACTION,payload:{actionId:i,reaction:s,category:u,comment:c}});return Mo.default=r,Mo}var By;function nx(){if(By)return Ie;By=1;var t=Ie&&Ie.__importDefault||function(L){return L&&L.__esModule?L:{default:L}};Object.defineProperty(Ie,"__esModule",{value:!0}),Ie.transcriptItemGuestReaction=Ie.sendMessageToGuest=Ie.restartChatRequest=Ie.requestNLUEvent=Ie.receiveTextMessageWithoutAnalysisFromGuest=Ie.receiveTextMessageFromGuest=Ie.openDrawer=Ie.guestLocaleChanged=Ie.guestDisconnected=Ie.guestConnected=Ie.feedbackFromGuestResponse=Ie.closeDrawer=void 0;const r=t(VA());Ie.closeDrawer=r.default;const i=t(PA());Ie.feedbackFromGuestResponse=i.default;const s=t(YA());Ie.guestConnected=s.default;const u=t(XA());Ie.guestDisconnected=u.default;const c=t(ZA());Ie.guestLocaleChanged=c.default;const d=t(QA());Ie.openDrawer=d.default;const h=t(KA());Ie.receiveTextMessageFromGuest=h.default;const m=t($A());Ie.receiveTextMessageWithoutAnalysisFromGuest=m.default;const p=t(WA());Ie.requestNLUEvent=p.default;const b=t(JA());Ie.restartChatRequest=b.default;const E=t(ex());Ie.sendMessageToGuest=E.default;const A=t(tx());return Ie.transcriptItemGuestReaction=A.default,Ie}var Kf={},Uy;function rx(){return Uy||(Uy=1,Object.defineProperty(Kf,"__esModule",{value:!0})),Kf}var Hy;function ax(){return Hy||(Hy=1,function(t){var r=Bn&&Bn.__createBinding||(Object.create?function(c,d,h,m){m===void 0&&(m=h);var p=Object.getOwnPropertyDescriptor(d,h);(!p||("get"in p?!d.__esModule:p.writable||p.configurable))&&(p={enumerable:!0,get:function(){return d[h]}}),Object.defineProperty(c,m,p)}:function(c,d,h,m){m===void 0&&(m=h),c[m]=d[h]}),i=Bn&&Bn.__setModuleDefault||(Object.create?function(c,d){Object.defineProperty(c,"default",{enumerable:!0,value:d})}:function(c,d){c.default=d}),s=Bn&&Bn.__importStar||function(){var c=function(d){return c=Object.getOwnPropertyNames||function(h){var m=[];for(var p in h)Object.prototype.hasOwnProperty.call(h,p)&&(m[m.length]=p);return m},c(d)};return function(d){if(d&&d.__esModule)return d;var h={};if(d!=null)for(var m=c(d),p=0;p<m.length;p++)m[p]!=="default"&&r(h,d,m[p]);return i(h,d),h}}(),u=Bn&&Bn.__exportStar||function(c,d){for(var h in c)h!=="default"&&!Object.prototype.hasOwnProperty.call(d,h)&&r(d,c,h)};Object.defineProperty(t,"__esModule",{value:!0}),t.ActionTypes=t.Actions=void 0,t.Actions=s(nx()),t.ActionTypes=s(fn()),u(rx(),t)}(Bn)),Bn}var ln={},$f={},jy;function ix(){return jy||(jy=1,Object.defineProperty($f,"__esModule",{value:!0})),$f}var Us={},Iy;function sx(){if(Iy)return Us;Iy=1,Object.defineProperty(Us,"__esModule",{value:!0}),Us.NullableKnowledgeBaseAdapter=void 0;class t{async createApiKnowledgeBase(i){throw new Error("Method not implemented.")}async updateApiKnowledgeBase(i,s){throw new Error("Method not implemented.")}async deleteApiKnowledgeBase(i){throw new Error("Method not implemented.")}async upsertApiKnowledgeBase(i){throw new Error("Method not implemented.")}async findApiKnowledgeBaseById(i){throw new Error("Method not implemented.")}async findApiKnowledgeBaseByName(i){throw new Error("Method not implemented.")}async findApiKnowledgeBases(){throw new Error("Method not implemented.")}async deleteApiKnowledgeBaseByName(i){throw new Error("Method not implemented.")}async findKnowledgeBaseEntries(i){throw new Error("Method not implemented.")}async createKnowledgeBaseEntry(i,s){throw new Error("Method not implemented.")}async updateKnowledgeBaseEntry(i,s,u){throw new Error("Method not implemented.")}async deleteKnowledgeBaseEntry(i,s){throw new Error("Method not implemented.")}async upsertKnowledgeBaseEntry(i,s){throw new Error("Method not implemented.")}async retrieveKnowledgeBaseEntryConfig(i,s){throw new Error("Method not implemented.")}async findKnowledgeBaseEntryByUriAlias(i,s){throw new Error("Method not implemented.")}async deleteKnowledgeBaseEntriesIndexedBeforeDate(i,s){throw new Error("Method not implemented.")}async findKnowledgeBaseEntryAttachments(i,s){throw new Error("Method not implemented.")}async createKnowledgeBaseEntryAttachment(i,s,u){throw new Error("Method not implemented.")}async updateKnowledgeBaseEntryAttachment(i,s,u,c){throw new Error("Method not implemented.")}async deleteKnowledgeBaseEntryAttachment(i,s,u){throw new Error("Method not implemented.")}async setIndexingStatus(i,s){throw new Error("Method not implemented.")}async subscribeToReindex(i,s){throw new Error("Method not implemented.")}isContentTypeSupported(i){throw new Error("Method not implemented.")}registerTool(i,s){throw new Error("Method not implemented.")}async getTools(i){throw new Error("Method not implemented.")}}return Us.NullableKnowledgeBaseAdapter=t,Us}var zy;function lx(){if(zy)return ln;zy=1;var t=ln&&ln.__createBinding||(Object.create?function(u,c,d,h){h===void 0&&(h=d);var m=Object.getOwnPropertyDescriptor(c,d);(!m||("get"in m?!c.__esModule:m.writable||m.configurable))&&(m={enumerable:!0,get:function(){return c[d]}}),Object.defineProperty(u,h,m)}:function(u,c,d,h){h===void 0&&(h=d),u[h]=c[d]}),r=ln&&ln.__setModuleDefault||(Object.create?function(u,c){Object.defineProperty(u,"default",{enumerable:!0,value:c})}:function(u,c){u.default=c}),i=ln&&ln.__importStar||function(){var u=function(c){return u=Object.getOwnPropertyNames||function(d){var h=[];for(var m in d)Object.prototype.hasOwnProperty.call(d,m)&&(h[h.length]=m);return h},u(c)};return function(c){if(c&&c.__esModule)return c;var d={};if(c!=null)for(var h=u(c),m=0;m<h.length;m++)h[m]!=="default"&&t(d,c,h[m]);return r(d,c),d}}();Object.defineProperty(ln,"__esModule",{value:!0}),ln.NullableCmsAdapter=ln.KnowledgeBase=void 0,ln.KnowledgeBase=i(ix());const s=sx();return ln.NullableCmsAdapter={knowledgeBase:new s.NullableKnowledgeBaseAdapter},ln}var Ma={},Wf={},Gy;function ox(){return Gy||(Gy=1,Object.defineProperty(Wf,"__esModule",{value:!0})),Wf}var Jf={},ky;function ux(){return ky||(ky=1,Object.defineProperty(Jf,"__esModule",{value:!0})),Jf}var ed={},qy;function cx(){return qy||(qy=1,Object.defineProperty(ed,"__esModule",{value:!0})),ed}var td={},Fy;function fx(){return Fy||(Fy=1,Object.defineProperty(td,"__esModule",{value:!0})),td}var Hs={},Vy;function dx(){if(Vy)return Hs;Vy=1,Object.defineProperty(Hs,"__esModule",{value:!0}),Hs.checkMiddlewareCondition=void 0;const t=async(r,i,s)=>(Array.isArray(r)?r:[r]).reduce(async(c,d)=>await c?await d(i,s):!1,Promise.resolve(!0));return Hs.checkMiddlewareCondition=t,Hs}var nd={},Py;function hx(){return Py||(Py=1,Object.defineProperty(nd,"__esModule",{value:!0})),nd}var rd={},Yy;function mx(){return Yy||(Yy=1,Object.defineProperty(rd,"__esModule",{value:!0})),rd}var ad={},Xy;function px(){return Xy||(Xy=1,Object.defineProperty(ad,"__esModule",{value:!0})),ad}var Zy;function gx(){return Zy||(Zy=1,function(t){var r=Ma&&Ma.__createBinding||(Object.create?function(s,u,c,d){d===void 0&&(d=c);var h=Object.getOwnPropertyDescriptor(u,c);(!h||("get"in h?!u.__esModule:h.writable||h.configurable))&&(h={enumerable:!0,get:function(){return u[c]}}),Object.defineProperty(s,d,h)}:function(s,u,c,d){d===void 0&&(d=c),s[d]=u[c]}),i=Ma&&Ma.__exportStar||function(s,u){for(var c in s)c!=="default"&&!Object.prototype.hasOwnProperty.call(u,c)&&r(u,s,c)};Object.defineProperty(t,"__esModule",{value:!0}),i(ox(),t),i(ux(),t),i(cx(),t),i(fx(),t),i(dx(),t),i(hx(),t),i(mx(),t),i(px(),t)}(Ma)),Ma}var Da={},Un={},Qy;function yx(){if(Qy)return Un;Qy=1,Object.defineProperty(Un,"__esModule",{value:!0}),Un.ButtonTypeEnum=Un.PostbackButton=Un.UrlButton=Un.Button=void 0;class t{title;type;constructor(c,d){this.title=c,this.type=d}}Un.Button=t;class r extends t{url;constructor(c,d){super(c,s.WEB_URL),this.url=d}}Un.UrlButton=r;class i extends t{payload;constructor(c,d){super(c,s.POSTBACK),this.payload=d}}Un.PostbackButton=i;var s;return function(u){u.WEB_URL="web_url",u.POSTBACK="postback"}(s||(Un.ButtonTypeEnum=s={})),Un}var id={},Ky;function bx(){return Ky||(Ky=1,Object.defineProperty(id,"__esModule",{value:!0})),id}var js={},$y;function vx(){if($y)return js;$y=1,Object.defineProperty(js,"__esModule",{value:!0}),js.SatisfactionEnum=void 0;var t;return function(r){r.GOOD="GOOD",r.BAD="BAD"}(t||(js.SatisfactionEnum=t={})),js}var Wy;function Jy(){return Wy||(Wy=1,function(t){var r=Da&&Da.__createBinding||(Object.create?function(s,u,c,d){d===void 0&&(d=c);var h=Object.getOwnPropertyDescriptor(u,c);(!h||("get"in h?!u.__esModule:h.writable||h.configurable))&&(h={enumerable:!0,get:function(){return u[c]}}),Object.defineProperty(s,d,h)}:function(s,u,c,d){d===void 0&&(d=c),s[d]=u[c]}),i=Da&&Da.__exportStar||function(s,u){for(var c in s)c!=="default"&&!Object.prototype.hasOwnProperty.call(u,c)&&r(u,s,c)};Object.defineProperty(t,"__esModule",{value:!0}),i(yx(),t),i(bx(),t),i(vx(),t),i(xh(),t),i(Oh(),t)}(Da)),Da}var eb;function _x(){return eb||(eb=1,function(t){var r=Ln&&Ln.__createBinding||(Object.create?function(c,d,h,m){m===void 0&&(m=h);var p=Object.getOwnPropertyDescriptor(d,h);(!p||("get"in p?!d.__esModule:p.writable||p.configurable))&&(p={enumerable:!0,get:function(){return d[h]}}),Object.defineProperty(c,m,p)}:function(c,d,h,m){m===void 0&&(m=h),c[m]=d[h]}),i=Ln&&Ln.__setModuleDefault||(Object.create?function(c,d){Object.defineProperty(c,"default",{enumerable:!0,value:d})}:function(c,d){c.default=d}),s=Ln&&Ln.__exportStar||function(c,d){for(var h in c)h!=="default"&&!Object.prototype.hasOwnProperty.call(d,h)&&r(d,c,h)},u=Ln&&Ln.__importStar||function(){var c=function(d){return c=Object.getOwnPropertyNames||function(h){var m=[];for(var p in h)Object.prototype.hasOwnProperty.call(h,p)&&(m[m.length]=p);return m},c(d)};return function(d){if(d&&d.__esModule)return d;var h={};if(d!=null)for(var m=c(d),p=0;p<m.length;p++)m[p]!=="default"&&r(h,d,m[p]);return i(h,d),h}}();Object.defineProperty(t,"__esModule",{value:!0}),t.Model=t.CMS=void 0,s(ax(),t),t.CMS=u(lx()),s(gx(),t),t.Model=u(Jy()),s(Jy(),t)}(Ln)),Ln}var Te=_x();const ov=t=>r=>(t.payload.type!==Te.ActionTypes.MESSAGE_FROM_GUEST&&r(Te.Actions.receiveTextMessageWithoutAnalysisFromGuest(t.label,t.payload)),r(t.payload)),uv=t=>(r,i)=>{const{quickReplies:s}=i().chat,u=s.find(c=>t.toLocaleLowerCase().indexOf(c.label.toLocaleLowerCase())>-1);return r(u?ov({...u,label:t}):JSON.parse(JSON.stringify(Te.Actions.receiveTextMessageFromGuest(t))))},Rh="MESSAGE_TO_PARENT_PAGE",wh="RESTORE_PREVIOUS_CHAT_MESSAGES",Ch="AUDIO_MESSAGE_FROM_USER",Nh="RECEIVE_SPEECH_TRANSCRIPTION",Mh="ENABLE_CONVERSATION_RATING",cv="LOAD_SOURCE_INFOS_RESPONSE",Dh="LOAD_SOURCE_INFOS_ERROR",Lh="LOAD_SOURCE_INFOS_REQUEST",Bh="CLOSE_SOURCE_INFOS",Ex="webclient.get.started",fv="webclient.window.expand",dv="webclient.window.close",hv="webclient.transcript.pdf.download",Sx=[Rh,wh,Ch,Nh,Mh,Lh,Bh],Tx=t=>({type:Ch,buffer:t}),Ax=t=>({type:Nh,transcription:t}),xx=t=>({type:Te.ActionTypes.TRANSCRIPT_MAIL_REQUEST,payload:{parameters:{mailTo:t}}}),Ox=()=>({type:hv}),Rx=({rating:t})=>({type:Mh,payload:{rating:t}}),wx=(t,r)=>({type:Te.ActionTypes.CONVERSATION_RATING_FROM_GUEST,payload:{value:t,feedback:r}}),mv=t=>Te.Actions.requestNLUEvent(t),Cx=t=>({type:wh,messages:t}),Nx=t=>{switch(t.type){case Te.ButtonTypeEnum.WEB_URL:return gv(t.url);case Te.ButtonTypeEnum.POSTBACK:return t.payload;default:throw new Error(`unknown button type ${t.type}`)}},pv=t=>gv(t),gv=t=>({type:Rh,message:{type:"webclient.change.url",url:t}});/*! js-cookie v3.0.5 | MIT */function Do(t){for(var r=1;r<arguments.length;r++){var i=arguments[r];for(var s in i)t[s]=i[s]}return t}var Mx={read:function(t){return t[0]==='"'&&(t=t.slice(1,-1)),t.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(t){return encodeURIComponent(t).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}};function nh(t,r){function i(u,c,d){if(!(typeof document>"u")){d=Do({},r,d),typeof d.expires=="number"&&(d.expires=new Date(Date.now()+d.expires*864e5)),d.expires&&(d.expires=d.expires.toUTCString()),u=encodeURIComponent(u).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var h="";for(var m in d)d[m]&&(h+="; "+m,d[m]!==!0&&(h+="="+d[m].split(";")[0]));return document.cookie=u+"="+t.write(c,u)+h}}function s(u){if(!(typeof document>"u"||arguments.length&&!u)){for(var c=document.cookie?document.cookie.split("; "):[],d={},h=0;h<c.length;h++){var m=c[h].split("="),p=m.slice(1).join("=");try{var b=decodeURIComponent(m[0]);if(d[b]=t.read(p,b),u===b)break}catch{}}return u?d[u]:d}}return Object.create({set:i,get:s,remove:function(u,c){i(u,"",Do({},c,{expires:-1}))},withAttributes:function(u){return nh(this.converter,Do({},this.attributes,u))},withConverter:function(u){return nh(Do({},this.converter,u),this.attributes)}},{attributes:{value:Object.freeze(r)},converter:{value:Object.freeze(t)}})}var Lo=nh(Mx,{path:"/"});const wt=[];for(let t=0;t<256;++t)wt.push((t+256).toString(16).slice(1));function Dx(t,r=0){return(wt[t[r+0]]+wt[t[r+1]]+wt[t[r+2]]+wt[t[r+3]]+"-"+wt[t[r+4]]+wt[t[r+5]]+"-"+wt[t[r+6]]+wt[t[r+7]]+"-"+wt[t[r+8]]+wt[t[r+9]]+"-"+wt[t[r+10]]+wt[t[r+11]]+wt[t[r+12]]+wt[t[r+13]]+wt[t[r+14]]+wt[t[r+15]]).toLowerCase()}let sd;const Lx=new Uint8Array(16);function Bx(){if(!sd){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");sd=crypto.getRandomValues.bind(crypto)}return sd(Lx)}const Ux=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),tb={randomUUID:Ux};function Wo(t,r,i){if(tb.randomUUID&&!t)return tb.randomUUID();t=t||{};const s=t.random??t.rng?.()??Bx();if(s.length<16)throw new Error("Random bytes length must be >= 16");return s[6]=s[6]&15|64,s[8]=s[8]&63|128,Dx(s)}function Ct(t){return`Minified Redux error #${t}; visit https://redux.js.org/Errors?code=${t} for the full message or use the non-minified dev environment for full errors. `}var Hx=typeof Symbol=="function"&&Symbol.observable||"@@observable",nb=Hx,ld=()=>Math.random().toString(36).substring(7).split("").join("."),jx={INIT:`@@redux/INIT${ld()}`,REPLACE:`@@redux/REPLACE${ld()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${ld()}`},Jo=jx;function Uh(t){if(typeof t!="object"||t===null)return!1;let r=t;for(;Object.getPrototypeOf(r)!==null;)r=Object.getPrototypeOf(r);return Object.getPrototypeOf(t)===r||Object.getPrototypeOf(t)===null}function yv(t,r,i){if(typeof t!="function")throw new Error(Ct(2));if(typeof r=="function"&&typeof i=="function"||typeof i=="function"&&typeof arguments[3]=="function")throw new Error(Ct(0));if(typeof r=="function"&&typeof i>"u"&&(i=r,r=void 0),typeof i<"u"){if(typeof i!="function")throw new Error(Ct(1));return i(yv)(t,r)}let s=t,u=r,c=new Map,d=c,h=0,m=!1;function p(){d===c&&(d=new Map,c.forEach((G,_)=>{d.set(_,G)}))}function b(){if(m)throw new Error(Ct(3));return u}function E(G){if(typeof G!="function")throw new Error(Ct(4));if(m)throw new Error(Ct(5));let _=!0;p();const C=h++;return d.set(C,G),function(){if(_){if(m)throw new Error(Ct(6));_=!1,p(),d.delete(C),c=null}}}function A(G){if(!Uh(G))throw new Error(Ct(7));if(typeof G.type>"u")throw new Error(Ct(8));if(typeof G.type!="string")throw new Error(Ct(17));if(m)throw new Error(Ct(9));try{m=!0,u=s(u,G)}finally{m=!1}return(c=d).forEach(C=>{C()}),G}function L(G){if(typeof G!="function")throw new Error(Ct(10));s=G,A({type:Jo.REPLACE})}function R(){const G=E;return{subscribe(_){if(typeof _!="object"||_===null)throw new Error(Ct(11));function C(){const H=_;H.next&&H.next(b())}return C(),{unsubscribe:G(C)}},[nb](){return this}}}return A({type:Jo.INIT}),{dispatch:A,subscribe:E,getState:b,replaceReducer:L,[nb]:R}}function Ix(t){Object.keys(t).forEach(r=>{const i=t[r];if(typeof i(void 0,{type:Jo.INIT})>"u")throw new Error(Ct(12));if(typeof i(void 0,{type:Jo.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(Ct(13))})}function bv(t){const r=Object.keys(t),i={};for(let c=0;c<r.length;c++){const d=r[c];typeof t[d]=="function"&&(i[d]=t[d])}const s=Object.keys(i);let u;try{Ix(i)}catch(c){u=c}return function(d={},h){if(u)throw u;let m=!1;const p={};for(let b=0;b<s.length;b++){const E=s[b],A=i[E],L=d[E],R=A(L,h);if(typeof R>"u")throw h&&h.type,new Error(Ct(14));p[E]=R,m=m||R!==L}return m=m||s.length!==Object.keys(d).length,m?p:d}}function eu(...t){return t.length===0?r=>r:t.length===1?t[0]:t.reduce((r,i)=>(...s)=>r(i(...s)))}function zx(...t){return r=>(i,s)=>{const u=r(i,s);let c=()=>{throw new Error(Ct(15))};const d={getState:u.getState,dispatch:(m,...p)=>c(m,...p)},h=t.map(m=>m(d));return c=eu(...h)(u.dispatch),{...u,dispatch:c}}}function Gx(t){return Uh(t)&&"type"in t&&typeof t.type=="string"}var vv=Symbol.for("immer-nothing"),rb=Symbol.for("immer-draftable"),un=Symbol.for("immer-state");function zn(t,...r){throw new Error(`[Immer] minified error nr: ${t}. Full error at: https://bit.ly/3cXEKWf`)}var wi=Object.getPrototypeOf;function Ga(t){return!!t&&!!t[un]}function Cr(t){return t?_v(t)||Array.isArray(t)||!!t[rb]||!!t.constructor?.[rb]||hu(t)||mu(t):!1}var kx=Object.prototype.constructor.toString();function _v(t){if(!t||typeof t!="object")return!1;const r=wi(t);if(r===null)return!0;const i=Object.hasOwnProperty.call(r,"constructor")&&r.constructor;return i===Object?!0:typeof i=="function"&&Function.toString.call(i)===kx}function tu(t,r){du(t)===0?Reflect.ownKeys(t).forEach(i=>{r(i,t[i],t)}):t.forEach((i,s)=>r(s,i,t))}function du(t){const r=t[un];return r?r.type_:Array.isArray(t)?1:hu(t)?2:mu(t)?3:0}function rh(t,r){return du(t)===2?t.has(r):Object.prototype.hasOwnProperty.call(t,r)}function Ev(t,r,i){const s=du(t);s===2?t.set(r,i):s===3?t.add(i):t[r]=i}function qx(t,r){return t===r?t!==0||1/t===1/r:t!==t&&r!==r}function hu(t){return t instanceof Map}function mu(t){return t instanceof Set}function Ha(t){return t.copy_||t.base_}function ah(t,r){if(hu(t))return new Map(t);if(mu(t))return new Set(t);if(Array.isArray(t))return Array.prototype.slice.call(t);const i=_v(t);if(r===!0||r==="class_only"&&!i){const s=Object.getOwnPropertyDescriptors(t);delete s[un];let u=Reflect.ownKeys(s);for(let c=0;c<u.length;c++){const d=u[c],h=s[d];h.writable===!1&&(h.writable=!0,h.configurable=!0),(h.get||h.set)&&(s[d]={configurable:!0,writable:!0,enumerable:h.enumerable,value:t[d]})}return Object.create(wi(t),s)}else{const s=wi(t);if(s!==null&&i)return{...t};const u=Object.create(s);return Object.assign(u,t)}}function Hh(t,r=!1){return pu(t)||Ga(t)||!Cr(t)||(du(t)>1&&(t.set=t.add=t.clear=t.delete=Fx),Object.freeze(t),r&&Object.entries(t).forEach(([i,s])=>Hh(s,!0))),t}function Fx(){zn(2)}function pu(t){return Object.isFrozen(t)}var Vx={};function ka(t){const r=Vx[t];return r||zn(0,t),r}var Ws;function Sv(){return Ws}function Px(t,r){return{drafts_:[],parent_:t,immer_:r,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function ab(t,r){r&&(ka("Patches"),t.patches_=[],t.inversePatches_=[],t.patchListener_=r)}function ih(t){sh(t),t.drafts_.forEach(Yx),t.drafts_=null}function sh(t){t===Ws&&(Ws=t.parent_)}function ib(t){return Ws=Px(Ws,t)}function Yx(t){const r=t[un];r.type_===0||r.type_===1?r.revoke_():r.revoked_=!0}function sb(t,r){r.unfinalizedDrafts_=r.drafts_.length;const i=r.drafts_[0];return t!==void 0&&t!==i?(i[un].modified_&&(ih(r),zn(4)),Cr(t)&&(t=nu(r,t),r.parent_||ru(r,t)),r.patches_&&ka("Patches").generateReplacementPatches_(i[un].base_,t,r.patches_,r.inversePatches_)):t=nu(r,i,[]),ih(r),r.patches_&&r.patchListener_(r.patches_,r.inversePatches_),t!==vv?t:void 0}function nu(t,r,i){if(pu(r))return r;const s=r[un];if(!s)return tu(r,(u,c)=>lb(t,s,r,u,c,i)),r;if(s.scope_!==t)return r;if(!s.modified_)return ru(t,s.base_,!0),s.base_;if(!s.finalized_){s.finalized_=!0,s.scope_.unfinalizedDrafts_--;const u=s.copy_;let c=u,d=!1;s.type_===3&&(c=new Set(u),u.clear(),d=!0),tu(c,(h,m)=>lb(t,s,u,h,m,i,d)),ru(t,u,!1),i&&t.patches_&&ka("Patches").generatePatches_(s,i,t.patches_,t.inversePatches_)}return s.copy_}function lb(t,r,i,s,u,c,d){if(Ga(u)){const h=c&&r&&r.type_!==3&&!rh(r.assigned_,s)?c.concat(s):void 0,m=nu(t,u,h);if(Ev(i,s,m),Ga(m))t.canAutoFreeze_=!1;else return}else d&&i.add(u);if(Cr(u)&&!pu(u)){if(!t.immer_.autoFreeze_&&t.unfinalizedDrafts_<1)return;nu(t,u),(!r||!r.scope_.parent_)&&typeof s!="symbol"&&Object.prototype.propertyIsEnumerable.call(i,s)&&ru(t,u)}}function ru(t,r,i=!1){!t.parent_&&t.immer_.autoFreeze_&&t.canAutoFreeze_&&Hh(r,i)}function Xx(t,r){const i=Array.isArray(t),s={type_:i?1:0,scope_:r?r.scope_:Sv(),modified_:!1,finalized_:!1,assigned_:{},parent_:r,base_:t,draft_:null,copy_:null,revoke_:null,isManual_:!1};let u=s,c=jh;i&&(u=[s],c=Js);const{revoke:d,proxy:h}=Proxy.revocable(u,c);return s.draft_=h,s.revoke_=d,h}var jh={get(t,r){if(r===un)return t;const i=Ha(t);if(!rh(i,r))return Zx(t,i,r);const s=i[r];return t.finalized_||!Cr(s)?s:s===od(t.base_,r)?(ud(t),t.copy_[r]=oh(s,t)):s},has(t,r){return r in Ha(t)},ownKeys(t){return Reflect.ownKeys(Ha(t))},set(t,r,i){const s=Tv(Ha(t),r);if(s?.set)return s.set.call(t.draft_,i),!0;if(!t.modified_){const u=od(Ha(t),r),c=u?.[un];if(c&&c.base_===i)return t.copy_[r]=i,t.assigned_[r]=!1,!0;if(qx(i,u)&&(i!==void 0||rh(t.base_,r)))return!0;ud(t),lh(t)}return t.copy_[r]===i&&(i!==void 0||r in t.copy_)||Number.isNaN(i)&&Number.isNaN(t.copy_[r])||(t.copy_[r]=i,t.assigned_[r]=!0),!0},deleteProperty(t,r){return od(t.base_,r)!==void 0||r in t.base_?(t.assigned_[r]=!1,ud(t),lh(t)):delete t.assigned_[r],t.copy_&&delete t.copy_[r],!0},getOwnPropertyDescriptor(t,r){const i=Ha(t),s=Reflect.getOwnPropertyDescriptor(i,r);return s&&{writable:!0,configurable:t.type_!==1||r!=="length",enumerable:s.enumerable,value:i[r]}},defineProperty(){zn(11)},getPrototypeOf(t){return wi(t.base_)},setPrototypeOf(){zn(12)}},Js={};tu(jh,(t,r)=>{Js[t]=function(){return arguments[0]=arguments[0][0],r.apply(this,arguments)}});Js.deleteProperty=function(t,r){return Js.set.call(this,t,r,void 0)};Js.set=function(t,r,i){return jh.set.call(this,t[0],r,i,t[0])};function od(t,r){const i=t[un];return(i?Ha(i):t)[r]}function Zx(t,r,i){const s=Tv(r,i);return s?"value"in s?s.value:s.get?.call(t.draft_):void 0}function Tv(t,r){if(!(r in t))return;let i=wi(t);for(;i;){const s=Object.getOwnPropertyDescriptor(i,r);if(s)return s;i=wi(i)}}function lh(t){t.modified_||(t.modified_=!0,t.parent_&&lh(t.parent_))}function ud(t){t.copy_||(t.copy_=ah(t.base_,t.scope_.immer_.useStrictShallowCopy_))}var Qx=class{constructor(t){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(r,i,s)=>{if(typeof r=="function"&&typeof i!="function"){const c=i;i=r;const d=this;return function(m=c,...p){return d.produce(m,b=>i.call(this,b,...p))}}typeof i!="function"&&zn(6),s!==void 0&&typeof s!="function"&&zn(7);let u;if(Cr(r)){const c=ib(this),d=oh(r,void 0);let h=!0;try{u=i(d),h=!1}finally{h?ih(c):sh(c)}return ab(c,s),sb(u,c)}else if(!r||typeof r!="object"){if(u=i(r),u===void 0&&(u=r),u===vv&&(u=void 0),this.autoFreeze_&&Hh(u,!0),s){const c=[],d=[];ka("Patches").generateReplacementPatches_(r,u,c,d),s(c,d)}return u}else zn(1,r)},this.produceWithPatches=(r,i)=>{if(typeof r=="function")return(d,...h)=>this.produceWithPatches(d,m=>r(m,...h));let s,u;return[this.produce(r,i,(d,h)=>{s=d,u=h}),s,u]},typeof t?.autoFreeze=="boolean"&&this.setAutoFreeze(t.autoFreeze),typeof t?.useStrictShallowCopy=="boolean"&&this.setUseStrictShallowCopy(t.useStrictShallowCopy)}createDraft(t){Cr(t)||zn(8),Ga(t)&&(t=Kx(t));const r=ib(this),i=oh(t,void 0);return i[un].isManual_=!0,sh(r),i}finishDraft(t,r){const i=t&&t[un];(!i||!i.isManual_)&&zn(9);const{scope_:s}=i;return ab(s,r),sb(void 0,s)}setAutoFreeze(t){this.autoFreeze_=t}setUseStrictShallowCopy(t){this.useStrictShallowCopy_=t}applyPatches(t,r){let i;for(i=r.length-1;i>=0;i--){const u=r[i];if(u.path.length===0&&u.op==="replace"){t=u.value;break}}i>-1&&(r=r.slice(i+1));const s=ka("Patches").applyPatches_;return Ga(t)?s(t,r):this.produce(t,u=>s(u,r))}};function oh(t,r){const i=hu(t)?ka("MapSet").proxyMap_(t,r):mu(t)?ka("MapSet").proxySet_(t,r):Xx(t,r);return(r?r.scope_:Sv()).drafts_.push(i),i}function Kx(t){return Ga(t)||zn(10,t),Av(t)}function Av(t){if(!Cr(t)||pu(t))return t;const r=t[un];let i;if(r){if(!r.modified_)return r.base_;r.finalized_=!0,i=ah(t,r.scope_.immer_.useStrictShallowCopy_)}else i=ah(t,!0);return tu(i,(s,u)=>{Ev(i,s,Av(u))}),r&&(r.finalized_=!1),i}var cn=new Qx,xv=cn.produce;cn.produceWithPatches.bind(cn);cn.setAutoFreeze.bind(cn);cn.setUseStrictShallowCopy.bind(cn);cn.applyPatches.bind(cn);cn.createDraft.bind(cn);cn.finishDraft.bind(cn);function Ov(t){return({dispatch:i,getState:s})=>u=>c=>typeof c=="function"?c(i,s,t):u(c)}var $x=Ov(),Wx=Ov,Jx=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?eu:eu.apply(null,arguments)};function ob(t,r){function i(...s){if(r){let u=r(...s);if(!u)throw new Error(xr(0));return{type:t,payload:u.payload,..."meta"in u&&{meta:u.meta},..."error"in u&&{error:u.error}}}return{type:t,payload:s[0]}}return i.toString=()=>`${t}`,i.type=t,i.match=s=>Gx(s)&&s.type===t,i}var Rv=class Zs extends Array{constructor(...r){super(...r),Object.setPrototypeOf(this,Zs.prototype)}static get[Symbol.species](){return Zs}concat(...r){return super.concat.apply(this,r)}prepend(...r){return r.length===1&&Array.isArray(r[0])?new Zs(...r[0].concat(this)):new Zs(...r.concat(this))}};function ub(t){return Cr(t)?xv(t,()=>{}):t}function Bo(t,r,i){return t.has(r)?t.get(r):t.set(r,i(r)).get(r)}function eO(t){return typeof t=="boolean"}var tO=()=>function(r){const{thunk:i=!0,immutableCheck:s=!0,serializableCheck:u=!0,actionCreatorCheck:c=!0}=r??{};let d=new Rv;return i&&(eO(i)?d.push($x):d.push(Wx(i.extraArgument))),d},nO="RTK_autoBatch",cb=t=>r=>{setTimeout(r,t)},rO=(t={type:"raf"})=>r=>(...i)=>{const s=r(...i);let u=!0,c=!1,d=!1;const h=new Set,m=t.type==="tick"?queueMicrotask:t.type==="raf"?typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:cb(10):t.type==="callback"?t.queueNotification:cb(t.timeout),p=()=>{d=!1,c&&(c=!1,h.forEach(b=>b()))};return Object.assign({},s,{subscribe(b){const E=()=>u&&b(),A=s.subscribe(E);return h.add(b),()=>{A(),h.delete(b)}},dispatch(b){try{return u=!b?.meta?.[nO],c=!u,c&&(d||(d=!0,m(p))),s.dispatch(b)}finally{u=!0}}})},aO=t=>function(i){const{autoBatch:s=!0}=i??{};let u=new Rv(t);return s&&u.push(rO(typeof s=="object"?s:void 0)),u};function iO(t){const r=tO(),{reducer:i=void 0,middleware:s,devTools:u=!0,preloadedState:c=void 0,enhancers:d=void 0}=t||{};let h;if(typeof i=="function")h=i;else if(Uh(i))h=bv(i);else throw new Error(xr(1));let m;typeof s=="function"?m=s(r):m=r();let p=eu;u&&(p=Jx({trace:!1,...typeof u=="object"&&u}));const b=zx(...m),E=aO(b);let A=typeof d=="function"?d(E):E();const L=p(...A);return yv(h,c,L)}function wv(t){const r={},i=[];let s;const u={addCase(c,d){const h=typeof c=="string"?c:c.type;if(!h)throw new Error(xr(28));if(h in r)throw new Error(xr(29));return r[h]=d,u},addMatcher(c,d){return i.push({matcher:c,reducer:d}),u},addDefaultCase(c){return s=c,u}};return t(u),[r,i,s]}function sO(t){return typeof t=="function"}function lO(t,r){let[i,s,u]=wv(r),c;if(sO(t))c=()=>ub(t());else{const h=ub(t);c=()=>h}function d(h=c(),m){let p=[i[m.type],...s.filter(({matcher:b})=>b(m)).map(({reducer:b})=>b)];return p.filter(b=>!!b).length===0&&(p=[u]),p.reduce((b,E)=>{if(E)if(Ga(b)){const L=E(b,m);return L===void 0?b:L}else{if(Cr(b))return xv(b,A=>E(A,m));{const A=E(b,m);if(A===void 0){if(b===null)return b;throw Error("A case reducer on a non-draftable value must not return undefined")}return A}}return b},h)}return d.getInitialState=c,d}var oO=Symbol.for("rtk-slice-createasyncthunk");function uO(t,r){return`${t}/${r}`}function cO({creators:t}={}){const r=t?.asyncThunk?.[oO];return function(s){const{name:u,reducerPath:c=u}=s;if(!u)throw new Error(xr(11));const d=(typeof s.reducers=="function"?s.reducers(dO()):s.reducers)||{},h=Object.keys(d),m={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},p={addCase(S,H){const x=typeof S=="string"?S:S.type;if(!x)throw new Error(xr(12));if(x in m.sliceCaseReducersByType)throw new Error(xr(13));return m.sliceCaseReducersByType[x]=H,p},addMatcher(S,H){return m.sliceMatchers.push({matcher:S,reducer:H}),p},exposeAction(S,H){return m.actionCreators[S]=H,p},exposeCaseReducer(S,H){return m.sliceCaseReducersByName[S]=H,p}};h.forEach(S=>{const H=d[S],x={reducerName:S,type:uO(u,S),createNotation:typeof s.reducers=="function"};mO(H)?gO(x,H,p,r):hO(x,H,p)});function b(){const[S={},H=[],x=void 0]=typeof s.extraReducers=="function"?wv(s.extraReducers):[s.extraReducers],Q={...S,...m.sliceCaseReducersByType};return lO(s.initialState,W=>{for(let ae in Q)W.addCase(ae,Q[ae]);for(let ae of m.sliceMatchers)W.addMatcher(ae.matcher,ae.reducer);for(let ae of H)W.addMatcher(ae.matcher,ae.reducer);x&&W.addDefaultCase(x)})}const E=S=>S,A=new Map,L=new WeakMap;let R;function q(S,H){return R||(R=b()),R(S,H)}function G(){return R||(R=b()),R.getInitialState()}function _(S,H=!1){function x(W){let ae=W[S];return typeof ae>"u"&&H&&(ae=Bo(L,x,G)),ae}function Q(W=E){const ae=Bo(A,H,()=>new WeakMap);return Bo(ae,W,()=>{const ye={};for(const[Ee,se]of Object.entries(s.selectors??{}))ye[Ee]=fO(se,W,()=>Bo(L,W,G),H);return ye})}return{reducerPath:S,getSelectors:Q,get selectors(){return Q(x)},selectSlice:x}}const C={name:u,reducer:q,actions:m.actionCreators,caseReducers:m.sliceCaseReducersByName,getInitialState:G,..._(c),injectInto(S,{reducerPath:H,...x}={}){const Q=H??c;return S.inject({reducerPath:Q,reducer:q},x),{...C,..._(Q,!0)}}};return C}}function fO(t,r,i,s){function u(c,...d){let h=r(c);return typeof h>"u"&&s&&(h=i()),t(h,...d)}return u.unwrapped=t,u}var Ih=cO();function dO(){function t(r,i){return{_reducerDefinitionType:"asyncThunk",payloadCreator:r,...i}}return t.withTypes=()=>t,{reducer(r){return Object.assign({[r.name](...i){return r(...i)}}[r.name],{_reducerDefinitionType:"reducer"})},preparedReducer(r,i){return{_reducerDefinitionType:"reducerWithPrepare",prepare:r,reducer:i}},asyncThunk:t}}function hO({type:t,reducerName:r,createNotation:i},s,u){let c,d;if("reducer"in s){if(i&&!pO(s))throw new Error(xr(17));c=s.reducer,d=s.prepare}else c=s;u.addCase(t,c).exposeCaseReducer(r,c).exposeAction(r,d?ob(t,d):ob(t))}function mO(t){return t._reducerDefinitionType==="asyncThunk"}function pO(t){return t._reducerDefinitionType==="reducerWithPrepare"}function gO({type:t,reducerName:r},i,s,u){if(!u)throw new Error(xr(18));const{payloadCreator:c,fulfilled:d,pending:h,rejected:m,settled:p,options:b}=i,E=u(t,c,b);s.exposeAction(r,E),d&&s.addCase(E.fulfilled,d),h&&s.addCase(E.pending,h),m&&s.addCase(E.rejected,m),p&&s.addMatcher(E.settled,p),s.exposeCaseReducer(r,{fulfilled:d||Uo,pending:h||Uo,rejected:m||Uo,settled:p||Uo})}function Uo(){}function xr(t){return`Minified Redux Toolkit error #${t}; visit https://redux-toolkit.js.org/Errors?code=${t} for the full message or use the non-minified dev environment for full errors. `}const yO={formValues:{}},Cv=Ih({name:"start-screen",initialState:yO,reducers:{showStartScreen(t){t.startScreenStatus="VISIBLE",t.formValues={}},startChat(t,r){t.startScreenStatus="HIDDEN",t.formValues=r.payload.formValues},startAuthenticatedChat(t,r){t.startScreenStatus="HIDDEN",t.loginToken=r.payload.loginToken,t.loginRequestToken=void 0},requestLogin(t,r){t.loginRequestToken=r.payload.loginRequestToken,t.formValues=r.payload.formValues},loginWindowClosed(t){t.loginRequestToken=void 0}}}),{startChat:bO,startAuthenticatedChat:vO,showStartScreen:_O,requestLogin:EO,loginWindowClosed:SO}=Cv.actions,TO=Cv.reducer,Nv="RESET_CHAT_STATE",Mv="TOGGLE_TRANSCRIPT_MAIL_OVERLAY",Dv="SHOW_CONVERSATION_RATING_OVERLAY",Lv="HIDE_CONVERSATION_RATING_OVERLAY",Bv=()=>({type:dv}),AO=()=>({type:Nv}),Uv=()=>({type:Mv}),zh=(t,r=void 0)=>({type:Dv,payload:{opener:t,defaultRating:r}}),xO=()=>({type:Lv}),fb=(t,r,i)=>(s,u)=>{try{const c=u().connection.sessionId;if(!c)throw new Error("Session ID is not available");s({type:Lh,payload:{chunkId:i}}),db(t,c,r,i,!1,s),db(t,c,r,i,!0,s)}catch(c){console.error("Error loading source infos:",c),s({type:Dh})}},db=(t,r,i,s,u,c)=>{const d=`/${t}/me/chat-widget/transcript/${i}/chunks/${s}?highlight=${u}`;fetch(d,{headers:{"x-bubble-chat-session-id":r}}).then(h=>{if(!h.ok)throw new Error(`HTTP error! Status: ${h.status}`);return h.json()}).then(h=>{const m={...h,chunkId:s,highlighted:u};c({type:cv,payload:m})}).catch(h=>{console.error("Error fetching source infos:",h),c({type:Dh,payload:{highlighted:u}})})},OO=()=>({type:Bh}),Gh="CONNECT",kh="CONNECTING",qh="CONNECTED",Fh="DISCONNECTED",Vh="RECONNECTED",Ph="RESTORE_SESSION_ID",gu="START",yu="CLEAR_SESSION_ID",RO=[Gh,kh,qh,Fh,Vh,Ph],wO=(t,r)=>({type:Gh,clientName:t,querystrings:r}),CO=t=>({type:Ph,sessionId:t}),NO=()=>({type:kh}),MO=()=>({type:qh}),DO=()=>({type:Fh}),LO=()=>({type:Vh}),Hv=(t,r)=>(i,s)=>{const u=s().connection,{formValues:c,loginToken:d}=s().startScreen;let h=u.sessionId;h===void 0&&(h=Wo());let m=u.userId;if(m===void 0){const p=Lo.get("bubble-chat-user-id")||Lo.get("bubble-chat-userId")||Lo.get("bf-webclient-userId");m=p||Wo(),Lo.set("bubble-chat-user-id",m)}i({type:gu,payload:{sessionId:h,userId:m,clientName:t,loginToken:d,querystrings:{...r,...c}}})},bu=(t,r)=>(i,s)=>{const u=s().connection.sessionId||"";if(i(BO(u)),i(AO()),s().settings.enableStartScreen)i(_O());else return i(Hv(t,r))},BO=t=>({type:yu,payload:{sessionId:t}}),Ze=()=>{const t=cu();return i=>{const s=t.formatMessage({id:i});return s===i?void 0:s}};var Ia=(t=>(t[t.CONNECTING=0]="CONNECTING",t[t.CONNECTED=1]="CONNECTED",t[t.RECONNECTED=2]="RECONNECTED",t[t.DISCONNECTED=3]="DISCONNECTED",t))(Ia||{}),au=(t=>(t.GUEST="GUEST",t.BOT="BOT",t.PERSON="PERSON",t))(au||{});const UO="_container_q2uun_1",HO="_chatcontent_q2uun_6",jO="_accessabilityHidden_q2uun_12",cd={container:UO,chatcontent:HO,accessabilityHidden:jO},IO="_messageContainer_ofi0g_1",zO="_messages_ofi0g_12",hb={messageContainer:IO,messages:zO};function ja(){return ja=Object.assign?Object.assign.bind():function(t){for(var r=1;r<arguments.length;r++){var i=arguments[r];for(var s in i)Object.prototype.hasOwnProperty.call(i,s)&&(t[s]=i[s])}return t},ja.apply(this,arguments)}const GO=["children","options"],kO={footnoteReference:"7"},mb=["allowFullScreen","allowTransparency","autoComplete","autoFocus","autoPlay","cellPadding","cellSpacing","charSet","classId","colSpan","contentEditable","contextMenu","crossOrigin","encType","formAction","formEncType","formMethod","formNoValidate","formTarget","frameBorder","hrefLang","inputMode","keyParams","keyType","marginHeight","marginWidth","maxLength","mediaGroup","minLength","noValidate","radioGroup","readOnly","rowSpan","spellCheck","srcDoc","srcLang","srcSet","tabIndex","useMap"].reduce((t,r)=>(t[r.toLowerCase()]=r,t),{class:"className",for:"htmlFor"}),pb={amp:"&",apos:"'",gt:">",lt:"<",nbsp:" ",quot:"“"},qO=["style","script","pre"],FO=["src","href","data","formAction","srcDoc","action"],VO=/([-A-Z0-9_:]+)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|(?:\{((?:\\.|{[^}]*?}|[^}])*)\})))?/gi,PO=/mailto:/i,YO=/\n{2,}$/,gb=/^(\s*>[\s\S]*?)(?=\n\n|$)/,XO=/^ *> ?/gm,ZO=/^(?:\[!([^\]]*)\]\n)?([\s\S]*)/,QO=/^ {2,}\n/,KO=/^(?:( *[-*_])){3,} *(?:\n *)+\n/,yb=/^(?: {1,3})?(`{3,}|~{3,}) *(\S+)? *([^\n]*?)?\n([\s\S]*?)(?:\1\n?|$)/,bb=/^(?: {4}[^\n]+\n*)+(?:\n *)+\n?/,$O=/^(`+)((?:\\`|(?!\1)`|[^`])+)\1/,WO=/^(?:\n *)*\n/,JO=/\r\n?/g,eR=/^\[\^([^\]]+)](:(.*)((\n+ {4,}.*)|(\n(?!\[\^).+))*)/,tR=/^\[\^([^\]]+)]/,nR=/\f/g,rR=/^---[ \t]*\n(.|\n)*\n---[ \t]*\n/,aR=/^\s*?\[(x|\s)\]/,vb=/^ *(#{1,6}) *([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,_b=/^ *(#{1,6}) +([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,Eb=/^([^\n]+)\n *(=|-){3,} *\n/,fd=/^ *(?!<[a-z][^ >/]* ?\/>)<([a-z][^ >/]*) ?((?:[^>]*[^/])?)>\n?(\s*(?:<\1[^>]*?>[\s\S]*?<\/\1>|(?!<\1\b)[\s\S])*?)<\/\1>(?!<\/\1>)\n*/i,iR=/&([a-z0-9]+|#[0-9]{1,6}|#x[0-9a-fA-F]{1,6});/gi,Sb=/^<!--[\s\S]*?(?:-->)/,sR=/^(data|aria|x)-[a-z_][a-z\d_.-]*$/,dd=/^ *<([a-z][a-z0-9:]*)(?:\s+((?:<.*?>|[^>])*))?\/?>(?!<\/\1>)(\s*\n)?/i,lR=/^\{.*\}$/,oR=/^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/,uR=/^<([^ >]+@[^ >]+)>/,cR=/^<([^ >]+:\/[^ >]+)>/,fR=/-([a-z])?/gi,Tb=/^(\|.*)\n(?: *(\|? *[-:]+ *\|[-| :]*)\n((?:.*\|.*\n)*))?\n?/,dR=/^[^\n]+(?: \n|\n{2,})/,hR=/^\[([^\]]*)\]:\s+<?([^\s>]+)>?\s*("([^"]*)")?/,mR=/^!\[([^\]]*)\] ?\[([^\]]*)\]/,pR=/^\[([^\]]*)\] ?\[([^\]]*)\]/,gR=/(\n|^[-*]\s|^#|^ {2,}|^-{2,}|^>\s)/,yR=/\t/g,bR=/(^ *\||\| *$)/g,vR=/^ *:-+: *$/,_R=/^ *:-+ *$/,ER=/^ *-+: *$/,vu=t=>`(?=[\\s\\S]+?\\1${t?"\\1":""})`,_u="((?:\\[.*?\\][([].*?[)\\]]|<.*?>(?:.*?<.*?>)?|`.*?`|\\\\\\1|[\\s\\S])+?)",SR=RegExp(`^([*_])\\1${vu(1)}${_u}\\1\\1(?!\\1)`),TR=RegExp(`^([*_])${vu(0)}${_u}\\1(?!\\1)`),AR=RegExp(`^(==)${vu(0)}${_u}\\1`),xR=RegExp(`^(~~)${vu(0)}${_u}\\1`),OR=/^(:[a-zA-Z0-9-_]+:)/,RR=/^\\([^0-9A-Za-z\s])/,wR=/\\([^0-9A-Za-z\s])/g,CR=/^[\s\S](?:(?! \n|[0-9]\.|http)[^=*_~\-\n:<`\\\[!])*/,NR=/^\n+/,MR=/^([ \t]*)/,DR=/(?:^|\n)( *)$/,Yh="(?:\\d+\\.)",Xh="(?:[*+-])";function jv(t){return"( *)("+(t===1?Yh:Xh)+") +"}const Iv=jv(1),zv=jv(2);function Gv(t){return RegExp("^"+(t===1?Iv:zv))}const LR=Gv(1),BR=Gv(2);function kv(t){return RegExp("^"+(t===1?Iv:zv)+"[^\\n]*(?:\\n(?!\\1"+(t===1?Yh:Xh)+" )[^\\n]*)*(\\n|$)","gm")}const UR=kv(1),HR=kv(2);function qv(t){const r=t===1?Yh:Xh;return RegExp("^( *)("+r+") [\\s\\S]+?(?:\\n{2,}(?! )(?!\\1"+r+" (?!"+r+" ))\\n*|\\s*\\n*$)")}const Fv=qv(1),Vv=qv(2);function Ab(t,r){const i=r===1,s=i?Fv:Vv,u=i?UR:HR,c=i?LR:BR;return{t:d=>c.test(d),o:Ci(function(d,h){const m=DR.exec(h.prevCapture);return m&&(h.list||!h.inline&&!h.simple)?s.exec(d=m[1]+d):null}),i:1,u(d,h,m){const p=i?+d[2]:void 0,b=d[0].replace(YO,`
94
+ `).match(u);let E=!1;return{items:b.map(function(A,L){const R=c.exec(A)[0].length,q=RegExp("^ {1,"+R+"}","gm"),G=A.replace(q,"").replace(c,""),_=L===b.length-1,C=G.indexOf(`
95
95
 
96
- `)!==-1||_&&E;E=C;const S=m.inline,H=m.list;let O;m.list=!0,C?(m.inline=!1,O=$s(G)+`
96
+ `)!==-1||_&&E;E=C;const S=m.inline,H=m.list;let x;m.list=!0,C?(m.inline=!1,x=$s(G)+`
97
97
 
98
- `):(m.inline=!0,O=$s(G));const Q=h(O,m);return m.inline=S,m.list=H,Q}),ordered:i,start:p}},l:(d,h,m)=>t(d.ordered?"ol":"ul",{key:m.key,start:d.type==="20"?d.start:void 0},d.items.map(function(p,b){return t("li",{key:b},h(p,m))}))}}const HR=RegExp(`^\\[((?:\\[[^\\[\\]]*(?:\\[[^\\[\\]]*\\][^\\[\\]]*)*\\]|[^\\[\\]])*)\\]\\(\\s*<?((?:\\([^)]*\\)|[^\\s\\\\]|\\\\.)*?)>?(?:\\s+['"]([\\s\\S]*?)['"])?\\s*\\)`),jR=/^!\[(.*?)\]\( *((?:\([^)]*\)|[^() ])*) *"?([^)"]*)?"?\)/;function $s(t){let r=t.length;for(;r>0&&t[r-1]<=" ";)r--;return t.slice(0,r)}function Vo(t,r){return t.startsWith(r)}function IR(t,r,i){if(Array.isArray(i)){for(let s=0;s<i.length;s++)if(Vo(t,i[s]))return!0;return!1}return i(t,r)}function Is(t){return t.replace(/[ÀÁÂÃÄÅàáâãä忯]/g,"a").replace(/[çÇ]/g,"c").replace(/[ðÐ]/g,"d").replace(/[ÈÉÊËéèêë]/g,"e").replace(/[ÏïÎîÍíÌì]/g,"i").replace(/[Ññ]/g,"n").replace(/[øØœŒÕõÔôÓóÒò]/g,"o").replace(/[ÜüÛûÚúÙù]/g,"u").replace(/[ŸÿÝý]/g,"y").replace(/[^a-z0-9- ]/gi,"").replace(/ /gi,"-").toLowerCase()}function zR(t){return _R.test(t)?"right":bR.test(t)?"center":vR.test(t)?"left":null}function Ob(t,r,i,s){const u=i.inTable;i.inTable=!0;let c=[[]],d="";function h(){if(!d)return;const m=c[c.length-1];m.push.apply(m,r(d,i)),d=""}return t.trim().split(/(`[^`]*`|\\\||\|)/).filter(Boolean).forEach((m,p,b)=>{m.trim()==="|"&&(h(),s)?p!==0&&p!==b.length-1&&c.push([]):d+=m}),h(),i.inTable=u,c}function GR(t,r,i){i.inline=!0;const s=t[2]?t[2].replace(yR,"").split("|").map(zR):[],u=t[3]?function(d,h,m){return d.trim().split(`
99
- `).map(function(p){return Ob(p,h,m,!0)})}(t[3],r,i):[],c=Ob(t[1],r,i,!!u.length);return i.inline=!1,u.length?{align:s,cells:u,header:c,type:"25"}:{children:c,type:"21"}}function xb(t,r){return t.align[r]==null?{}:{textAlign:t.align[r]}}function Ci(t){return t.inline=1,t}function aa(t){return Ci(function(r,i){return i.inline?t.exec(r):null})}function ia(t){return Ci(function(r,i){return i.inline||i.simple?t.exec(r):null})}function Sr(t){return function(r,i){return i.inline||i.simple?null:t.exec(r)}}function Ho(t){return Ci(function(r){return t.exec(r)})}const kR=/(javascript|vbscript|data(?!:image)):/i;function qR(t){try{const r=decodeURIComponent(t).replace(/[^A-Za-z0-9/:]/g,"");if(kR.test(r))return null}catch{return null}return t}function Qn(t){return t&&t.replace(RR,"$1")}function Po(t,r,i){const s=i.inline||!1,u=i.simple||!1;i.inline=!0,i.simple=!0;const c=t(r,i);return i.inline=s,i.simple=u,c}function FR(t,r,i){const s=i.inline||!1,u=i.simple||!1;i.inline=!1,i.simple=!0;const c=t(r,i);return i.inline=s,i.simple=u,c}function VR(t,r,i){const s=i.inline||!1;i.inline=!1;const u=t(r,i);return i.inline=s,u}const dd=(t,r,i)=>({children:Po(r,t[2],i)});function hd(){return{}}function md(){return null}function PR(...t){return t.filter(Boolean).join(" ")}function pd(t,r,i){let s=t;const u=r.split(".");for(;u.length&&(s=s[u[0]],s!==void 0);)u.shift();return s||i}function YR(t="",r={}){r.overrides=r.overrides||{},r.namedCodesToUnicode=r.namedCodesToUnicode?ja({},pb,r.namedCodesToUnicode):pb;const i=r.slugify||Is,s=r.sanitizer||qR,u=r.createElement||B.createElement,c=[gb,yb,bb,r.enforceAtxHeadings?_b:vb,Eb,Tb,Fv,Vv],d=[...c,fR,cd,Sb,fd];function h(_,C,...S){const H=pd(r.overrides,_+".props",{});return u(function(O,Q){const W=pd(Q,O);return W?typeof W=="function"||typeof W=="object"&&"render"in W?W:pd(Q,O+".component",O):O}(_,r.overrides),ja({},C,H,{className:PR(C?.className,H.className)||void 0}),...S)}function m(_){_=_.replace(nR,"");let C=!1;r.forceInline?C=!0:r.forceBlock||(C=pR.test(_)===!1);const S=R(U(C?_:$s(_).replace(CR,"")+`
98
+ `):(m.inline=!0,x=$s(G));const Q=h(x,m);return m.inline=S,m.list=H,Q}),ordered:i,start:p}},l:(d,h,m)=>t(d.ordered?"ol":"ul",{key:m.key,start:d.type==="20"?d.start:void 0},d.items.map(function(p,b){return t("li",{key:b},h(p,m))}))}}const jR=RegExp(`^\\[((?:\\[[^\\[\\]]*(?:\\[[^\\[\\]]*\\][^\\[\\]]*)*\\]|[^\\[\\]])*)\\]\\(\\s*<?((?:\\([^)]*\\)|[^\\s\\\\]|\\\\.)*?)>?(?:\\s+['"]([\\s\\S]*?)['"])?\\s*\\)`),IR=/^!\[(.*?)\]\( *((?:\([^)]*\)|[^() ])*) *"?([^)"]*)?"?\)/;function $s(t){let r=t.length;for(;r>0&&t[r-1]<=" ";)r--;return t.slice(0,r)}function Vo(t,r){return t.startsWith(r)}function zR(t,r,i){if(Array.isArray(i)){for(let s=0;s<i.length;s++)if(Vo(t,i[s]))return!0;return!1}return i(t,r)}function Is(t){return t.replace(/[ÀÁÂÃÄÅàáâãä忯]/g,"a").replace(/[çÇ]/g,"c").replace(/[ðÐ]/g,"d").replace(/[ÈÉÊËéèêë]/g,"e").replace(/[ÏïÎîÍíÌì]/g,"i").replace(/[Ññ]/g,"n").replace(/[øØœŒÕõÔôÓóÒò]/g,"o").replace(/[ÜüÛûÚúÙù]/g,"u").replace(/[ŸÿÝý]/g,"y").replace(/[^a-z0-9- ]/gi,"").replace(/ /gi,"-").toLowerCase()}function GR(t){return ER.test(t)?"right":vR.test(t)?"center":_R.test(t)?"left":null}function xb(t,r,i,s){const u=i.inTable;i.inTable=!0;let c=[[]],d="";function h(){if(!d)return;const m=c[c.length-1];m.push.apply(m,r(d,i)),d=""}return t.trim().split(/(`[^`]*`|\\\||\|)/).filter(Boolean).forEach((m,p,b)=>{m.trim()==="|"&&(h(),s)?p!==0&&p!==b.length-1&&c.push([]):d+=m}),h(),i.inTable=u,c}function kR(t,r,i){i.inline=!0;const s=t[2]?t[2].replace(bR,"").split("|").map(GR):[],u=t[3]?function(d,h,m){return d.trim().split(`
99
+ `).map(function(p){return xb(p,h,m,!0)})}(t[3],r,i):[],c=xb(t[1],r,i,!!u.length);return i.inline=!1,u.length?{align:s,cells:u,header:c,type:"25"}:{children:c,type:"21"}}function Ob(t,r){return t.align[r]==null?{}:{textAlign:t.align[r]}}function Ci(t){return t.inline=1,t}function aa(t){return Ci(function(r,i){return i.inline?t.exec(r):null})}function ia(t){return Ci(function(r,i){return i.inline||i.simple?t.exec(r):null})}function Sr(t){return function(r,i){return i.inline||i.simple?null:t.exec(r)}}function Ho(t){return Ci(function(r){return t.exec(r)})}const qR=/(javascript|vbscript|data(?!:image)):/i;function FR(t){try{const r=decodeURIComponent(t).replace(/[^A-Za-z0-9/:]/g,"");if(qR.test(r))return null}catch{return null}return t}function Qn(t){return t&&t.replace(wR,"$1")}function Po(t,r,i){const s=i.inline||!1,u=i.simple||!1;i.inline=!0,i.simple=!0;const c=t(r,i);return i.inline=s,i.simple=u,c}function VR(t,r,i){const s=i.inline||!1,u=i.simple||!1;i.inline=!1,i.simple=!0;const c=t(r,i);return i.inline=s,i.simple=u,c}function PR(t,r,i){const s=i.inline||!1;i.inline=!1;const u=t(r,i);return i.inline=s,u}const hd=(t,r,i)=>({children:Po(r,t[2],i)});function md(){return{}}function pd(){return null}function YR(...t){return t.filter(Boolean).join(" ")}function gd(t,r,i){let s=t;const u=r.split(".");for(;u.length&&(s=s[u[0]],s!==void 0);)u.shift();return s||i}function XR(t="",r={}){r.overrides=r.overrides||{},r.namedCodesToUnicode=r.namedCodesToUnicode?ja({},pb,r.namedCodesToUnicode):pb;const i=r.slugify||Is,s=r.sanitizer||FR,u=r.createElement||U.createElement,c=[gb,yb,bb,r.enforceAtxHeadings?_b:vb,Eb,Tb,Fv,Vv],d=[...c,dR,fd,Sb,dd];function h(_,C,...S){const H=gd(r.overrides,_+".props",{});return u(function(x,Q){const W=gd(Q,x);return W?typeof W=="function"||typeof W=="object"&&"render"in W?W:gd(Q,x+".component",x):x}(_,r.overrides),ja({},C,H,{className:YR(C?.className,H.className)||void 0}),...S)}function m(_){_=_.replace(rR,"");let C=!1;r.forceInline?C=!0:r.forceBlock||(C=gR.test(_)===!1);const S=R(L(C?_:$s(_).replace(NR,"")+`
100
100
 
101
- `,{inline:C}));for(;typeof S[S.length-1]=="string"&&!S[S.length-1].trim();)S.pop();if(r.wrapper===null)return S;const H=r.wrapper||(C?"span":"div");let O;if(S.length>1||r.forceWrapper)O=S;else{if(S.length===1)return O=S[0],typeof O=="string"?h("span",{key:"outer"},O):O;O=null}return u(H,{key:"outer"},O)}function p(_,C){if(!C||!C.trim())return null;const S=C.match(Fx);return S?S.reduce(function(H,O){const Q=O.indexOf("=");if(Q!==-1){const W=function(se){return se.indexOf("-")!==-1&&se.match(iR)===null&&(se=se.replace(cR,function(me,ce){return ce.toUpperCase()})),se}(O.slice(0,Q)).trim(),ae=function(se){const me=se[0];return(me==='"'||me==="'")&&se.length>=2&&se[se.length-1]===me?se.slice(1,-1):se}(O.slice(Q+1).trim()),ye=mb[W]||W;if(ye==="ref")return H;const Ee=H[ye]=function(se,me,ce,Pe){return me==="style"?function(ve){const z=[];let K="",ee=!1,Ae=!1,x="";if(!ve)return z;for(let $=0;$<ve.length;$++){const Y=ve[$];if(Y!=='"'&&Y!=="'"||ee||(Ae?Y===x&&(Ae=!1,x=""):(Ae=!0,x=Y)),Y==="("&&K.endsWith("url")?ee=!0:Y===")"&&ee&&(ee=!1),Y!==";"||Ae||ee)K+=Y;else{const te=K.trim();if(te){const re=te.indexOf(":");if(re>0){const ue=te.slice(0,re).trim(),We=te.slice(re+1).trim();z.push([ue,We])}}K=""}}const k=K.trim();if(k){const $=k.indexOf(":");if($>0){const Y=k.slice(0,$).trim(),te=k.slice($+1).trim();z.push([Y,te])}}return z}(ce).reduce(function(ve,[z,K]){return ve[z.replace(/(-[a-z])/g,ee=>ee[1].toUpperCase())]=Pe(K,se,z),ve},{}):qx.indexOf(me)!==-1?Pe(Qn(ce),se,me):(ce.match(sR)&&(ce=Qn(ce.slice(1,ce.length-1))),ce==="true"||ce!=="false"&&ce)}(_,W,ae,s);typeof Ee=="string"&&(cd.test(Ee)||fd.test(Ee))&&(H[ye]=m(Ee.trim()))}else O!=="style"&&(H[mb[O]||O]=!0);return H},{}):null}const b=[],E={},A={0:{t:[">"],o:Sr(gb),i:1,u(_,C,S){const[,H,O]=_[0].replace(Yx,"").match(Xx);return{alert:H,children:C(O,S)}},l(_,C,S){const H={key:S.key};return _.alert&&(H.className="markdown-alert-"+i(_.alert.toLowerCase(),Is),_.children.unshift({attrs:{},children:[{type:"27",text:_.alert}],noInnerParse:!0,type:"11",tag:"header"})),h("blockquote",H,C(_.children,S))}},1:{o:Ho(Zx),i:1,u:hd,l:(_,C,S)=>h("br",{key:S.key})},2:{t:_=>{const C=_[0];return C==="-"||C==="*"||C==="_"},o:Sr(Qx),i:1,u:hd,l:(_,C,S)=>h("hr",{key:S.key})},3:{t:[" "],o:Sr(bb),i:0,u:_=>({lang:void 0,text:Qn($s(_[0].replace(/^ {4}/gm,"")))}),l:(_,C,S)=>h("pre",{key:S.key},h("code",ja({},_.attrs,{className:_.lang?"lang-"+_.lang:""}),_.text))},4:{t:["```","~~~"],o:Sr(yb),i:0,u:_=>({attrs:p("code",_[3]||""),lang:_[2]||void 0,text:_[4],type:"3"})},5:{t:["`"],o:ia(Kx),i:3,u:_=>({text:Qn(_[2])}),l:(_,C,S)=>h("code",{key:S.key},_.text)},6:{t:["[^"],o:Sr(Jx),i:0,u:_=>(b.push({footnote:_[2],identifier:_[1]}),{}),l:md},7:{t:["[^"],o:aa(eR),i:1,u:_=>({target:"#"+i(_[1],Is),text:_[1]}),l:(_,C,S)=>h("a",{key:S.key,href:s(_.target,"a","href")},h("sup",{key:S.key},_.text))},8:{t:["[ ]","[x]"],o:aa(rR),i:1,u:_=>({completed:_[1].toLowerCase()==="x"}),l:(_,C,S)=>h("input",{checked:_.completed,key:S.key,readOnly:!0,type:"checkbox"})},9:{t:["#"],o:Sr(r.enforceAtxHeadings?_b:vb),i:1,u:(_,C,S)=>({children:Po(C,_[2],S),id:i(_[2],Is),level:_[1].length}),l:(_,C,S)=>h("h"+_.level,{id:_.id,key:S.key},C(_.children,S))},10:{o:Sr(Eb),i:0,u:(_,C,S)=>({children:Po(C,_[1],S),level:_[2]==="="?1:2,type:"9"})},11:{t:["<"],o:Ho(cd),i:1,u(_,C,S){const[,H]=_[3].match(NR),O=RegExp("^"+H,"gm"),Q=_[3].replace(O,""),W=(ae=Q,d.some(ce=>ce.test(ae))?VR:Po);var ae;const ye=_[1].toLowerCase(),Ee=kx.indexOf(ye)!==-1,se=(Ee?ye:_[1]).trim(),me={attrs:p(se,_[2]),noInnerParse:Ee,tag:se};if(S.inAnchor=S.inAnchor||ye==="a",Ee)me.text=_[3];else{const ce=S.inHTML;S.inHTML=!0,me.children=W(C,Q,S),S.inHTML=ce}return S.inAnchor=!1,me},l:(_,C,S)=>h(_.tag,ja({key:S.key},_.attrs),_.text||(_.children?C(_.children,S):""))},13:{t:["<"],o:Ho(fd),i:1,u(_){const C=_[1].trim();return{attrs:p(C,_[2]||""),tag:C}},l:(_,C,S)=>h(_.tag,ja({},_.attrs,{key:S.key}))},12:{t:["<!--"],o:Ho(Sb),i:1,u:()=>({}),l:md},14:{t:["!["],o:ia(jR),i:1,u:_=>({alt:Qn(_[1]),target:Qn(_[2]),title:Qn(_[3])}),l:(_,C,S)=>h("img",{key:S.key,alt:_.alt||void 0,title:_.title||void 0,src:s(_.target,"img","src")})},15:{t:["["],o:aa(HR),i:3,u:(_,C,S)=>({children:FR(C,_[1],S),target:Qn(_[2]),title:Qn(_[3])}),l:(_,C,S)=>h("a",{key:S.key,href:s(_.target,"a","href"),title:_.title},C(_.children,S))},16:{t:["<"],o:aa(uR),i:0,u:_=>({children:[{text:_[1],type:"27"}],target:_[1],type:"15"})},17:{t:(_,C)=>!C.inAnchor&&!r.disableAutoLink&&(Vo(_,"http://")||Vo(_,"https://")),o:aa(lR),i:0,u:_=>({children:[{text:_[1],type:"27"}],target:_[1],title:void 0,type:"15"})},18:{t:["<"],o:aa(oR),i:0,u(_){let C=_[1],S=_[1];return Vx.test(S)||(S="mailto:"+S),{children:[{text:C.replace("mailto:",""),type:"27"}],target:S,type:"15"}}},20:Ab(h,1),33:Ab(h,2),19:{o:Sr($x),i:3,u:hd,l:()=>`
101
+ `,{inline:C}));for(;typeof S[S.length-1]=="string"&&!S[S.length-1].trim();)S.pop();if(r.wrapper===null)return S;const H=r.wrapper||(C?"span":"div");let x;if(S.length>1||r.forceWrapper)x=S;else{if(S.length===1)return x=S[0],typeof x=="string"?h("span",{key:"outer"},x):x;x=null}return u(H,{key:"outer"},x)}function p(_,C){if(!C||!C.trim())return null;const S=C.match(VO);return S?S.reduce(function(H,x){const Q=x.indexOf("=");if(Q!==-1){const W=function(se){return se.indexOf("-")!==-1&&se.match(sR)===null&&(se=se.replace(fR,function(me,ce){return ce.toUpperCase()})),se}(x.slice(0,Q)).trim(),ae=function(se){const me=se[0];return(me==='"'||me==="'")&&se.length>=2&&se[se.length-1]===me?se.slice(1,-1):se}(x.slice(Q+1).trim()),ye=mb[W]||W;if(ye==="ref")return H;const Ee=H[ye]=function(se,me,ce,Pe){return me==="style"?function(ve){const z=[];let K="",ee=!1,Ae=!1,O="";if(!ve)return z;for(let $=0;$<ve.length;$++){const Y=ve[$];if(Y!=='"'&&Y!=="'"||ee||(Ae?Y===O&&(Ae=!1,O=""):(Ae=!0,O=Y)),Y==="("&&K.endsWith("url")?ee=!0:Y===")"&&ee&&(ee=!1),Y!==";"||Ae||ee)K+=Y;else{const te=K.trim();if(te){const re=te.indexOf(":");if(re>0){const ue=te.slice(0,re).trim(),We=te.slice(re+1).trim();z.push([ue,We])}}K=""}}const k=K.trim();if(k){const $=k.indexOf(":");if($>0){const Y=k.slice(0,$).trim(),te=k.slice($+1).trim();z.push([Y,te])}}return z}(ce).reduce(function(ve,[z,K]){return ve[z.replace(/(-[a-z])/g,ee=>ee[1].toUpperCase())]=Pe(K,se,z),ve},{}):FO.indexOf(me)!==-1?Pe(Qn(ce),se,me):(ce.match(lR)&&(ce=Qn(ce.slice(1,ce.length-1))),ce==="true"||ce!=="false"&&ce)}(_,W,ae,s);typeof Ee=="string"&&(fd.test(Ee)||dd.test(Ee))&&(H[ye]=m(Ee.trim()))}else x!=="style"&&(H[mb[x]||x]=!0);return H},{}):null}const b=[],E={},A={0:{t:[">"],o:Sr(gb),i:1,u(_,C,S){const[,H,x]=_[0].replace(XO,"").match(ZO);return{alert:H,children:C(x,S)}},l(_,C,S){const H={key:S.key};return _.alert&&(H.className="markdown-alert-"+i(_.alert.toLowerCase(),Is),_.children.unshift({attrs:{},children:[{type:"27",text:_.alert}],noInnerParse:!0,type:"11",tag:"header"})),h("blockquote",H,C(_.children,S))}},1:{o:Ho(QO),i:1,u:md,l:(_,C,S)=>h("br",{key:S.key})},2:{t:_=>{const C=_[0];return C==="-"||C==="*"||C==="_"},o:Sr(KO),i:1,u:md,l:(_,C,S)=>h("hr",{key:S.key})},3:{t:[" "],o:Sr(bb),i:0,u:_=>({lang:void 0,text:Qn($s(_[0].replace(/^ {4}/gm,"")))}),l:(_,C,S)=>h("pre",{key:S.key},h("code",ja({},_.attrs,{className:_.lang?"lang-"+_.lang:""}),_.text))},4:{t:["```","~~~"],o:Sr(yb),i:0,u:_=>({attrs:p("code",_[3]||""),lang:_[2]||void 0,text:_[4],type:"3"})},5:{t:["`"],o:ia($O),i:3,u:_=>({text:Qn(_[2])}),l:(_,C,S)=>h("code",{key:S.key},_.text)},6:{t:["[^"],o:Sr(eR),i:0,u:_=>(b.push({footnote:_[2],identifier:_[1]}),{}),l:pd},7:{t:["[^"],o:aa(tR),i:1,u:_=>({target:"#"+i(_[1],Is),text:_[1]}),l:(_,C,S)=>h("a",{key:S.key,href:s(_.target,"a","href")},h("sup",{key:S.key},_.text))},8:{t:["[ ]","[x]"],o:aa(aR),i:1,u:_=>({completed:_[1].toLowerCase()==="x"}),l:(_,C,S)=>h("input",{checked:_.completed,key:S.key,readOnly:!0,type:"checkbox"})},9:{t:["#"],o:Sr(r.enforceAtxHeadings?_b:vb),i:1,u:(_,C,S)=>({children:Po(C,_[2],S),id:i(_[2],Is),level:_[1].length}),l:(_,C,S)=>h("h"+_.level,{id:_.id,key:S.key},C(_.children,S))},10:{o:Sr(Eb),i:0,u:(_,C,S)=>({children:Po(C,_[1],S),level:_[2]==="="?1:2,type:"9"})},11:{t:["<"],o:Ho(fd),i:1,u(_,C,S){const[,H]=_[3].match(MR),x=RegExp("^"+H,"gm"),Q=_[3].replace(x,""),W=(ae=Q,d.some(ce=>ce.test(ae))?PR:Po);var ae;const ye=_[1].toLowerCase(),Ee=qO.indexOf(ye)!==-1,se=(Ee?ye:_[1]).trim(),me={attrs:p(se,_[2]),noInnerParse:Ee,tag:se};if(S.inAnchor=S.inAnchor||ye==="a",Ee)me.text=_[3];else{const ce=S.inHTML;S.inHTML=!0,me.children=W(C,Q,S),S.inHTML=ce}return S.inAnchor=!1,me},l:(_,C,S)=>h(_.tag,ja({key:S.key},_.attrs),_.text||(_.children?C(_.children,S):""))},13:{t:["<"],o:Ho(dd),i:1,u(_){const C=_[1].trim();return{attrs:p(C,_[2]||""),tag:C}},l:(_,C,S)=>h(_.tag,ja({},_.attrs,{key:S.key}))},12:{t:["<!--"],o:Ho(Sb),i:1,u:()=>({}),l:pd},14:{t:["!["],o:ia(IR),i:1,u:_=>({alt:Qn(_[1]),target:Qn(_[2]),title:Qn(_[3])}),l:(_,C,S)=>h("img",{key:S.key,alt:_.alt||void 0,title:_.title||void 0,src:s(_.target,"img","src")})},15:{t:["["],o:aa(jR),i:3,u:(_,C,S)=>({children:VR(C,_[1],S),target:Qn(_[2]),title:Qn(_[3])}),l:(_,C,S)=>h("a",{key:S.key,href:s(_.target,"a","href"),title:_.title},C(_.children,S))},16:{t:["<"],o:aa(cR),i:0,u:_=>({children:[{text:_[1],type:"27"}],target:_[1],type:"15"})},17:{t:(_,C)=>!C.inAnchor&&!r.disableAutoLink&&(Vo(_,"http://")||Vo(_,"https://")),o:aa(oR),i:0,u:_=>({children:[{text:_[1],type:"27"}],target:_[1],title:void 0,type:"15"})},18:{t:["<"],o:aa(uR),i:0,u(_){let C=_[1],S=_[1];return PO.test(S)||(S="mailto:"+S),{children:[{text:C.replace("mailto:",""),type:"27"}],target:S,type:"15"}}},20:Ab(h,1),33:Ab(h,2),19:{o:Sr(WO),i:3,u:md,l:()=>`
102
102
  `},21:{o:Ci(function(_,C){if(C.inline||C.simple||C.inHTML&&_.indexOf(`
103
103
 
104
104
  `)===-1&&C.prevCapture.indexOf(`
105
105
 
106
106
  `)===-1)return null;let S="";_.split(`
107
- `).every(O=>(O+=`
108
- `,!c.some(Q=>Q.test(O))&&(S+=O,!!O.trim())));const H=$s(S);return H===""?null:[S,,H]}),i:3,u:dd,l:(_,C,S)=>h("p",{key:S.key},C(_.children,S))},22:{t:["["],o:aa(dR),i:0,u:_=>(E[_[1]]={target:_[2],title:_[4]},{}),l:md},23:{t:["!["],o:ia(hR),i:0,u:_=>({alt:_[1]?Qn(_[1]):void 0,ref:_[2]}),l:(_,C,S)=>E[_.ref]?h("img",{key:S.key,alt:_.alt,src:s(E[_.ref].target,"img","src"),title:E[_.ref].title}):null},24:{t:_=>_[0]==="["&&_.indexOf("](")===-1,o:aa(mR),i:0,u:(_,C,S)=>({children:C(_[1],S),fallbackChildren:_[0],ref:_[2]}),l:(_,C,S)=>E[_.ref]?h("a",{key:S.key,href:s(E[_.ref].target,"a","href"),title:E[_.ref].title},C(_.children,S)):h("span",{key:S.key},_.fallbackChildren)},25:{t:["|"],o:Sr(Tb),i:1,u:GR,l(_,C,S){const H=_;return h("table",{key:S.key},h("thead",null,h("tr",null,H.header.map(function(O,Q){return h("th",{key:Q,style:xb(H,Q)},C(O,S))}))),h("tbody",null,H.cells.map(function(O,Q){return h("tr",{key:Q},O.map(function(W,ae){return h("td",{key:ae,style:xb(H,ae)},C(W,S))}))})))}},27:{o:Ci(function(_,C){let S;return Vo(_,":")&&(S=OR.exec(_)),S||wR.exec(_)}),i:4,u(_){const C=_[0];return{text:C.indexOf("&")===-1?C:C.replace(aR,(S,H)=>r.namedCodesToUnicode[H]||S)}},l:_=>_.text},28:{t:["**","__"],o:ia(ER),i:2,u:(_,C,S)=>({children:C(_[2],S)}),l:(_,C,S)=>h("strong",{key:S.key},C(_.children,S))},29:{t:_=>{const C=_[0];return(C==="*"||C==="_")&&_[1]!==C},o:ia(SR),i:3,u:(_,C,S)=>({children:C(_[2],S)}),l:(_,C,S)=>h("em",{key:S.key},C(_.children,S))},30:{t:["\\"],o:ia(xR),i:1,u:_=>({text:_[1],type:"27"})},31:{t:["=="],o:ia(TR),i:3,u:dd,l:(_,C,S)=>h("mark",{key:S.key},C(_.children,S))},32:{t:["~~"],o:ia(AR),i:3,u:dd,l:(_,C,S)=>h("del",{key:S.key},C(_.children,S))}};r.disableParsingRawHTML===!0&&(delete A[11],delete A[13]);const U=function(_){var C=Object.keys(_);function S(H,O){var Q=[];if(O.prevCapture=O.prevCapture||"",H.trim())for(;H;)for(var W=0;W<C.length;){var ae=C[W],ye=_[ae];if(!ye.t||IR(H,O,ye.t)){var Ee=ye.o(H,O);if(Ee&&Ee[0]){H=H.substring(Ee[0].length);var se=ye.u(Ee,S,O);O.prevCapture+=Ee[0],se.type||(se.type=ae),Q.push(se);break}W++}else W++}return O.prevCapture="",Q}return C.sort(function(H,O){return _[H].i-_[O].i||(H<O?-1:1)}),function(H,O){return S(function(Q){return Q.replace(Wx,`
109
- `).replace(tR,"").replace(gR," ")}(H),O)}}(A),R=(q=function(_,C){return function(S,H,O){const Q=_[S.type].l;return C?C(()=>Q(S,H,O),S,H,O):Q(S,H,O)}}(A,r.renderRule),function _(C,S={}){if(Array.isArray(C)){const H=S.key,O=[];let Q=!1;for(let W=0;W<C.length;W++){S.key=W;const ae=_(C[W],S),ye=typeof ae=="string";ye&&Q?O[O.length-1]+=ae:ae!==null&&O.push(ae),Q=ye}return S.key=H,O}return q(C,_,S)});var q;const G=m(t);return b.length?h("div",null,G,h("footer",{key:"footer"},b.map(function(_){return h("div",{id:i(_.identifier,Is),key:_.identifier},_.identifier,R(U(_.footnote,{inline:!0})))}))):G}const xr=t=>{let{children:r="",options:i}=t,s=function(u,c){if(u==null)return{};var d,h,m={},p=Object.keys(u);for(h=0;h<p.length;h++)c.indexOf(d=p[h])>=0||(m[d]=u[d]);return m}(t,zx);return B.cloneElement(YR(r,i),s)},XR="_generalConditionsContainer_55hjg_1",ZR="_generalConditions_55hjg_1",QR="_generalConditionsHeader_55hjg_15",KR="_generalConditionsBody_55hjg_26",$R="_generalConditionsAccept_55hjg_35",zs={generalConditionsContainer:XR,generalConditions:ZR,generalConditionsHeader:QR,generalConditionsBody:KR,generalConditionsAccept:$R},WR=()=>y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"currentColor",viewBox:"0 0 256 256",children:y.jsx("path",{d:"M212.24,100.24l-80,80a6,6,0,0,1-8.48,0l-80-80a6,6,0,0,1,8.48-8.48L128,167.51l75.76-75.75a6,6,0,0,1,8.48,8.48Z"})}),JR=()=>y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"currentColor",viewBox:"0 0 256 256",children:y.jsx("path",{d:"M212.24,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"})}),ew="general-conditions.header",tw="general-conditions.body",Rb="general-conditions.accept-conditions-note",nw=()=>{const t=Ze(),[r,i]=B.useState(!1),s=()=>i(!r),u=h=>{h.key==="ArrowDown"||h.key==="ArrowRight"?i(!0):h.key==="ArrowUp"||h.key==="ArrowLeft"||h.key==="Escape"?i(!1):(h.key==="Enter"||h.key==="Space"||h.key===" ")&&s()},c=t(ew),d=t(Rb);return y.jsxs("div",{className:Z(zs.generalConditionsContainer,"chat__generalConditions"),children:[!!c?.length&&y.jsxs("div",{className:zs.generalConditions,children:[y.jsxs("div",{role:"button",onClick:s,onKeyDown:u,tabIndex:0,className:Z(zs.generalConditionsHeader,"chat__generalConditions__header"),"aria-controls":"general-conditions-body","aria-expanded":r?"true":"false","aria-pressed":r?"true":"false",children:[y.jsx(xr,{children:c}),r?y.jsx(JR,{}):y.jsx(WR,{})]}),y.jsx("div",{className:Z(zs.generalConditionsBody,"chat__generalConditions__body"),id:"general-conditions-body",role:"region",tabIndex:-1,children:r&&y.jsx(xr,{children:t(tw)||""})})]}),!!d?.length&&y.jsx("div",{className:Z(zs.generalConditionsAccept,"chat__generalConditions__accept"),tabIndex:0,children:y.jsx(xr,{children:t(Rb)||""})})]})},rw="_messageContainer_10k0p_1",aw="_message_10k0p_1",iw="_messageBot_10k0p_14",sw="_messageBotLast_10k0p_43",lw="_avatar_10k0p_43",ow="_messageBotFirst_10k0p_52",uw="_messageBotAnimated_10k0p_65",cw="_messageGuest_10k0p_76",fw="_messageGuestFirst_10k0p_82",dw="_messageGuestLast_10k0p_88",hw="_botAvatar_10k0p_102",mw="_agentAvatar_10k0p_106",pw="_bubble_10k0p_110",gw="_bubbleContent_10k0p_116",yw="_bubbleLeft_10k0p_130",bw="_leftText_10k0p_141",vw="_bubbleRight_10k0p_148",_w="_rightText_10k0p_158",Ew="_sourceInfoReference_10k0p_190",Sw="_sourceInfoReferenceActive_10k0p_202",ge={messageContainer:rw,message:aw,messageBot:iw,messageBotLast:sw,avatar:lw,messageBotFirst:ow,messageBotAnimated:uw,messageGuest:cw,messageGuestFirst:fw,messageGuestLast:dw,botAvatar:hw,agentAvatar:mw,bubble:pw,bubbleContent:gw,bubbleLeft:yw,leftText:bw,bubbleRight:vw,rightText:_w,sourceInfoReference:Ew,sourceInfoReferenceActive:Sw},Zh=(t,r)=>{B.useEffect(()=>{const i=s=>{t.current&&!t.current.contains(s.target)&&r()};return document.addEventListener("mousedown",i),()=>document.removeEventListener("mousedown",i)},[t,r])},Tw="_container_131ib_1",Aw="_categoryContainer_131ib_13",Ow="_categoryButton_131ib_20",xw="_active_131ib_35",Rw="_commentTextarea_131ib_44",Gs={container:Tw,categoryContainer:Aw,categoryButton:Ow,active:xw,commentTextarea:Rw},ww=({open:t,reaction:r,onReaction:i})=>{const s=Ze();if(!t)return null;const u=d=>{i({...r,category:r.category===d?void 0:d})},c=d=>i({...r,comment:d.target.value});return y.jsxs("div",{className:Gs.container,role:"dialog","aria-modal":"true","aria-labelledby":"bad-reaction-title",children:[y.jsx("h2",{id:"bad-reaction-title",children:s("bot-bubble.reaction.say-more")}),y.jsx("div",{className:Gs.categoryContainer,role:"radiogroup",children:["WRONG_INFORMATION","MISSING_INFORMATION","OLD_INFORMATION","UNCLEAR","OFF_TOPIC"].map(d=>y.jsx("button",{className:Z(Gs.categoryButton,r?.category===d&&Gs.active),onClick:()=>u(d),"aria-pressed":r?.category===d,"aria-label":s(`bot-bubble.reaction.category.${d}`),tabIndex:0,role:"radio",children:s(`bot-bubble.reaction.category.${d}`)},d))}),y.jsx("textarea",{id:"comment",name:"comment",placeholder:s("bot-bubble.reaction.comment"),defaultValue:r?.comment,onBlur:c,className:Gs.commentTextarea,rows:3,"aria-label":s("bot-bubble.reaction.comment")})]})},Cw="_botMessageActionContainer_1y27p_1",Nw="_alwaysVisible_1y27p_11",Mw="_active_1y27p_15",Dw="_botMessageActionInnerContainer_1y27p_23",Lw="_header_1y27p_48",Bw="_botMessageActions_1y27p_53",Uw="_reported_1y27p_63",Hw="_action_1y27p_66",jw="_wave_1y27p_79",Iw="_closeButton_1y27p_161",ct={botMessageActionContainer:Cw,alwaysVisible:Nw,active:Mw,botMessageActionInnerContainer:Dw,header:Lw,botMessageActions:Bw,reported:Uw,action:Hw,wave:jw,closeButton:Iw},zw=({isSubmitting:t,onClick:r})=>{const i=Ze();return y.jsx("button",{className:Z(ct.action,ct.closeButton,"tooltip--bottom-left"),"aria-label":i("bot-bubble.reaction.close"),"data-title":i("bot-bubble.reaction.close"),tabIndex:0,onClick:r,children:y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",children:t?y.jsx("path",{d:"M229.66,77.66l-128,128a8,8,0,0,1-11.32,0l-56-56a8,8,0,0,1,11.32-11.32L96,188.69,218.34,66.34a8,8,0,0,1,11.32,11.32Z"}):y.jsx("path",{d:"M205.66,194.34a8,8,0,0,1-11.32,11.32L128,139.31,61.66,205.66a8,8,0,0,1-11.32-11.32L116.69,128,50.34,61.66A8,8,0,0,1,61.66,50.34L128,116.69l66.34-66.35a8,8,0,0,1,11.32,11.32L139.31,128Z"})})})},Gw=({alwaysVisible:t,senderType:r,reaction:i,botMessageRef:s,message:u,onReaction:c})=>{const d=Ze(),[h,m]=B.useState(!1),[p,b]=B.useState(!1),[E,A]=B.useState(!1),U=B.useRef(null),R=B.useRef(null);Zh(U,()=>{A(!1)});const q=H=>{H.key==="Escape"&&A(!1)};B.useEffect(()=>(document.addEventListener("keydown",q),()=>{document.removeEventListener("keydown",q)}),[]),B.useEffect(()=>{E&&U.current?.scrollIntoView({behavior:"smooth",block:"nearest",inline:"nearest"})},[E]);const G=H=>{R.current&&clearTimeout(R.current),b(!0),c(H),R.current=setTimeout(()=>{b(!1)},1e3)},_=B.useCallback(async()=>{if(s.current)try{m(!0);const H=s.current.innerHTML,O=s.current.innerText;await navigator.clipboard.write([new ClipboardItem({"text/html":new Blob([H],{type:"text/html"}),"text/plain":new Blob([O],{type:"text/plain"})})]),await new Promise(Q=>setTimeout(Q,1500))}finally{m(!1)}},[s]),C=()=>{A(!1),c(i?.type==="GOOD"?null:{type:"GOOD"})},S=()=>{c({...u.reaction,type:"BAD"}),A(!E)};return y.jsx("div",{ref:U,className:Z(ct.botMessageActionContainer,t&&ct.alwaysVisible,E&&ct.active),children:y.jsxs("div",{className:Z(ct.botMessageActionInnerContainer,t&&ct.alwaysVisible,E&&ct.active,i&&ct.reported),role:"group",children:[y.jsxs("div",{className:ct.header,children:[y.jsxs("div",{className:Z(ct.botMessageActions,i&&ct.reported),children:[r===au.BOT&&y.jsx("button",{className:Z(ct.action,ct.wave,i?.type==="GOOD"&&ct.reported,"tooltip--top-right"),tabIndex:0,"aria-label":d(i?.type==="GOOD"?"bot-bubble.reaction.remove":"bot-bubble.reaction.good"),"aria-pressed":i?.type==="GOOD","data-title":d(i?.type==="GOOD"?"bot-bubble.reaction.remove":"bot-bubble.reaction.good"),onClick:C,children:y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",children:i?.type==="GOOD"?y.jsx("path",{d:"M234,80.12A24,24,0,0,0,216,72H160V56a40,40,0,0,0-40-40,8,8,0,0,0-7.16,4.42L75.06,96H32a16,16,0,0,0-16,16v88a16,16,0,0,0,16,16H204a24,24,0,0,0,23.82-21l12-96A24,24,0,0,0,234,80.12ZM32,112H72v88H32Z"}):y.jsx("path",{d:"M234,80.12A24,24,0,0,0,216,72H160V56a40,40,0,0,0-40-40,8,8,0,0,0-7.16,4.42L75.06,96H32a16,16,0,0,0-16,16v88a16,16,0,0,0,16,16H204a24,24,0,0,0,23.82-21l12-96A24,24,0,0,0,234,80.12ZM32,112H72v88H32ZM223.94,97l-12,96a8,8,0,0,1-7.94,7H88V105.89l36.71-73.43A24,24,0,0,1,144,56V80a8,8,0,0,0,8,8h64a8,8,0,0,1,7.94,9Z"})})}),r===au.BOT&&y.jsx("button",{className:Z(ct.action,ct.wave,i?.type==="BAD"&&ct.reported,"tooltip--top-right"),tabIndex:0,"aria-label":d("bot-bubble.reaction.bad"),"aria-pressed":i?.type==="BAD","data-title":d("bot-bubble.reaction.bad"),onClick:S,children:y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",children:i?.type==="BAD"?y.jsx("path",{d:"M239.82,157l-12-96A24,24,0,0,0,204,40H32A16,16,0,0,0,16,56v88a16,16,0,0,0,16,16H75.06l37.78,75.58A8,8,0,0,0,120,240a40,40,0,0,0,40-40V184h56a24,24,0,0,0,23.82-27ZM72,144H32V56H72Z"}):y.jsx("path",{d:"M239.82,157l-12-96A24,24,0,0,0,204,40H32A16,16,0,0,0,16,56v88a16,16,0,0,0,16,16H75.06l37.78,75.58A8,8,0,0,0,120,240a40,40,0,0,0,40-40V184h56a24,24,0,0,0,23.82-27ZM72,144H32V56H72Zm150,21.29a7.88,7.88,0,0,1-6,2.71H152a8,8,0,0,0-8,8v24a24,24,0,0,1-19.29,23.54L88,150.11V56H204a8,8,0,0,1,7.94,7l12,96A7.87,7.87,0,0,1,222,165.29Z"})})}),y.jsx("button",{className:Z(ct.action,ct.wave,"tooltip--top-right"),style:{visibility:E?"hidden":"visible"},tabIndex:0,"aria-label":d("bot-bubble.copy"),"data-title":d("bot-bubble.copy"),onClick:_,children:y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",children:h?y.jsx("path",{d:"M229.66,77.66l-128,128a8,8,0,0,1-11.32,0l-56-56a8,8,0,0,1,11.32-11.32L96,188.69,218.34,66.34a8,8,0,0,1,11.32,11.32Z"}):y.jsx("path",{d:"M216,32H88a8,8,0,0,0-8,8V80H40a8,8,0,0,0-8,8V216a8,8,0,0,0,8,8H168a8,8,0,0,0,8-8V176h40a8,8,0,0,0,8-8V40A8,8,0,0,0,216,32ZM160,208H48V96H160Zm48-48H176V88a8,8,0,0,0-8-8H96V48H208Z"})})})]}),E&&y.jsx(zw,{isSubmitting:p,onClick:()=>A(!1)})]}),u.reaction&&y.jsx(ww,{open:E,reaction:u.reaction,onReaction:G})]})})},Pv=B.forwardRef(({message:t,isAnimated:r,isLastMessage:i,isFirstMessageBySender:s,isLastMessageBySender:u,children:c,onReaction:d},h)=>{const m=Ze(),p=B.useRef(null),b=t.sender.type===Te.UserType.BOT;return y.jsxs("li",{ref:h,className:Z(ge.message,ge.messageBot,i&&ge.lastMessage,s&&ge.messageBotFirst,u&&ge.messageBotLast,"chat__bubbleContainer",r&&ge.messageBotAnimated,r&&"chat__bubbleContainer--animated",b?"chat__botBubbleContainer":"chat__agentBubbleContainer",s&&"chat__bubbleContainer--first",u&&"chat__bubbleContainer--last"),children:[y.jsx("img",{className:Z(ge.avatar,b?ge.botAvatar:ge.agentAvatar,"chat__avatar",b?"chat__botAvatar":"chat__agentAvatar"),src:`${t.sender.avatar}`,alt:b?"Bot":"Agent",referrerPolicy:"no-referrer"}),y.jsxs("div",{className:ge.messageContainer,children:[y.jsx("div",{ref:p,className:Z(ge.bubble,ge.bubbleLeft,"chat__bubble",b?"chat__botBubble":"chat__agentBubble"),tabIndex:0,"aria-label":m(b?"bot-bubble.label":"agent-bubble.label"),children:y.jsx("div",{className:Z(ge.leftText),children:c})}),d&&y.jsx(Gw,{alwaysVisible:i&&u,senderType:t.sender.type,reaction:t.reaction,message:t,botMessageRef:p,onReaction:d})]})]})}),kw="_sourceList_1n31h_1",qw="_source_1n31h_1",Fw="_label_1n31h_37",gd={sourceList:kw,source:qw,label:Fw},Yv=t=>y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",...t,children:y.jsx("path",{d:"M52,146H36a6,6,0,0,0-6,6v56a6,6,0,0,0,6,6H52a34,34,0,0,0,0-68Zm0,56H42V158H52a22,22,0,0,1,0,44Zm168.15-5.46a6,6,0,0,1,.18,8.48A28.06,28.06,0,0,1,200,214c-16.54,0-30-15.25-30-34s13.46-34,30-34a28.06,28.06,0,0,1,20.33,9,6,6,0,0,1-8.66,8.3A16.23,16.23,0,0,0,200,158c-9.93,0-18,9.87-18,22s8.07,22,18,22a16.23,16.23,0,0,0,11.67-5.28A6,6,0,0,1,220.15,196.54ZM128,146c-16.54,0-30,15.25-30,34s13.46,34,30,34,30-15.25,30-34S144.54,146,128,146Zm0,56c-9.93,0-18-9.87-18-22s8.07-22,18-22,18,9.87,18,22S137.93,202,128,202ZM48,118a6,6,0,0,0,6-6V40a2,2,0,0,1,2-2h90V88a6,6,0,0,0,6,6h50v18a6,6,0,0,0,12,0V88a6,6,0,0,0-1.76-4.24l-56-56A6,6,0,0,0,152,26H56A14,14,0,0,0,42,40v72A6,6,0,0,0,48,118ZM158,46.48,193.52,82H158Z"})}),Xv=t=>y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",...t,children:y.jsx("path",{d:"M212.24,83.76l-56-56A6,6,0,0,0,152,26H56A14,14,0,0,0,42,40V216a14,14,0,0,0,14,14H200a14,14,0,0,0,14-14V88A6,6,0,0,0,212.24,83.76ZM158,46.48,193.52,82H158ZM200,218H56a2,2,0,0,1-2-2V40a2,2,0,0,1,2-2h90V88a6,6,0,0,0,6,6h50V216A2,2,0,0,1,200,218Z"})}),Zv=t=>y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",...t,children:y.jsx("path",{d:"M222,152a6,6,0,0,1-6,6H190v20h18a6,6,0,0,1,0,12H190v18a6,6,0,0,1-12,0V152a6,6,0,0,1,6-6h32A6,6,0,0,1,222,152ZM90,172a26,26,0,0,1-26,26H54v10a6,6,0,0,1-12,0V152a6,6,0,0,1,6-6H64A26,26,0,0,1,90,172Zm-12,0a14,14,0,0,0-14-14H54v28H64A14,14,0,0,0,78,172Zm84,8a34,34,0,0,1-34,34H112a6,6,0,0,1-6-6V152a6,6,0,0,1,6-6h16A34,34,0,0,1,162,180Zm-12,0a22,22,0,0,0-22-22H118v44h10A22,22,0,0,0,150,180ZM42,112V40A14,14,0,0,1,56,26h96a6,6,0,0,1,4.25,1.76l56,56A6,6,0,0,1,214,88v24a6,6,0,0,1-12,0V94H152a6,6,0,0,1-6-6V38H56a2,2,0,0,0-2,2v72a6,6,0,0,1-12,0ZM158,82h35.52L158,46.48Z"})}),Qv=t=>y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",...t,children:y.jsx("path",{d:"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"})}),Vw=({type:t,...r})=>{switch(t){case"WEBSITE":return y.jsx(Qv,{...r});case"PDF":return y.jsx(Zv,{...r});case"DOCX":return y.jsx(Yv,{...r});default:return y.jsx(Xv,{...r})}},Qh=({sources:t,onLinkClick:r})=>{const i=Ze(),s=c=>()=>{r(c.url)},u=c=>d=>{(d.key==="Enter"||d.key===" ")&&r(c.url)};return t.length?y.jsx("ul",{className:gd.sourceList,"aria-label":i("bot-bubble.sources"),children:t.map(c=>y.jsx("li",{className:gd.source,children:y.jsxs("a",{role:"button",tabIndex:0,"aria-label":`${i("bot-bubble.source.open")}: ${c.label}`,onClick:s(c),onKeyDown:u(c),children:[y.jsx(Vw,{type:c.type,"aria-hidden":"true"}),y.jsx("div",{className:gd.label,children:c.label})]})},c.url))}):null},Pw="_button_3ui4g_1",Yw="_buttonDefault_3ui4g_13",Xw="_buttonPrimary_3ui4g_28",el={button:Pw,buttonDefault:Yw,buttonPrimary:Xw},_u=({className:t,children:r,...i})=>y.jsx("button",{className:Z(el.button,t),type:"button",role:"button",...i,children:r}),Zw="_title_137pi_1",Qw="_buttons_137pi_6",Kw="_button_137pi_6",$w="_imageContainer_137pi_29",Ww="_image_137pi_29",Jw="_video_container_137pi_44",e6="_video_137pi_44",t6="_only_137pi_58",on={title:Zw,buttons:Qw,button:Kw,imageContainer:$w,image:Ww,video_container:Jw,video:e6,only:t6},n6=({buttons:t,onButtonClick:r})=>y.jsx("div",{className:Z(on.buttons,"chat__bubbleButtons"),children:t.map((i,s)=>y.jsx(_u,{className:Z(on.button,"chat__bubbleButton"),onClick:()=>r(i),children:i.title},s))}),wb="newtab#",Kv=({markdown:t,markdownOptions:r={},onLinkClick:i})=>{const s=c=>d=>(d.preventDefault(),c&&i(c),!1),u=({title:c,href:d,children:h})=>d.indexOf(wb)===0?y.jsx("a",{href:d.slice(wb.length),title:c,target:"_blank",rel:"noopener noreferrer",children:h}):y.jsx("a",{onClick:s(d),title:c,href:d,children:h});return y.jsx(xr,{options:{...r,overrides:{a:u}},children:t})},r6=({text:t,onLinkClick:r})=>t?y.jsx("div",{children:y.jsx(Kv,{markdown:t,onLinkClick:r})}):null,a6=({title:t})=>t?y.jsx("h1",{className:on.title,children:t}):null,i6=({title:t,text:r,buttons:i,onButtonClick:s,onLinkClick:u})=>t?.length||r?.length||i?.length?y.jsxs("div",{className:Z(ge.bubbleContent),children:[y.jsx(a6,{title:t}),y.jsx(r6,{text:r,onLinkClick:u}),y.jsx(n6,{buttons:i,onButtonClick:s})]}):null,s6=({alt:t,imageUrl:r,itemUrl:i,hasBody:s})=>r?i?i.indexOf("youtube.com")>-1?y.jsx("div",{className:on.video_container,children:y.jsx("iframe",{className:Z(on.video,{[on.only]:!s}),title:"Youtube",width:"100%",src:i+"?rel=0",frameBorder:"0",allowFullScreen:!0})}):y.jsx("a",{href:i,target:"_blank",rel:"noopener noreferrer",children:y.jsx("div",{className:on.imageContainer,children:y.jsx("img",{className:Z(on.image,{[on.only]:!s}),src:r,alt:t})})}):y.jsx("div",{className:on.imageContainer,children:y.jsx("img",{className:Z(on.image,{[on.only]:!s}),src:r,alt:t})}):null,l6=({title:t,text:r,imageUrl:i,itemUrl:s,buttons:u,sources:c,onButtonClick:d,onLinkClick:h})=>{const m=!!t?.length||!!r?.length||!!u?.length;return y.jsxs("div",{className:Z(on.detailMessage),children:[y.jsx(s6,{hasBody:m,imageUrl:i,itemUrl:s,alt:t||""}),m&&y.jsx(i6,{title:t,text:r,buttons:u,onLinkClick:h,onButtonClick:d}),y.jsx(Qh,{sources:c,onLinkClick:h})]})},o6=B.forwardRef(({isFirstMessageBySender:t,isLastMessageBySender:r,children:i},s)=>{const u=Ze();return y.jsx("li",{ref:s,className:Z(ge.message,ge.messageGuest,t&&ge.messageGuestFirst,r&&ge.messageGuestLast,"chat__bubbleContainer","chat__guestBubbleContainer",t&&"chat__bubbleContainer--first",r&&"chat__bubbleContainer--last"),children:y.jsx("div",{className:Z(ge.bubble,ge.bubbleRight,"chat__bubble","chat__guestBubble"),tabIndex:0,"aria-label":u("guest-bubble.label"),children:y.jsx("div",{className:Z(ge.rightText),children:i})})})}),u6="_markdown_nw7vg_1",$v={markdown:u6},Wv=()=>c6(window.location.pathname),c6=t=>{const r=t.split("/"),i=t.endsWith("/");return r[r.length-(i?2:1)]},Eu=()=>B.useMemo(()=>Wv(),[]),jo="source-info-reference",f6=({actionId:t,markdown:r,sources:i,onLinkClick:s})=>{const u=Eu(),c=Nr(),d=d6(),h=it(b=>{const E=b.chat.sourceInfos;if(E?.type==="loaded"||E?.type==="loading")return E.chunkId}),m=b=>E=>{const A=E.key;(A==="ArrowDown"||A==="ArrowRight"||A==="Enter"||A===" "||A==="Space")&&(E.stopPropagation(),c(fb(u,t,b)))},p=b=>()=>{c(fb(u,t,b))};return B.useLayoutEffect(()=>{document.querySelectorAll(`.${jo}`).forEach(b=>{const E=b.previousSibling;E&&E.nodeType===Node.TEXT_NODE&&E.textContent?.endsWith(" ")&&E.textContent?.trim().length&&b.classList.add(`${jo}--before-space`);const A=b.nextSibling;A&&A.nodeType===Node.TEXT_NODE&&A.textContent?.startsWith(" ")&&A.textContent?.trim().length&&b.classList.add(`${jo}--after-space`)})},[r]),y.jsxs("div",{className:ge.bubbleContent,children:[y.jsx("div",{className:$v.markdown,children:y.jsx(Kv,{markdown:r,onLinkClick:s,markdownOptions:{renderRule(b,E,A,U){if(E.type===Gx.footnoteReference){const R=E.text===h;return y.jsx("span",{className:Z(ge.sourceInfoReference,R&&ge.sourceInfoReferenceActive,jo),children:y.jsx("a",{type:"button",tabIndex:0,onClick:p(E.text),onKeyDown:m(E.text),children:d(E.text)})},U.key)}return b()}}})}),y.jsx(Qh,{sources:i,onLinkClick:s})]})},d6=()=>{const t=[];return i=>{const s=t.indexOf(i);return s>-1?s+1:(t.push(i),t.length)}},h6="_text_gp0s0_1",m6="_command_gp0s0_5",Cb={text:h6,command:m6},p6=({text:t,commands:r=[]})=>{const i=r.find(u=>t.startsWith(`/${u}`)),s=i?t.slice(i.length+1):t;return y.jsxs("div",{children:[i&&y.jsxs("code",{className:Cb.command,children:["/",i]}),s.split(`
110
- `).map((u,c)=>y.jsxs("span",{className:Cb.text,children:[u,y.jsx("br",{})]},c))]})},g6=({text:t,commands:r,sources:i,onLinkClick:s})=>y.jsxs("div",{className:ge.bubbleContent,children:[y.jsx(p6,{text:t,commands:r}),y.jsx(Qh,{sources:i,onLinkClick:s})]}),y6=B.forwardRef(({message:t,commands:r,isLastMessage:i,isFirstMessageBySender:s,isLastMessageBySender:u,onReaction:c,onButtonClick:d,onLinkClick:h},m)=>{const p=b6(t._id,t,r,d,h),b=E=>{c(t._id,E)};switch(t.sender.type){case Te.UserType.GUEST:return y.jsx(o6,{ref:m,isFirstMessageBySender:s,isLastMessageBySender:u,children:p});default:return y.jsx(Pv,{ref:m,message:t,isAnimated:!1,isLastMessage:i,isFirstMessageBySender:s,isLastMessageBySender:u,onReaction:b,children:p})}}),b6=(t,r,i,s,u)=>{switch(r.type){case Te.MessageTypeEnum.TEXT:{const c=r;return y.jsx(g6,{text:c.text,commands:i,sources:r.sources||[],onLinkClick:u})}case Te.MessageTypeEnum.DETAIL:{const c=r;return y.jsx(l6,{title:c.title,text:c.text,imageUrl:c.imageUrl,itemUrl:c.itemUrl,buttons:c.buttons,sources:r.sources||[],onButtonClick:s,onLinkClick:u})}case Te.MessageTypeEnum.MARKDOWN:{const c=r;return y.jsx(f6,{actionId:t,markdown:c.markdown,sources:c.sources||[],onLinkClick:u})}}},v6=(t,r)=>t.message._id===r.message._id&&t.message.reaction===r.message.reaction&&t.isLastMessage===r.isLastMessage&&t.isFirstMessageBySender===r.isFirstMessageBySender&&t.isLastMessageBySender===r.isLastMessageBySender,_6=_1.memo(y6,v6),E6="_ticontainer_xg0dn_1",S6="_tiblock_xg0dn_5",T6="_tidot_xg0dn_12",ks={ticontainer:E6,tiblock:S6,tidot:T6},A6=({isTyping:t=!1})=>y.jsx("div",{className:ks.ticontainer,children:y.jsx("div",{className:ks.tiblock,children:t?y.jsxs(y.Fragment,{children:[y.jsx("div",{className:Z(ks.tidot,"chat__typingIndicator")}),y.jsx("div",{className:Z(ks.tidot,"chat__typingIndicator")}),y.jsx("div",{className:Z(ks.tidot,"chat__typingIndicator")})]}):null})}),O6=Object.assign({_id:"typing-indicator"},new Te.TextMessage("",new Te.BotUser)),x6=({messages:t,isBotTyping:r,commands:i,onTranscriptItemReaction:s,onButtonClick:u,onLinkClick:c})=>{const d=B.useRef(0),h=B.useRef(!0),m=B.useRef(null),p=B.useRef(null),b=B.useRef(null),E=it(R=>R.settings.enableGeneralConditions);B.useLayoutEffect(()=>{if(t.length&&m.current&&(d.current<t.length||r)){if(p.current){const R=p.current.offsetTop;m.current.scrollTop=R}else if(b.current){const R=b.current.offsetTop;m.current.scrollTop=R}h.current&&(h.current=!1),d.current=t.length}},[t,h,r]);let A;const U=t.length;return y.jsxs("div",{ref:m,className:Z(hb.messageContainer,"chat__messageContainer"),style:{scrollBehavior:t.length&&h.current?"auto":"smooth"},id:"MessageContainer",role:"log","aria-live":"polite",children:[E&&y.jsx(nw,{}),y.jsxs("ul",{className:hb.messages,children:[t.map((R,q)=>{const G=R6(R,A),_=w6(R,q,t,r);A=R.sender.type;const C=q+1===U,S=R._id||`added-${q}`;return y.jsx(_6,{ref:C?b:null,message:R,commands:i,isLastMessage:C,isFirstMessageBySender:G,isLastMessageBySender:_,onButtonClick:u,onLinkClick:c,onReaction:s},C&&!r?"last":S)}),r&&y.jsx(Pv,{ref:p,message:O6,isLastMessage:!1,isAnimated:!0,isFirstMessageBySender:A!==Te.UserType.BOT,isLastMessageBySender:!0,children:y.jsx(A6,{isTyping:!0})},"last")]})]})},R6=(t,r)=>!r||r!==t.sender.type,w6=(t,r,i,s)=>{const u=t.sender.type,c=i.length;return r+1===c?!(u===Te.UserType.BOT&&s):u!==i.at(r+1)?.sender.type},C6="_bottomSheet_jp8dl_1",N6="_bottomSheetOpen_jp8dl_15",M6="_bottomSheetClose_jp8dl_20",Rr={bottomSheet:C6,bottomSheetOpen:N6,bottomSheetClose:M6},D6="_container_xc2nx_1",Nb={container:D6},L6=({contentUrl:t})=>{const r=it(c=>c.connection.sessionId),[i,s]=B.useState(!1);B.useEffect(()=>{s(c=>c||!!t)},[t]);const u=B.useMemo(()=>{if(t&&r){const c=new URL(t,document.baseURI);return c.searchParams.set("sessionId",r),c.toString()}else return},[t,r]);return y.jsx("div",{className:Z(Nb.container,Rr.bottomSheet,{[Rr.bottomSheetOpen]:!!t,[Rr.bottomSheetClose]:i&&!t}),children:u&&y.jsx("iframe",{title:"Drawer",src:u,className:Nb.iframe})})},B6="_container_z787n_1",U6={container:B6},H6=({title:t,href:r,children:i})=>y.jsx("a",{href:r,title:t,target:"_blank",rel:"noopener noreferrer",children:i}),j6=()=>{const r=Ze()("powered-by");return r&&r.length?y.jsx("div",{className:Z(U6.container,"chat__poweredBy"),children:y.jsx(xr,{options:{overrides:{a:H6}},children:r})}):null},Jv=({className:t,children:r,...i})=>y.jsx(_u,{className:Z(el.buttonDefault,t),type:"button",...i,children:r}),iu=({className:t,children:r,...i})=>y.jsx(_u,{className:Z(el.buttonPrimary,t),...i,children:r}),I6="_container_h23mk_1",z6="_formContainer_h23mk_17",G6="_emailInput_h23mk_22",k6="_description_h23mk_52",q6="_actions_h23mk_57",F6="_validationError_h23mk_67",V6="_submitted_h23mk_74",La={container:I6,formContainer:z6,emailInput:G6,description:k6,actions:q6,validationError:F6,submitted:V6},P6=({visible:t,onEmailExport:r,onClose:i})=>{const s=Ze(),[u,c]=B.useState(void 0),[d,h]=B.useState(!1),[m,p]=B.useState(void 0),b=B.useRef(null);B.useEffect(()=>{t?(b.current?.focus(),h(!1),c(t)):u===!0&&c(!1)},[t,u]);const E=U=>{U.preventDefault(),m&&m.length>0&&(r(m),h(!0),setTimeout(i,3*1e3))},A=U=>{const R=U.target.value.trim(),q=/^\w+([.-]?\w+)*@\w+([.-]?\w+)*(\.\w{2,3})+$/.test(R);p(q?R:"")};return y.jsxs("div",{className:Z(La.container,Rr.bottomSheet,{[Rr.bottomSheetOpen]:u===!0,[Rr.bottomSheetClose]:u===!1}),children:[y.jsx("h2",{children:s("export-transcript.email.title")}),y.jsx(xr,{className:La.description,children:s("export-transcript.email.description")||""}),y.jsxs("form",{onSubmit:E,className:La.formContainer,children:[y.jsxs("div",{children:[y.jsx("input",{disabled:d,ref:b,type:"email",placeholder:s("export-transcript.email.placeholder"),className:La.emailInput,onChange:A}),m?.length===0?y.jsx("div",{className:La.validationError,children:s("export-transcript.email.invalid")}):null]}),y.jsxs("div",{className:La.actions,children:[y.jsx(Jv,{onClick:i,children:s("export-transcript.email.cancel")}),y.jsx(iu,{type:"submit",disabled:d||m===void 0||m.length===0,children:s("export-transcript.email.send")})]})]}),d&&y.jsx("div",{className:La.submitted,children:s("export-transcript.email.success")})]})},Y6="_inputContainer_fi5ao_1",X6={inputContainer:Y6},Z6="_blockUserInput_pot9c_1",Q6={blockUserInput:Z6},K6=({visible:t})=>{const r=Ze();return t?y.jsx("div",{className:Z(Q6.blockUserInput,"chat__blockUserInput"),children:r("block-user-input.title")}):null},$6="_commandsDropdown_5ytuv_1",W6="_commands_5ytuv_1",J6="_command_5ytuv_1",eC="_commandActive_5ytuv_46",tC="_commandsSelections_5ytuv_55",Qs={commandsDropdown:$6,commands:W6,command:J6,commandActive:eC,commandsSelections:tC},nC=(t,r,i,s,u)=>{B.useEffect(()=>{const c=d=>{if(t.length)switch(d.key){case"Enter":i(t[r]);break;case"ArrowUp":s(h=>h>0?h-1:t.length-1);break;case"ArrowDown":s(h=>h<t.length-1?h+1:0);break;case"Escape":u([]);break}};return document.addEventListener("keydown",c),()=>{document.removeEventListener("keydown",c)}},[t,r,i,s,u])},rC=({text:t,commands:r,onSelectCommand:i,onVisibilityChange:s})=>{const u=B.useRef(null),c=Ze(),[d,h]=B.useState([]),[m,p]=B.useState(Mb(r)),[b,E]=B.useState(0),A=U=>i(`/${U}`);return Zh(u,()=>h([])),nC(d,b,A,E,h),B.useEffect(()=>{p(Mb(r))},[r]),B.useEffect(()=>{const U=t.length||0;U===0||U>m||!t.startsWith("/")?h([]):h(r.filter(aC(t))),E(0)},[r,t,m]),B.useEffect(()=>{s(!!d.length)},[d,s]),d.length?y.jsx("div",{ref:u,className:Qs.commandsDropdown,children:y.jsx("ul",{id:"command-list",className:Qs.commands,role:"listbox",children:d.map((U,R)=>y.jsxs("li",{className:Z([Qs.command,b===R&&Qs.commandActive]),role:"option",onClick:()=>A(U),onMouseOver:()=>E(R),children:[y.jsxs("h1",{children:["/",U]}),y.jsx("p",{children:c(`commands.${U}`)})]},U))})}):null},Mb=t=>Math.max(...t.map(r=>r.length+1)),aC=t=>r=>{const i=`/${r}`;return i.startsWith(t)&&i.length>=t.length},Db=3,iC=({commands:t,onSelectCommand:r})=>{const i=Ze(),[s,u]=B.useState(!1),c=p=>()=>{r(`/${p}`),u(!1)},d=()=>{u(!0)},h=()=>{u(!1)},m=s?t:t.slice(0,Db);return y.jsxs("div",{className:Qs.commandsSelections,children:[m.map(p=>y.jsxs("button",{className:"tooltip--top-center","aria-label":i(`commands.${p}`),"data-title":i(`commands.${p}`),tabIndex:0,onClick:c(p),children:["/",p]},p)),m.length<t.length?y.jsx("button",{"aria-label":i("commands.show-more.tooltip"),"data-title":i("commands.show-more.tooltip"),tabIndex:0,onClick:d,children:i("commands.show-more.action")},"show-more"):m.length>Db?y.jsx("button",{"aria-label":i("commands.show-less.tooltip"),"data-title":i("commands.show-less.tooltip"),tabIndex:0,onClick:h,children:i("commands.show-less.action")},"show-less"):null]})},sC="_callToActionContainer_d8izj_1",lC="_callToActionTitle_d8izj_23",oC="_rateOverlay_d8izj_30",uC="_body_d8izj_52",cC="_footer_d8izj_60",fC="_actions_d8izj_75",dC="_bubbles_d8izj_89",hC="_stars_d8izj_191",mC="_starsSmall_d8izj_205",pC="_starsLarge_d8izj_211",gC="_star_d8izj_191",yC="_starReadonly_d8izj_225",bC="_starIcon_d8izj_235",vC="_starsDescriptionContainer_d8izj_253",_C="_starsDescription_d8izj_253",zt={callToActionContainer:sC,callToActionTitle:lC,rateOverlay:oC,body:uC,footer:cC,actions:fC,bubbles:dC,stars:hC,starsSmall:mC,starsLarge:pC,star:gC,starReadonly:yC,starIcon:bC,starsDescriptionContainer:vC,starsDescription:_C},EC=({value:t,index:r,count:i,readonly:s,onHover:u,onClick:c})=>{const d=h=>{c&&h.key==="Enter"&&c()};return y.jsx("li",{className:Z(zt.star,{[zt.starReadonly]:s},"chat__conversationRating__star"),children:y.jsx("div",{role:"radio","aria-checked":t>r?"true":"false","aria-posinset":r+1,"aria-setsize":i,tabIndex:0,onMouseOver:u,onKeyDown:d,onClick:c,children:y.jsx("span",{role:"img","aria-label":"Star",className:Z(zt.starIcon),children:y.jsx("svg",{viewBox:"64 64 896 896",focusable:"false","data-icon":"star",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",children:y.jsx("path",{d:"M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z"})})})})})},Lb=5,e_=({value:t,size:r,readonly:i=!1,onChange:s})=>{const[u,c]=B.useState(void 0),d=()=>{c(void 0)},h=p=>()=>{if(!i){const b=p+1;c(b)}},m=p=>()=>{s&&!i&&(s(p===0&&t===1?0:p+1),c(void 0))};return y.jsx("ul",{tabIndex:0,role:"radiogroup",className:Z(zt.stars,{[zt.starsSmall]:r==="small",[zt.starsLarge]:r==="large"},"chat__conversationRating__stars",{chat__conversationRating__stars__small:r==="small",chat__conversationRating__stars__large:r==="large"}),onMouseOut:d,children:Array(Lb).fill(0).map((p,b)=>y.jsx(EC,{value:u===void 0?t:u,index:b,count:Lb,readonly:i,onHover:h(b),onClick:m(b)},b))})},SC=({visible:t,onRate:r})=>{const i=Ze();return t?y.jsxs("div",{className:Z(zt.callToActionContainer,"chat__conversationRating__callToAction"),children:[y.jsx("div",{className:Z(zt.callToActionTitle,"chat__conversationRating__callToAction__title"),children:i("conversation-rating.call-to-action.title")}),y.jsx(e_,{value:0,size:"small",onChange:r})]}):null},yd=({isFirstMessageBySender:t,isLastMessageBySender:r,children:i})=>y.jsxs("div",{className:Z(ge.message,ge.messageBot,t&&ge.messageBotFirst,r&&ge.messageBotLast,"chat__bubbleContainer","chat__botBubbleContainer",t&&"chat__bubbleContainer--first",r&&"chat__bubbleContainer--last"),children:[y.jsx("img",{className:Z(ge.avatar,ge.botAvatar),src:"bot.svg",alt:"Bot"}),y.jsx("div",{className:Z(ge.bubble,ge.bubbleLeft,"chat__bubble","chat__botBubble"),children:y.jsx("div",{className:Z(ge.leftText,ge.bubbleContent),children:i})})]}),TC=({children:t})=>y.jsx("div",{className:Z(ge.message,ge.messageGuest,ge.messageGuestFirst,ge.messageGuestLast,"chat__bubbleContainer","chat__guestBubbleContainer","chat__bubbleContainer--first","chat__bubbleContainer--last"),children:y.jsx("div",{className:Z(ge.bubble,ge.bubbleRight,"chat__bubble","chat__guestBubble"),children:y.jsx("div",{className:Z(ge.rightText,ge.bubbleContent),children:t})})}),AC=()=>{const t=Ze(),r=Nr(),i=it(G=>G.chat.conversationRating),[s,u]=B.useState(i.rating?.value||0),[c,d]=B.useState(void 0),[h,m]=B.useState(void 0),[p,b]=B.useState({submitted:!1,feedback:""}),[E,A]=B.useState(!1),U=B.useRef(null);B.useEffect(()=>{i.opener?(b({submitted:!1,feedback:""}),m(!0)):h===!0&&m(!1)},[i.opener,h]),B.useEffect(()=>{u(i.rating?.value||0)},[i.rating?.value,i.opener]),B.useEffect(()=>{U.current&&(U.current.value=i.rating?.feedback||"")},[i.rating?.feedback]),B.useEffect(()=>{const G=s>0?t(`conversation-rating.overlay.bot-message.rate-feedback.value-${s}`):void 0;d(G?.length?G:void 0)},[s,t]),B.useEffect(()=>{p.submitted?setTimeout(()=>A(!0),p.feedback.length?500:0):A(!1)},[p]);const R=G=>{G.preventDefault();const _=U.current?.value?.trim()||"";r(RO(s,_)),b({submitted:!0,feedback:_})},q=()=>{i.opener==="CLOSE_CHAT"?r(Bv()):r(Ax())};return y.jsx("div",{className:Z(zt.rateOverlay,Rr.bottomSheet,"chat__conversationRating__overlay",{[Rr.bottomSheetOpen]:h===!0,[Rr.bottomSheetClose]:h===!1}),children:y.jsxs("form",{onSubmit:R,children:[y.jsxs("div",{className:Z(zt.body,"chat__conversationRating__overlay__body"),children:[y.jsx("div",{}),y.jsx("div",{className:Z(zt.bubbles),children:i.opener&&y.jsxs(y.Fragment,{children:[y.jsxs(yd,{isFirstMessageBySender:!0,isLastMessageBySender:!c,children:[y.jsx("h2",{children:t("conversation-rating.overlay.title")}),y.jsxs("div",{className:Z(zt.starsDescriptionContainer),children:[y.jsx(e_,{value:s,size:"large",readonly:p.submitted,onChange:u}),y.jsxs("div",{className:Z(zt.starsDescription),children:[y.jsx("div",{children:t("conversation-rating.overlay.star.very-bad")}),y.jsx("div",{children:t("conversation-rating.overlay.star.very-good")})]})]})]}),c&&y.jsx(yd,{isFirstMessageBySender:!1,isLastMessageBySender:!E||!!p.feedback.length,children:y.jsx("div",{children:c})}),!!p.feedback.length&&y.jsx(TC,{children:p.feedback}),E&&y.jsx(yd,{isFirstMessageBySender:!!p.feedback.length,isLastMessageBySender:!0,children:y.jsx("div",{children:t("conversation-rating.overlay.bot-message.submit-feedback")})})]})})]}),y.jsxs("div",{className:Z(zt.footer,"chat__conversationRating__overlay__footer"),children:[!p.submitted&&y.jsx("input",{ref:U,defaultValue:i.rating?.feedback||"",placeholder:t("conversation-rating.overlay.guest-feedback.input-placeholder")}),y.jsxs("div",{className:Z(zt.actions,"chat__conversationRating__overlay__footer__actions"),children:[p.submitted?y.jsx(iu,{type:"button",disabled:!s,onClick:q,children:i.opener==="CLOSE_CHAT"?t("conversation-rating.overlay.action.close-chat"):t("conversation-rating.overlay.action.back-to-chat")},"close-button"):y.jsx(iu,{type:"submit",disabled:!s,children:t("conversation-rating.overlay.action.submit")},"submit-button"),i.opener!=="CHAT"&&!p.submitted&&y.jsx(Jv,{onClick:q,children:i.opener==="CLOSE_CHAT"?t("conversation-rating.overlay.action.close-chat"):t("conversation-rating.overlay.action.cancel")})]})]})]})})},OC=({numberOfMessagesFromGuest:t})=>{const r=Nr(),i=it(c=>c.chat.conversationRating),s=c=>{r(zh("CHAT",c))},u=!i.rating?.value&&t>=1;return i.enabled?y.jsxs(y.Fragment,{children:[y.jsx(SC,{visible:u,onRate:s}),y.jsx(AC,{})]}):null},xC=B.memo(OC),RC="_inputWrapper_e3h44_1",wC="_withOpenCommands_e3h44_14",CC="_messageInputWrapper_e3h44_20",NC="_messageInput_e3h44_20",MC="_buttons_e3h44_44",DC="_button_e3h44_44",Oi={inputWrapper:RC,withOpenCommands:wC,messageInputWrapper:CC,messageInput:NC,buttons:MC,button:DC},LC="_audioRecorder_g845f_1",BC="_audioButton_g845f_6",UC="_recorderIcon_g845f_37",HC="_spinning_g845f_60",Ba={audioRecorder:LC,audioButton:BC,recorderIcon:UC,spinning:HC},Bb=2048,su=16e3;class jC extends _1.Component{audioInput=null;volume=null;leftchannel=[];recorder=null;recordingLength=0;sampleRate=null;mediaStream=null;constructor(r){super(r),this.state={recordingState:"none"},this.triggerAudioRecording=this.triggerAudioRecording.bind(this),this.triggerAudioRecordingSuccess=this.triggerAudioRecordingSuccess.bind(this),this.initRecording=this.initRecording.bind(this),this.processRecordingInput=this.processRecordingInput.bind(this),this.handleClickSubmitAudio=this.handleClickSubmitAudio.bind(this),this.handleClickStopAudio=this.handleClickStopAudio.bind(this)}triggerAudioRecording(){this.setState({recordingState:"connecting"}),navigator.mediaDevices.getUserMedia({audio:!0,video:!1}).then(this.triggerAudioRecordingSuccess)}triggerAudioRecordingSuccess(r){this.mediaStream=r,this.leftchannel.length=0,this.recordingLength=0,this.initRecording(r)}initRecording(r){const i=window.AudioContext||window.webkitAudioContext,s=new i;this.sampleRate=s.sampleRate,this.volume=s.createGain(),this.audioInput=s.createMediaStreamSource(r),this.audioInput.connect(this.volume),this.recorder=s.createScriptProcessor(Bb,1,1),this.recorder.onaudioprocess=this.processRecordingInput,this.volume.connect(this.recorder),this.recorder.connect(s.destination)}processRecordingInput(r){if(this.state.recordingState==="connecting"&&this.setState({recordingState:"recording"}),this.state.recordingState!=="none"){const i=r.inputBuffer.getChannelData(0);this.leftchannel.push(new Float32Array(i)),this.recordingLength+=Bb}}handleClickSubmitAudio(){const r=zC(this.leftchannel,this.recordingLength),i=GC(r,this.sampleRate||0),s=IC(i);this.props.onAudioRecorded(s),this.handleClickStopAudio()}handleClickStopAudio(){this.setState({recordingState:"none"}),this.audioInput?.disconnect(),this.volume?.disconnect(),this.recorder?.disconnect(),this.mediaStream&&this.mediaStream?.getAudioTracks().forEach(r=>{r.stop()})}render(){return y.jsxs("div",{className:Ba.audioRecorder,children:[this.state.recordingState==="none"&&y.jsx("button",{className:Z(Ba.audioButton,"chat__button"),type:"submit","aria-label":this.props.translate("message-input.actions.start-audio-recording.label"),"data-title":this.props.translate("message-input.actions.start-audio-recording.label"),tabIndex:0,onClick:this.triggerAudioRecording,children:y.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",children:[y.jsx("path",{d:"M12 14c1.66 0 2.99-1.34 2.99-3L15 5c0-1.66-1.34-3-3-3S9 3.34 9 5v6c0 1.66 1.34 3 3 3zm5.3-3c0 3-2.54 5.1-5.3 5.1S6.7 14 6.7 11H5c0 3.41 2.72 6.23 6 6.72V21h2v-3.28c3.28-.48 6-3.3 6-6.72h-1.7z"}),y.jsx("path",{d:"M0 0h24v24H0z",fill:"none"})]})}),this.state.recordingState==="connecting"&&y.jsxs("svg",{className:Ba.spinning,xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",children:[y.jsx("path",{d:"M17.65 6.35C16.2 4.9 14.21 4 12 4c-4.42 0-7.99 3.58-7.99 8s3.57 8 7.99 8c3.73 0 6.84-2.55 7.73-6h-2.08c-.82 2.33-3.04 4-5.65 4-3.31 0-6-2.69-6-6s2.69-6 6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4l-2.35 2.35z"}),y.jsx("path",{d:"M0 0h24v24H0z",fill:"none"})]}),this.state.recordingState==="recording"&&y.jsxs("div",{className:Ba.audioRecorder,children:[y.jsx("button",{className:Z(Ba.audioButton),onClick:this.handleClickStopAudio,"aria-label":this.props.translate("message-input.actions.stop-audio-recording.label"),tabIndex:0,children:y.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",children:[y.jsx("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),y.jsx("path",{d:"M0 0h24v24H0z",fill:"none"})]})}),y.jsx("div",{className:Ba.recorderIcon}),y.jsx("button",{className:Z(Ba.audioButton),type:"submit",onClick:this.handleClickSubmitAudio,"aria-label":this.props.translate("message-input.actions.submit-audio-recording.label"),tabIndex:0,autoFocus:!0,children:y.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",children:[y.jsx("path",{d:"M0 0h24v24H0z",fill:"none"}),y.jsx("path",{d:"M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"})]})})]})]})}}const IC=t=>{const r=new ArrayBuffer(44+t.length*2),i=new DataView(r);Io(i,0,"RIFF"),i.setUint32(4,44+t.length*2,!0),Io(i,8,"WAVE"),Io(i,12,"fmt "),i.setUint32(16,16,!0),i.setUint16(20,1,!0),i.setUint16(22,1,!0),i.setUint32(24,su,!0),i.setUint32(28,su*4,!0),i.setUint16(32,4,!0),i.setUint16(34,16,!0),Io(i,36,"data"),i.setUint32(40,t.length*2,!0);const s=t.length;let u=44;const c=1;for(let d=0;d<s;d++)i.setInt16(u,t[d]*(32767*c),!0),u+=2;return new Blob([i],{type:"audio/wav"})},Io=(t,r,i)=>{for(let s=0;s<i.length;s++)t.setUint8(r+s,i.charCodeAt(s))},zC=(t,r)=>{const i=new Float32Array(r);let s=0;const u=t.length;for(let c=0;c<u;c++){const d=t[c];i.set(d,s),s+=d.length}return i},GC=(t,r)=>{if(su===r)return t;const i=r/su,s=Math.round(t.length/i),u=new Float32Array(s);let c=0,d=0;for(;c<u.length;){const h=Math.round((c+1)*i);let m=0,p=0;for(let b=d;b<h&&b<t.length;b++)m+=t[b],p++;u[c]=m/p,c++,d=h}return u},kC=({disabled:t,textInput:r,commandsVisible:i,hasCommands:s,onTextInput:u,onTextInputSubmit:c,onAudioRecorded:d})=>{const h=Ze(),m=B.useRef(null),{enableSpeechSupport:p}=it(R=>R.settings);B.useEffect(()=>{m.current?.focus()},[r]);const b=()=>{const R=m.current;R&&r.trim().length>=1&&c(r.trim())&&(R.value="",R.style.height="",R.focus())},E=R=>{R.preventDefault(),b()},A=R=>{const q=R.target.value;u(q),R.target.style.height="";const{scrollHeight:G}=R.target;R.target.style.height=`${G>150?150:G}px`},U=R=>{R.code==="Enter"&&!R.shiftKey?(R.repeat||b(),R.preventDefault()):i&&(R.code==="ArrowUp"||R.code==="ArrowDown")&&R.preventDefault()};return y.jsxs("form",{className:Z(Oi.inputWrapper,i&&Oi.withOpenCommands,"chat__textInput"),onSubmit:E,children:[y.jsx("div",{className:Oi.messageInputWrapper,children:y.jsx("textarea",{id:"user_input",ref:m,className:Oi.messageInput,tabIndex:0,placeholder:h("message-input-placeholder"),value:r,onChange:A,onKeyDown:U,"aria-label":h("message-input-label"),"aria-controls":s?"command-list":void 0,"aria-haspopup":s?"listbox":void 0})}),y.jsx("div",{className:Z(Oi.buttons,"chat__buttons"),children:r.length||!p||navigator.mediaDevices===void 0?y.jsx("button",{className:Z(Oi.button,"chat__button"),type:"submit","aria-label":h("message-input.actions.submit.label"),"data-title":h("message-input.actions.submit.label"),tabIndex:0,disabled:t,children:y.jsx("svg",{viewBox:"64 64 896 896",focusable:"false",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",children:y.jsx("path",{d:"M931.4 498.9L94.9 79.5c-3.4-1.7-7.3-2.1-11-1.2a15.99 15.99 0 00-11.7 19.3l86.2 352.2c1.3 5.3 5.2 9.6 10.4 11.3l147.7 50.7-147.6 50.7c-5.2 1.8-9.1 6-10.3 11.3L72.2 926.5c-.9 3.7-.5 7.6 1.2 10.9 3.9 7.9 13.5 11.1 21.5 7.2l836.5-417c3.1-1.5 5.6-4.1 7.2-7.1 3.9-8 .7-17.6-7.2-21.6zM170.8 826.3l50.3-205.6 295.2-101.3c2.3-.8 4.2-2.6 5-5 1.4-4.2-.8-8.7-5-10.2L221.1 403 171 198.2l628 314.9-628.2 313.2z"})})}):p&&navigator.mediaDevices!==void 0&&y.jsx(jC,{translate:h,onAudioRecorded:d})})]})},qC="_quickReplies_83npe_1",FC="_quickReply_83npe_9",Ub={quickReplies:qC,quickReply:FC},VC=({quickReplies:t,onQuickReplyClick:r})=>t.length?y.jsx("div",{className:Z(Ub.quickReplies,"chat__quickReplies"),children:t.map(i=>y.jsx(_u,{tabIndex:0,className:Z(Ub.quickReply,"chat__button","chat__quickReply"),onClick:()=>r(i),children:i.label},i.label))}):null,Hb=5e3,PC=1e3,YC=({isBotTyping:t,quickReplies:r,numberOfMessagesFromGuest:i,commands:s,onTextInput:u,onQuickReplyClick:c,onAudioRecorded:d})=>{const[h,m]=B.useState(""),[p,b]=B.useState(!1),[E,A]=B.useState(!1),U=B.useRef(0),R=B.useRef(0);B.useEffect(()=>{if(p&&!t){const _=U.current?Date.now()-U.current:0;_>Hb?b(!1):setTimeout(()=>{b(!1)},Hb-_)}},[p,t]),B.useEffect(()=>{p&&(U.current=Date.now())},[p]);const q=_=>{const C=Date.now()-R.current<PC;return E?!1:t||C?(b(!0),!1):(u(_),m(""),R.current=Date.now(),!0)},G=_=>{m(_+" ")};return y.jsxs("div",{className:Z(X6.inputContainer),children:[y.jsx(VC,{quickReplies:r,onQuickReplyClick:c}),y.jsx(K6,{visible:p}),!p&&y.jsx(xC,{numberOfMessagesFromGuest:i}),!!s?.length&&y.jsx(rC,{text:h,commands:s,onSelectCommand:G,onVisibilityChange:A}),y.jsx(kC,{textInput:h,disabled:p,commandsVisible:E,hasCommands:!!s?.length,onTextInput:m,onTextInputSubmit:q,onAudioRecorded:d}),!!s?.length&&y.jsx(iC,{commands:s,onSelectCommand:m})]})},XC=({clientName:t,messages:r,quickReplies:i,isBotTyping:s,drawerContentUrl:u,onMessageFromUser:c,onQuickReplyClick:d,onButtonClick:h,onLinkClick:m,onAudioRecorded:p,onTranscriptExport:b,onTranscriptItemReaction:E})=>{const A=Nr(),U=it(H=>H.connection.connectionState),{enableTranscriptExportEmail:R,commands:q}=it(H=>H.settings),{showTranscriptMailOverlay:G,conversationRating:_}=it(H=>H.chat),C=r.filter(H=>H.sender.type===au.GUEST).length;B.useEffect(()=>{if(U===Ia.CONNECTED){const H=cu.parse(window.location.search);A(Hv(t,H))}},[t,U,A]);const S=()=>{A(Uv())};return y.jsxs("div",{className:ud.container,children:[y.jsxs("div",{className:Z([ud.chatcontent,(G||_?.opener)&&ud.accessabilityHidden]),children:[y.jsx(x6,{messages:r,isBotTyping:s,commands:q,onButtonClick:h,onLinkClick:m,onTranscriptItemReaction:E}),y.jsx(YC,{isBotTyping:s,quickReplies:s?[]:i,numberOfMessagesFromGuest:C,commands:q,onQuickReplyClick:d,onTextInput:c,onAudioRecorded:p}),y.jsx(j6,{})]}),R&&y.jsx(P6,{visible:!!G,onEmailExport:b,onClose:S}),y.jsx(L6,{contentUrl:u})]})},ZC=t=>{const{messages:r,quickReplies:i,isBotTyping:s,drawerContentUrl:u}=t.chat;return{messages:r,quickReplies:i,isBotTyping:s,drawerContentUrl:u}},QC=t=>({onRestartChat:(r,i)=>t(yu(r,i)),onMessageFromUser:r=>t(uv(r)),onAudioRecorded:r=>t(SO(r)),onActionFromUser:r=>t(r),onQuickReplyClick:r=>t(ov(r)),onNluEvent:r=>t(mv(r)),onButtonClick:r=>t(CO(r)),onLinkClick:r=>t(pv(r)),onTranscriptExport:r=>t(AO(r)),onTranscriptItemReaction:(r,i)=>{t(Te.Actions.transcriptItemGuestReaction(r,i?.type||null,i?.category,i?.comment))}}),KC=FS(ZC,QC)(XC),t_=()=>{const[t,r]=B.useState(!1);return B.useEffect(()=>{r((()=>{try{return window.self!==window.top}catch{return!0}})())},[]),t},$C=t=>r=>{const i=r.key;(i==="ArrowDown"||i==="ArrowRight"||i==="Enter"||i===" "||i==="Space")&&(r.stopPropagation(),t())},WC=({onClick:t})=>{const r=Ze();return t_()?y.jsx("button",{className:"tooltip--bottom-left","aria-label":r("header.close-chat"),"data-title":r("header.close-chat"),tabIndex:0,onClick:t,onKeyDown:$C(t),children:y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",children:y.jsx("path",{d:"M204.24,195.76a6,6,0,1,1-8.48,8.48L128,136.49,60.24,204.24a6,6,0,0,1-8.48-8.48L119.51,128,51.76,60.24a6,6,0,0,1,8.48-8.48L128,119.51l67.76-67.75a6,6,0,0,1,8.48,8.48L136.49,128Z"})})}):null},JC="_header_3gvbz_1",eN="_logoContainer_3gvbz_14",tN="_logo_3gvbz_14",nN="_actions_3gvbz_28",rN="_active_3gvbz_43",aN="_menuContainer_3gvbz_56",iN="_menu_3gvbz_56",sN="_divider_3gvbz_86",sa={header:JC,logoContainer:eN,logo:tN,actions:nN,active:rN,menuContainer:aN,menu:iN,divider:sN},lN=({icon:t})=>{switch(t){case"arrow-counter-clockwise":return y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",viewBox:"0 0 256 256",children:y.jsx("path",{d:"M224,128a96,96,0,0,1-94.71,96H128A95.38,95.38,0,0,1,62.1,197.8a8,8,0,0,1,11-11.63A80,80,0,1,0,71.43,71.39a3.07,3.07,0,0,1-.26.25L44.59,96H72a8,8,0,0,1,0,16H24a8,8,0,0,1-8-8V56a8,8,0,0,1,16,0V85.8L60.25,60A96,96,0,0,1,224,128Z"})});case"download":return y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",viewBox:"0 0 256 256",children:y.jsx("path",{d:"M224,144v64a8,8,0,0,1-8,8H40a8,8,0,0,1-8-8V144a8,8,0,0,1,16,0v56H208V144a8,8,0,0,1,16,0Zm-101.66,5.66a8,8,0,0,0,11.32,0l40-40a8,8,0,0,0-11.32-11.32L136,124.69V32a8,8,0,0,0-16,0v92.69L93.66,98.34a8,8,0,0,0-11.32,11.32Z"})});case"expand":return y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",viewBox:"0 0 256 256",children:y.jsx("path",{d:"M214,48V96a6,6,0,0,1-12,0V62.48l-53.76,53.76a6,6,0,0,1-8.48-8.48L193.52,54H160a6,6,0,0,1,0-12h48A6,6,0,0,1,214,48ZM107.76,139.76,54,193.52V160a6,6,0,0,0-12,0v48a6,6,0,0,0,6,6H96a6,6,0,0,0,0-12H62.48l53.76-53.76a6,6,0,0,0-8.48-8.48Z"})});case"mail":return y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",viewBox:"0 0 256 256",children:y.jsx("path",{d:"M224,48H32a8,8,0,0,0-8,8V192a16,16,0,0,0,16,16H216a16,16,0,0,0,16-16V56A8,8,0,0,0,224,48ZM203.43,64,128,133.15,52.57,64ZM216,192H40V74.19l82.59,75.71a8,8,0,0,0,10.82,0L216,74.19V192Z"})});case"phone":return y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",viewBox:"0 0 256 256",children:y.jsx("path",{d:"M144.27,45.93a8,8,0,0,1,9.8-5.66,86.22,86.22,0,0,1,61.66,61.66,8,8,0,0,1-5.66,9.8A8.23,8.23,0,0,1,208,112a8,8,0,0,1-7.73-5.94,70.35,70.35,0,0,0-50.33-50.33A8,8,0,0,1,144.27,45.93Zm-2.33,41.8c13.79,3.68,22.65,12.54,26.33,26.33A8,8,0,0,0,176,120a8.23,8.23,0,0,0,2.07-.27,8,8,0,0,0,5.66-9.8c-5.12-19.16-18.5-32.54-37.66-37.66a8,8,0,1,0-4.13,15.46Zm81.94,95.35A56.26,56.26,0,0,1,168,232C88.6,232,24,167.4,24,88A56.26,56.26,0,0,1,72.92,32.12a16,16,0,0,1,16.62,9.52l21.12,47.15,0,.12A16,16,0,0,1,109.39,104c-.18.27-.37.52-.57.77L88,129.45c7.49,15.22,23.41,31,38.83,38.51l24.34-20.71a8.12,8.12,0,0,1,.75-.56,16,16,0,0,1,15.17-1.4l.13.06,47.11,21.11A16,16,0,0,1,223.88,183.08Zm-15.88-2s-.07,0-.11,0h0l-47-21.05-24.35,20.71a8.44,8.44,0,0,1-.74.56,16,16,0,0,1-15.75,1.14c-18.73-9.05-37.4-27.58-46.46-46.11a16,16,0,0,1,1-15.7,6.13,6.13,0,0,1,.57-.77L96,95.15l-21-47a.61.61,0,0,1,0-.12A40.2,40.2,0,0,0,40,88,128.14,128.14,0,0,0,168,216,40.21,40.21,0,0,0,208,181.07Z"})});case"scroll":return y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",viewBox:"0 0 256 256",children:y.jsx("path",{d:"M96,104a8,8,0,0,1,8-8h64a8,8,0,0,1,0,16H104A8,8,0,0,1,96,104Zm8,40h64a8,8,0,0,0,0-16H104a8,8,0,0,0,0,16Zm128,48a32,32,0,0,1-32,32H88a32,32,0,0,1-32-32V64a16,16,0,0,0-32,0c0,5.74,4.83,9.62,4.88,9.66h0A8,8,0,0,1,24,88a7.89,7.89,0,0,1-4.79-1.61h0C18.05,85.54,8,77.61,8,64A32,32,0,0,1,40,32H176a32,32,0,0,1,32,32V168h8a8,8,0,0,1,4.8,1.6C222,170.46,232,178.39,232,192ZM96.26,173.48A8.07,8.07,0,0,1,104,168h88V64a16,16,0,0,0-16-16H67.69A31.71,31.71,0,0,1,72,64V192a16,16,0,0,0,32,0c0-5.74-4.83-9.62-4.88-9.66A7.82,7.82,0,0,1,96.26,173.48ZM216,192a12.58,12.58,0,0,0-3.23-8h-94a26.92,26.92,0,0,1,1.21,8,31.82,31.82,0,0,1-4.29,16H200A16,16,0,0,0,216,192Z"})});case"star":return y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",viewBox:"0 0 256 256",children:y.jsx("path",{d:"M239.18,97.26A16.38,16.38,0,0,0,224.92,86l-59-4.76L143.14,26.15a16.36,16.36,0,0,0-30.27,0L90.11,81.23,31.08,86a16.46,16.46,0,0,0-9.37,28.86l45,38.83L53,211.75a16.38,16.38,0,0,0,24.5,17.82L128,198.49l50.53,31.08A16.4,16.4,0,0,0,203,211.75l-13.76-58.07,45-38.83A16.43,16.43,0,0,0,239.18,97.26Zm-15.34,5.47-48.7,42a8,8,0,0,0-2.56,7.91l14.88,62.8a.37.37,0,0,1-.17.48c-.18.14-.23.11-.38,0l-54.72-33.65a8,8,0,0,0-8.38,0L69.09,215.94c-.15.09-.19.12-.38,0a.37.37,0,0,1-.17-.48l14.88-62.8a8,8,0,0,0-2.56-7.91l-48.7-42c-.12-.1-.23-.19-.13-.5s.18-.27.33-.29l63.92-5.16A8,8,0,0,0,103,91.86l24.62-59.61c.08-.17.11-.25.35-.25s.27.08.35.25L153,91.86a8,8,0,0,0,6.75,4.92l63.92,5.16c.15,0,.24,0,.33.29S224,102.63,223.84,102.73Z"})});case"link":return y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",viewBox:"0 0 256 256",children:y.jsx("path",{d:"M224,104a8,8,0,0,1-16,0V59.32l-66.33,66.34a8,8,0,0,1-11.32-11.32L196.68,48H152a8,8,0,0,1,0-16h64a8,8,0,0,1,8,8Zm-40,24a8,8,0,0,0-8,8v72H48V80h72a8,8,0,0,0,0-16H48A16,16,0,0,0,32,80V208a16,16,0,0,0,16,16H176a16,16,0,0,0,16-16V136A8,8,0,0,0,184,128Z"})});default:return y.jsx("div",{})}},oN=B.forwardRef(({selected:t,item:r,onClick:i},s)=>{const u=Ze(),c=d=>{d.preventDefault(),i()};return y.jsx("li",{"aria-selected":t,role:"option",className:r.withDivider?sa.divider:void 0,children:y.jsxs("a",{ref:s,type:"button",role:"button",tabIndex:-1,onClick:c,children:[y.jsx(lN,{icon:r.icon}),y.jsx("span",{children:u(`header.menu.${r.id}`)})]})})}),uN=(t,r)=>{const i=t_(),{menuItems:s,enableStandaloneView:u,enableTranscriptExportPdf:c,enableTranscriptExportEmail:d}=it(p=>p.settings),h=it(p=>p.chat.conversationRating.enabled);return B.useMemo(()=>{const p=[],b=s.filter(({visibility:E})=>t?E==="always"||E==="chat-only":E==="always"||E==="start-screen-only");if(t&&(p.push({id:"restart-chat",type:"restart-chat",icon:"arrow-counter-clockwise",visibility:"chat-only"}),i&&u&&p.push({id:"expand-chat-window",type:"expand-chat-window",icon:"expand",visibility:"always"}),r&&c&&p.push({id:"download-transcript",type:"download-transcript",icon:"download",visibility:"chat-only"}),r&&d&&p.push({id:"send-transcript",type:"send-transcript",icon:"mail",visibility:"chat-only"}),r&&h&&p.push({id:"rate-conversation",type:"rate-conversation",icon:"star",visibility:"chat-only"}),p.length>0&&b.length)){const E=p.pop();E&&s.length&&p.push({...E,withDivider:!0})}return p.push(...b),p},[t,r,c,d,u,h,i,s])},cN=({chatStarted:t,hasGuestMessages:r})=>{const i=Nr(),s=Eu(),u=Ze(),[c,d]=B.useState(!1),[h,m]=B.useState(-1),p=B.useRef(null),b=B.useRef(null),E=B.useRef([]),A=uN(t,r);B.useEffect(()=>{E.current[h]?.focus()},[h]);const U=B.useCallback(()=>{const _=cu.parse(window.location.search);i(yu(s,_)),d(!1),m(0)},[i,s]),R=B.useCallback(_=>{switch(_.type){case"restart-chat":U();break;case"expand-chat-window":window.open(window.location.href,"_blank");break;case"download-transcript":i(OO());break;case"send-transcript":i(Uv());break;case"rate-conversation":i(zh("MENU"));break;case"link":i(pv(_.url));break;case"action":i(JSON.parse(JSON.stringify(_.action)));break}d(!1)},[i,U,d]);B.useEffect(()=>{const _=C=>{if(c)switch(C.key){case"Enter":C.preventDefault(),R(A[h]);break;case"ArrowUp":m(S=>S>0?S-1:A.length-1);break;case"ArrowDown":m(S=>S<A.length-1?S+1:0);break;case"Escape":d(!1);break;case"Tab":h>-1&&d(!1);break}};return document.addEventListener("keydown",_),()=>{document.removeEventListener("keydown",_)}},[c,h,A,m,d,R]),B.useEffect(()=>{c||m(-1)},[c,h]),Zh(b,()=>d(!1));const q=()=>{d(_=>!_)},G=()=>{setTimeout(()=>{const _=document.activeElement;b.current&&!b.current.contains(_)&&d(!1)},0)};return A.length?y.jsxs("div",{className:Z(sa.menuContainer),ref:b,children:[y.jsx("button",{ref:p,className:Z(c&&sa.active,c?"tooltip-hidden":"tooltip--bottom-left"),"aria-label":u("header.menu.title"),"data-title":u("header.menu.title"),onClick:q,onBlur:G,children:y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",children:y.jsx("path",{d:"M140,128a12,12,0,1,1-12-12A12,12,0,0,1,140,128Zm56-12a12,12,0,1,0,12,12A12,12,0,0,0,196,116ZM60,116a12,12,0,1,0,12,12A12,12,0,0,0,60,116Z"})})}),c&&y.jsx("nav",{className:sa.menu,"aria-label":u("header.menu.title"),children:y.jsx("ul",{tabIndex:0,children:A.map((_,C)=>y.jsx(oN,{ref:S=>{E.current[C]=S},selected:h===C,item:_,onClick:()=>R(_)},_.id))})})]}):null},jb=({className:t,chatStarted:r,...i})=>{const s=Nr(),u=it(h=>h.chat.conversationRating),c=it(h=>h.chat.messages.some(m=>m.sender.type===Te.UserType.GUEST)),d=()=>{u.enabled&&!u.opener&&c?s(zh("CLOSE_CHAT")):s(Bv())};return y.jsxs("div",{className:Z([sa.header,t]),...i,children:[y.jsx("div",{className:sa.logoContainer,children:y.jsx("div",{className:sa.logo})}),y.jsxs("div",{className:sa.actions,children:[y.jsx(cN,{chatStarted:r,hasGuestMessages:c}),y.jsx(WC,{onClick:d})]})]})},fN="_chatwindow_rkbir_1",dN="_chatwindowWithAside_rkbir_21",Ib={chatwindow:fN,chatwindowWithAside:dN},n_=()=>{const[t,r]=B.useState(!1);return B.useEffect(()=>{const i=window.matchMedia("(max-width: 1023px)"),s=()=>r(i.matches);return s(),i.addEventListener("change",s),()=>i.removeEventListener("change",s)},[]),t},hN="_sourceInfos_vei0l_1",mN="_waitForLoading_vei0l_24",pN="_loadingContent_vei0l_28",gN="_sourceHeader_vei0l_37",yN="_sourceHeaderIcon_vei0l_57",bN="_sourceContent_vei0l_61",vN="_openSourceButton_vei0l_69",_N="_sourceButtonLabel_vei0l_79",EN="_closeSourceInfosButton_vei0l_101",SN="_loadingSourceInfos_vei0l_125",TN="_loading_vei0l_28",AN="_loadingError_vei0l_139",ON="_highlightLoadingInfo_vei0l_155",xN="_highlightLoadingInfoInnerContainer_vei0l_169",RN="_highlightLoadingInfoContent_vei0l_178",wN="_highlightLoadingInfoCloseIcon_vei0l_198",CN="_highlightLoader_vei0l_203",NN="_highlightLoaderLoading_vei0l_210",Et={sourceInfos:hN,waitForLoading:mN,loadingContent:pN,sourceHeader:gN,sourceHeaderIcon:yN,sourceContent:bN,openSourceButton:vN,sourceButtonLabel:_N,closeSourceInfosButton:EN,loadingSourceInfos:SN,loading:TN,loadingError:AN,highlightLoadingInfo:ON,highlightLoadingInfoInnerContainer:xN,highlightLoadingInfoContent:RN,highlightLoadingInfoCloseIcon:wN,highlightLoader:CN,highlightLoaderLoading:NN},MN=({onClick:t})=>{const r=Ze();return y.jsx("button",{className:Z(Et.closeSourceInfosButton,"tooltip--bottom-left"),"aria-label":r("source-infos.close"),"data-title":r("source-infos.close"),tabIndex:0,onClick:t,children:y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",children:y.jsx("path",{d:"M205.66,194.34a8,8,0,0,1-11.32,11.32L128,139.31,61.66,205.66a8,8,0,0,1-11.32-11.32L116.69,128,50.34,61.66A8,8,0,0,1,61.66,50.34L128,116.69l66.34-66.35a8,8,0,0,1,11.32,11.32L139.31,128Z"})})})},DN=B.forwardRef(({sourceInfos:t,onClose:r,...i},s)=>y.jsxs("div",{className:Et.sourceHeader,...i,ref:s,children:[y.jsx("div",{children:t?y.jsx("p",{id:"source-info-title",children:t.title}):y.jsx("p",{children:" "})}),y.jsx(MN,{onClick:r})]})),LN=({loading:t})=>y.jsx("div",{className:Et.highlightLoader,children:t&&y.jsx("div",{className:Et.highlightLoaderLoading})});/*! @license DOMPurify 3.2.6 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.2.6/LICENSE */const{entries:r_,setPrototypeOf:zb,isFrozen:BN,getPrototypeOf:UN,getOwnPropertyDescriptor:HN}=Object;let{freeze:Gt,seal:Tn,create:a_}=Object,{apply:oh,construct:uh}=typeof Reflect<"u"&&Reflect;Gt||(Gt=function(r){return r});Tn||(Tn=function(r){return r});oh||(oh=function(r,i,s){return r.apply(i,s)});uh||(uh=function(r,i){return new r(...i)});const zo=kt(Array.prototype.forEach),jN=kt(Array.prototype.lastIndexOf),Gb=kt(Array.prototype.pop),qs=kt(Array.prototype.push),IN=kt(Array.prototype.splice),Yo=kt(String.prototype.toLowerCase),bd=kt(String.prototype.toString),kb=kt(String.prototype.match),Fs=kt(String.prototype.replace),zN=kt(String.prototype.indexOf),GN=kt(String.prototype.trim),jn=kt(Object.prototype.hasOwnProperty),jt=kt(RegExp.prototype.test),Vs=kN(TypeError);function kt(t){return function(r){r instanceof RegExp&&(r.lastIndex=0);for(var i=arguments.length,s=new Array(i>1?i-1:0),u=1;u<i;u++)s[u-1]=arguments[u];return oh(t,r,s)}}function kN(t){return function(){for(var r=arguments.length,i=new Array(r),s=0;s<r;s++)i[s]=arguments[s];return uh(t,i)}}function Re(t,r){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Yo;zb&&zb(t,null);let s=r.length;for(;s--;){let u=r[s];if(typeof u=="string"){const c=i(u);c!==u&&(BN(r)||(r[s]=c),u=c)}t[u]=!0}return t}function qN(t){for(let r=0;r<t.length;r++)jn(t,r)||(t[r]=null);return t}function Tr(t){const r=a_(null);for(const[i,s]of r_(t))jn(t,i)&&(Array.isArray(s)?r[i]=qN(s):s&&typeof s=="object"&&s.constructor===Object?r[i]=Tr(s):r[i]=s);return r}function Ps(t,r){for(;t!==null;){const s=HN(t,r);if(s){if(s.get)return kt(s.get);if(typeof s.value=="function")return kt(s.value)}t=UN(t)}function i(){return null}return i}const qb=Gt(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),vd=Gt(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),_d=Gt(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),FN=Gt(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),Ed=Gt(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),VN=Gt(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Fb=Gt(["#text"]),Vb=Gt(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),Sd=Gt(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),Pb=Gt(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),Go=Gt(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),PN=Tn(/\{\{[\w\W]*|[\w\W]*\}\}/gm),YN=Tn(/<%[\w\W]*|[\w\W]*%>/gm),XN=Tn(/\$\{[\w\W]*/gm),ZN=Tn(/^data-[\-\w.\u00B7-\uFFFF]+$/),QN=Tn(/^aria-[\-\w]+$/),i_=Tn(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),KN=Tn(/^(?:\w+script|data):/i),$N=Tn(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),s_=Tn(/^html$/i),WN=Tn(/^[a-z][.\w]*(-[.\w]+)+$/i);var Yb=Object.freeze({__proto__:null,ARIA_ATTR:QN,ATTR_WHITESPACE:$N,CUSTOM_ELEMENT:WN,DATA_ATTR:ZN,DOCTYPE_NAME:s_,ERB_EXPR:YN,IS_ALLOWED_URI:i_,IS_SCRIPT_OR_DATA:KN,MUSTACHE_EXPR:PN,TMPLIT_EXPR:XN});const Ys={element:1,text:3,progressingInstruction:7,comment:8,document:9},JN=function(){return typeof window>"u"?null:window},e3=function(r,i){if(typeof r!="object"||typeof r.createPolicy!="function")return null;let s=null;const u="data-tt-policy-suffix";i&&i.hasAttribute(u)&&(s=i.getAttribute(u));const c="dompurify"+(s?"#"+s:"");try{return r.createPolicy(c,{createHTML(d){return d},createScriptURL(d){return d}})}catch{return console.warn("TrustedTypes policy "+c+" could not be created."),null}},Xb=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function l_(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:JN();const r=le=>l_(le);if(r.version="3.2.6",r.removed=[],!t||!t.document||t.document.nodeType!==Ys.document||!t.Element)return r.isSupported=!1,r;let{document:i}=t;const s=i,u=s.currentScript,{DocumentFragment:c,HTMLTemplateElement:d,Node:h,Element:m,NodeFilter:p,NamedNodeMap:b=t.NamedNodeMap||t.MozNamedAttrMap,HTMLFormElement:E,DOMParser:A,trustedTypes:U}=t,R=m.prototype,q=Ps(R,"cloneNode"),G=Ps(R,"remove"),_=Ps(R,"nextSibling"),C=Ps(R,"childNodes"),S=Ps(R,"parentNode");if(typeof d=="function"){const le=i.createElement("template");le.content&&le.content.ownerDocument&&(i=le.content.ownerDocument)}let H,O="";const{implementation:Q,createNodeIterator:W,createDocumentFragment:ae,getElementsByTagName:ye}=i,{importNode:Ee}=s;let se=Xb();r.isSupported=typeof r_=="function"&&typeof S=="function"&&Q&&Q.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:me,ERB_EXPR:ce,TMPLIT_EXPR:Pe,DATA_ATTR:ve,ARIA_ATTR:z,IS_SCRIPT_OR_DATA:K,ATTR_WHITESPACE:ee,CUSTOM_ELEMENT:Ae}=Yb;let{IS_ALLOWED_URI:x}=Yb,k=null;const $=Re({},[...qb,...vd,..._d,...Ed,...Fb]);let Y=null;const te=Re({},[...Vb,...Sd,...Pb,...Go]);let re=Object.seal(a_(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),ue=null,We=null,Ue=!0,St=!0,Gn=!1,Mr=!0,Qe=!1,qt=!0,xn=!1,Di=!1,Li=!1,Tt=!1,qa=!1,ua=!1,Bi=!0,ca=!1;const Au="user-content-";let Fa=!0,fa=!1,Dr={},dn=null;const Nt=Re({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let Rn=null;const Mt=Re({},["audio","video","img","source","image","track"]);let Ui=null;const al=Re({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Va="http://www.w3.org/1998/Math/MathML",nr="http://www.w3.org/2000/svg",Ft="http://www.w3.org/1999/xhtml";let Vt=Ft,Lr=!1,rr=null;const Ou=Re({},[Va,nr,Ft],bd);let da=Re({},["mi","mo","mn","ms","mtext"]),ha=Re({},["annotation-xml"]);const Hi=Re({},["title","style","font","a","script"]);let wn=null;const xu=["application/xhtml+xml","text/html"],il="text/html";let nt=null,kn=null;const ji=i.createElement("form"),Ii=function(N){return N instanceof RegExp||N instanceof Function},zi=function(){let N=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(kn&&kn===N)){if((!N||typeof N!="object")&&(N={}),N=Tr(N),wn=xu.indexOf(N.PARSER_MEDIA_TYPE)===-1?il:N.PARSER_MEDIA_TYPE,nt=wn==="application/xhtml+xml"?bd:Yo,k=jn(N,"ALLOWED_TAGS")?Re({},N.ALLOWED_TAGS,nt):$,Y=jn(N,"ALLOWED_ATTR")?Re({},N.ALLOWED_ATTR,nt):te,rr=jn(N,"ALLOWED_NAMESPACES")?Re({},N.ALLOWED_NAMESPACES,bd):Ou,Ui=jn(N,"ADD_URI_SAFE_ATTR")?Re(Tr(al),N.ADD_URI_SAFE_ATTR,nt):al,Rn=jn(N,"ADD_DATA_URI_TAGS")?Re(Tr(Mt),N.ADD_DATA_URI_TAGS,nt):Mt,dn=jn(N,"FORBID_CONTENTS")?Re({},N.FORBID_CONTENTS,nt):Nt,ue=jn(N,"FORBID_TAGS")?Re({},N.FORBID_TAGS,nt):Tr({}),We=jn(N,"FORBID_ATTR")?Re({},N.FORBID_ATTR,nt):Tr({}),Dr=jn(N,"USE_PROFILES")?N.USE_PROFILES:!1,Ue=N.ALLOW_ARIA_ATTR!==!1,St=N.ALLOW_DATA_ATTR!==!1,Gn=N.ALLOW_UNKNOWN_PROTOCOLS||!1,Mr=N.ALLOW_SELF_CLOSE_IN_ATTR!==!1,Qe=N.SAFE_FOR_TEMPLATES||!1,qt=N.SAFE_FOR_XML!==!1,xn=N.WHOLE_DOCUMENT||!1,Tt=N.RETURN_DOM||!1,qa=N.RETURN_DOM_FRAGMENT||!1,ua=N.RETURN_TRUSTED_TYPE||!1,Li=N.FORCE_BODY||!1,Bi=N.SANITIZE_DOM!==!1,ca=N.SANITIZE_NAMED_PROPS||!1,Fa=N.KEEP_CONTENT!==!1,fa=N.IN_PLACE||!1,x=N.ALLOWED_URI_REGEXP||i_,Vt=N.NAMESPACE||Ft,da=N.MATHML_TEXT_INTEGRATION_POINTS||da,ha=N.HTML_INTEGRATION_POINTS||ha,re=N.CUSTOM_ELEMENT_HANDLING||{},N.CUSTOM_ELEMENT_HANDLING&&Ii(N.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(re.tagNameCheck=N.CUSTOM_ELEMENT_HANDLING.tagNameCheck),N.CUSTOM_ELEMENT_HANDLING&&Ii(N.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(re.attributeNameCheck=N.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),N.CUSTOM_ELEMENT_HANDLING&&typeof N.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(re.allowCustomizedBuiltInElements=N.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Qe&&(St=!1),qa&&(Tt=!0),Dr&&(k=Re({},Fb),Y=[],Dr.html===!0&&(Re(k,qb),Re(Y,Vb)),Dr.svg===!0&&(Re(k,vd),Re(Y,Sd),Re(Y,Go)),Dr.svgFilters===!0&&(Re(k,_d),Re(Y,Sd),Re(Y,Go)),Dr.mathMl===!0&&(Re(k,Ed),Re(Y,Pb),Re(Y,Go))),N.ADD_TAGS&&(k===$&&(k=Tr(k)),Re(k,N.ADD_TAGS,nt)),N.ADD_ATTR&&(Y===te&&(Y=Tr(Y)),Re(Y,N.ADD_ATTR,nt)),N.ADD_URI_SAFE_ATTR&&Re(Ui,N.ADD_URI_SAFE_ATTR,nt),N.FORBID_CONTENTS&&(dn===Nt&&(dn=Tr(dn)),Re(dn,N.FORBID_CONTENTS,nt)),Fa&&(k["#text"]=!0),xn&&Re(k,["html","head","body"]),k.table&&(Re(k,["tbody"]),delete ue.tbody),N.TRUSTED_TYPES_POLICY){if(typeof N.TRUSTED_TYPES_POLICY.createHTML!="function")throw Vs('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof N.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw Vs('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');H=N.TRUSTED_TYPES_POLICY,O=H.createHTML("")}else H===void 0&&(H=e3(U,u)),H!==null&&typeof O=="string"&&(O=H.createHTML(""));Gt&&Gt(N),kn=N}},Cn=Re({},[...vd,..._d,...FN]),ht=Re({},[...Ed,...VN]),Dt=function(N){let X=S(N);(!X||!X.tagName)&&(X={namespaceURI:Vt,tagName:"template"});const J=Yo(N.tagName),Fe=Yo(X.tagName);return rr[N.namespaceURI]?N.namespaceURI===nr?X.namespaceURI===Ft?J==="svg":X.namespaceURI===Va?J==="svg"&&(Fe==="annotation-xml"||da[Fe]):!!Cn[J]:N.namespaceURI===Va?X.namespaceURI===Ft?J==="math":X.namespaceURI===nr?J==="math"&&ha[Fe]:!!ht[J]:N.namespaceURI===Ft?X.namespaceURI===nr&&!ha[Fe]||X.namespaceURI===Va&&!da[Fe]?!1:!ht[J]&&(Hi[J]||!Cn[J]):!!(wn==="application/xhtml+xml"&&rr[N.namespaceURI]):!1},At=function(N){qs(r.removed,{element:N});try{S(N).removeChild(N)}catch{G(N)}},qn=function(N,X){try{qs(r.removed,{attribute:X.getAttributeNode(N),from:X})}catch{qs(r.removed,{attribute:null,from:X})}if(X.removeAttribute(N),N==="is")if(Tt||qa)try{At(X)}catch{}else try{X.setAttribute(N,"")}catch{}},sl=function(N){let X=null,J=null;if(Li)N="<remove></remove>"+N;else{const Je=kb(N,/^[\r\n\t ]+/);J=Je&&Je[0]}wn==="application/xhtml+xml"&&Vt===Ft&&(N='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+N+"</body></html>");const Fe=H?H.createHTML(N):N;if(Vt===Ft)try{X=new A().parseFromString(Fe,wn)}catch{}if(!X||!X.documentElement){X=Q.createDocument(Vt,"template",null);try{X.documentElement.innerHTML=Lr?O:Fe}catch{}}const mt=X.body||X.documentElement;return N&&J&&mt.insertBefore(i.createTextNode(J),mt.childNodes[0]||null),Vt===Ft?ye.call(X,xn?"html":"body")[0]:xn?X.documentElement:mt},ll=function(N){return W.call(N.ownerDocument||N,N,p.SHOW_ELEMENT|p.SHOW_COMMENT|p.SHOW_TEXT|p.SHOW_PROCESSING_INSTRUCTION|p.SHOW_CDATA_SECTION,null)},Pa=function(N){return N instanceof E&&(typeof N.nodeName!="string"||typeof N.textContent!="string"||typeof N.removeChild!="function"||!(N.attributes instanceof b)||typeof N.removeAttribute!="function"||typeof N.setAttribute!="function"||typeof N.namespaceURI!="string"||typeof N.insertBefore!="function"||typeof N.hasChildNodes!="function")},Br=function(N){return typeof h=="function"&&N instanceof h};function Kt(le,N,X){zo(le,J=>{J.call(r,N,X,kn)})}const ar=function(N){let X=null;if(Kt(se.beforeSanitizeElements,N,null),Pa(N))return At(N),!0;const J=nt(N.nodeName);if(Kt(se.uponSanitizeElement,N,{tagName:J,allowedTags:k}),qt&&N.hasChildNodes()&&!Br(N.firstElementChild)&&jt(/<[/\w!]/g,N.innerHTML)&&jt(/<[/\w!]/g,N.textContent)||N.nodeType===Ys.progressingInstruction||qt&&N.nodeType===Ys.comment&&jt(/<[/\w]/g,N.data))return At(N),!0;if(!k[J]||ue[J]){if(!ue[J]&&Ur(J)&&(re.tagNameCheck instanceof RegExp&&jt(re.tagNameCheck,J)||re.tagNameCheck instanceof Function&&re.tagNameCheck(J)))return!1;if(Fa&&!dn[J]){const Fe=S(N)||N.parentNode,mt=C(N)||N.childNodes;if(mt&&Fe){const Je=mt.length;for(let Lt=Je-1;Lt>=0;--Lt){const Pt=q(mt[Lt],!0);Pt.__removalCount=(N.__removalCount||0)+1,Fe.insertBefore(Pt,_(N))}}}return At(N),!0}return N instanceof m&&!Dt(N)||(J==="noscript"||J==="noembed"||J==="noframes")&&jt(/<\/no(script|embed|frames)/i,N.innerHTML)?(At(N),!0):(Qe&&N.nodeType===Ys.text&&(X=N.textContent,zo([me,ce,Pe],Fe=>{X=Fs(X,Fe," ")}),N.textContent!==X&&(qs(r.removed,{element:N.cloneNode()}),N.textContent=X)),Kt(se.afterSanitizeElements,N,null),!1)},ir=function(N,X,J){if(Bi&&(X==="id"||X==="name")&&(J in i||J in ji))return!1;if(!(St&&!We[X]&&jt(ve,X))){if(!(Ue&&jt(z,X))){if(!Y[X]||We[X]){if(!(Ur(N)&&(re.tagNameCheck instanceof RegExp&&jt(re.tagNameCheck,N)||re.tagNameCheck instanceof Function&&re.tagNameCheck(N))&&(re.attributeNameCheck instanceof RegExp&&jt(re.attributeNameCheck,X)||re.attributeNameCheck instanceof Function&&re.attributeNameCheck(X))||X==="is"&&re.allowCustomizedBuiltInElements&&(re.tagNameCheck instanceof RegExp&&jt(re.tagNameCheck,J)||re.tagNameCheck instanceof Function&&re.tagNameCheck(J))))return!1}else if(!Ui[X]){if(!jt(x,Fs(J,ee,""))){if(!((X==="src"||X==="xlink:href"||X==="href")&&N!=="script"&&zN(J,"data:")===0&&Rn[N])){if(!(Gn&&!jt(K,Fs(J,ee,"")))){if(J)return!1}}}}}}return!0},Ur=function(N){return N!=="annotation-xml"&&kb(N,Ae)},sr=function(N){Kt(se.beforeSanitizeAttributes,N,null);const{attributes:X}=N;if(!X||Pa(N))return;const J={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Y,forceKeepAttr:void 0};let Fe=X.length;for(;Fe--;){const mt=X[Fe],{name:Je,namespaceURI:Lt,value:Pt}=mt,Fn=nt(Je),$t=Pt;let lt=Je==="value"?$t:GN($t);if(J.attrName=Fn,J.attrValue=lt,J.keepAttr=!0,J.forceKeepAttr=void 0,Kt(se.uponSanitizeAttribute,N,J),lt=J.attrValue,ca&&(Fn==="id"||Fn==="name")&&(qn(Je,N),lt=Au+lt),qt&&jt(/((--!?|])>)|<\/(style|title)/i,lt)){qn(Je,N);continue}if(J.forceKeepAttr)continue;if(!J.keepAttr){qn(Je,N);continue}if(!Mr&&jt(/\/>/i,lt)){qn(Je,N);continue}Qe&&zo([me,ce,Pe],lr=>{lt=Fs(lt,lr," ")});const Gi=nt(N.nodeName);if(!ir(Gi,Fn,lt)){qn(Je,N);continue}if(H&&typeof U=="object"&&typeof U.getAttributeType=="function"&&!Lt)switch(U.getAttributeType(Gi,Fn)){case"TrustedHTML":{lt=H.createHTML(lt);break}case"TrustedScriptURL":{lt=H.createScriptURL(lt);break}}if(lt!==$t)try{Lt?N.setAttributeNS(Lt,Je,lt):N.setAttribute(Je,lt),Pa(N)?At(N):Gb(r.removed)}catch{qn(Je,N)}}Kt(se.afterSanitizeAttributes,N,null)},st=function le(N){let X=null;const J=ll(N);for(Kt(se.beforeSanitizeShadowDOM,N,null);X=J.nextNode();)Kt(se.uponSanitizeShadowNode,X,null),ar(X),sr(X),X.content instanceof c&&le(X.content);Kt(se.afterSanitizeShadowDOM,N,null)};return r.sanitize=function(le){let N=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},X=null,J=null,Fe=null,mt=null;if(Lr=!le,Lr&&(le="<!-->"),typeof le!="string"&&!Br(le))if(typeof le.toString=="function"){if(le=le.toString(),typeof le!="string")throw Vs("dirty is not a string, aborting")}else throw Vs("toString is not a function");if(!r.isSupported)return le;if(Di||zi(N),r.removed=[],typeof le=="string"&&(fa=!1),fa){if(le.nodeName){const Pt=nt(le.nodeName);if(!k[Pt]||ue[Pt])throw Vs("root node is forbidden and cannot be sanitized in-place")}}else if(le instanceof h)X=sl("<!---->"),J=X.ownerDocument.importNode(le,!0),J.nodeType===Ys.element&&J.nodeName==="BODY"||J.nodeName==="HTML"?X=J:X.appendChild(J);else{if(!Tt&&!Qe&&!xn&&le.indexOf("<")===-1)return H&&ua?H.createHTML(le):le;if(X=sl(le),!X)return Tt?null:ua?O:""}X&&Li&&At(X.firstChild);const Je=ll(fa?le:X);for(;Fe=Je.nextNode();)ar(Fe),sr(Fe),Fe.content instanceof c&&st(Fe.content);if(fa)return le;if(Tt){if(qa)for(mt=ae.call(X.ownerDocument);X.firstChild;)mt.appendChild(X.firstChild);else mt=X;return(Y.shadowroot||Y.shadowrootmode)&&(mt=Ee.call(s,mt,!0)),mt}let Lt=xn?X.outerHTML:X.innerHTML;return xn&&k["!doctype"]&&X.ownerDocument&&X.ownerDocument.doctype&&X.ownerDocument.doctype.name&&jt(s_,X.ownerDocument.doctype.name)&&(Lt="<!DOCTYPE "+X.ownerDocument.doctype.name+`>
111
- `+Lt),Qe&&zo([me,ce,Pe],Pt=>{Lt=Fs(Lt,Pt," ")}),H&&ua?H.createHTML(Lt):Lt},r.setConfig=function(){let le=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};zi(le),Di=!0},r.clearConfig=function(){kn=null,Di=!1},r.isValidAttribute=function(le,N,X){kn||zi({});const J=nt(le),Fe=nt(N);return ir(J,Fe,X)},r.addHook=function(le,N){typeof N=="function"&&qs(se[le],N)},r.removeHook=function(le,N){if(N!==void 0){const X=jN(se[le],N);return X===-1?void 0:IN(se[le],X,1)[0]}return Gb(se[le])},r.removeHooks=function(le){se[le]=[]},r.removeAllHooks=function(){se=Xb()},r}var t3=l_();const n3=({onClose:t})=>{const r=Ze();return y.jsxs("div",{className:Et.highlightLoadingInfo,onClick:t,children:[y.jsx("div",{className:Et.highlightLoadingInfoCloseIcon,children:y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",children:y.jsx("path",{d:"M205.66,194.34a8,8,0,0,1-11.32,11.32L128,139.31,61.66,205.66a8,8,0,0,1-11.32-11.32L116.69,128,50.34,61.66A8,8,0,0,1,61.66,50.34L128,116.69l66.34-66.35a8,8,0,0,1,11.32,11.32L139.31,128Z"})})}),y.jsxs("div",{className:Et.highlightLoadingInfoInnerContainer,children:[y.jsxs("div",{className:Et.highlightLoadingInfoContent,children:[y.jsx("h3",{children:r("source-infos.highlight-loading.title")}),y.jsx("p",{children:r("source-infos.highlight-loading.description")})]}),y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"#000000",viewBox:"0 0 256 256",children:y.jsx("path",{d:"M253.66,106.34a8,8,0,0,0-11.32,0L192,156.69,107.31,72l50.35-50.34a8,8,0,1,0-11.32-11.32L96,60.69A16,16,0,0,0,93.18,79.5L72,100.69a16,16,0,0,0,0,22.62L76.69,128,18.34,186.34a8,8,0,0,0,3.13,13.25l72,24A7.88,7.88,0,0,0,96,224a8,8,0,0,0,5.66-2.34L136,187.31l4.69,4.69a16,16,0,0,0,22.62,0l21.19-21.18A16,16,0,0,0,203.31,168l50.35-50.34A8,8,0,0,0,253.66,106.34ZM93.84,206.85l-55-18.35L88,139.31,124.69,176ZM152,180.69,83.31,112,104,91.31,172.69,160Z"})})]})]})},r3=({title:t,href:r,children:i})=>y.jsx("a",{href:r,title:t,target:"_blank",rel:"noopener noreferrer",children:i}),a3=({className:t,children:r,...i})=>y.jsx("a",{className:Z(el.button,el.buttonDefault,t),type:"button",role:"button",...i,children:r}),i3=t=>y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",...t,children:y.jsx("path",{d:"M52,146H36a6,6,0,0,0-6,6v56a6,6,0,0,0,6,6H52a34,34,0,0,0,0-68Zm0,56H42V158H52a22,22,0,0,1,0,44Zm168.15-5.46a6,6,0,0,1,.18,8.48A28.06,28.06,0,0,1,200,214c-16.54,0-30-15.25-30-34s13.46-34,30-34a28.06,28.06,0,0,1,20.33,9,6,6,0,0,1-8.66,8.3A16.23,16.23,0,0,0,200,158c-9.93,0-18,9.87-18,22s8.07,22,18,22a16.23,16.23,0,0,0,11.67-5.28A6,6,0,0,1,220.15,196.54ZM128,146c-16.54,0-30,15.25-30,34s13.46,34,30,34,30-15.25,30-34S144.54,146,128,146Zm0,56c-9.93,0-18-9.87-18-22s8.07-22,18-22,18,9.87,18,22S137.93,202,128,202ZM48,118a6,6,0,0,0,6-6V40a2,2,0,0,1,2-2h90V88a6,6,0,0,0,6,6h50v18a6,6,0,0,0,12,0V88a6,6,0,0,0-1.76-4.24l-56-56A6,6,0,0,0,152,26H56A14,14,0,0,0,42,40v72A6,6,0,0,0,48,118ZM158,46.48,193.52,82H158Z"})}),s3=({type:t,...r})=>{switch(t){case"WEBSITE":return y.jsx(Qv,{...r});case"PDF":return y.jsx(Zv,{...r});case"DOCX":return y.jsx(Yv,{...r});case"TEXT":return y.jsx(i3,{...r});default:return y.jsx(Xv,{...r})}},l3=({url:t,knowledgeBaseType:r})=>{const i=Ze();return y.jsx(a3,{className:Et.openSourceButton,href:t,target:"_blank",children:y.jsxs("div",{className:Et.sourceButtonLabel,children:[y.jsx("div",{className:Et.sourceHeaderIcon,children:y.jsx(s3,{type:r})}),y.jsx("p",{children:i("source-infos.open-source")})]})})},o3=({sourceInfos:{content:t,url:r,knowledgeBaseType:i,highlighted:s}})=>{const[u,c]=B.useState(!s);B.useEffect(()=>{s&&c(!1)},[s]);const d=t3.sanitize(t,{USE_PROFILES:{html:!0}});return y.jsxs(y.Fragment,{children:[y.jsxs("div",{className:Z(Et.sourceContent,$v.markdown),children:[y.jsx(xr,{options:{overrides:{a:r3}},children:d}),u&&y.jsx(n3,{onClose:()=>c(!1)})]}),y.jsx(l3,{url:r,knowledgeBaseType:i})]})},u3=""+new URL("undraw_fixing-bugs-D_eYxJc6.svg",import.meta.url).href,c3=()=>{const t=Ze();return y.jsxs("div",{className:Et.loadingError,children:[y.jsx("h1",{children:t("source-infos.error.title")}),y.jsx("img",{src:u3,title:t("source-infos.error.title")}),y.jsx("p",{children:t("source-infos.error.info")})]})},f3=()=>y.jsx("div",{className:Et.loadingSourceInfos,children:y.jsx("svg",{className:Et.loading,xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",children:y.jsx("path",{d:"M230,128a102,102,0,0,1-204,0c0-40.18,23.35-76.86,59.5-93.45a6,6,0,0,1,5,10.9C58.61,60.09,38,92.49,38,128a90,90,0,0,0,180,0c0-35.51-20.61-67.91-52.5-82.55a6,6,0,0,1,5-10.9C206.65,51.14,230,87.82,230,128Z"})})});function d3({sourceInfos:t,onClose:r,threshold:i=100}){const s=B.useRef(null),[u,c]=B.useState(0),[d,h]=B.useState(!1),m=B.useRef(null),p=B.useRef(null),b=B.useCallback(R=>{m.current=R,h(!0)},[]),E=B.useCallback(R=>{if(m.current!==null&&d){const q=R-m.current;q>0&&c(q)}},[d]),A=B.useCallback(()=>{h(!1),u>i&&r(),c(0),m.current=null},[u,i,r]),U=B.useCallback(R=>{const q=O=>b(O.touches[0].clientY),G=O=>E(O.touches[0].clientY),_=()=>A(),C=O=>{O.preventDefault(),b(O.clientY),window.addEventListener("mousemove",S),window.addEventListener("mouseup",H)},S=O=>E(O.clientY),H=()=>{A(),window.removeEventListener("mousemove",S),window.removeEventListener("mouseup",H)};R.addEventListener("touchstart",q),R.addEventListener("touchmove",G),R.addEventListener("touchend",_),R.addEventListener("mousedown",C),p.current=()=>{R.removeEventListener("touchstart",q),R.removeEventListener("touchmove",G),R.removeEventListener("touchend",_),R.removeEventListener("mousedown",C),window.removeEventListener("mousemove",S),window.removeEventListener("mouseup",H)}},[b,E,A]);return B.useEffect(()=>{let R;return(()=>{s.current?(p.current?.(),U(s.current)):(R=new MutationObserver(()=>{s.current&&(p.current?.(),U(s.current),R?.disconnect())}),R.observe(document.body,{childList:!0,subtree:!0}))})(),()=>{R?.disconnect(),p.current?.()}},[U,t]),{ref:s,dragOffsetY:u,isDragging:d}}const h3=t=>{const[r,i]=B.useState(!0);return B.useEffect(()=>{let s=null;return t?.type==="loading"?(i(!0),s=setTimeout(()=>{i(!1)},300)):i(!t),()=>{s&&clearTimeout(s)}},[t]),r},m3=()=>{const t=Nr(),r=it(m=>m.chat.sourceInfos),i=n_(),s=B.useRef(null),u=h3(r);B.useEffect(()=>{s.current&&r?.type==="loading"&&(i?s.current.showModal():(s.current.setAttribute("open","true"),s.current?.focus()))},[r,i]);const c=B.useCallback(()=>{s.current&&(i?s.current.close():s.current.removeAttribute("open"),t(Ox()))},[t,i]),{ref:d,dragOffsetY:h}=d3({onClose:c,sourceInfos:r});return r?y.jsx("dialog",{ref:s,className:Z(Et.sourceInfos,u?Et.waitForLoading:r.type==="loading"?Et.loadingContent:""),style:i&&h?{transform:`translateY(${h}px)`}:{},onClose:c,autoFocus:!0,role:"dialog","aria-labelledby":"source-info-title",children:u?null:y.jsxs(y.Fragment,{children:[y.jsx(DN,{ref:d,tabIndex:-1,sourceInfos:r.type==="loaded"?r:void 0,onClose:c}),r.type==="loading"?y.jsx(f3,{}):r.type==="loading-error"?y.jsx(c3,{}):y.jsxs(y.Fragment,{children:[y.jsx(LN,{loading:!r.highlighted}),y.jsx(o3,{sourceInfos:r})]})]})}):null},p3="_container_1aof3_1",g3="_body_1aof3_7",y3="_intro_1aof3_14",b3="_footer_1aof3_39",v3="_footnote_1aof3_43",_3="_containerWithFootnote_1aof3_58",E3="_startChatButton_1aof3_73",S3="_spinner_1aof3_88",T3="_formFields_1aof3_92",A3="_formField_1aof3_92",O3="_radio_1aof3_104",x3="_checkbox_1aof3_111",R3="_input_1aof3_119",w3="_inputLabel_1aof3_153",C3="_selectWrapper_1aof3_157",N3="_select_1aof3_157",M3="_selectLabel_1aof3_203",_t={container:p3,body:g3,intro:y3,footer:b3,footnote:v3,containerWithFootnote:_3,startChatButton:E3,spinner:S3,formFields:T3,formField:A3,radio:O3,checkbox:x3,input:R3,inputLabel:w3,selectWrapper:C3,select:N3,selectLabel:M3},D3=({name:t,label:r,defaultValue:i,required:s,onChange:u})=>{const c=d=>{u(d.currentTarget.checked?"true":"false")};return y.jsxs("label",{className:Z(_t.checkbox,"chat__startScreen__checkbox"),htmlFor:t,children:[y.jsx("input",{type:"checkbox",id:t,name:t,defaultChecked:i==="true",required:s,onChange:c}),y.jsx("div",{children:r})]})},L3=({type:t,name:r,label:i,defaultValue:s,placeholder:u,required:c,multiple:d,min:h,max:m,pattern:p,onChange:b})=>{const E=A=>{b(A.target.value)};return y.jsxs("label",{className:Z(_t.input,"chat__startScreen__input"),htmlFor:r,children:[y.jsx("div",{className:Z(_t.inputLabel),children:i}),y.jsx("input",{type:t,id:r,name:r,defaultValue:s,placeholder:u,required:c,multiple:d,min:h,max:m,pattern:p,onChange:E})]})},B3=({name:t,value:r,label:i,defaultChecked:s,required:u,onChange:c})=>{const d=`${t}-${r}`,h=m=>{c(m.target.value)};return y.jsxs("label",{className:Z(_t.radio,"chat__startScreen__radio"),htmlFor:d,children:[y.jsx("input",{id:d,type:"radio",name:t,value:r,defaultChecked:s,required:u,onChange:h}),y.jsx("span",{className:Z(_t.label),children:i})]})},U3=({name:t,label:r,defaultValue:i,required:s,multiple:u,options:c,onChange:d})=>{const h=m=>{d(m.target.value)};return y.jsxs("label",{className:Z(_t.select,"chat__startScreen__select"),htmlFor:t,children:[y.jsx("div",{className:Z(_t.selectLabel),children:r}),y.jsx("div",{className:Z(_t.selectWrapper),children:y.jsx("select",{id:t,name:t,defaultValue:i,required:s,multiple:u,onChange:h,children:Object.entries(c||{}).map(([m,p])=>y.jsx("option",{value:m,selected:p===i,children:p}))})})]})},H3="start-screen.intro",j3="start-screen.start-chat",I3="start-screen.waiting-for-login",z3="start-screen.footnote",Hn="start-screen.form",Zb=`${Hn}.fields`,G3=()=>{const t=Ze(),r=Nr(),i=Eu(),s=it(R=>R.startScreen.loginRequestToken),u=it(R=>R.settings.requiresUserAuthentication);B.useEffect(()=>{let R;if(s){const _=window.screenX+(window.outerWidth-600)/2,C=window.screenY+(window.outerHeight-700)/2,S=window.open(`/${i}/auth/login?loginRequestToken=${s}`,"Login",`width=600,height=700,left=${_},top=${C},resizable=yes,scrollbars=yes`);R=setInterval(()=>{S?.closed&&(r(Ex()),clearInterval(R))},500)}return()=>{R&&clearInterval(R)}},[i,s,r]);const[c,d]=B.useState({}),h=()=>{const R=Object.entries(c).reduce((q,[G,_])=>({...q,[G]:_.value}),{});r(u?_x({loginRequestToken:Wo(),formValues:R}):yx({formValues:R}))},m=t(H3),p=t(s?I3:j3),b=t(z3),E=B.useMemo(()=>t(Zb)?.split(";").map(R=>R.trim())??[],[t(Zb)]);B.useEffect(()=>{E.length&&Object.keys(c).length===0&&d(E.reduce((R,q)=>({...R,[q]:k3(q,t)}),{}))},[t,E,c]);const A=R=>{R.preventDefault(),h()},U=R=>q=>{d(G=>({...G,[R]:{...G[R],value:q}}))};return y.jsxs("form",{onSubmit:A,className:Z(_t.container,b&&_t.containerWithFootnote,"chat__startScreen"),children:[y.jsxs("div",{className:Z(_t.body,"chat__startScreen__body"),children:[m&&y.jsx("div",{className:Z(_t.intro,"chat__startScreen__intro"),children:y.jsx(xr,{options:{overrides:{a:Qb}},children:m})}),y.jsx("div",{className:Z(_t.formFields,"chat__startScreen__fields"),children:Object.values(c).map(({type:R,name:q,label:G,placeholder:_,defaultValue:C,options:S,required:H,multiple:O,min:Q,max:W,pattern:ae})=>y.jsx("div",{className:Z(_t.formField,"chat__startScreen__field"),children:(()=>{switch(R){case"radio":return y.jsxs(y.Fragment,{children:[y.jsx("div",{children:G}),Object.entries(S||{}).map(([ye,Ee])=>y.jsx(B3,{name:q,value:ye,label:Ee,defaultChecked:ye===C,required:H,onChange:U(q)},ye))]});case"checkbox":return y.jsx(D3,{name:q,label:G,defaultValue:C,required:H,onChange:U(q)});case"select":return y.jsx(U3,{name:q,label:G,defaultValue:C,required:H,multiple:O,options:S,onChange:U(q)});default:return y.jsx(L3,{type:R,name:q,label:G,placeholder:_,defaultValue:C,required:H,multiple:O,min:Q,max:W,pattern:ae,onChange:U(q)})}})()},q))})]}),y.jsxs("div",{className:Z(_t.footer,"chat__startScreen__footer"),children:[y.jsxs(iu,{type:"submit",className:_t.startChatButton,disabled:!!s,children:[!!s&&y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",className:_t.spinner,children:y.jsx("path",{d:"M136,32V64a8,8,0,0,1-16,0V32a8,8,0,0,1,16,0Zm88,88H192a8,8,0,0,0,0,16h32a8,8,0,0,0,0-16Zm-45.09,47.6a8,8,0,0,0-11.31,11.31l22.62,22.63a8,8,0,0,0,11.32-11.32ZM128,184a8,8,0,0,0-8,8v32a8,8,0,0,0,16,0V192A8,8,0,0,0,128,184ZM77.09,167.6,54.46,190.22a8,8,0,0,0,11.32,11.32L88.4,178.91A8,8,0,0,0,77.09,167.6ZM72,128a8,8,0,0,0-8-8H32a8,8,0,0,0,0,16H64A8,8,0,0,0,72,128ZM65.78,54.46A8,8,0,0,0,54.46,65.78L77.09,88.4A8,8,0,0,0,88.4,77.09Z"})}),y.jsx("div",{children:p})]}),b&&y.jsx("div",{className:_t.footnote,children:y.jsx(xr,{options:{overrides:{a:Qb}},children:b})})]})]})},Qb=({title:t,href:r,children:i})=>y.jsx("a",{href:r,title:t,target:"_blank",rel:"noopener noreferrer",children:i}),k3=(t,r)=>{const i=r(`${Hn}.${t}.type`)||"text",s=r(`${Hn}.${t}.required`)==="true",u=r(`${Hn}.${t}.multiple`)==="true",c=r(`${Hn}.${t}.placeholder`),d=r(`${Hn}.${t}.label`)||"",h=r(`${Hn}.${t}.defaultValue`),m=r(`${Hn}.${t}.min`),p=r(`${Hn}.${t}.max`),b=r(`${Hn}.${t}.pattern`),E=F3(r(`${Hn}.${t}.options`));return{name:t,label:d,placeholder:c,value:q3(i,h,E)||"",defaultValue:h,options:E,type:i,required:s,multiple:u,min:m,max:p,pattern:b}},q3=(t,r,i)=>r||t==="select"&&Object.keys(i)[0]||"",F3=(t="")=>t.split(";").map(r=>r.trim()).reduce((r,i)=>{const[s,u]=i.split(":").map(c=>c.trim());return{...r,[s]:u}},{}),V3=()=>{const t=uu();B.useEffect(()=>{window.document.documentElement.lang=t.locale},[t.locale])},xi={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"},P3=({clientName:t})=>{V3();const r=Nr(),i=it(b=>b.intl.messages),s=Ze(),u=it(b=>b.settings.enableStartScreen),c=it(b=>b.startScreen.startScreenStatus),[d,h]=B.useState(void 0);B.useEffect(()=>{const b=cu.parse(window.location.search);b.cssClassName&&h(b.cssClassName);const E=A=>{switch(A.data.type){case xi.TRIGGER_ACTION:r(A.data.action);break;case xi.TRIGGER_STORY:r(mv(A.data.story));break;case xi.ON_CHAT_WINDOW_OPEN:r({type:"webclient.chatwindow.opened"});break;case xi.ON_CHAT_WINDOW_CLOSE:r({type:"webclient.chatwindow.closed"});break;case xi.CHAT_MESSAGE_FROM_GUEST:r(uv(A.data.text));break;case xi.RESTART_CHAT:r(yu(t,b));break}};return r(Rx(t,b)),window.addEventListener("message",A=>E(A),!1),()=>window.removeEventListener("message",E)},[t,r]),B.useEffect(()=>{const b=s("page.title");b&&document&&(document.title=b)},[i,s]);const m=u===void 0,p=u===!1||c==="HIDDEN";return y.jsx("div",{className:Z(Ib.chatwindow,p&&Ib.chatwindowWithAside,"chat__chatwindow",d),children:m?null:p?y.jsxs(y.Fragment,{children:[y.jsx("header",{children:y.jsx(jb,{chatStarted:!0})}),y.jsx("main",{children:y.jsx(KC,{clientName:t})}),y.jsx("aside",{children:y.jsx(m3,{})})]}):y.jsxs(y.Fragment,{children:[y.jsx("header",{children:y.jsx(jb,{chatStarted:!1})}),y.jsx("main",{children:y.jsx(G3,{})})]})})},Y3=()=>{const t=Eu(),r=n_(),i=it(u=>u.intl.locale),s=it(u=>u.intl.messages);return y.jsx(NA,{locale:i,messages:s,onError:()=>{},children:y.jsx("div",{className:Z([DA.app,r?"chat__small":"chat__large"]),children:y.jsx(P3,{clientName:t})})})};var Td,Kb;function Kh(){if(Kb)return Td;Kb=1;function t(r){var i=typeof r;return r!=null&&(i=="object"||i=="function")}return Td=t,Td}var Ad,$b;function X3(){if($b)return Ad;$b=1;var t=typeof yo=="object"&&yo&&yo.Object===Object&&yo;return Ad=t,Ad}var Od,Wb;function o_(){if(Wb)return Od;Wb=1;var t=X3(),r=typeof self=="object"&&self&&self.Object===Object&&self,i=t||r||Function("return this")();return Od=i,Od}var xd,Jb;function Z3(){if(Jb)return xd;Jb=1;var t=o_(),r=function(){return t.Date.now()};return xd=r,xd}var Rd,e1;function Q3(){if(e1)return Rd;e1=1;var t=/\s/;function r(i){for(var s=i.length;s--&&t.test(i.charAt(s)););return s}return Rd=r,Rd}var wd,t1;function K3(){if(t1)return wd;t1=1;var t=Q3(),r=/^\s+/;function i(s){return s&&s.slice(0,t(s)+1).replace(r,"")}return wd=i,wd}var Cd,n1;function u_(){if(n1)return Cd;n1=1;var t=o_(),r=t.Symbol;return Cd=r,Cd}var Nd,r1;function $3(){if(r1)return Nd;r1=1;var t=u_(),r=Object.prototype,i=r.hasOwnProperty,s=r.toString,u=t?t.toStringTag:void 0;function c(d){var h=i.call(d,u),m=d[u];try{d[u]=void 0;var p=!0}catch{}var b=s.call(d);return p&&(h?d[u]=m:delete d[u]),b}return Nd=c,Nd}var Md,a1;function W3(){if(a1)return Md;a1=1;var t=Object.prototype,r=t.toString;function i(s){return r.call(s)}return Md=i,Md}var Dd,i1;function J3(){if(i1)return Dd;i1=1;var t=u_(),r=$3(),i=W3(),s="[object Null]",u="[object Undefined]",c=t?t.toStringTag:void 0;function d(h){return h==null?h===void 0?u:s:c&&c in Object(h)?r(h):i(h)}return Dd=d,Dd}var Ld,s1;function eM(){if(s1)return Ld;s1=1;function t(r){return r!=null&&typeof r=="object"}return Ld=t,Ld}var Bd,l1;function tM(){if(l1)return Bd;l1=1;var t=J3(),r=eM(),i="[object Symbol]";function s(u){return typeof u=="symbol"||r(u)&&t(u)==i}return Bd=s,Bd}var Ud,o1;function nM(){if(o1)return Ud;o1=1;var t=K3(),r=Kh(),i=tM(),s=NaN,u=/^[-+]0x[0-9a-f]+$/i,c=/^0b[01]+$/i,d=/^0o[0-7]+$/i,h=parseInt;function m(p){if(typeof p=="number")return p;if(i(p))return s;if(r(p)){var b=typeof p.valueOf=="function"?p.valueOf():p;p=r(b)?b+"":b}if(typeof p!="string")return p===0?p:+p;p=t(p);var E=c.test(p);return E||d.test(p)?h(p.slice(2),E?2:8):u.test(p)?s:+p}return Ud=m,Ud}var Hd,u1;function rM(){if(u1)return Hd;u1=1;var t=Kh(),r=Z3(),i=nM(),s="Expected a function",u=Math.max,c=Math.min;function d(h,m,p){var b,E,A,U,R,q,G=0,_=!1,C=!1,S=!0;if(typeof h!="function")throw new TypeError(s);m=i(m)||0,t(p)&&(_=!!p.leading,C="maxWait"in p,A=C?u(i(p.maxWait)||0,m):A,S="trailing"in p?!!p.trailing:S);function H(ce){var Pe=b,ve=E;return b=E=void 0,G=ce,U=h.apply(ve,Pe),U}function O(ce){return G=ce,R=setTimeout(ae,m),_?H(ce):U}function Q(ce){var Pe=ce-q,ve=ce-G,z=m-Pe;return C?c(z,A-ve):z}function W(ce){var Pe=ce-q,ve=ce-G;return q===void 0||Pe>=m||Pe<0||C&&ve>=A}function ae(){var ce=r();if(W(ce))return ye(ce);R=setTimeout(ae,Q(ce))}function ye(ce){return R=void 0,S&&b?H(ce):(b=E=void 0,U)}function Ee(){R!==void 0&&clearTimeout(R),G=0,b=q=E=R=void 0}function se(){return R===void 0?U:ye(r())}function me(){var ce=r(),Pe=W(ce);if(b=arguments,E=this,q=ce,Pe){if(R===void 0)return O(q);if(C)return clearTimeout(R),R=setTimeout(ae,m),H(q)}return R===void 0&&(R=setTimeout(ae,m)),U}return me.cancel=Ee,me.flush=se,me}return Hd=d,Hd}var jd,c1;function aM(){if(c1)return jd;c1=1;var t=rM(),r=Kh(),i="Expected a function";function s(u,c,d){var h=!0,m=!0;if(typeof u!="function")throw new TypeError(i);return r(d)&&(h="leading"in d?!!d.leading:h,m="trailing"in d?!!d.trailing:m),t(u,c,{leading:h,maxWait:c,trailing:m})}return jd=s,jd}var iM=aM();const sM=yh(iM);function lM(t){return t&&t.constructor&&typeof t.constructor.isBuffer=="function"&&t.constructor.isBuffer(t)}function oM(t){return t}function uM(t,r){r=r||{};const i=r.delimiter||".",s=r.maxDepth,u=r.transformKey||oM,c={};function d(h,m,p){p=p||1,Object.keys(h).forEach(function(b){const E=h[b],A=r.safe&&Array.isArray(E),U=Object.prototype.toString.call(E),R=lM(E),q=U==="[object Object]"||U==="[object Array]",G=m?m+i+u(b):u(b);if(!A&&!R&&q&&Object.keys(E).length&&(!r.maxDepth||p<s))return d(E,G,p+1);c[G]=E})}return d(t),c}const c_={"page.title":"Bubble Chat Chatbot","message-input-label":"Benutzereingabe","message-input-placeholder":"Nachricht eingeben","message-input.actions.submit.label":"Nachricht senden","message-input.actions.start-audio-recording.label":"Spracheingabe starten","message-input.actions.stop-audio-recording.label":"Spracheingabe stoppen","message-input.actions.submit-audio-recording.label":"Spracheingabe übermitteln","guest-bubble.label":"Ihre Nachricht","bot-bubble.label":"Nachricht des Chatbots","bot-bubble.reaction.good":"Gefällt mir","bot-bubble.reaction.bad":"Gefällt mir nicht","bot-bubble.reaction.remove":"Markierung entfernen","bot-bubble.reaction.say-more":"Erzähle mir bitte mehr","bot-bubble.reaction.category.WRONG_INFORMATION":"Falsch","bot-bubble.reaction.category.MISSING_INFORMATION":"Unvollständig","bot-bubble.reaction.category.OLD_INFORMATION":"Veraltet","bot-bubble.reaction.category.UNCLEAR":"Unklar","bot-bubble.reaction.category.OFF_TOPIC":"Nicht zur Frage passend","bot-bubble.reaction.comment":"Gedanken mit mir teilen...","bot-bubble.reaction.close":"Schliessen","bot-bubble.copy":"Kopieren","bot-bubble.sources":"Quellenliste","bot-bubble.source.open":"Quelle öffnen","agent-bubble.label":"Nachricht des Live-Agenten","export-transcript.email.title":"Chatverlauf per E-Mail versenden","export-transcript.email.description":"Bitte E-Mail-Adresse angeben, an die der Chatverlauf gesendet werden soll.","export-transcript.email.cancel":"Abbrechen","export-transcript.email.send":"Senden","export-transcript.email.placeholder":"E-Mail-Adresse","export-transcript.email.invalid":"Bitte gültige E-Mail-Adresse eingeben.","export-transcript.email.success":"Der Chatverlauf wurde an die hinterlegte E-Mail-Adresse übermittelt.","general-conditions.header":"**Nutzungsbedingungen**","general-conditions.body":`Bitte berücksichtigen Sie die folgenden Punkte:
107
+ `).every(x=>(x+=`
108
+ `,!c.some(Q=>Q.test(x))&&(S+=x,!!x.trim())));const H=$s(S);return H===""?null:[S,,H]}),i:3,u:hd,l:(_,C,S)=>h("p",{key:S.key},C(_.children,S))},22:{t:["["],o:aa(hR),i:0,u:_=>(E[_[1]]={target:_[2],title:_[4]},{}),l:pd},23:{t:["!["],o:ia(mR),i:0,u:_=>({alt:_[1]?Qn(_[1]):void 0,ref:_[2]}),l:(_,C,S)=>E[_.ref]?h("img",{key:S.key,alt:_.alt,src:s(E[_.ref].target,"img","src"),title:E[_.ref].title}):null},24:{t:_=>_[0]==="["&&_.indexOf("](")===-1,o:aa(pR),i:0,u:(_,C,S)=>({children:C(_[1],S),fallbackChildren:_[0],ref:_[2]}),l:(_,C,S)=>E[_.ref]?h("a",{key:S.key,href:s(E[_.ref].target,"a","href"),title:E[_.ref].title},C(_.children,S)):h("span",{key:S.key},_.fallbackChildren)},25:{t:["|"],o:Sr(Tb),i:1,u:kR,l(_,C,S){const H=_;return h("table",{key:S.key},h("thead",null,h("tr",null,H.header.map(function(x,Q){return h("th",{key:Q,style:Ob(H,Q)},C(x,S))}))),h("tbody",null,H.cells.map(function(x,Q){return h("tr",{key:Q},x.map(function(W,ae){return h("td",{key:ae,style:Ob(H,ae)},C(W,S))}))})))}},27:{o:Ci(function(_,C){let S;return Vo(_,":")&&(S=OR.exec(_)),S||CR.exec(_)}),i:4,u(_){const C=_[0];return{text:C.indexOf("&")===-1?C:C.replace(iR,(S,H)=>r.namedCodesToUnicode[H]||S)}},l:_=>_.text},28:{t:["**","__"],o:ia(SR),i:2,u:(_,C,S)=>({children:C(_[2],S)}),l:(_,C,S)=>h("strong",{key:S.key},C(_.children,S))},29:{t:_=>{const C=_[0];return(C==="*"||C==="_")&&_[1]!==C},o:ia(TR),i:3,u:(_,C,S)=>({children:C(_[2],S)}),l:(_,C,S)=>h("em",{key:S.key},C(_.children,S))},30:{t:["\\"],o:ia(RR),i:1,u:_=>({text:_[1],type:"27"})},31:{t:["=="],o:ia(AR),i:3,u:hd,l:(_,C,S)=>h("mark",{key:S.key},C(_.children,S))},32:{t:["~~"],o:ia(xR),i:3,u:hd,l:(_,C,S)=>h("del",{key:S.key},C(_.children,S))}};r.disableParsingRawHTML===!0&&(delete A[11],delete A[13]);const L=function(_){var C=Object.keys(_);function S(H,x){var Q=[];if(x.prevCapture=x.prevCapture||"",H.trim())for(;H;)for(var W=0;W<C.length;){var ae=C[W],ye=_[ae];if(!ye.t||zR(H,x,ye.t)){var Ee=ye.o(H,x);if(Ee&&Ee[0]){H=H.substring(Ee[0].length);var se=ye.u(Ee,S,x);x.prevCapture+=Ee[0],se.type||(se.type=ae),Q.push(se);break}W++}else W++}return x.prevCapture="",Q}return C.sort(function(H,x){return _[H].i-_[x].i||(H<x?-1:1)}),function(H,x){return S(function(Q){return Q.replace(JO,`
109
+ `).replace(nR,"").replace(yR," ")}(H),x)}}(A),R=(q=function(_,C){return function(S,H,x){const Q=_[S.type].l;return C?C(()=>Q(S,H,x),S,H,x):Q(S,H,x)}}(A,r.renderRule),function _(C,S={}){if(Array.isArray(C)){const H=S.key,x=[];let Q=!1;for(let W=0;W<C.length;W++){S.key=W;const ae=_(C[W],S),ye=typeof ae=="string";ye&&Q?x[x.length-1]+=ae:ae!==null&&x.push(ae),Q=ye}return S.key=H,x}return q(C,_,S)});var q;const G=m(t);return b.length?h("div",null,G,h("footer",{key:"footer"},b.map(function(_){return h("div",{id:i(_.identifier,Is),key:_.identifier},_.identifier,R(L(_.footnote,{inline:!0})))}))):G}const Or=t=>{let{children:r="",options:i}=t,s=function(u,c){if(u==null)return{};var d,h,m={},p=Object.keys(u);for(h=0;h<p.length;h++)c.indexOf(d=p[h])>=0||(m[d]=u[d]);return m}(t,GO);return U.cloneElement(XR(r,i),s)},ZR="_generalConditionsContainer_55hjg_1",QR="_generalConditions_55hjg_1",KR="_generalConditionsHeader_55hjg_15",$R="_generalConditionsBody_55hjg_26",WR="_generalConditionsAccept_55hjg_35",zs={generalConditionsContainer:ZR,generalConditions:QR,generalConditionsHeader:KR,generalConditionsBody:$R,generalConditionsAccept:WR},JR=()=>y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"currentColor",viewBox:"0 0 256 256",children:y.jsx("path",{d:"M212.24,100.24l-80,80a6,6,0,0,1-8.48,0l-80-80a6,6,0,0,1,8.48-8.48L128,167.51l75.76-75.75a6,6,0,0,1,8.48,8.48Z"})}),ew=()=>y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"currentColor",viewBox:"0 0 256 256",children:y.jsx("path",{d:"M212.24,164.24a6,6,0,0,1-8.48,0L128,88.49,52.24,164.24a6,6,0,0,1-8.48-8.48l80-80a6,6,0,0,1,8.48,0l80,80A6,6,0,0,1,212.24,164.24Z"})}),tw="general-conditions.header",nw="general-conditions.body",Rb="general-conditions.accept-conditions-note",rw=()=>{const t=Ze(),[r,i]=U.useState(!1),s=()=>i(!r),u=h=>{h.key==="ArrowDown"||h.key==="ArrowRight"?i(!0):h.key==="ArrowUp"||h.key==="ArrowLeft"||h.key==="Escape"?i(!1):(h.key==="Enter"||h.key==="Space"||h.key===" ")&&s()},c=t(tw),d=t(Rb);return y.jsxs("div",{className:Z(zs.generalConditionsContainer,"chat__generalConditions"),children:[!!c?.length&&y.jsxs("div",{className:zs.generalConditions,children:[y.jsxs("div",{role:"button",onClick:s,onKeyDown:u,tabIndex:0,className:Z(zs.generalConditionsHeader,"chat__generalConditions__header"),"aria-controls":"general-conditions-body","aria-expanded":r?"true":"false","aria-pressed":r?"true":"false",children:[y.jsx(Or,{children:c}),r?y.jsx(ew,{}):y.jsx(JR,{})]}),y.jsx("div",{className:Z(zs.generalConditionsBody,"chat__generalConditions__body"),id:"general-conditions-body",role:"region",tabIndex:-1,children:r&&y.jsx(Or,{children:t(nw)||""})})]}),!!d?.length&&y.jsx("div",{className:Z(zs.generalConditionsAccept,"chat__generalConditions__accept"),tabIndex:0,children:y.jsx(Or,{children:t(Rb)||""})})]})},aw="_messageContainer_q5mf1_1",iw="_message_q5mf1_1",sw="_messageBot_q5mf1_14",lw="_messageBotLast_q5mf1_43",ow="_avatar_q5mf1_43",uw="_messageBotFirst_q5mf1_52",cw="_messageBotAnimated_q5mf1_65",fw="_messageGuest_q5mf1_76",dw="_messageGuestFirst_q5mf1_82",hw="_messageGuestLast_q5mf1_88",mw="_botAvatar_q5mf1_102",pw="_agentAvatar_q5mf1_106",gw="_bubble_q5mf1_110",yw="_bubbleContent_q5mf1_116",bw="_bubbleLeft_q5mf1_130",vw="_leftText_q5mf1_141",_w="_bubbleRight_q5mf1_148",Ew="_rightText_q5mf1_158",Sw="_sourceInfoReference_q5mf1_190",Tw="_sourceInfoReferenceActive_q5mf1_202",ge={messageContainer:aw,message:iw,messageBot:sw,messageBotLast:lw,avatar:ow,messageBotFirst:uw,messageBotAnimated:cw,messageGuest:fw,messageGuestFirst:dw,messageGuestLast:hw,botAvatar:mw,agentAvatar:pw,bubble:gw,bubbleContent:yw,bubbleLeft:bw,leftText:vw,bubbleRight:_w,rightText:Ew,sourceInfoReference:Sw,sourceInfoReferenceActive:Tw},Zh=(t,r)=>{U.useEffect(()=>{const i=s=>{t.current&&!t.current.contains(s.target)&&r()};return document.addEventListener("mousedown",i),()=>document.removeEventListener("mousedown",i)},[t,r])};var yd,wb;function Qh(){if(wb)return yd;wb=1;function t(r){var i=typeof r;return r!=null&&(i=="object"||i=="function")}return yd=t,yd}var bd,Cb;function Aw(){if(Cb)return bd;Cb=1;var t=typeof yo=="object"&&yo&&yo.Object===Object&&yo;return bd=t,bd}var vd,Nb;function Pv(){if(Nb)return vd;Nb=1;var t=Aw(),r=typeof self=="object"&&self&&self.Object===Object&&self,i=t||r||Function("return this")();return vd=i,vd}var _d,Mb;function xw(){if(Mb)return _d;Mb=1;var t=Pv(),r=function(){return t.Date.now()};return _d=r,_d}var Ed,Db;function Ow(){if(Db)return Ed;Db=1;var t=/\s/;function r(i){for(var s=i.length;s--&&t.test(i.charAt(s)););return s}return Ed=r,Ed}var Sd,Lb;function Rw(){if(Lb)return Sd;Lb=1;var t=Ow(),r=/^\s+/;function i(s){return s&&s.slice(0,t(s)+1).replace(r,"")}return Sd=i,Sd}var Td,Bb;function Yv(){if(Bb)return Td;Bb=1;var t=Pv(),r=t.Symbol;return Td=r,Td}var Ad,Ub;function ww(){if(Ub)return Ad;Ub=1;var t=Yv(),r=Object.prototype,i=r.hasOwnProperty,s=r.toString,u=t?t.toStringTag:void 0;function c(d){var h=i.call(d,u),m=d[u];try{d[u]=void 0;var p=!0}catch{}var b=s.call(d);return p&&(h?d[u]=m:delete d[u]),b}return Ad=c,Ad}var xd,Hb;function Cw(){if(Hb)return xd;Hb=1;var t=Object.prototype,r=t.toString;function i(s){return r.call(s)}return xd=i,xd}var Od,jb;function Nw(){if(jb)return Od;jb=1;var t=Yv(),r=ww(),i=Cw(),s="[object Null]",u="[object Undefined]",c=t?t.toStringTag:void 0;function d(h){return h==null?h===void 0?u:s:c&&c in Object(h)?r(h):i(h)}return Od=d,Od}var Rd,Ib;function Mw(){if(Ib)return Rd;Ib=1;function t(r){return r!=null&&typeof r=="object"}return Rd=t,Rd}var wd,zb;function Dw(){if(zb)return wd;zb=1;var t=Nw(),r=Mw(),i="[object Symbol]";function s(u){return typeof u=="symbol"||r(u)&&t(u)==i}return wd=s,wd}var Cd,Gb;function Lw(){if(Gb)return Cd;Gb=1;var t=Rw(),r=Qh(),i=Dw(),s=NaN,u=/^[-+]0x[0-9a-f]+$/i,c=/^0b[01]+$/i,d=/^0o[0-7]+$/i,h=parseInt;function m(p){if(typeof p=="number")return p;if(i(p))return s;if(r(p)){var b=typeof p.valueOf=="function"?p.valueOf():p;p=r(b)?b+"":b}if(typeof p!="string")return p===0?p:+p;p=t(p);var E=c.test(p);return E||d.test(p)?h(p.slice(2),E?2:8):u.test(p)?s:+p}return Cd=m,Cd}var Nd,kb;function Xv(){if(kb)return Nd;kb=1;var t=Qh(),r=xw(),i=Lw(),s="Expected a function",u=Math.max,c=Math.min;function d(h,m,p){var b,E,A,L,R,q,G=0,_=!1,C=!1,S=!0;if(typeof h!="function")throw new TypeError(s);m=i(m)||0,t(p)&&(_=!!p.leading,C="maxWait"in p,A=C?u(i(p.maxWait)||0,m):A,S="trailing"in p?!!p.trailing:S);function H(ce){var Pe=b,ve=E;return b=E=void 0,G=ce,L=h.apply(ve,Pe),L}function x(ce){return G=ce,R=setTimeout(ae,m),_?H(ce):L}function Q(ce){var Pe=ce-q,ve=ce-G,z=m-Pe;return C?c(z,A-ve):z}function W(ce){var Pe=ce-q,ve=ce-G;return q===void 0||Pe>=m||Pe<0||C&&ve>=A}function ae(){var ce=r();if(W(ce))return ye(ce);R=setTimeout(ae,Q(ce))}function ye(ce){return R=void 0,S&&b?H(ce):(b=E=void 0,L)}function Ee(){R!==void 0&&clearTimeout(R),G=0,b=q=E=R=void 0}function se(){return R===void 0?L:ye(r())}function me(){var ce=r(),Pe=W(ce);if(b=arguments,E=this,q=ce,Pe){if(R===void 0)return x(q);if(C)return clearTimeout(R),R=setTimeout(ae,m),H(q)}return R===void 0&&(R=setTimeout(ae,m)),L}return me.cancel=Ee,me.flush=se,me}return Nd=d,Nd}var Bw=Xv();const Uw=lu(Bw),Hw="_container_131ib_1",jw="_categoryContainer_131ib_13",Iw="_categoryButton_131ib_20",zw="_active_131ib_35",Gw="_commentTextarea_131ib_44",Gs={container:Hw,categoryContainer:jw,categoryButton:Iw,active:zw,commentTextarea:Gw},kw=({open:t,actionsRef:r,reaction:i,onReaction:s})=>{const u=Ze(),c=U.useRef(null),d=U.useRef(Uw(p=>{s({...i,comment:p})},300));U.useEffect(()=>{const p=d.current;return()=>p.flush()},[]),U.useEffect(()=>{if(t){const p=()=>{const E=["button:not([disabled])","textarea:not([disabled])",'[tabindex]:not([tabindex="-1"])',"a[href]","input:not([disabled])","select:not([disabled])"].join(","),A=r.current?Array.from(r.current.querySelectorAll(E)):[],L=c.current?Array.from(c.current.querySelectorAll(E)):[];return[...A,...L]},b=E=>{if(E.key==="Tab"){const A=p();if(A.length>0){const L=A[0],R=A[A.length-1],q=document.activeElement;!E.shiftKey&&q===R?(E.preventDefault(),L.focus()):E.shiftKey&&q===L&&(E.preventDefault(),R.focus())}}};return document.addEventListener("keydown",b,!0),()=>{document.removeEventListener("keydown",b,!0)}}},[t,r]);const h=p=>{s({...i,category:i.category===p?void 0:p})},m=p=>d.current(p.target.value);return t?y.jsxs("div",{ref:c,className:Gs.container,role:"dialog","aria-modal":"true","aria-labelledby":"bad-reaction-title",children:[y.jsx("h2",{id:"bad-reaction-title",children:u("bot-bubble.reaction.say-more")}),y.jsx("div",{className:Gs.categoryContainer,role:"radiogroup",children:["WRONG_INFORMATION","MISSING_INFORMATION","OLD_INFORMATION","UNCLEAR","OFF_TOPIC"].map(p=>y.jsx("button",{className:Z(Gs.categoryButton,i?.category===p&&Gs.active),onClick:()=>h(p),"aria-pressed":i?.category===p,"aria-label":u(`bot-bubble.reaction.category.${p}`),tabIndex:0,role:"radio",children:u(`bot-bubble.reaction.category.${p}`)},p))}),y.jsx("textarea",{id:"comment",name:"comment",placeholder:u("bot-bubble.reaction.comment"),defaultValue:i?.comment,onChange:m,className:Gs.commentTextarea,rows:3,"aria-label":u("bot-bubble.reaction.comment")})]}):null},qw="_botMessageActionContainer_1n2uv_1",Fw="_alwaysVisible_1n2uv_11",Vw="_active_1n2uv_15",Pw="_botMessageActionInnerContainer_1n2uv_23",Yw="_header_1n2uv_48",Xw="_botMessageActions_1n2uv_53",Zw="_reported_1n2uv_63",Qw="_action_1n2uv_66",Kw="_wave_1n2uv_79",$w="_anyReport_1n2uv_149",Ww="_closeButton_1n2uv_165",nt={botMessageActionContainer:qw,alwaysVisible:Fw,active:Vw,botMessageActionInnerContainer:Pw,header:Yw,botMessageActions:Xw,reported:Zw,action:Qw,wave:Kw,anyReport:$w,closeButton:Ww},Jw=({isSubmitting:t,onClick:r})=>{const i=Ze();return y.jsx("button",{className:Z(nt.action,nt.closeButton,"tooltip--bottom-left"),"aria-label":i("bot-bubble.reaction.close"),"data-title":i("bot-bubble.reaction.close"),tabIndex:0,onClick:r,children:y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",children:t?y.jsx("path",{d:"M229.66,77.66l-128,128a8,8,0,0,1-11.32,0l-56-56a8,8,0,0,1,11.32-11.32L96,188.69,218.34,66.34a8,8,0,0,1,11.32,11.32Z"}):y.jsx("path",{d:"M205.66,194.34a8,8,0,0,1-11.32,11.32L128,139.31,61.66,205.66a8,8,0,0,1-11.32-11.32L116.69,128,50.34,61.66A8,8,0,0,1,61.66,50.34L128,116.69l66.34-66.35a8,8,0,0,1,11.32,11.32L139.31,128Z"})})})},e6=({alwaysVisible:t,senderType:r,reaction:i,botMessageRef:s,message:u,onReaction:c})=>{const d=Ze(),[h,m]=U.useState(!1),[p,b]=U.useState(!1),[E,A]=U.useState(!1),L=U.useRef(null),R=U.useRef(null);Zh(L,()=>{A(!1)});const q=H=>{H.key==="Escape"&&A(!1)};U.useEffect(()=>(document.addEventListener("keydown",q),()=>{document.removeEventListener("keydown",q)}),[]),U.useEffect(()=>{E&&L.current?.scrollIntoView({behavior:"smooth",block:"nearest",inline:"nearest"})},[E]);const G=H=>{R.current&&clearTimeout(R.current),b(!0),c(H),R.current=setTimeout(()=>{b(!1)},1e3)},_=U.useCallback(async()=>{if(s.current)try{m(!0);const H=s.current.innerHTML,x=s.current.innerText;await navigator.clipboard.write([new ClipboardItem({"text/html":new Blob([H],{type:"text/html"}),"text/plain":new Blob([x],{type:"text/plain"})})]),await new Promise(Q=>setTimeout(Q,1500))}finally{m(!1)}},[s]),C=()=>{A(!1),c(i?.type==="GOOD"?null:{type:"GOOD"})},S=()=>{c({...u.reaction,type:"BAD"}),A(!E)};return y.jsx("div",{ref:L,className:Z(nt.botMessageActionContainer,t&&nt.alwaysVisible,E&&nt.active),children:y.jsxs("div",{className:Z(nt.botMessageActionInnerContainer,t&&nt.alwaysVisible,E&&nt.active,i&&nt.reported),role:"group",children:[y.jsxs("div",{className:nt.header,children:[y.jsxs("div",{className:Z(nt.botMessageActions,i&&nt.reported),children:[r===au.BOT&&y.jsx("button",{className:Z(nt.action,nt.wave,i?.type&&nt.anyReport,i?.type==="GOOD"&&nt.reported,"tooltip--top-right"),tabIndex:0,"aria-label":d(i?.type==="GOOD"?"bot-bubble.reaction.remove":"bot-bubble.reaction.good"),"aria-pressed":i?.type==="GOOD","data-title":d(i?.type==="GOOD"?"bot-bubble.reaction.remove":"bot-bubble.reaction.good"),onClick:C,children:y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",children:i?.type==="GOOD"?y.jsx("path",{d:"M234,80.12A24,24,0,0,0,216,72H160V56a40,40,0,0,0-40-40,8,8,0,0,0-7.16,4.42L75.06,96H32a16,16,0,0,0-16,16v88a16,16,0,0,0,16,16H204a24,24,0,0,0,23.82-21l12-96A24,24,0,0,0,234,80.12ZM32,112H72v88H32Z"}):y.jsx("path",{d:"M234,80.12A24,24,0,0,0,216,72H160V56a40,40,0,0,0-40-40,8,8,0,0,0-7.16,4.42L75.06,96H32a16,16,0,0,0-16,16v88a16,16,0,0,0,16,16H204a24,24,0,0,0,23.82-21l12-96A24,24,0,0,0,234,80.12ZM32,112H72v88H32ZM223.94,97l-12,96a8,8,0,0,1-7.94,7H88V105.89l36.71-73.43A24,24,0,0,1,144,56V80a8,8,0,0,0,8,8h64a8,8,0,0,1,7.94,9Z"})})}),r===au.BOT&&y.jsx("button",{className:Z(nt.action,nt.wave,i?.type&&nt.anyReport,i?.type==="BAD"&&nt.reported,"tooltip--top-right"),tabIndex:0,"aria-label":d("bot-bubble.reaction.bad"),"aria-pressed":i?.type==="BAD","data-title":d("bot-bubble.reaction.bad"),onClick:S,children:y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",children:i?.type==="BAD"?y.jsx("path",{d:"M239.82,157l-12-96A24,24,0,0,0,204,40H32A16,16,0,0,0,16,56v88a16,16,0,0,0,16,16H75.06l37.78,75.58A8,8,0,0,0,120,240a40,40,0,0,0,40-40V184h56a24,24,0,0,0,23.82-27ZM72,144H32V56H72Z"}):y.jsx("path",{d:"M239.82,157l-12-96A24,24,0,0,0,204,40H32A16,16,0,0,0,16,56v88a16,16,0,0,0,16,16H75.06l37.78,75.58A8,8,0,0,0,120,240a40,40,0,0,0,40-40V184h56a24,24,0,0,0,23.82-27ZM72,144H32V56H72Zm150,21.29a7.88,7.88,0,0,1-6,2.71H152a8,8,0,0,0-8,8v24a24,24,0,0,1-19.29,23.54L88,150.11V56H204a8,8,0,0,1,7.94,7l12,96A7.87,7.87,0,0,1,222,165.29Z"})})}),y.jsx("button",{className:Z(nt.action,nt.wave,"tooltip--top-right"),style:{visibility:E?"hidden":"visible"},tabIndex:0,"aria-label":d("bot-bubble.copy"),"data-title":d("bot-bubble.copy"),onClick:_,children:y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",children:h?y.jsx("path",{d:"M229.66,77.66l-128,128a8,8,0,0,1-11.32,0l-56-56a8,8,0,0,1,11.32-11.32L96,188.69,218.34,66.34a8,8,0,0,1,11.32,11.32Z"}):y.jsx("path",{d:"M216,32H88a8,8,0,0,0-8,8V80H40a8,8,0,0,0-8,8V216a8,8,0,0,0,8,8H168a8,8,0,0,0,8-8V176h40a8,8,0,0,0,8-8V40A8,8,0,0,0,216,32ZM160,208H48V96H160Zm48-48H176V88a8,8,0,0,0-8-8H96V48H208Z"})})})]}),E&&y.jsx(Jw,{isSubmitting:p,onClick:()=>A(!1)})]}),u.reaction&&y.jsx(kw,{open:E,actionsRef:L,reaction:u.reaction,onReaction:G})]})})},Zv=U.forwardRef(({message:t,isAnimated:r,isLastMessage:i,isFirstMessageBySender:s,isLastMessageBySender:u,children:c,onReaction:d},h)=>{const m=Ze(),p=U.useRef(null),b=t.sender.type===Te.UserType.BOT;return y.jsxs("li",{ref:h,className:Z(ge.message,ge.messageBot,i&&ge.lastMessage,s&&ge.messageBotFirst,u&&ge.messageBotLast,"chat__bubbleContainer",r&&ge.messageBotAnimated,r&&"chat__bubbleContainer--animated",b?"chat__botBubbleContainer":"chat__agentBubbleContainer",s&&"chat__bubbleContainer--first",u&&"chat__bubbleContainer--last"),children:[y.jsx("img",{className:Z(ge.avatar,b?ge.botAvatar:ge.agentAvatar,"chat__avatar",b?"chat__botAvatar":"chat__agentAvatar"),src:`${t.sender.avatar}`,alt:b?"Bot":"Agent",referrerPolicy:"no-referrer"}),y.jsxs("div",{className:ge.messageContainer,children:[y.jsx("div",{ref:p,className:Z(ge.bubble,ge.bubbleLeft,"chat__bubble",b?"chat__botBubble":"chat__agentBubble"),tabIndex:0,"aria-label":m(b?"bot-bubble.label":"agent-bubble.label"),children:y.jsx("div",{className:Z(ge.leftText),children:c})}),d&&y.jsx(e6,{alwaysVisible:i&&u,senderType:t.sender.type,reaction:t.reaction,message:t,botMessageRef:p,onReaction:d})]})]})}),t6="_sourceList_1n31h_1",n6="_source_1n31h_1",r6="_label_1n31h_37",Md={sourceList:t6,source:n6,label:r6},Qv=t=>y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",...t,children:y.jsx("path",{d:"M52,146H36a6,6,0,0,0-6,6v56a6,6,0,0,0,6,6H52a34,34,0,0,0,0-68Zm0,56H42V158H52a22,22,0,0,1,0,44Zm168.15-5.46a6,6,0,0,1,.18,8.48A28.06,28.06,0,0,1,200,214c-16.54,0-30-15.25-30-34s13.46-34,30-34a28.06,28.06,0,0,1,20.33,9,6,6,0,0,1-8.66,8.3A16.23,16.23,0,0,0,200,158c-9.93,0-18,9.87-18,22s8.07,22,18,22a16.23,16.23,0,0,0,11.67-5.28A6,6,0,0,1,220.15,196.54ZM128,146c-16.54,0-30,15.25-30,34s13.46,34,30,34,30-15.25,30-34S144.54,146,128,146Zm0,56c-9.93,0-18-9.87-18-22s8.07-22,18-22,18,9.87,18,22S137.93,202,128,202ZM48,118a6,6,0,0,0,6-6V40a2,2,0,0,1,2-2h90V88a6,6,0,0,0,6,6h50v18a6,6,0,0,0,12,0V88a6,6,0,0,0-1.76-4.24l-56-56A6,6,0,0,0,152,26H56A14,14,0,0,0,42,40v72A6,6,0,0,0,48,118ZM158,46.48,193.52,82H158Z"})}),Kv=t=>y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",...t,children:y.jsx("path",{d:"M212.24,83.76l-56-56A6,6,0,0,0,152,26H56A14,14,0,0,0,42,40V216a14,14,0,0,0,14,14H200a14,14,0,0,0,14-14V88A6,6,0,0,0,212.24,83.76ZM158,46.48,193.52,82H158ZM200,218H56a2,2,0,0,1-2-2V40a2,2,0,0,1,2-2h90V88a6,6,0,0,0,6,6h50V216A2,2,0,0,1,200,218Z"})}),$v=t=>y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",...t,children:y.jsx("path",{d:"M222,152a6,6,0,0,1-6,6H190v20h18a6,6,0,0,1,0,12H190v18a6,6,0,0,1-12,0V152a6,6,0,0,1,6-6h32A6,6,0,0,1,222,152ZM90,172a26,26,0,0,1-26,26H54v10a6,6,0,0,1-12,0V152a6,6,0,0,1,6-6H64A26,26,0,0,1,90,172Zm-12,0a14,14,0,0,0-14-14H54v28H64A14,14,0,0,0,78,172Zm84,8a34,34,0,0,1-34,34H112a6,6,0,0,1-6-6V152a6,6,0,0,1,6-6h16A34,34,0,0,1,162,180Zm-12,0a22,22,0,0,0-22-22H118v44h10A22,22,0,0,0,150,180ZM42,112V40A14,14,0,0,1,56,26h96a6,6,0,0,1,4.25,1.76l56,56A6,6,0,0,1,214,88v24a6,6,0,0,1-12,0V94H152a6,6,0,0,1-6-6V38H56a2,2,0,0,0-2,2v72a6,6,0,0,1-12,0ZM158,82h35.52L158,46.48Z"})}),Wv=t=>y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",...t,children:y.jsx("path",{d:"M128,26A102,102,0,1,0,230,128,102.12,102.12,0,0,0,128,26Zm81.57,64H169.19a132.58,132.58,0,0,0-25.73-50.67A90.29,90.29,0,0,1,209.57,90ZM218,128a89.7,89.7,0,0,1-3.83,26H171.81a155.43,155.43,0,0,0,0-52h42.36A89.7,89.7,0,0,1,218,128Zm-90,87.83a110,110,0,0,1-15.19-19.45A124.24,124.24,0,0,1,99.35,166h57.3a124.24,124.24,0,0,1-13.46,30.38A110,110,0,0,1,128,215.83ZM96.45,154a139.18,139.18,0,0,1,0-52h63.1a139.18,139.18,0,0,1,0,52ZM38,128a89.7,89.7,0,0,1,3.83-26H84.19a155.43,155.43,0,0,0,0,52H41.83A89.7,89.7,0,0,1,38,128Zm90-87.83a110,110,0,0,1,15.19,19.45A124.24,124.24,0,0,1,156.65,90H99.35a124.24,124.24,0,0,1,13.46-30.38A110,110,0,0,1,128,40.17Zm-15.46-.84A132.58,132.58,0,0,0,86.81,90H46.43A90.29,90.29,0,0,1,112.54,39.33ZM46.43,166H86.81a132.58,132.58,0,0,0,25.73,50.67A90.29,90.29,0,0,1,46.43,166Zm97,50.67A132.58,132.58,0,0,0,169.19,166h40.38A90.29,90.29,0,0,1,143.46,216.67Z"})}),a6=({type:t,...r})=>{switch(t){case"WEBSITE":return y.jsx(Wv,{...r});case"PDF":return y.jsx($v,{...r});case"DOCX":return y.jsx(Qv,{...r});default:return y.jsx(Kv,{...r})}},Kh=({sources:t,onLinkClick:r})=>{const i=Ze(),s=c=>()=>{r(c.url)},u=c=>d=>{(d.key==="Enter"||d.key===" ")&&r(c.url)};return t.length?y.jsx("ul",{className:Md.sourceList,"aria-label":i("bot-bubble.sources"),children:t.map(c=>y.jsx("li",{className:Md.source,children:y.jsxs("a",{role:"button",tabIndex:0,"aria-label":`${i("bot-bubble.source.open")}: ${c.label}`,onClick:s(c),onKeyDown:u(c),children:[y.jsx(a6,{type:c.type,"aria-hidden":"true"}),y.jsx("div",{className:Md.label,children:c.label})]})},c.url))}):null},i6="_button_3ui4g_1",s6="_buttonDefault_3ui4g_13",l6="_buttonPrimary_3ui4g_28",el={button:i6,buttonDefault:s6,buttonPrimary:l6},Eu=({className:t,children:r,...i})=>y.jsx("button",{className:Z(el.button,t),type:"button",role:"button",...i,children:r}),o6="_title_137pi_1",u6="_buttons_137pi_6",c6="_button_137pi_6",f6="_imageContainer_137pi_29",d6="_image_137pi_29",h6="_video_container_137pi_44",m6="_video_137pi_44",p6="_only_137pi_58",on={title:o6,buttons:u6,button:c6,imageContainer:f6,image:d6,video_container:h6,video:m6,only:p6},g6=({buttons:t,onButtonClick:r})=>y.jsx("div",{className:Z(on.buttons,"chat__bubbleButtons"),children:t.map((i,s)=>y.jsx(Eu,{className:Z(on.button,"chat__bubbleButton"),onClick:()=>r(i),children:i.title},s))}),qb="newtab#",Jv=({markdown:t,markdownOptions:r={},onLinkClick:i})=>{const s=c=>d=>(d.preventDefault(),c&&i(c),!1),u=({title:c,href:d,children:h})=>d.indexOf(qb)===0?y.jsx("a",{href:d.slice(qb.length),title:c,target:"_blank",rel:"noopener noreferrer",children:h}):y.jsx("a",{onClick:s(d),title:c,href:d,children:h});return y.jsx(Or,{options:{...r,overrides:{a:u}},children:t})},y6=({text:t,onLinkClick:r})=>t?y.jsx("div",{children:y.jsx(Jv,{markdown:t,onLinkClick:r})}):null,b6=({title:t})=>t?y.jsx("h1",{className:on.title,children:t}):null,v6=({title:t,text:r,buttons:i,onButtonClick:s,onLinkClick:u})=>t?.length||r?.length||i?.length?y.jsxs("div",{className:Z(ge.bubbleContent),children:[y.jsx(b6,{title:t}),y.jsx(y6,{text:r,onLinkClick:u}),y.jsx(g6,{buttons:i,onButtonClick:s})]}):null,_6=({alt:t,imageUrl:r,itemUrl:i,hasBody:s})=>r?i?i.indexOf("youtube.com")>-1?y.jsx("div",{className:on.video_container,children:y.jsx("iframe",{className:Z(on.video,{[on.only]:!s}),title:"Youtube",width:"100%",src:i+"?rel=0",frameBorder:"0",allowFullScreen:!0})}):y.jsx("a",{href:i,target:"_blank",rel:"noopener noreferrer",children:y.jsx("div",{className:on.imageContainer,children:y.jsx("img",{className:Z(on.image,{[on.only]:!s}),src:r,alt:t})})}):y.jsx("div",{className:on.imageContainer,children:y.jsx("img",{className:Z(on.image,{[on.only]:!s}),src:r,alt:t})}):null,E6=({title:t,text:r,imageUrl:i,itemUrl:s,buttons:u,sources:c,onButtonClick:d,onLinkClick:h})=>{const m=!!t?.length||!!r?.length||!!u?.length;return y.jsxs("div",{className:Z(on.detailMessage),children:[y.jsx(_6,{hasBody:m,imageUrl:i,itemUrl:s,alt:t||""}),m&&y.jsx(v6,{title:t,text:r,buttons:u,onLinkClick:h,onButtonClick:d}),y.jsx(Kh,{sources:c,onLinkClick:h})]})},S6=U.forwardRef(({isFirstMessageBySender:t,isLastMessageBySender:r,children:i},s)=>{const u=Ze();return y.jsx("li",{ref:s,className:Z(ge.message,ge.messageGuest,t&&ge.messageGuestFirst,r&&ge.messageGuestLast,"chat__bubbleContainer","chat__guestBubbleContainer",t&&"chat__bubbleContainer--first",r&&"chat__bubbleContainer--last"),children:y.jsx("div",{className:Z(ge.bubble,ge.bubbleRight,"chat__bubble","chat__guestBubble"),tabIndex:0,"aria-label":u("guest-bubble.label"),children:y.jsx("div",{className:Z(ge.rightText),children:i})})})}),T6="_markdown_nw7vg_1",e_={markdown:T6},t_=()=>A6(window.location.pathname),A6=t=>{const r=t.split("/"),i=t.endsWith("/");return r[r.length-(i?2:1)]},Su=()=>U.useMemo(()=>t_(),[]),jo="source-info-reference",x6=({actionId:t,markdown:r,sources:i,onLinkClick:s})=>{const u=Su(),c=Nr(),d=O6(),h=st(b=>{const E=b.chat.sourceInfos;if(E?.type==="loaded"||E?.type==="loading")return E.chunkId}),m=b=>E=>{const A=E.key;(A==="ArrowDown"||A==="ArrowRight"||A==="Enter"||A===" "||A==="Space")&&(E.stopPropagation(),c(fb(u,t,b)))},p=b=>()=>{c(fb(u,t,b))};return U.useLayoutEffect(()=>{document.querySelectorAll(`.${jo}`).forEach(b=>{const E=b.previousSibling;E&&E.nodeType===Node.TEXT_NODE&&E.textContent?.endsWith(" ")&&E.textContent?.trim().length&&b.classList.add(`${jo}--before-space`);const A=b.nextSibling;A&&A.nodeType===Node.TEXT_NODE&&A.textContent?.startsWith(" ")&&A.textContent?.trim().length&&b.classList.add(`${jo}--after-space`)})},[r]),y.jsxs("div",{className:ge.bubbleContent,children:[y.jsx("div",{className:e_.markdown,children:y.jsx(Jv,{markdown:r,onLinkClick:s,markdownOptions:{renderRule(b,E,A,L){if(E.type===kO.footnoteReference){const R=E.text===h;return y.jsx("span",{className:Z(ge.sourceInfoReference,R&&ge.sourceInfoReferenceActive,jo),children:y.jsx("a",{type:"button",tabIndex:0,onClick:p(E.text),onKeyDown:m(E.text),children:d(E.text)})},L.key)}return b()}}})}),y.jsx(Kh,{sources:i,onLinkClick:s})]})},O6=()=>{const t=[];return i=>{const s=t.indexOf(i);return s>-1?s+1:(t.push(i),t.length)}},R6="_text_gp0s0_1",w6="_command_gp0s0_5",Fb={text:R6,command:w6},C6=({text:t,commands:r=[]})=>{const i=r.find(u=>t.startsWith(`/${u}`)),s=i?t.slice(i.length+1):t;return y.jsxs("div",{children:[i&&y.jsxs("code",{className:Fb.command,children:["/",i]}),s.split(`
110
+ `).map((u,c)=>y.jsxs("span",{className:Fb.text,children:[u,y.jsx("br",{})]},c))]})},N6=({text:t,commands:r,sources:i,onLinkClick:s})=>y.jsxs("div",{className:ge.bubbleContent,children:[y.jsx(C6,{text:t,commands:r}),y.jsx(Kh,{sources:i,onLinkClick:s})]}),M6=U.forwardRef(({message:t,commands:r,isLastMessage:i,isFirstMessageBySender:s,isLastMessageBySender:u,onReaction:c,onButtonClick:d,onLinkClick:h},m)=>{const p=D6(t._id,t,r,d,h),b=E=>{c(t._id,E)};switch(t.sender.type){case Te.UserType.GUEST:return y.jsx(S6,{ref:m,isFirstMessageBySender:s,isLastMessageBySender:u,children:p});default:return y.jsx(Zv,{ref:m,message:t,isAnimated:!1,isLastMessage:i,isFirstMessageBySender:s,isLastMessageBySender:u,onReaction:b,children:p})}}),D6=(t,r,i,s,u)=>{switch(r.type){case Te.MessageTypeEnum.TEXT:{const c=r;return y.jsx(N6,{text:c.text,commands:i,sources:r.sources||[],onLinkClick:u})}case Te.MessageTypeEnum.DETAIL:{const c=r;return y.jsx(E6,{title:c.title,text:c.text,imageUrl:c.imageUrl,itemUrl:c.itemUrl,buttons:c.buttons,sources:r.sources||[],onButtonClick:s,onLinkClick:u})}case Te.MessageTypeEnum.MARKDOWN:{const c=r;return y.jsx(x6,{actionId:t,markdown:c.markdown,sources:c.sources||[],onLinkClick:u})}}},L6=(t,r)=>t.message._id===r.message._id&&t.message.reaction===r.message.reaction&&t.isLastMessage===r.isLastMessage&&t.isFirstMessageBySender===r.isFirstMessageBySender&&t.isLastMessageBySender===r.isLastMessageBySender,B6=_1.memo(M6,L6),U6="_ticontainer_xg0dn_1",H6="_tiblock_xg0dn_5",j6="_tidot_xg0dn_12",ks={ticontainer:U6,tiblock:H6,tidot:j6},I6=({isTyping:t=!1})=>y.jsx("div",{className:ks.ticontainer,children:y.jsx("div",{className:ks.tiblock,children:t?y.jsxs(y.Fragment,{children:[y.jsx("div",{className:Z(ks.tidot,"chat__typingIndicator")}),y.jsx("div",{className:Z(ks.tidot,"chat__typingIndicator")}),y.jsx("div",{className:Z(ks.tidot,"chat__typingIndicator")})]}):null})}),z6=Object.assign({_id:"typing-indicator"},new Te.TextMessage("",new Te.BotUser)),G6=({messages:t,isBotTyping:r,commands:i,onTranscriptItemReaction:s,onButtonClick:u,onLinkClick:c})=>{const d=U.useRef(0),h=U.useRef(!0),m=U.useRef(null),p=U.useRef(null),b=U.useRef(null),E=st(R=>R.settings.enableGeneralConditions);U.useLayoutEffect(()=>{if(t.length&&m.current&&(d.current<t.length||r)){if(p.current){const R=p.current.offsetTop;m.current.scrollTop=R}else if(b.current){const R=b.current.offsetTop;m.current.scrollTop=R}h.current&&(h.current=!1),d.current=t.length}},[t,h,r]);let A;const L=t.length;return y.jsxs("div",{ref:m,className:Z(hb.messageContainer,"chat__messageContainer"),style:{scrollBehavior:t.length&&h.current?"auto":"smooth"},id:"MessageContainer",role:"log","aria-live":"polite",children:[E&&y.jsx(rw,{}),y.jsxs("ul",{className:hb.messages,children:[t.map((R,q)=>{const G=k6(R,A),_=q6(R,q,t,r);A=R.sender.type;const C=q+1===L,S=R._id||`added-${q}`;return y.jsx(B6,{ref:C?b:null,message:R,commands:i,isLastMessage:C,isFirstMessageBySender:G,isLastMessageBySender:_,onButtonClick:u,onLinkClick:c,onReaction:s},C&&!r?"last":S)}),r&&y.jsx(Zv,{ref:p,message:z6,isLastMessage:!1,isAnimated:!0,isFirstMessageBySender:A!==Te.UserType.BOT,isLastMessageBySender:!0,children:y.jsx(I6,{isTyping:!0})},"last")]})]})},k6=(t,r)=>!r||r!==t.sender.type,q6=(t,r,i,s)=>{const u=t.sender.type,c=i.length;return r+1===c?!(u===Te.UserType.BOT&&s):u!==i.at(r+1)?.sender.type},F6="_bottomSheet_jp8dl_1",V6="_bottomSheetOpen_jp8dl_15",P6="_bottomSheetClose_jp8dl_20",Rr={bottomSheet:F6,bottomSheetOpen:V6,bottomSheetClose:P6},Y6="_container_xc2nx_1",Vb={container:Y6},X6=({contentUrl:t})=>{const r=st(c=>c.connection.sessionId),[i,s]=U.useState(!1);U.useEffect(()=>{s(c=>c||!!t)},[t]);const u=U.useMemo(()=>{if(t&&r){const c=new URL(t,document.baseURI);return c.searchParams.set("sessionId",r),c.toString()}else return},[t,r]);return y.jsx("div",{className:Z(Vb.container,Rr.bottomSheet,{[Rr.bottomSheetOpen]:!!t,[Rr.bottomSheetClose]:i&&!t}),children:u&&y.jsx("iframe",{title:"Drawer",src:u,className:Vb.iframe})})},Z6="_container_z787n_1",Q6={container:Z6},K6=({title:t,href:r,children:i})=>y.jsx("a",{href:r,title:t,target:"_blank",rel:"noopener noreferrer",children:i}),$6=()=>{const r=Ze()("powered-by");return r&&r.length?y.jsx("div",{className:Z(Q6.container,"chat__poweredBy"),children:y.jsx(Or,{options:{overrides:{a:K6}},children:r})}):null},n_=({className:t,children:r,...i})=>y.jsx(Eu,{className:Z(el.buttonDefault,t),type:"button",...i,children:r}),iu=({className:t,children:r,...i})=>y.jsx(Eu,{className:Z(el.buttonPrimary,t),...i,children:r}),W6="_container_h23mk_1",J6="_formContainer_h23mk_17",eC="_emailInput_h23mk_22",tC="_description_h23mk_52",nC="_actions_h23mk_57",rC="_validationError_h23mk_67",aC="_submitted_h23mk_74",La={container:W6,formContainer:J6,emailInput:eC,description:tC,actions:nC,validationError:rC,submitted:aC},iC=({visible:t,onEmailExport:r,onClose:i})=>{const s=Ze(),[u,c]=U.useState(void 0),[d,h]=U.useState(!1),[m,p]=U.useState(void 0),b=U.useRef(null);U.useEffect(()=>{t?(b.current?.focus(),h(!1),c(t)):u===!0&&c(!1)},[t,u]);const E=L=>{L.preventDefault(),m&&m.length>0&&(r(m),h(!0),setTimeout(i,3*1e3))},A=L=>{const R=L.target.value.trim(),q=/^\w+([.-]?\w+)*@\w+([.-]?\w+)*(\.\w{2,3})+$/.test(R);p(q?R:"")};return y.jsxs("div",{className:Z(La.container,Rr.bottomSheet,{[Rr.bottomSheetOpen]:u===!0,[Rr.bottomSheetClose]:u===!1}),children:[y.jsx("h2",{children:s("export-transcript.email.title")}),y.jsx(Or,{className:La.description,children:s("export-transcript.email.description")||""}),y.jsxs("form",{onSubmit:E,className:La.formContainer,children:[y.jsxs("div",{children:[y.jsx("input",{disabled:d,ref:b,type:"email",placeholder:s("export-transcript.email.placeholder"),className:La.emailInput,onChange:A}),m?.length===0?y.jsx("div",{className:La.validationError,children:s("export-transcript.email.invalid")}):null]}),y.jsxs("div",{className:La.actions,children:[y.jsx(n_,{onClick:i,children:s("export-transcript.email.cancel")}),y.jsx(iu,{type:"submit",disabled:d||m===void 0||m.length===0,children:s("export-transcript.email.send")})]})]}),d&&y.jsx("div",{className:La.submitted,children:s("export-transcript.email.success")})]})},sC="_inputContainer_fi5ao_1",lC={inputContainer:sC},oC="_blockUserInput_pot9c_1",uC={blockUserInput:oC},cC=({visible:t})=>{const r=Ze();return t?y.jsx("div",{className:Z(uC.blockUserInput,"chat__blockUserInput"),children:r("block-user-input.title")}):null},fC="_commandsDropdown_5ytuv_1",dC="_commands_5ytuv_1",hC="_command_5ytuv_1",mC="_commandActive_5ytuv_46",pC="_commandsSelections_5ytuv_55",Qs={commandsDropdown:fC,commands:dC,command:hC,commandActive:mC,commandsSelections:pC},gC=(t,r,i,s,u)=>{U.useEffect(()=>{const c=d=>{if(t.length)switch(d.key){case"Enter":i(t[r]);break;case"ArrowUp":s(h=>h>0?h-1:t.length-1);break;case"ArrowDown":s(h=>h<t.length-1?h+1:0);break;case"Escape":u([]);break}};return document.addEventListener("keydown",c),()=>{document.removeEventListener("keydown",c)}},[t,r,i,s,u])},yC=({text:t,commands:r,onSelectCommand:i,onVisibilityChange:s})=>{const u=U.useRef(null),c=Ze(),[d,h]=U.useState([]),[m,p]=U.useState(Pb(r)),[b,E]=U.useState(0),A=L=>i(`/${L}`);return Zh(u,()=>h([])),gC(d,b,A,E,h),U.useEffect(()=>{p(Pb(r))},[r]),U.useEffect(()=>{const L=t.length||0;L===0||L>m||!t.startsWith("/")?h([]):h(r.filter(bC(t))),E(0)},[r,t,m]),U.useEffect(()=>{s(!!d.length)},[d,s]),d.length?y.jsx("div",{ref:u,className:Qs.commandsDropdown,children:y.jsx("ul",{id:"command-list",className:Qs.commands,role:"listbox",children:d.map((L,R)=>y.jsxs("li",{className:Z([Qs.command,b===R&&Qs.commandActive]),role:"option",onClick:()=>A(L),onMouseOver:()=>E(R),children:[y.jsxs("h1",{children:["/",L]}),y.jsx("p",{children:c(`commands.${L}`)})]},L))})}):null},Pb=t=>Math.max(...t.map(r=>r.length+1)),bC=t=>r=>{const i=`/${r}`;return i.startsWith(t)&&i.length>=t.length},Yb=3,vC=({commands:t,onSelectCommand:r})=>{const i=Ze(),[s,u]=U.useState(!1),c=p=>()=>{r(`/${p}`),u(!1)},d=()=>{u(!0)},h=()=>{u(!1)},m=s?t:t.slice(0,Yb);return y.jsxs("div",{className:Qs.commandsSelections,children:[m.map(p=>y.jsxs("button",{className:"tooltip--top-center","aria-label":i(`commands.${p}`),"data-title":i(`commands.${p}`),tabIndex:0,onClick:c(p),children:["/",p]},p)),m.length<t.length?y.jsx("button",{"aria-label":i("commands.show-more.tooltip"),"data-title":i("commands.show-more.tooltip"),tabIndex:0,onClick:d,children:i("commands.show-more.action")},"show-more"):m.length>Yb?y.jsx("button",{"aria-label":i("commands.show-less.tooltip"),"data-title":i("commands.show-less.tooltip"),tabIndex:0,onClick:h,children:i("commands.show-less.action")},"show-less"):null]})},_C="_callToActionContainer_d8izj_1",EC="_callToActionTitle_d8izj_23",SC="_rateOverlay_d8izj_30",TC="_body_d8izj_52",AC="_footer_d8izj_60",xC="_actions_d8izj_75",OC="_bubbles_d8izj_89",RC="_stars_d8izj_191",wC="_starsSmall_d8izj_205",CC="_starsLarge_d8izj_211",NC="_star_d8izj_191",MC="_starReadonly_d8izj_225",DC="_starIcon_d8izj_235",LC="_starsDescriptionContainer_d8izj_253",BC="_starsDescription_d8izj_253",zt={callToActionContainer:_C,callToActionTitle:EC,rateOverlay:SC,body:TC,footer:AC,actions:xC,bubbles:OC,stars:RC,starsSmall:wC,starsLarge:CC,star:NC,starReadonly:MC,starIcon:DC,starsDescriptionContainer:LC,starsDescription:BC},UC=({value:t,index:r,count:i,readonly:s,onHover:u,onClick:c})=>{const d=h=>{c&&h.key==="Enter"&&c()};return y.jsx("li",{className:Z(zt.star,{[zt.starReadonly]:s},"chat__conversationRating__star"),children:y.jsx("div",{role:"radio","aria-checked":t>r?"true":"false","aria-posinset":r+1,"aria-setsize":i,tabIndex:0,onMouseOver:u,onKeyDown:d,onClick:c,children:y.jsx("span",{role:"img","aria-label":"Star",className:Z(zt.starIcon),children:y.jsx("svg",{viewBox:"64 64 896 896",focusable:"false","data-icon":"star",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",children:y.jsx("path",{d:"M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z"})})})})})},Xb=5,r_=({value:t,size:r,readonly:i=!1,onChange:s})=>{const[u,c]=U.useState(void 0),d=()=>{c(void 0)},h=p=>()=>{if(!i){const b=p+1;c(b)}},m=p=>()=>{s&&!i&&(s(p===0&&t===1?0:p+1),c(void 0))};return y.jsx("ul",{tabIndex:0,role:"radiogroup",className:Z(zt.stars,{[zt.starsSmall]:r==="small",[zt.starsLarge]:r==="large"},"chat__conversationRating__stars",{chat__conversationRating__stars__small:r==="small",chat__conversationRating__stars__large:r==="large"}),onMouseOut:d,children:Array(Xb).fill(0).map((p,b)=>y.jsx(UC,{value:u===void 0?t:u,index:b,count:Xb,readonly:i,onHover:h(b),onClick:m(b)},b))})},HC=({visible:t,onRate:r})=>{const i=Ze();return t?y.jsxs("div",{className:Z(zt.callToActionContainer,"chat__conversationRating__callToAction"),children:[y.jsx("div",{className:Z(zt.callToActionTitle,"chat__conversationRating__callToAction__title"),children:i("conversation-rating.call-to-action.title")}),y.jsx(r_,{value:0,size:"small",onChange:r})]}):null},Dd=({isFirstMessageBySender:t,isLastMessageBySender:r,children:i})=>y.jsxs("div",{className:Z(ge.message,ge.messageBot,t&&ge.messageBotFirst,r&&ge.messageBotLast,"chat__bubbleContainer","chat__botBubbleContainer",t&&"chat__bubbleContainer--first",r&&"chat__bubbleContainer--last"),children:[y.jsx("img",{className:Z(ge.avatar,ge.botAvatar),src:"bot.svg",alt:"Bot"}),y.jsx("div",{className:Z(ge.bubble,ge.bubbleLeft,"chat__bubble","chat__botBubble"),children:y.jsx("div",{className:Z(ge.leftText,ge.bubbleContent),children:i})})]}),jC=({children:t})=>y.jsx("div",{className:Z(ge.message,ge.messageGuest,ge.messageGuestFirst,ge.messageGuestLast,"chat__bubbleContainer","chat__guestBubbleContainer","chat__bubbleContainer--first","chat__bubbleContainer--last"),children:y.jsx("div",{className:Z(ge.bubble,ge.bubbleRight,"chat__bubble","chat__guestBubble"),children:y.jsx("div",{className:Z(ge.rightText,ge.bubbleContent),children:t})})}),IC=()=>{const t=Ze(),r=Nr(),i=st(G=>G.chat.conversationRating),[s,u]=U.useState(i.rating?.value||0),[c,d]=U.useState(void 0),[h,m]=U.useState(void 0),[p,b]=U.useState({submitted:!1,feedback:""}),[E,A]=U.useState(!1),L=U.useRef(null);U.useEffect(()=>{i.opener?(b({submitted:!1,feedback:""}),m(!0)):h===!0&&m(!1)},[i.opener,h]),U.useEffect(()=>{u(i.rating?.value||0)},[i.rating?.value,i.opener]),U.useEffect(()=>{L.current&&(L.current.value=i.rating?.feedback||"")},[i.rating?.feedback]),U.useEffect(()=>{const G=s>0?t(`conversation-rating.overlay.bot-message.rate-feedback.value-${s}`):void 0;d(G?.length?G:void 0)},[s,t]),U.useEffect(()=>{p.submitted?setTimeout(()=>A(!0),p.feedback.length?500:0):A(!1)},[p]);const R=G=>{G.preventDefault();const _=L.current?.value?.trim()||"";r(wx(s,_)),b({submitted:!0,feedback:_})},q=()=>{i.opener==="CLOSE_CHAT"?r(Bv()):r(xO())};return y.jsx("div",{className:Z(zt.rateOverlay,Rr.bottomSheet,"chat__conversationRating__overlay",{[Rr.bottomSheetOpen]:h===!0,[Rr.bottomSheetClose]:h===!1}),children:y.jsxs("form",{onSubmit:R,children:[y.jsxs("div",{className:Z(zt.body,"chat__conversationRating__overlay__body"),children:[y.jsx("div",{}),y.jsx("div",{className:Z(zt.bubbles),children:i.opener&&y.jsxs(y.Fragment,{children:[y.jsxs(Dd,{isFirstMessageBySender:!0,isLastMessageBySender:!c,children:[y.jsx("h2",{children:t("conversation-rating.overlay.title")}),y.jsxs("div",{className:Z(zt.starsDescriptionContainer),children:[y.jsx(r_,{value:s,size:"large",readonly:p.submitted,onChange:u}),y.jsxs("div",{className:Z(zt.starsDescription),children:[y.jsx("div",{children:t("conversation-rating.overlay.star.very-bad")}),y.jsx("div",{children:t("conversation-rating.overlay.star.very-good")})]})]})]}),c&&y.jsx(Dd,{isFirstMessageBySender:!1,isLastMessageBySender:!E||!!p.feedback.length,children:y.jsx("div",{children:c})}),!!p.feedback.length&&y.jsx(jC,{children:p.feedback}),E&&y.jsx(Dd,{isFirstMessageBySender:!!p.feedback.length,isLastMessageBySender:!0,children:y.jsx("div",{children:t("conversation-rating.overlay.bot-message.submit-feedback")})})]})})]}),y.jsxs("div",{className:Z(zt.footer,"chat__conversationRating__overlay__footer"),children:[!p.submitted&&y.jsx("input",{ref:L,defaultValue:i.rating?.feedback||"",placeholder:t("conversation-rating.overlay.guest-feedback.input-placeholder")}),y.jsxs("div",{className:Z(zt.actions,"chat__conversationRating__overlay__footer__actions"),children:[p.submitted?y.jsx(iu,{type:"button",disabled:!s,onClick:q,children:i.opener==="CLOSE_CHAT"?t("conversation-rating.overlay.action.close-chat"):t("conversation-rating.overlay.action.back-to-chat")},"close-button"):y.jsx(iu,{type:"submit",disabled:!s,children:t("conversation-rating.overlay.action.submit")},"submit-button"),i.opener!=="CHAT"&&!p.submitted&&y.jsx(n_,{onClick:q,children:i.opener==="CLOSE_CHAT"?t("conversation-rating.overlay.action.close-chat"):t("conversation-rating.overlay.action.cancel")})]})]})]})})},zC=({numberOfMessagesFromGuest:t})=>{const r=Nr(),i=st(c=>c.chat.conversationRating),s=c=>{r(zh("CHAT",c))},u=!i.rating?.value&&t>=1;return i.enabled?y.jsxs(y.Fragment,{children:[y.jsx(HC,{visible:u,onRate:s}),y.jsx(IC,{})]}):null},GC=U.memo(zC),kC="_inputWrapper_e3h44_1",qC="_withOpenCommands_e3h44_14",FC="_messageInputWrapper_e3h44_20",VC="_messageInput_e3h44_20",PC="_buttons_e3h44_44",YC="_button_e3h44_44",xi={inputWrapper:kC,withOpenCommands:qC,messageInputWrapper:FC,messageInput:VC,buttons:PC,button:YC},XC="_audioRecorder_g845f_1",ZC="_audioButton_g845f_6",QC="_recorderIcon_g845f_37",KC="_spinning_g845f_60",Ba={audioRecorder:XC,audioButton:ZC,recorderIcon:QC,spinning:KC},Zb=2048,su=16e3;class $C extends _1.Component{audioInput=null;volume=null;leftchannel=[];recorder=null;recordingLength=0;sampleRate=null;mediaStream=null;constructor(r){super(r),this.state={recordingState:"none"},this.triggerAudioRecording=this.triggerAudioRecording.bind(this),this.triggerAudioRecordingSuccess=this.triggerAudioRecordingSuccess.bind(this),this.initRecording=this.initRecording.bind(this),this.processRecordingInput=this.processRecordingInput.bind(this),this.handleClickSubmitAudio=this.handleClickSubmitAudio.bind(this),this.handleClickStopAudio=this.handleClickStopAudio.bind(this)}triggerAudioRecording(){this.setState({recordingState:"connecting"}),navigator.mediaDevices.getUserMedia({audio:!0,video:!1}).then(this.triggerAudioRecordingSuccess)}triggerAudioRecordingSuccess(r){this.mediaStream=r,this.leftchannel.length=0,this.recordingLength=0,this.initRecording(r)}initRecording(r){const i=window.AudioContext||window.webkitAudioContext,s=new i;this.sampleRate=s.sampleRate,this.volume=s.createGain(),this.audioInput=s.createMediaStreamSource(r),this.audioInput.connect(this.volume),this.recorder=s.createScriptProcessor(Zb,1,1),this.recorder.onaudioprocess=this.processRecordingInput,this.volume.connect(this.recorder),this.recorder.connect(s.destination)}processRecordingInput(r){if(this.state.recordingState==="connecting"&&this.setState({recordingState:"recording"}),this.state.recordingState!=="none"){const i=r.inputBuffer.getChannelData(0);this.leftchannel.push(new Float32Array(i)),this.recordingLength+=Zb}}handleClickSubmitAudio(){const r=JC(this.leftchannel,this.recordingLength),i=eN(r,this.sampleRate||0),s=WC(i);this.props.onAudioRecorded(s),this.handleClickStopAudio()}handleClickStopAudio(){this.setState({recordingState:"none"}),this.audioInput?.disconnect(),this.volume?.disconnect(),this.recorder?.disconnect(),this.mediaStream&&this.mediaStream?.getAudioTracks().forEach(r=>{r.stop()})}render(){return y.jsxs("div",{className:Ba.audioRecorder,children:[this.state.recordingState==="none"&&y.jsx("button",{className:Z(Ba.audioButton,"chat__button"),type:"submit","aria-label":this.props.translate("message-input.actions.start-audio-recording.label"),"data-title":this.props.translate("message-input.actions.start-audio-recording.label"),tabIndex:0,onClick:this.triggerAudioRecording,children:y.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",children:[y.jsx("path",{d:"M12 14c1.66 0 2.99-1.34 2.99-3L15 5c0-1.66-1.34-3-3-3S9 3.34 9 5v6c0 1.66 1.34 3 3 3zm5.3-3c0 3-2.54 5.1-5.3 5.1S6.7 14 6.7 11H5c0 3.41 2.72 6.23 6 6.72V21h2v-3.28c3.28-.48 6-3.3 6-6.72h-1.7z"}),y.jsx("path",{d:"M0 0h24v24H0z",fill:"none"})]})}),this.state.recordingState==="connecting"&&y.jsxs("svg",{className:Ba.spinning,xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",children:[y.jsx("path",{d:"M17.65 6.35C16.2 4.9 14.21 4 12 4c-4.42 0-7.99 3.58-7.99 8s3.57 8 7.99 8c3.73 0 6.84-2.55 7.73-6h-2.08c-.82 2.33-3.04 4-5.65 4-3.31 0-6-2.69-6-6s2.69-6 6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4l-2.35 2.35z"}),y.jsx("path",{d:"M0 0h24v24H0z",fill:"none"})]}),this.state.recordingState==="recording"&&y.jsxs("div",{className:Ba.audioRecorder,children:[y.jsx("button",{className:Z(Ba.audioButton),onClick:this.handleClickStopAudio,"aria-label":this.props.translate("message-input.actions.stop-audio-recording.label"),tabIndex:0,children:y.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",children:[y.jsx("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),y.jsx("path",{d:"M0 0h24v24H0z",fill:"none"})]})}),y.jsx("div",{className:Ba.recorderIcon}),y.jsx("button",{className:Z(Ba.audioButton),type:"submit",onClick:this.handleClickSubmitAudio,"aria-label":this.props.translate("message-input.actions.submit-audio-recording.label"),tabIndex:0,autoFocus:!0,children:y.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",children:[y.jsx("path",{d:"M0 0h24v24H0z",fill:"none"}),y.jsx("path",{d:"M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"})]})})]})]})}}const WC=t=>{const r=new ArrayBuffer(44+t.length*2),i=new DataView(r);Io(i,0,"RIFF"),i.setUint32(4,44+t.length*2,!0),Io(i,8,"WAVE"),Io(i,12,"fmt "),i.setUint32(16,16,!0),i.setUint16(20,1,!0),i.setUint16(22,1,!0),i.setUint32(24,su,!0),i.setUint32(28,su*4,!0),i.setUint16(32,4,!0),i.setUint16(34,16,!0),Io(i,36,"data"),i.setUint32(40,t.length*2,!0);const s=t.length;let u=44;const c=1;for(let d=0;d<s;d++)i.setInt16(u,t[d]*(32767*c),!0),u+=2;return new Blob([i],{type:"audio/wav"})},Io=(t,r,i)=>{for(let s=0;s<i.length;s++)t.setUint8(r+s,i.charCodeAt(s))},JC=(t,r)=>{const i=new Float32Array(r);let s=0;const u=t.length;for(let c=0;c<u;c++){const d=t[c];i.set(d,s),s+=d.length}return i},eN=(t,r)=>{if(su===r)return t;const i=r/su,s=Math.round(t.length/i),u=new Float32Array(s);let c=0,d=0;for(;c<u.length;){const h=Math.round((c+1)*i);let m=0,p=0;for(let b=d;b<h&&b<t.length;b++)m+=t[b],p++;u[c]=m/p,c++,d=h}return u},tN=({disabled:t,textInput:r,commandsVisible:i,hasCommands:s,onTextInput:u,onTextInputSubmit:c,onAudioRecorded:d})=>{const h=Ze(),m=U.useRef(null),{enableSpeechSupport:p}=st(R=>R.settings);U.useEffect(()=>{m.current?.focus()},[r]);const b=()=>{const R=m.current;R&&r.trim().length>=1&&c(r.trim())&&(R.value="",R.style.height="",R.focus())},E=R=>{R.preventDefault(),b()},A=R=>{const q=R.target.value;u(q),R.target.style.height="";const{scrollHeight:G}=R.target;R.target.style.height=`${G>150?150:G}px`},L=R=>{R.code==="Enter"&&!R.shiftKey?(R.repeat||b(),R.preventDefault()):i&&(R.code==="ArrowUp"||R.code==="ArrowDown")&&R.preventDefault()};return y.jsxs("form",{className:Z(xi.inputWrapper,i&&xi.withOpenCommands,"chat__textInput"),onSubmit:E,children:[y.jsx("div",{className:xi.messageInputWrapper,children:y.jsx("textarea",{id:"user_input",ref:m,className:xi.messageInput,tabIndex:0,placeholder:h("message-input-placeholder"),value:r,onChange:A,onKeyDown:L,"aria-label":h("message-input-label"),"aria-controls":s?"command-list":void 0,"aria-haspopup":s?"listbox":void 0})}),y.jsx("div",{className:Z(xi.buttons,"chat__buttons"),children:r.length||!p||navigator.mediaDevices===void 0?y.jsx("button",{className:Z(xi.button,"chat__button"),type:"submit","aria-label":h("message-input.actions.submit.label"),"data-title":h("message-input.actions.submit.label"),tabIndex:0,disabled:t,children:y.jsx("svg",{viewBox:"64 64 896 896",focusable:"false",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",children:y.jsx("path",{d:"M931.4 498.9L94.9 79.5c-3.4-1.7-7.3-2.1-11-1.2a15.99 15.99 0 00-11.7 19.3l86.2 352.2c1.3 5.3 5.2 9.6 10.4 11.3l147.7 50.7-147.6 50.7c-5.2 1.8-9.1 6-10.3 11.3L72.2 926.5c-.9 3.7-.5 7.6 1.2 10.9 3.9 7.9 13.5 11.1 21.5 7.2l836.5-417c3.1-1.5 5.6-4.1 7.2-7.1 3.9-8 .7-17.6-7.2-21.6zM170.8 826.3l50.3-205.6 295.2-101.3c2.3-.8 4.2-2.6 5-5 1.4-4.2-.8-8.7-5-10.2L221.1 403 171 198.2l628 314.9-628.2 313.2z"})})}):p&&navigator.mediaDevices!==void 0&&y.jsx($C,{translate:h,onAudioRecorded:d})})]})},nN="_quickReplies_83npe_1",rN="_quickReply_83npe_9",Qb={quickReplies:nN,quickReply:rN},aN=({quickReplies:t,onQuickReplyClick:r})=>t.length?y.jsx("div",{className:Z(Qb.quickReplies,"chat__quickReplies"),children:t.map(i=>y.jsx(Eu,{tabIndex:0,className:Z(Qb.quickReply,"chat__button","chat__quickReply"),onClick:()=>r(i),children:i.label},i.label))}):null,Kb=5e3,iN=1e3,sN=({isBotTyping:t,quickReplies:r,numberOfMessagesFromGuest:i,commands:s,onTextInput:u,onQuickReplyClick:c,onAudioRecorded:d})=>{const[h,m]=U.useState(""),[p,b]=U.useState(!1),[E,A]=U.useState(!1),L=U.useRef(0),R=U.useRef(0);U.useEffect(()=>{if(p&&!t){const _=L.current?Date.now()-L.current:0;_>Kb?b(!1):setTimeout(()=>{b(!1)},Kb-_)}},[p,t]),U.useEffect(()=>{p&&(L.current=Date.now())},[p]);const q=_=>{const C=Date.now()-R.current<iN;return E?!1:t||C?(b(!0),!1):(u(_),m(""),R.current=Date.now(),!0)},G=_=>{m(_+" ")};return y.jsxs("div",{className:Z(lC.inputContainer),children:[y.jsx(aN,{quickReplies:r,onQuickReplyClick:c}),y.jsx(cC,{visible:p}),!p&&y.jsx(GC,{numberOfMessagesFromGuest:i}),!!s?.length&&y.jsx(yC,{text:h,commands:s,onSelectCommand:G,onVisibilityChange:A}),y.jsx(tN,{textInput:h,disabled:p,commandsVisible:E,hasCommands:!!s?.length,onTextInput:m,onTextInputSubmit:q,onAudioRecorded:d}),!!s?.length&&y.jsx(vC,{commands:s,onSelectCommand:m})]})},lN=({clientName:t,messages:r,quickReplies:i,isBotTyping:s,drawerContentUrl:u,onMessageFromUser:c,onQuickReplyClick:d,onButtonClick:h,onLinkClick:m,onAudioRecorded:p,onTranscriptExport:b,onTranscriptItemReaction:E})=>{const A=Nr(),L=st(H=>H.connection.connectionState),{enableTranscriptExportEmail:R,commands:q}=st(H=>H.settings),{showTranscriptMailOverlay:G,conversationRating:_}=st(H=>H.chat),C=r.filter(H=>H.sender.type===au.GUEST).length;U.useEffect(()=>{if(L===Ia.CONNECTED){const H=fu.parse(window.location.search);A(Hv(t,H))}},[t,L,A]);const S=()=>{A(Uv())};return y.jsxs("div",{className:cd.container,children:[y.jsxs("div",{className:Z([cd.chatcontent,(G||_?.opener)&&cd.accessabilityHidden]),children:[y.jsx(G6,{messages:r,isBotTyping:s,commands:q,onButtonClick:h,onLinkClick:m,onTranscriptItemReaction:E}),y.jsx(sN,{isBotTyping:s,quickReplies:s?[]:i,numberOfMessagesFromGuest:C,commands:q,onQuickReplyClick:d,onTextInput:c,onAudioRecorded:p}),y.jsx($6,{})]}),R&&y.jsx(iC,{visible:!!G,onEmailExport:b,onClose:S}),y.jsx(X6,{contentUrl:u})]})},oN=t=>{const{messages:r,quickReplies:i,isBotTyping:s,drawerContentUrl:u}=t.chat;return{messages:r,quickReplies:i,isBotTyping:s,drawerContentUrl:u}},uN=t=>({onRestartChat:(r,i)=>t(bu(r,i)),onMessageFromUser:r=>t(uv(r)),onAudioRecorded:r=>t(Tx(r)),onActionFromUser:r=>t(r),onQuickReplyClick:r=>t(ov(r)),onNluEvent:r=>t(mv(r)),onButtonClick:r=>t(Nx(r)),onLinkClick:r=>t(pv(r)),onTranscriptExport:r=>t(xx(r)),onTranscriptItemReaction:(r,i)=>{t(Te.Actions.transcriptItemGuestReaction(r,i?.type||null,i?.category,i?.comment))}}),cN=VS(oN,uN)(lN),a_=()=>{const[t,r]=U.useState(!1);return U.useEffect(()=>{r((()=>{try{return window.self!==window.top}catch{return!0}})())},[]),t},fN=t=>r=>{const i=r.key;(i==="ArrowDown"||i==="ArrowRight"||i==="Enter"||i===" "||i==="Space")&&(r.stopPropagation(),t())},dN=({onClick:t})=>{const r=Ze();return a_()?y.jsx("button",{className:"tooltip--bottom-left","aria-label":r("header.close-chat"),"data-title":r("header.close-chat"),tabIndex:0,onClick:t,onKeyDown:fN(t),children:y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",children:y.jsx("path",{d:"M204.24,195.76a6,6,0,1,1-8.48,8.48L128,136.49,60.24,204.24a6,6,0,0,1-8.48-8.48L119.51,128,51.76,60.24a6,6,0,0,1,8.48-8.48L128,119.51l67.76-67.75a6,6,0,0,1,8.48,8.48L136.49,128Z"})})}):null},hN="_header_3gvbz_1",mN="_logoContainer_3gvbz_14",pN="_logo_3gvbz_14",gN="_actions_3gvbz_28",yN="_active_3gvbz_43",bN="_menuContainer_3gvbz_56",vN="_menu_3gvbz_56",_N="_divider_3gvbz_86",sa={header:hN,logoContainer:mN,logo:pN,actions:gN,active:yN,menuContainer:bN,menu:vN,divider:_N},EN=({icon:t})=>{switch(t){case"arrow-counter-clockwise":return y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",viewBox:"0 0 256 256",children:y.jsx("path",{d:"M224,128a96,96,0,0,1-94.71,96H128A95.38,95.38,0,0,1,62.1,197.8a8,8,0,0,1,11-11.63A80,80,0,1,0,71.43,71.39a3.07,3.07,0,0,1-.26.25L44.59,96H72a8,8,0,0,1,0,16H24a8,8,0,0,1-8-8V56a8,8,0,0,1,16,0V85.8L60.25,60A96,96,0,0,1,224,128Z"})});case"download":return y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",viewBox:"0 0 256 256",children:y.jsx("path",{d:"M224,144v64a8,8,0,0,1-8,8H40a8,8,0,0,1-8-8V144a8,8,0,0,1,16,0v56H208V144a8,8,0,0,1,16,0Zm-101.66,5.66a8,8,0,0,0,11.32,0l40-40a8,8,0,0,0-11.32-11.32L136,124.69V32a8,8,0,0,0-16,0v92.69L93.66,98.34a8,8,0,0,0-11.32,11.32Z"})});case"expand":return y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",viewBox:"0 0 256 256",children:y.jsx("path",{d:"M214,48V96a6,6,0,0,1-12,0V62.48l-53.76,53.76a6,6,0,0,1-8.48-8.48L193.52,54H160a6,6,0,0,1,0-12h48A6,6,0,0,1,214,48ZM107.76,139.76,54,193.52V160a6,6,0,0,0-12,0v48a6,6,0,0,0,6,6H96a6,6,0,0,0,0-12H62.48l53.76-53.76a6,6,0,0,0-8.48-8.48Z"})});case"mail":return y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",viewBox:"0 0 256 256",children:y.jsx("path",{d:"M224,48H32a8,8,0,0,0-8,8V192a16,16,0,0,0,16,16H216a16,16,0,0,0,16-16V56A8,8,0,0,0,224,48ZM203.43,64,128,133.15,52.57,64ZM216,192H40V74.19l82.59,75.71a8,8,0,0,0,10.82,0L216,74.19V192Z"})});case"phone":return y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",viewBox:"0 0 256 256",children:y.jsx("path",{d:"M144.27,45.93a8,8,0,0,1,9.8-5.66,86.22,86.22,0,0,1,61.66,61.66,8,8,0,0,1-5.66,9.8A8.23,8.23,0,0,1,208,112a8,8,0,0,1-7.73-5.94,70.35,70.35,0,0,0-50.33-50.33A8,8,0,0,1,144.27,45.93Zm-2.33,41.8c13.79,3.68,22.65,12.54,26.33,26.33A8,8,0,0,0,176,120a8.23,8.23,0,0,0,2.07-.27,8,8,0,0,0,5.66-9.8c-5.12-19.16-18.5-32.54-37.66-37.66a8,8,0,1,0-4.13,15.46Zm81.94,95.35A56.26,56.26,0,0,1,168,232C88.6,232,24,167.4,24,88A56.26,56.26,0,0,1,72.92,32.12a16,16,0,0,1,16.62,9.52l21.12,47.15,0,.12A16,16,0,0,1,109.39,104c-.18.27-.37.52-.57.77L88,129.45c7.49,15.22,23.41,31,38.83,38.51l24.34-20.71a8.12,8.12,0,0,1,.75-.56,16,16,0,0,1,15.17-1.4l.13.06,47.11,21.11A16,16,0,0,1,223.88,183.08Zm-15.88-2s-.07,0-.11,0h0l-47-21.05-24.35,20.71a8.44,8.44,0,0,1-.74.56,16,16,0,0,1-15.75,1.14c-18.73-9.05-37.4-27.58-46.46-46.11a16,16,0,0,1,1-15.7,6.13,6.13,0,0,1,.57-.77L96,95.15l-21-47a.61.61,0,0,1,0-.12A40.2,40.2,0,0,0,40,88,128.14,128.14,0,0,0,168,216,40.21,40.21,0,0,0,208,181.07Z"})});case"scroll":return y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",viewBox:"0 0 256 256",children:y.jsx("path",{d:"M96,104a8,8,0,0,1,8-8h64a8,8,0,0,1,0,16H104A8,8,0,0,1,96,104Zm8,40h64a8,8,0,0,0,0-16H104a8,8,0,0,0,0,16Zm128,48a32,32,0,0,1-32,32H88a32,32,0,0,1-32-32V64a16,16,0,0,0-32,0c0,5.74,4.83,9.62,4.88,9.66h0A8,8,0,0,1,24,88a7.89,7.89,0,0,1-4.79-1.61h0C18.05,85.54,8,77.61,8,64A32,32,0,0,1,40,32H176a32,32,0,0,1,32,32V168h8a8,8,0,0,1,4.8,1.6C222,170.46,232,178.39,232,192ZM96.26,173.48A8.07,8.07,0,0,1,104,168h88V64a16,16,0,0,0-16-16H67.69A31.71,31.71,0,0,1,72,64V192a16,16,0,0,0,32,0c0-5.74-4.83-9.62-4.88-9.66A7.82,7.82,0,0,1,96.26,173.48ZM216,192a12.58,12.58,0,0,0-3.23-8h-94a26.92,26.92,0,0,1,1.21,8,31.82,31.82,0,0,1-4.29,16H200A16,16,0,0,0,216,192Z"})});case"star":return y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",viewBox:"0 0 256 256",children:y.jsx("path",{d:"M239.18,97.26A16.38,16.38,0,0,0,224.92,86l-59-4.76L143.14,26.15a16.36,16.36,0,0,0-30.27,0L90.11,81.23,31.08,86a16.46,16.46,0,0,0-9.37,28.86l45,38.83L53,211.75a16.38,16.38,0,0,0,24.5,17.82L128,198.49l50.53,31.08A16.4,16.4,0,0,0,203,211.75l-13.76-58.07,45-38.83A16.43,16.43,0,0,0,239.18,97.26Zm-15.34,5.47-48.7,42a8,8,0,0,0-2.56,7.91l14.88,62.8a.37.37,0,0,1-.17.48c-.18.14-.23.11-.38,0l-54.72-33.65a8,8,0,0,0-8.38,0L69.09,215.94c-.15.09-.19.12-.38,0a.37.37,0,0,1-.17-.48l14.88-62.8a8,8,0,0,0-2.56-7.91l-48.7-42c-.12-.1-.23-.19-.13-.5s.18-.27.33-.29l63.92-5.16A8,8,0,0,0,103,91.86l24.62-59.61c.08-.17.11-.25.35-.25s.27.08.35.25L153,91.86a8,8,0,0,0,6.75,4.92l63.92,5.16c.15,0,.24,0,.33.29S224,102.63,223.84,102.73Z"})});case"link":return y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",viewBox:"0 0 256 256",children:y.jsx("path",{d:"M224,104a8,8,0,0,1-16,0V59.32l-66.33,66.34a8,8,0,0,1-11.32-11.32L196.68,48H152a8,8,0,0,1,0-16h64a8,8,0,0,1,8,8Zm-40,24a8,8,0,0,0-8,8v72H48V80h72a8,8,0,0,0,0-16H48A16,16,0,0,0,32,80V208a16,16,0,0,0,16,16H176a16,16,0,0,0,16-16V136A8,8,0,0,0,184,128Z"})});default:return y.jsx("div",{})}},SN=U.forwardRef(({selected:t,item:r,onClick:i},s)=>{const u=Ze(),c=d=>{d.preventDefault(),i()};return y.jsx("li",{"aria-selected":t,role:"option",className:r.withDivider?sa.divider:void 0,children:y.jsxs("a",{ref:s,type:"button",role:"button",tabIndex:-1,onClick:c,children:[y.jsx(EN,{icon:r.icon}),y.jsx("span",{children:u(`header.menu.${r.id}`)})]})})}),TN=(t,r)=>{const i=a_(),{menuItems:s,enableStandaloneView:u,enableTranscriptExportPdf:c,enableTranscriptExportEmail:d}=st(p=>p.settings),h=st(p=>p.chat.conversationRating.enabled);return U.useMemo(()=>{const p=[],b=s.filter(({visibility:E})=>t?E==="always"||E==="chat-only":E==="always"||E==="start-screen-only");if(t&&(p.push({id:"restart-chat",type:"restart-chat",icon:"arrow-counter-clockwise",visibility:"chat-only"}),i&&u&&p.push({id:"expand-chat-window",type:"expand-chat-window",icon:"expand",visibility:"always"}),r&&c&&p.push({id:"download-transcript",type:"download-transcript",icon:"download",visibility:"chat-only"}),r&&d&&p.push({id:"send-transcript",type:"send-transcript",icon:"mail",visibility:"chat-only"}),r&&h&&p.push({id:"rate-conversation",type:"rate-conversation",icon:"star",visibility:"chat-only"}),p.length>0&&b.length)){const E=p.pop();E&&s.length&&p.push({...E,withDivider:!0})}return p.push(...b),p},[t,r,c,d,u,h,i,s])},AN=({chatStarted:t,hasGuestMessages:r})=>{const i=Nr(),s=Su(),u=Ze(),[c,d]=U.useState(!1),[h,m]=U.useState(-1),p=U.useRef(null),b=U.useRef(null),E=U.useRef([]),A=TN(t,r);U.useEffect(()=>{E.current[h]?.focus()},[h]);const L=U.useCallback(()=>{const _=fu.parse(window.location.search);i(bu(s,_)),d(!1),m(0)},[i,s]),R=U.useCallback(_=>{switch(_.type){case"restart-chat":L();break;case"expand-chat-window":window.open(window.location.href,"_blank");break;case"download-transcript":i(Ox());break;case"send-transcript":i(Uv());break;case"rate-conversation":i(zh("MENU"));break;case"link":i(pv(_.url));break;case"action":i(JSON.parse(JSON.stringify(_.action)));break}d(!1)},[i,L,d]);U.useEffect(()=>{const _=C=>{if(c)switch(C.key){case"Enter":C.preventDefault(),R(A[h]);break;case"ArrowUp":m(S=>S>0?S-1:A.length-1);break;case"ArrowDown":m(S=>S<A.length-1?S+1:0);break;case"Escape":d(!1);break;case"Tab":h>-1&&d(!1);break}};return document.addEventListener("keydown",_),()=>{document.removeEventListener("keydown",_)}},[c,h,A,m,d,R]),U.useEffect(()=>{c||m(-1)},[c,h]),Zh(b,()=>d(!1));const q=()=>{d(_=>!_)},G=()=>{setTimeout(()=>{const _=document.activeElement;b.current&&!b.current.contains(_)&&d(!1)},0)};return A.length?y.jsxs("div",{className:Z(sa.menuContainer),ref:b,children:[y.jsx("button",{ref:p,className:Z(c&&sa.active,c?"tooltip-hidden":"tooltip--bottom-left"),"aria-label":u("header.menu.title"),"data-title":u("header.menu.title"),onClick:q,onBlur:G,children:y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",children:y.jsx("path",{d:"M140,128a12,12,0,1,1-12-12A12,12,0,0,1,140,128Zm56-12a12,12,0,1,0,12,12A12,12,0,0,0,196,116ZM60,116a12,12,0,1,0,12,12A12,12,0,0,0,60,116Z"})})}),c&&y.jsx("nav",{className:sa.menu,"aria-label":u("header.menu.title"),children:y.jsx("ul",{tabIndex:0,children:A.map((_,C)=>y.jsx(SN,{ref:S=>{E.current[C]=S},selected:h===C,item:_,onClick:()=>R(_)},_.id))})})]}):null},$b=({className:t,chatStarted:r,...i})=>{const s=Nr(),u=st(h=>h.chat.conversationRating),c=st(h=>h.chat.messages.some(m=>m.sender.type===Te.UserType.GUEST)),d=()=>{u.enabled&&!u.opener&&c?s(zh("CLOSE_CHAT")):s(Bv())};return y.jsxs("div",{className:Z([sa.header,t]),...i,children:[y.jsx("div",{className:sa.logoContainer,children:y.jsx("div",{className:sa.logo})}),y.jsxs("div",{className:sa.actions,children:[y.jsx(AN,{chatStarted:r,hasGuestMessages:c}),y.jsx(dN,{onClick:d})]})]})},xN="_chatwindow_rkbir_1",ON="_chatwindowWithAside_rkbir_21",Wb={chatwindow:xN,chatwindowWithAside:ON},i_=()=>{const[t,r]=U.useState(!1);return U.useEffect(()=>{const i=window.matchMedia("(max-width: 1023px)"),s=()=>r(i.matches);return s(),i.addEventListener("change",s),()=>i.removeEventListener("change",s)},[]),t},RN="_sourceInfos_vei0l_1",wN="_waitForLoading_vei0l_24",CN="_loadingContent_vei0l_28",NN="_sourceHeader_vei0l_37",MN="_sourceHeaderIcon_vei0l_57",DN="_sourceContent_vei0l_61",LN="_openSourceButton_vei0l_69",BN="_sourceButtonLabel_vei0l_79",UN="_closeSourceInfosButton_vei0l_101",HN="_loadingSourceInfos_vei0l_125",jN="_loading_vei0l_28",IN="_loadingError_vei0l_139",zN="_highlightLoadingInfo_vei0l_155",GN="_highlightLoadingInfoInnerContainer_vei0l_169",kN="_highlightLoadingInfoContent_vei0l_178",qN="_highlightLoadingInfoCloseIcon_vei0l_198",FN="_highlightLoader_vei0l_203",VN="_highlightLoaderLoading_vei0l_210",Et={sourceInfos:RN,waitForLoading:wN,loadingContent:CN,sourceHeader:NN,sourceHeaderIcon:MN,sourceContent:DN,openSourceButton:LN,sourceButtonLabel:BN,closeSourceInfosButton:UN,loadingSourceInfos:HN,loading:jN,loadingError:IN,highlightLoadingInfo:zN,highlightLoadingInfoInnerContainer:GN,highlightLoadingInfoContent:kN,highlightLoadingInfoCloseIcon:qN,highlightLoader:FN,highlightLoaderLoading:VN},PN=({onClick:t})=>{const r=Ze();return y.jsx("button",{className:Z(Et.closeSourceInfosButton,"tooltip--bottom-left"),"aria-label":r("source-infos.close"),"data-title":r("source-infos.close"),tabIndex:0,onClick:t,children:y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",children:y.jsx("path",{d:"M205.66,194.34a8,8,0,0,1-11.32,11.32L128,139.31,61.66,205.66a8,8,0,0,1-11.32-11.32L116.69,128,50.34,61.66A8,8,0,0,1,61.66,50.34L128,116.69l66.34-66.35a8,8,0,0,1,11.32,11.32L139.31,128Z"})})})},YN=U.forwardRef(({sourceInfos:t,onClose:r,...i},s)=>y.jsxs("div",{className:Et.sourceHeader,...i,ref:s,children:[y.jsx("div",{children:t?y.jsx("p",{id:"source-info-title",children:t.title}):y.jsx("p",{children:" "})}),y.jsx(PN,{onClick:r})]})),XN=({loading:t})=>y.jsx("div",{className:Et.highlightLoader,children:t&&y.jsx("div",{className:Et.highlightLoaderLoading})});/*! @license DOMPurify 3.2.6 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.2.6/LICENSE */const{entries:s_,setPrototypeOf:Jb,isFrozen:ZN,getPrototypeOf:QN,getOwnPropertyDescriptor:KN}=Object;let{freeze:Gt,seal:Tn,create:l_}=Object,{apply:uh,construct:ch}=typeof Reflect<"u"&&Reflect;Gt||(Gt=function(r){return r});Tn||(Tn=function(r){return r});uh||(uh=function(r,i,s){return r.apply(i,s)});ch||(ch=function(r,i){return new r(...i)});const zo=kt(Array.prototype.forEach),$N=kt(Array.prototype.lastIndexOf),e1=kt(Array.prototype.pop),qs=kt(Array.prototype.push),WN=kt(Array.prototype.splice),Yo=kt(String.prototype.toLowerCase),Ld=kt(String.prototype.toString),t1=kt(String.prototype.match),Fs=kt(String.prototype.replace),JN=kt(String.prototype.indexOf),e3=kt(String.prototype.trim),jn=kt(Object.prototype.hasOwnProperty),jt=kt(RegExp.prototype.test),Vs=t3(TypeError);function kt(t){return function(r){r instanceof RegExp&&(r.lastIndex=0);for(var i=arguments.length,s=new Array(i>1?i-1:0),u=1;u<i;u++)s[u-1]=arguments[u];return uh(t,r,s)}}function t3(t){return function(){for(var r=arguments.length,i=new Array(r),s=0;s<r;s++)i[s]=arguments[s];return ch(t,i)}}function Re(t,r){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Yo;Jb&&Jb(t,null);let s=r.length;for(;s--;){let u=r[s];if(typeof u=="string"){const c=i(u);c!==u&&(ZN(r)||(r[s]=c),u=c)}t[u]=!0}return t}function n3(t){for(let r=0;r<t.length;r++)jn(t,r)||(t[r]=null);return t}function Tr(t){const r=l_(null);for(const[i,s]of s_(t))jn(t,i)&&(Array.isArray(s)?r[i]=n3(s):s&&typeof s=="object"&&s.constructor===Object?r[i]=Tr(s):r[i]=s);return r}function Ps(t,r){for(;t!==null;){const s=KN(t,r);if(s){if(s.get)return kt(s.get);if(typeof s.value=="function")return kt(s.value)}t=QN(t)}function i(){return null}return i}const n1=Gt(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),Bd=Gt(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),Ud=Gt(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),r3=Gt(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),Hd=Gt(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),a3=Gt(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),r1=Gt(["#text"]),a1=Gt(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),jd=Gt(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),i1=Gt(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),Go=Gt(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),i3=Tn(/\{\{[\w\W]*|[\w\W]*\}\}/gm),s3=Tn(/<%[\w\W]*|[\w\W]*%>/gm),l3=Tn(/\$\{[\w\W]*/gm),o3=Tn(/^data-[\-\w.\u00B7-\uFFFF]+$/),u3=Tn(/^aria-[\-\w]+$/),o_=Tn(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),c3=Tn(/^(?:\w+script|data):/i),f3=Tn(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),u_=Tn(/^html$/i),d3=Tn(/^[a-z][.\w]*(-[.\w]+)+$/i);var s1=Object.freeze({__proto__:null,ARIA_ATTR:u3,ATTR_WHITESPACE:f3,CUSTOM_ELEMENT:d3,DATA_ATTR:o3,DOCTYPE_NAME:u_,ERB_EXPR:s3,IS_ALLOWED_URI:o_,IS_SCRIPT_OR_DATA:c3,MUSTACHE_EXPR:i3,TMPLIT_EXPR:l3});const Ys={element:1,text:3,progressingInstruction:7,comment:8,document:9},h3=function(){return typeof window>"u"?null:window},m3=function(r,i){if(typeof r!="object"||typeof r.createPolicy!="function")return null;let s=null;const u="data-tt-policy-suffix";i&&i.hasAttribute(u)&&(s=i.getAttribute(u));const c="dompurify"+(s?"#"+s:"");try{return r.createPolicy(c,{createHTML(d){return d},createScriptURL(d){return d}})}catch{return console.warn("TrustedTypes policy "+c+" could not be created."),null}},l1=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function c_(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:h3();const r=le=>c_(le);if(r.version="3.2.6",r.removed=[],!t||!t.document||t.document.nodeType!==Ys.document||!t.Element)return r.isSupported=!1,r;let{document:i}=t;const s=i,u=s.currentScript,{DocumentFragment:c,HTMLTemplateElement:d,Node:h,Element:m,NodeFilter:p,NamedNodeMap:b=t.NamedNodeMap||t.MozNamedAttrMap,HTMLFormElement:E,DOMParser:A,trustedTypes:L}=t,R=m.prototype,q=Ps(R,"cloneNode"),G=Ps(R,"remove"),_=Ps(R,"nextSibling"),C=Ps(R,"childNodes"),S=Ps(R,"parentNode");if(typeof d=="function"){const le=i.createElement("template");le.content&&le.content.ownerDocument&&(i=le.content.ownerDocument)}let H,x="";const{implementation:Q,createNodeIterator:W,createDocumentFragment:ae,getElementsByTagName:ye}=i,{importNode:Ee}=s;let se=l1();r.isSupported=typeof s_=="function"&&typeof S=="function"&&Q&&Q.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:me,ERB_EXPR:ce,TMPLIT_EXPR:Pe,DATA_ATTR:ve,ARIA_ATTR:z,IS_SCRIPT_OR_DATA:K,ATTR_WHITESPACE:ee,CUSTOM_ELEMENT:Ae}=s1;let{IS_ALLOWED_URI:O}=s1,k=null;const $=Re({},[...n1,...Bd,...Ud,...Hd,...r1]);let Y=null;const te=Re({},[...a1,...jd,...i1,...Go]);let re=Object.seal(l_(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),ue=null,We=null,Ue=!0,St=!0,Gn=!1,Mr=!0,Qe=!1,qt=!0,On=!1,Di=!1,Li=!1,Tt=!1,qa=!1,ua=!1,Bi=!0,ca=!1;const xu="user-content-";let Fa=!0,fa=!1,Dr={},dn=null;const Nt=Re({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let Rn=null;const Mt=Re({},["audio","video","img","source","image","track"]);let Ui=null;const al=Re({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Va="http://www.w3.org/1998/Math/MathML",nr="http://www.w3.org/2000/svg",Ft="http://www.w3.org/1999/xhtml";let Vt=Ft,Lr=!1,rr=null;const Ou=Re({},[Va,nr,Ft],Ld);let da=Re({},["mi","mo","mn","ms","mtext"]),ha=Re({},["annotation-xml"]);const Hi=Re({},["title","style","font","a","script"]);let wn=null;const Ru=["application/xhtml+xml","text/html"],il="text/html";let rt=null,kn=null;const ji=i.createElement("form"),Ii=function(N){return N instanceof RegExp||N instanceof Function},zi=function(){let N=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(kn&&kn===N)){if((!N||typeof N!="object")&&(N={}),N=Tr(N),wn=Ru.indexOf(N.PARSER_MEDIA_TYPE)===-1?il:N.PARSER_MEDIA_TYPE,rt=wn==="application/xhtml+xml"?Ld:Yo,k=jn(N,"ALLOWED_TAGS")?Re({},N.ALLOWED_TAGS,rt):$,Y=jn(N,"ALLOWED_ATTR")?Re({},N.ALLOWED_ATTR,rt):te,rr=jn(N,"ALLOWED_NAMESPACES")?Re({},N.ALLOWED_NAMESPACES,Ld):Ou,Ui=jn(N,"ADD_URI_SAFE_ATTR")?Re(Tr(al),N.ADD_URI_SAFE_ATTR,rt):al,Rn=jn(N,"ADD_DATA_URI_TAGS")?Re(Tr(Mt),N.ADD_DATA_URI_TAGS,rt):Mt,dn=jn(N,"FORBID_CONTENTS")?Re({},N.FORBID_CONTENTS,rt):Nt,ue=jn(N,"FORBID_TAGS")?Re({},N.FORBID_TAGS,rt):Tr({}),We=jn(N,"FORBID_ATTR")?Re({},N.FORBID_ATTR,rt):Tr({}),Dr=jn(N,"USE_PROFILES")?N.USE_PROFILES:!1,Ue=N.ALLOW_ARIA_ATTR!==!1,St=N.ALLOW_DATA_ATTR!==!1,Gn=N.ALLOW_UNKNOWN_PROTOCOLS||!1,Mr=N.ALLOW_SELF_CLOSE_IN_ATTR!==!1,Qe=N.SAFE_FOR_TEMPLATES||!1,qt=N.SAFE_FOR_XML!==!1,On=N.WHOLE_DOCUMENT||!1,Tt=N.RETURN_DOM||!1,qa=N.RETURN_DOM_FRAGMENT||!1,ua=N.RETURN_TRUSTED_TYPE||!1,Li=N.FORCE_BODY||!1,Bi=N.SANITIZE_DOM!==!1,ca=N.SANITIZE_NAMED_PROPS||!1,Fa=N.KEEP_CONTENT!==!1,fa=N.IN_PLACE||!1,O=N.ALLOWED_URI_REGEXP||o_,Vt=N.NAMESPACE||Ft,da=N.MATHML_TEXT_INTEGRATION_POINTS||da,ha=N.HTML_INTEGRATION_POINTS||ha,re=N.CUSTOM_ELEMENT_HANDLING||{},N.CUSTOM_ELEMENT_HANDLING&&Ii(N.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(re.tagNameCheck=N.CUSTOM_ELEMENT_HANDLING.tagNameCheck),N.CUSTOM_ELEMENT_HANDLING&&Ii(N.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(re.attributeNameCheck=N.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),N.CUSTOM_ELEMENT_HANDLING&&typeof N.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(re.allowCustomizedBuiltInElements=N.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Qe&&(St=!1),qa&&(Tt=!0),Dr&&(k=Re({},r1),Y=[],Dr.html===!0&&(Re(k,n1),Re(Y,a1)),Dr.svg===!0&&(Re(k,Bd),Re(Y,jd),Re(Y,Go)),Dr.svgFilters===!0&&(Re(k,Ud),Re(Y,jd),Re(Y,Go)),Dr.mathMl===!0&&(Re(k,Hd),Re(Y,i1),Re(Y,Go))),N.ADD_TAGS&&(k===$&&(k=Tr(k)),Re(k,N.ADD_TAGS,rt)),N.ADD_ATTR&&(Y===te&&(Y=Tr(Y)),Re(Y,N.ADD_ATTR,rt)),N.ADD_URI_SAFE_ATTR&&Re(Ui,N.ADD_URI_SAFE_ATTR,rt),N.FORBID_CONTENTS&&(dn===Nt&&(dn=Tr(dn)),Re(dn,N.FORBID_CONTENTS,rt)),Fa&&(k["#text"]=!0),On&&Re(k,["html","head","body"]),k.table&&(Re(k,["tbody"]),delete ue.tbody),N.TRUSTED_TYPES_POLICY){if(typeof N.TRUSTED_TYPES_POLICY.createHTML!="function")throw Vs('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof N.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw Vs('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');H=N.TRUSTED_TYPES_POLICY,x=H.createHTML("")}else H===void 0&&(H=m3(L,u)),H!==null&&typeof x=="string"&&(x=H.createHTML(""));Gt&&Gt(N),kn=N}},Cn=Re({},[...Bd,...Ud,...r3]),ht=Re({},[...Hd,...a3]),Dt=function(N){let X=S(N);(!X||!X.tagName)&&(X={namespaceURI:Vt,tagName:"template"});const J=Yo(N.tagName),Fe=Yo(X.tagName);return rr[N.namespaceURI]?N.namespaceURI===nr?X.namespaceURI===Ft?J==="svg":X.namespaceURI===Va?J==="svg"&&(Fe==="annotation-xml"||da[Fe]):!!Cn[J]:N.namespaceURI===Va?X.namespaceURI===Ft?J==="math":X.namespaceURI===nr?J==="math"&&ha[Fe]:!!ht[J]:N.namespaceURI===Ft?X.namespaceURI===nr&&!ha[Fe]||X.namespaceURI===Va&&!da[Fe]?!1:!ht[J]&&(Hi[J]||!Cn[J]):!!(wn==="application/xhtml+xml"&&rr[N.namespaceURI]):!1},At=function(N){qs(r.removed,{element:N});try{S(N).removeChild(N)}catch{G(N)}},qn=function(N,X){try{qs(r.removed,{attribute:X.getAttributeNode(N),from:X})}catch{qs(r.removed,{attribute:null,from:X})}if(X.removeAttribute(N),N==="is")if(Tt||qa)try{At(X)}catch{}else try{X.setAttribute(N,"")}catch{}},sl=function(N){let X=null,J=null;if(Li)N="<remove></remove>"+N;else{const Je=t1(N,/^[\r\n\t ]+/);J=Je&&Je[0]}wn==="application/xhtml+xml"&&Vt===Ft&&(N='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+N+"</body></html>");const Fe=H?H.createHTML(N):N;if(Vt===Ft)try{X=new A().parseFromString(Fe,wn)}catch{}if(!X||!X.documentElement){X=Q.createDocument(Vt,"template",null);try{X.documentElement.innerHTML=Lr?x:Fe}catch{}}const mt=X.body||X.documentElement;return N&&J&&mt.insertBefore(i.createTextNode(J),mt.childNodes[0]||null),Vt===Ft?ye.call(X,On?"html":"body")[0]:On?X.documentElement:mt},ll=function(N){return W.call(N.ownerDocument||N,N,p.SHOW_ELEMENT|p.SHOW_COMMENT|p.SHOW_TEXT|p.SHOW_PROCESSING_INSTRUCTION|p.SHOW_CDATA_SECTION,null)},Pa=function(N){return N instanceof E&&(typeof N.nodeName!="string"||typeof N.textContent!="string"||typeof N.removeChild!="function"||!(N.attributes instanceof b)||typeof N.removeAttribute!="function"||typeof N.setAttribute!="function"||typeof N.namespaceURI!="string"||typeof N.insertBefore!="function"||typeof N.hasChildNodes!="function")},Br=function(N){return typeof h=="function"&&N instanceof h};function Kt(le,N,X){zo(le,J=>{J.call(r,N,X,kn)})}const ar=function(N){let X=null;if(Kt(se.beforeSanitizeElements,N,null),Pa(N))return At(N),!0;const J=rt(N.nodeName);if(Kt(se.uponSanitizeElement,N,{tagName:J,allowedTags:k}),qt&&N.hasChildNodes()&&!Br(N.firstElementChild)&&jt(/<[/\w!]/g,N.innerHTML)&&jt(/<[/\w!]/g,N.textContent)||N.nodeType===Ys.progressingInstruction||qt&&N.nodeType===Ys.comment&&jt(/<[/\w]/g,N.data))return At(N),!0;if(!k[J]||ue[J]){if(!ue[J]&&Ur(J)&&(re.tagNameCheck instanceof RegExp&&jt(re.tagNameCheck,J)||re.tagNameCheck instanceof Function&&re.tagNameCheck(J)))return!1;if(Fa&&!dn[J]){const Fe=S(N)||N.parentNode,mt=C(N)||N.childNodes;if(mt&&Fe){const Je=mt.length;for(let Lt=Je-1;Lt>=0;--Lt){const Pt=q(mt[Lt],!0);Pt.__removalCount=(N.__removalCount||0)+1,Fe.insertBefore(Pt,_(N))}}}return At(N),!0}return N instanceof m&&!Dt(N)||(J==="noscript"||J==="noembed"||J==="noframes")&&jt(/<\/no(script|embed|frames)/i,N.innerHTML)?(At(N),!0):(Qe&&N.nodeType===Ys.text&&(X=N.textContent,zo([me,ce,Pe],Fe=>{X=Fs(X,Fe," ")}),N.textContent!==X&&(qs(r.removed,{element:N.cloneNode()}),N.textContent=X)),Kt(se.afterSanitizeElements,N,null),!1)},ir=function(N,X,J){if(Bi&&(X==="id"||X==="name")&&(J in i||J in ji))return!1;if(!(St&&!We[X]&&jt(ve,X))){if(!(Ue&&jt(z,X))){if(!Y[X]||We[X]){if(!(Ur(N)&&(re.tagNameCheck instanceof RegExp&&jt(re.tagNameCheck,N)||re.tagNameCheck instanceof Function&&re.tagNameCheck(N))&&(re.attributeNameCheck instanceof RegExp&&jt(re.attributeNameCheck,X)||re.attributeNameCheck instanceof Function&&re.attributeNameCheck(X))||X==="is"&&re.allowCustomizedBuiltInElements&&(re.tagNameCheck instanceof RegExp&&jt(re.tagNameCheck,J)||re.tagNameCheck instanceof Function&&re.tagNameCheck(J))))return!1}else if(!Ui[X]){if(!jt(O,Fs(J,ee,""))){if(!((X==="src"||X==="xlink:href"||X==="href")&&N!=="script"&&JN(J,"data:")===0&&Rn[N])){if(!(Gn&&!jt(K,Fs(J,ee,"")))){if(J)return!1}}}}}}return!0},Ur=function(N){return N!=="annotation-xml"&&t1(N,Ae)},sr=function(N){Kt(se.beforeSanitizeAttributes,N,null);const{attributes:X}=N;if(!X||Pa(N))return;const J={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Y,forceKeepAttr:void 0};let Fe=X.length;for(;Fe--;){const mt=X[Fe],{name:Je,namespaceURI:Lt,value:Pt}=mt,Fn=rt(Je),$t=Pt;let ot=Je==="value"?$t:e3($t);if(J.attrName=Fn,J.attrValue=ot,J.keepAttr=!0,J.forceKeepAttr=void 0,Kt(se.uponSanitizeAttribute,N,J),ot=J.attrValue,ca&&(Fn==="id"||Fn==="name")&&(qn(Je,N),ot=xu+ot),qt&&jt(/((--!?|])>)|<\/(style|title)/i,ot)){qn(Je,N);continue}if(J.forceKeepAttr)continue;if(!J.keepAttr){qn(Je,N);continue}if(!Mr&&jt(/\/>/i,ot)){qn(Je,N);continue}Qe&&zo([me,ce,Pe],lr=>{ot=Fs(ot,lr," ")});const Gi=rt(N.nodeName);if(!ir(Gi,Fn,ot)){qn(Je,N);continue}if(H&&typeof L=="object"&&typeof L.getAttributeType=="function"&&!Lt)switch(L.getAttributeType(Gi,Fn)){case"TrustedHTML":{ot=H.createHTML(ot);break}case"TrustedScriptURL":{ot=H.createScriptURL(ot);break}}if(ot!==$t)try{Lt?N.setAttributeNS(Lt,Je,ot):N.setAttribute(Je,ot),Pa(N)?At(N):e1(r.removed)}catch{qn(Je,N)}}Kt(se.afterSanitizeAttributes,N,null)},lt=function le(N){let X=null;const J=ll(N);for(Kt(se.beforeSanitizeShadowDOM,N,null);X=J.nextNode();)Kt(se.uponSanitizeShadowNode,X,null),ar(X),sr(X),X.content instanceof c&&le(X.content);Kt(se.afterSanitizeShadowDOM,N,null)};return r.sanitize=function(le){let N=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},X=null,J=null,Fe=null,mt=null;if(Lr=!le,Lr&&(le="<!-->"),typeof le!="string"&&!Br(le))if(typeof le.toString=="function"){if(le=le.toString(),typeof le!="string")throw Vs("dirty is not a string, aborting")}else throw Vs("toString is not a function");if(!r.isSupported)return le;if(Di||zi(N),r.removed=[],typeof le=="string"&&(fa=!1),fa){if(le.nodeName){const Pt=rt(le.nodeName);if(!k[Pt]||ue[Pt])throw Vs("root node is forbidden and cannot be sanitized in-place")}}else if(le instanceof h)X=sl("<!---->"),J=X.ownerDocument.importNode(le,!0),J.nodeType===Ys.element&&J.nodeName==="BODY"||J.nodeName==="HTML"?X=J:X.appendChild(J);else{if(!Tt&&!Qe&&!On&&le.indexOf("<")===-1)return H&&ua?H.createHTML(le):le;if(X=sl(le),!X)return Tt?null:ua?x:""}X&&Li&&At(X.firstChild);const Je=ll(fa?le:X);for(;Fe=Je.nextNode();)ar(Fe),sr(Fe),Fe.content instanceof c&&lt(Fe.content);if(fa)return le;if(Tt){if(qa)for(mt=ae.call(X.ownerDocument);X.firstChild;)mt.appendChild(X.firstChild);else mt=X;return(Y.shadowroot||Y.shadowrootmode)&&(mt=Ee.call(s,mt,!0)),mt}let Lt=On?X.outerHTML:X.innerHTML;return On&&k["!doctype"]&&X.ownerDocument&&X.ownerDocument.doctype&&X.ownerDocument.doctype.name&&jt(u_,X.ownerDocument.doctype.name)&&(Lt="<!DOCTYPE "+X.ownerDocument.doctype.name+`>
111
+ `+Lt),Qe&&zo([me,ce,Pe],Pt=>{Lt=Fs(Lt,Pt," ")}),H&&ua?H.createHTML(Lt):Lt},r.setConfig=function(){let le=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};zi(le),Di=!0},r.clearConfig=function(){kn=null,Di=!1},r.isValidAttribute=function(le,N,X){kn||zi({});const J=rt(le),Fe=rt(N);return ir(J,Fe,X)},r.addHook=function(le,N){typeof N=="function"&&qs(se[le],N)},r.removeHook=function(le,N){if(N!==void 0){const X=$N(se[le],N);return X===-1?void 0:WN(se[le],X,1)[0]}return e1(se[le])},r.removeHooks=function(le){se[le]=[]},r.removeAllHooks=function(){se=l1()},r}var p3=c_();const g3=({onClose:t})=>{const r=Ze();return y.jsxs("div",{className:Et.highlightLoadingInfo,onClick:t,children:[y.jsx("div",{className:Et.highlightLoadingInfoCloseIcon,children:y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",children:y.jsx("path",{d:"M205.66,194.34a8,8,0,0,1-11.32,11.32L128,139.31,61.66,205.66a8,8,0,0,1-11.32-11.32L116.69,128,50.34,61.66A8,8,0,0,1,61.66,50.34L128,116.69l66.34-66.35a8,8,0,0,1,11.32,11.32L139.31,128Z"})})}),y.jsxs("div",{className:Et.highlightLoadingInfoInnerContainer,children:[y.jsxs("div",{className:Et.highlightLoadingInfoContent,children:[y.jsx("h3",{children:r("source-infos.highlight-loading.title")}),y.jsx("p",{children:r("source-infos.highlight-loading.description")})]}),y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"#000000",viewBox:"0 0 256 256",children:y.jsx("path",{d:"M253.66,106.34a8,8,0,0,0-11.32,0L192,156.69,107.31,72l50.35-50.34a8,8,0,1,0-11.32-11.32L96,60.69A16,16,0,0,0,93.18,79.5L72,100.69a16,16,0,0,0,0,22.62L76.69,128,18.34,186.34a8,8,0,0,0,3.13,13.25l72,24A7.88,7.88,0,0,0,96,224a8,8,0,0,0,5.66-2.34L136,187.31l4.69,4.69a16,16,0,0,0,22.62,0l21.19-21.18A16,16,0,0,0,203.31,168l50.35-50.34A8,8,0,0,0,253.66,106.34ZM93.84,206.85l-55-18.35L88,139.31,124.69,176ZM152,180.69,83.31,112,104,91.31,172.69,160Z"})})]})]})},y3=({title:t,href:r,children:i})=>y.jsx("a",{href:r,title:t,target:"_blank",rel:"noopener noreferrer",children:i}),b3=({className:t,children:r,...i})=>y.jsx("a",{className:Z(el.button,el.buttonDefault,t),type:"button",role:"button",...i,children:r}),v3=t=>y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",...t,children:y.jsx("path",{d:"M52,146H36a6,6,0,0,0-6,6v56a6,6,0,0,0,6,6H52a34,34,0,0,0,0-68Zm0,56H42V158H52a22,22,0,0,1,0,44Zm168.15-5.46a6,6,0,0,1,.18,8.48A28.06,28.06,0,0,1,200,214c-16.54,0-30-15.25-30-34s13.46-34,30-34a28.06,28.06,0,0,1,20.33,9,6,6,0,0,1-8.66,8.3A16.23,16.23,0,0,0,200,158c-9.93,0-18,9.87-18,22s8.07,22,18,22a16.23,16.23,0,0,0,11.67-5.28A6,6,0,0,1,220.15,196.54ZM128,146c-16.54,0-30,15.25-30,34s13.46,34,30,34,30-15.25,30-34S144.54,146,128,146Zm0,56c-9.93,0-18-9.87-18-22s8.07-22,18-22,18,9.87,18,22S137.93,202,128,202ZM48,118a6,6,0,0,0,6-6V40a2,2,0,0,1,2-2h90V88a6,6,0,0,0,6,6h50v18a6,6,0,0,0,12,0V88a6,6,0,0,0-1.76-4.24l-56-56A6,6,0,0,0,152,26H56A14,14,0,0,0,42,40v72A6,6,0,0,0,48,118ZM158,46.48,193.52,82H158Z"})}),_3=({type:t,...r})=>{switch(t){case"WEBSITE":return y.jsx(Wv,{...r});case"PDF":return y.jsx($v,{...r});case"DOCX":return y.jsx(Qv,{...r});case"TEXT":return y.jsx(v3,{...r});default:return y.jsx(Kv,{...r})}},E3=({url:t,knowledgeBaseType:r})=>{const i=Ze();return y.jsx(b3,{className:Et.openSourceButton,href:t,target:"_blank",children:y.jsxs("div",{className:Et.sourceButtonLabel,children:[y.jsx("div",{className:Et.sourceHeaderIcon,children:y.jsx(_3,{type:r})}),y.jsx("p",{children:i("source-infos.open-source")})]})})},S3=({sourceInfos:{content:t,url:r,knowledgeBaseType:i,highlighted:s}})=>{const[u,c]=U.useState(!s);U.useEffect(()=>{s&&c(!1)},[s]);const d=p3.sanitize(t,{USE_PROFILES:{html:!0}});return y.jsxs(y.Fragment,{children:[y.jsxs("div",{className:Z(Et.sourceContent,e_.markdown),children:[y.jsx(Or,{options:{overrides:{a:y3}},children:d}),u&&y.jsx(g3,{onClose:()=>c(!1)})]}),y.jsx(E3,{url:r,knowledgeBaseType:i})]})},T3=""+new URL("undraw_fixing-bugs-D_eYxJc6.svg",import.meta.url).href,A3=()=>{const t=Ze();return y.jsxs("div",{className:Et.loadingError,children:[y.jsx("h1",{children:t("source-infos.error.title")}),y.jsx("img",{src:T3,title:t("source-infos.error.title")}),y.jsx("p",{children:t("source-infos.error.info")})]})},x3=()=>y.jsx("div",{className:Et.loadingSourceInfos,children:y.jsx("svg",{className:Et.loading,xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",children:y.jsx("path",{d:"M230,128a102,102,0,0,1-204,0c0-40.18,23.35-76.86,59.5-93.45a6,6,0,0,1,5,10.9C58.61,60.09,38,92.49,38,128a90,90,0,0,0,180,0c0-35.51-20.61-67.91-52.5-82.55a6,6,0,0,1,5-10.9C206.65,51.14,230,87.82,230,128Z"})})});function O3({sourceInfos:t,onClose:r,threshold:i=100}){const s=U.useRef(null),[u,c]=U.useState(0),[d,h]=U.useState(!1),m=U.useRef(null),p=U.useRef(null),b=U.useCallback(R=>{m.current=R,h(!0)},[]),E=U.useCallback(R=>{if(m.current!==null&&d){const q=R-m.current;q>0&&c(q)}},[d]),A=U.useCallback(()=>{h(!1),u>i&&r(),c(0),m.current=null},[u,i,r]),L=U.useCallback(R=>{const q=x=>b(x.touches[0].clientY),G=x=>E(x.touches[0].clientY),_=()=>A(),C=x=>{x.preventDefault(),b(x.clientY),window.addEventListener("mousemove",S),window.addEventListener("mouseup",H)},S=x=>E(x.clientY),H=()=>{A(),window.removeEventListener("mousemove",S),window.removeEventListener("mouseup",H)};R.addEventListener("touchstart",q),R.addEventListener("touchmove",G),R.addEventListener("touchend",_),R.addEventListener("mousedown",C),p.current=()=>{R.removeEventListener("touchstart",q),R.removeEventListener("touchmove",G),R.removeEventListener("touchend",_),R.removeEventListener("mousedown",C),window.removeEventListener("mousemove",S),window.removeEventListener("mouseup",H)}},[b,E,A]);return U.useEffect(()=>{let R;return(()=>{s.current?(p.current?.(),L(s.current)):(R=new MutationObserver(()=>{s.current&&(p.current?.(),L(s.current),R?.disconnect())}),R.observe(document.body,{childList:!0,subtree:!0}))})(),()=>{R?.disconnect(),p.current?.()}},[L,t]),{ref:s,dragOffsetY:u,isDragging:d}}const R3=t=>{const[r,i]=U.useState(!0);return U.useEffect(()=>{let s=null;return t?.type==="loading"?(i(!0),s=setTimeout(()=>{i(!1)},300)):i(!t),()=>{s&&clearTimeout(s)}},[t]),r},w3=()=>{const t=Nr(),r=st(m=>m.chat.sourceInfos),i=i_(),s=U.useRef(null),u=R3(r);U.useEffect(()=>{s.current&&r?.type==="loading"&&(i?s.current.showModal():(s.current.setAttribute("open","true"),s.current?.focus()))},[r,i]);const c=U.useCallback(()=>{s.current&&(i?s.current.close():s.current.removeAttribute("open"),t(OO()))},[t,i]),{ref:d,dragOffsetY:h}=O3({onClose:c,sourceInfos:r});return r?y.jsx("dialog",{ref:s,className:Z(Et.sourceInfos,u?Et.waitForLoading:r.type==="loading"?Et.loadingContent:""),style:i&&h?{transform:`translateY(${h}px)`}:{},onClose:c,autoFocus:!0,role:"dialog","aria-labelledby":"source-info-title",children:u?null:y.jsxs(y.Fragment,{children:[y.jsx(YN,{ref:d,tabIndex:-1,sourceInfos:r.type==="loaded"?r:void 0,onClose:c}),r.type==="loading"?y.jsx(x3,{}):r.type==="loading-error"?y.jsx(A3,{}):y.jsxs(y.Fragment,{children:[y.jsx(XN,{loading:!r.highlighted}),y.jsx(S3,{sourceInfos:r})]})]})}):null},C3="_container_1aof3_1",N3="_body_1aof3_7",M3="_intro_1aof3_14",D3="_footer_1aof3_39",L3="_footnote_1aof3_43",B3="_containerWithFootnote_1aof3_58",U3="_startChatButton_1aof3_73",H3="_spinner_1aof3_88",j3="_formFields_1aof3_92",I3="_formField_1aof3_92",z3="_radio_1aof3_104",G3="_checkbox_1aof3_111",k3="_input_1aof3_119",q3="_inputLabel_1aof3_153",F3="_selectWrapper_1aof3_157",V3="_select_1aof3_157",P3="_selectLabel_1aof3_203",_t={container:C3,body:N3,intro:M3,footer:D3,footnote:L3,containerWithFootnote:B3,startChatButton:U3,spinner:H3,formFields:j3,formField:I3,radio:z3,checkbox:G3,input:k3,inputLabel:q3,selectWrapper:F3,select:V3,selectLabel:P3},Y3=({name:t,label:r,defaultValue:i,required:s,onChange:u})=>{const c=d=>{u(d.currentTarget.checked?"true":"false")};return y.jsxs("label",{className:Z(_t.checkbox,"chat__startScreen__checkbox"),htmlFor:t,children:[y.jsx("input",{type:"checkbox",id:t,name:t,defaultChecked:i==="true",required:s,onChange:c}),y.jsx("div",{children:r})]})},X3=({type:t,name:r,label:i,defaultValue:s,placeholder:u,required:c,multiple:d,min:h,max:m,pattern:p,onChange:b})=>{const E=A=>{b(A.target.value)};return y.jsxs("label",{className:Z(_t.input,"chat__startScreen__input"),htmlFor:r,children:[y.jsx("div",{className:Z(_t.inputLabel),children:i}),y.jsx("input",{type:t,id:r,name:r,defaultValue:s,placeholder:u,required:c,multiple:d,min:h,max:m,pattern:p,onChange:E})]})},Z3=({name:t,value:r,label:i,defaultChecked:s,required:u,onChange:c})=>{const d=`${t}-${r}`,h=m=>{c(m.target.value)};return y.jsxs("label",{className:Z(_t.radio,"chat__startScreen__radio"),htmlFor:d,children:[y.jsx("input",{id:d,type:"radio",name:t,value:r,defaultChecked:s,required:u,onChange:h}),y.jsx("span",{className:Z(_t.label),children:i})]})},Q3=({name:t,label:r,defaultValue:i,required:s,multiple:u,options:c,onChange:d})=>{const h=m=>{d(m.target.value)};return y.jsxs("label",{className:Z(_t.select,"chat__startScreen__select"),htmlFor:t,children:[y.jsx("div",{className:Z(_t.selectLabel),children:r}),y.jsx("div",{className:Z(_t.selectWrapper),children:y.jsx("select",{id:t,name:t,defaultValue:i,required:s,multiple:u,onChange:h,children:Object.entries(c||{}).map(([m,p])=>y.jsx("option",{value:m,selected:p===i,children:p}))})})]})},K3="start-screen.intro",$3="start-screen.start-chat",W3="start-screen.waiting-for-login",J3="start-screen.footnote",Hn="start-screen.form",o1=`${Hn}.fields`,eM=()=>{const t=Ze(),r=Nr(),i=Su(),s=st(R=>R.startScreen.loginRequestToken),u=st(R=>R.settings.requiresUserAuthentication);U.useEffect(()=>{let R;if(s){const _=window.screenX+(window.outerWidth-600)/2,C=window.screenY+(window.outerHeight-700)/2,S=window.open(`/${i}/auth/login?loginRequestToken=${s}`,"Login",`width=600,height=700,left=${_},top=${C},resizable=yes,scrollbars=yes`);R=setInterval(()=>{S?.closed&&(r(SO()),clearInterval(R))},500)}return()=>{R&&clearInterval(R)}},[i,s,r]);const[c,d]=U.useState({}),h=()=>{const R=Object.entries(c).reduce((q,[G,_])=>({...q,[G]:_.value}),{});r(u?EO({loginRequestToken:Wo(),formValues:R}):bO({formValues:R}))},m=t(K3),p=t(s?W3:$3),b=t(J3),E=U.useMemo(()=>t(o1)?.split(";").map(R=>R.trim())??[],[t(o1)]);U.useEffect(()=>{E.length&&Object.keys(c).length===0&&d(E.reduce((R,q)=>({...R,[q]:tM(q,t)}),{}))},[t,E,c]);const A=R=>{R.preventDefault(),h()},L=R=>q=>{d(G=>({...G,[R]:{...G[R],value:q}}))};return y.jsxs("form",{onSubmit:A,className:Z(_t.container,b&&_t.containerWithFootnote,"chat__startScreen"),children:[y.jsxs("div",{className:Z(_t.body,"chat__startScreen__body"),children:[m&&y.jsx("div",{className:Z(_t.intro,"chat__startScreen__intro"),children:y.jsx(Or,{options:{overrides:{a:u1}},children:m})}),y.jsx("div",{className:Z(_t.formFields,"chat__startScreen__fields"),children:Object.values(c).map(({type:R,name:q,label:G,placeholder:_,defaultValue:C,options:S,required:H,multiple:x,min:Q,max:W,pattern:ae})=>y.jsx("div",{className:Z(_t.formField,"chat__startScreen__field"),children:(()=>{switch(R){case"radio":return y.jsxs(y.Fragment,{children:[y.jsx("div",{children:G}),Object.entries(S||{}).map(([ye,Ee])=>y.jsx(Z3,{name:q,value:ye,label:Ee,defaultChecked:ye===C,required:H,onChange:L(q)},ye))]});case"checkbox":return y.jsx(Y3,{name:q,label:G,defaultValue:C,required:H,onChange:L(q)});case"select":return y.jsx(Q3,{name:q,label:G,defaultValue:C,required:H,multiple:x,options:S,onChange:L(q)});default:return y.jsx(X3,{type:R,name:q,label:G,placeholder:_,defaultValue:C,required:H,multiple:x,min:Q,max:W,pattern:ae,onChange:L(q)})}})()},q))})]}),y.jsxs("div",{className:Z(_t.footer,"chat__startScreen__footer"),children:[y.jsxs(iu,{type:"submit",className:_t.startChatButton,disabled:!!s,children:[!!s&&y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",className:_t.spinner,children:y.jsx("path",{d:"M136,32V64a8,8,0,0,1-16,0V32a8,8,0,0,1,16,0Zm88,88H192a8,8,0,0,0,0,16h32a8,8,0,0,0,0-16Zm-45.09,47.6a8,8,0,0,0-11.31,11.31l22.62,22.63a8,8,0,0,0,11.32-11.32ZM128,184a8,8,0,0,0-8,8v32a8,8,0,0,0,16,0V192A8,8,0,0,0,128,184ZM77.09,167.6,54.46,190.22a8,8,0,0,0,11.32,11.32L88.4,178.91A8,8,0,0,0,77.09,167.6ZM72,128a8,8,0,0,0-8-8H32a8,8,0,0,0,0,16H64A8,8,0,0,0,72,128ZM65.78,54.46A8,8,0,0,0,54.46,65.78L77.09,88.4A8,8,0,0,0,88.4,77.09Z"})}),y.jsx("div",{children:p})]}),b&&y.jsx("div",{className:_t.footnote,children:y.jsx(Or,{options:{overrides:{a:u1}},children:b})})]})]})},u1=({title:t,href:r,children:i})=>y.jsx("a",{href:r,title:t,target:"_blank",rel:"noopener noreferrer",children:i}),tM=(t,r)=>{const i=r(`${Hn}.${t}.type`)||"text",s=r(`${Hn}.${t}.required`)==="true",u=r(`${Hn}.${t}.multiple`)==="true",c=r(`${Hn}.${t}.placeholder`),d=r(`${Hn}.${t}.label`)||"",h=r(`${Hn}.${t}.defaultValue`),m=r(`${Hn}.${t}.min`),p=r(`${Hn}.${t}.max`),b=r(`${Hn}.${t}.pattern`),E=rM(r(`${Hn}.${t}.options`));return{name:t,label:d,placeholder:c,value:nM(i,h,E)||"",defaultValue:h,options:E,type:i,required:s,multiple:u,min:m,max:p,pattern:b}},nM=(t,r,i)=>r||t==="select"&&Object.keys(i)[0]||"",rM=(t="")=>t.split(";").map(r=>r.trim()).reduce((r,i)=>{const[s,u]=i.split(":").map(c=>c.trim());return{...r,[s]:u}},{}),aM=()=>{const t=cu();U.useEffect(()=>{window.document.documentElement.lang=t.locale},[t.locale])},Oi={TRIGGER_ACTION:"TRIGGER_ACTION",TRIGGER_STORY:"TRIGGER_STORY",CHAT_MESSAGE_FROM_GUEST:"CHAT_MESSAGE_FROM_GUEST",ON_CHAT_WINDOW_OPEN:"ON_CHAT_WINDOW_OPEN",ON_CHAT_WINDOW_CLOSE:"ON_CHAT_WINDOW_CLOSE",RESTART_CHAT:"RESTART_CHAT"},iM=({clientName:t})=>{aM();const r=Nr(),i=st(b=>b.intl.messages),s=Ze(),u=st(b=>b.settings.enableStartScreen),c=st(b=>b.startScreen.startScreenStatus),[d,h]=U.useState(void 0);U.useEffect(()=>{const b=fu.parse(window.location.search);b.cssClassName&&h(b.cssClassName);const E=A=>{switch(A.data.type){case Oi.TRIGGER_ACTION:r(A.data.action);break;case Oi.TRIGGER_STORY:r(mv(A.data.story));break;case Oi.ON_CHAT_WINDOW_OPEN:r({type:"webclient.chatwindow.opened"});break;case Oi.ON_CHAT_WINDOW_CLOSE:r({type:"webclient.chatwindow.closed"});break;case Oi.CHAT_MESSAGE_FROM_GUEST:r(uv(A.data.text));break;case Oi.RESTART_CHAT:r(bu(t,b));break}};return r(wO(t,b)),window.addEventListener("message",A=>E(A),!1),()=>window.removeEventListener("message",E)},[t,r]),U.useEffect(()=>{const b=s("page.title");b&&document&&(document.title=b)},[i,s]);const m=u===void 0,p=u===!1||c==="HIDDEN";return y.jsx("div",{className:Z(Wb.chatwindow,p&&Wb.chatwindowWithAside,"chat__chatwindow",d),children:m?null:p?y.jsxs(y.Fragment,{children:[y.jsx("header",{children:y.jsx($b,{chatStarted:!0})}),y.jsx("main",{children:y.jsx(cN,{clientName:t})}),y.jsx("aside",{children:y.jsx(w3,{})})]}):y.jsxs(y.Fragment,{children:[y.jsx("header",{children:y.jsx($b,{chatStarted:!1})}),y.jsx("main",{children:y.jsx(eM,{})})]})})},sM=()=>{const t=Su(),r=i_(),i=st(u=>u.intl.locale),s=st(u=>u.intl.messages);return y.jsx(MA,{locale:i,messages:s,onError:()=>{},children:y.jsx("div",{className:Z([LA.app,r?"chat__small":"chat__large"]),children:y.jsx(iM,{clientName:t})})})};var Id,c1;function lM(){if(c1)return Id;c1=1;var t=Xv(),r=Qh(),i="Expected a function";function s(u,c,d){var h=!0,m=!0;if(typeof u!="function")throw new TypeError(i);return r(d)&&(h="leading"in d?!!d.leading:h,m="trailing"in d?!!d.trailing:m),t(u,c,{leading:h,maxWait:c,trailing:m})}return Id=s,Id}var oM=lM();const uM=lu(oM);function cM(t){return t&&t.constructor&&typeof t.constructor.isBuffer=="function"&&t.constructor.isBuffer(t)}function fM(t){return t}function dM(t,r){r=r||{};const i=r.delimiter||".",s=r.maxDepth,u=r.transformKey||fM,c={};function d(h,m,p){p=p||1,Object.keys(h).forEach(function(b){const E=h[b],A=r.safe&&Array.isArray(E),L=Object.prototype.toString.call(E),R=cM(E),q=L==="[object Object]"||L==="[object Array]",G=m?m+i+u(b):u(b);if(!A&&!R&&q&&Object.keys(E).length&&(!r.maxDepth||p<s))return d(E,G,p+1);c[G]=E})}return d(t),c}const f_={"page.title":"Bubble Chat Chatbot","message-input-label":"Benutzereingabe","message-input-placeholder":"Nachricht eingeben","message-input.actions.submit.label":"Nachricht senden","message-input.actions.start-audio-recording.label":"Spracheingabe starten","message-input.actions.stop-audio-recording.label":"Spracheingabe stoppen","message-input.actions.submit-audio-recording.label":"Spracheingabe übermitteln","guest-bubble.label":"Ihre Nachricht","bot-bubble.label":"Nachricht des Chatbots","bot-bubble.reaction.good":"Gefällt mir","bot-bubble.reaction.bad":"Gefällt mir nicht","bot-bubble.reaction.remove":"Markierung entfernen","bot-bubble.reaction.say-more":"Erzähle mir bitte mehr","bot-bubble.reaction.category.WRONG_INFORMATION":"Falsch","bot-bubble.reaction.category.MISSING_INFORMATION":"Unvollständig","bot-bubble.reaction.category.OLD_INFORMATION":"Veraltet","bot-bubble.reaction.category.UNCLEAR":"Unklar","bot-bubble.reaction.category.OFF_TOPIC":"Nicht zur Frage passend","bot-bubble.reaction.comment":"Gedanken mit mir teilen...","bot-bubble.reaction.close":"Schliessen","bot-bubble.copy":"Kopieren","bot-bubble.sources":"Quellenliste","bot-bubble.source.open":"Quelle öffnen","agent-bubble.label":"Nachricht des Live-Agenten","export-transcript.email.title":"Chatverlauf per E-Mail versenden","export-transcript.email.description":"Bitte E-Mail-Adresse angeben, an die der Chatverlauf gesendet werden soll.","export-transcript.email.cancel":"Abbrechen","export-transcript.email.send":"Senden","export-transcript.email.placeholder":"E-Mail-Adresse","export-transcript.email.invalid":"Bitte gültige E-Mail-Adresse eingeben.","export-transcript.email.success":"Der Chatverlauf wurde an die hinterlegte E-Mail-Adresse übermittelt.","general-conditions.header":"**Nutzungsbedingungen**","general-conditions.body":`Bitte berücksichtigen Sie die folgenden Punkte:
112
112
 
113
113
  - Der Chatverlauf wird im EU-Raum gespeichert und kann nur von autorisierten Personen eingesehen werden.
114
- - Geben Sie im Chatfenster keine persönlichen Daten ein (Passwörter, Geburtsdatum usw.).`,"general-conditions.accept-conditions-note":"Mit der Verwendung des Chats erklären Sie sich mit den Nutzungsbedingungen einverstanden.","block-user-input.title":"Bitte auf die Antwort des Chatbots warten.","conversation-rating.call-to-action.title":"Bewerten Sie diesen Chat","conversation-rating.overlay.title":"Wie zufrieden sind Sie mit diesem Chat?","conversation-rating.overlay.guest-feedback.input-placeholder":"Feedback bitte hier eingeben (optional)","conversation-rating.overlay.star.very-bad":"Sehr schlecht","conversation-rating.overlay.star.very-good":"Sehr gut","conversation-rating.overlay.bot-message.rate-feedback.value-1":"Oh, das tönt nicht gut. Bitte geben Sie mir doch ein schriftliches Feedback, damit ich dazulernen kann.","conversation-rating.overlay.bot-message.rate-feedback.value-2":"Oh, das tönt nicht gut. Bitte geben Sie mir doch ein schriftliches Feedback, damit ich dazulernen kann.","conversation-rating.overlay.bot-message.rate-feedback.value-3":"Durchschnitt ist nicht mein Ziel, was kann ich noch verbessern?","conversation-rating.overlay.bot-message.rate-feedback.value-4":"Knapp daneben ist auch vorbei. Was kann ich noch verbessern, um das nächste Mal alle Sterne zu erreichen?","conversation-rating.overlay.bot-message.rate-feedback.value-5":"Perfekt! Dann hoffe ich, dass ich Sie wieder einmal so gut beraten kann.","conversation-rating.overlay.bot-message.submit-feedback":"Vielen Dank für die Rückmeldung. Ich bin bestrebt, mich ständig zu verbessern.","conversation-rating.overlay.action.submit":"Bewertung senden","conversation-rating.overlay.action.back-to-chat":"Zurück zum Chat","conversation-rating.overlay.action.close-chat":"Chat minimieren","conversation-rating.overlay.action.cancel":"Abbrechen","start-screen.intro":"","start-screen.start-chat":"Chat starten","start-screen.waiting-for-login":"Warte auf Login ...","header.close-chat":"Chat minimieren","header.menu.title":"Menü","header.menu.restart-chat":"Chat neu starten","header.menu.expand-chat-window":"Fenster maximieren","header.menu.download-transcript":"Chatverlauf herunterladen","header.menu.send-transcript":"Chatverlauf versenden","header.menu.export-transcript":"Chatverlauf exportieren","header.menu.rate-conversation":"Chat bewerten","source-infos.close":"Schliessen","source-infos.open-source":"Quelle öffnen","source-infos.error.title":"Fehler","source-infos.error.info":"Oops! Etwas ist schiefgelaufen. Bitte versuche es erneut oder kontaktiere den Support, falls das Problem weiterhin besteht.","source-infos.highlight-loading.title":"Relevante Inhalte werden markiert...","source-infos.highlight-loading.description":"Einen Moment – die Quelle wird analysiert.","commands.show-more.action":"Weitere ...","commands.show-more.tooltip":"Weitere Befehle anzeigen","commands.show-less.action":"Weniger ...","commands.show-less.tooltip":"Weniger Befehle anzeigen"},cM={"page.title":"Bubble Chat Chatbot","message-input-label":"User input","message-input-placeholder":"Enter a message","message-input.actions.submit.label":"Send message","message-input.actions.start-audio-recording.label":"Start voice input","message-input.actions.stop-audio-recording.label":"Stop voice input","message-input.actions.submit-audio-recording.label":"Transmit voice input","guest-bubble.label":"Your message","bot-bubble.label":"Message from the chatbot","bot-bubble.reaction.good":"I like","bot-bubble.reaction.bad":"I don't like it","bot-bubble.reaction.remove":"Remove marker","bot-bubble.reaction.say-more":"Please tell us more","bot-bubble.reaction.category.WRONG_INFORMATION":"Wrong","bot-bubble.reaction.category.MISSING_INFORMATION":"Incomplete","bot-bubble.reaction.category.OLD_INFORMATION":"Outdated","bot-bubble.reaction.category.UNCLEAR":"Unclear","bot-bubble.reaction.category.OFF_TOPIC":"Not relevant to the question","bot-bubble.reaction.comment":"Share your thoughts with us...","bot-bubble.reaction.close":"Close","bot-bubble.copy":"Copy","bot-bubble.sources":"Source list","bot-bubble.source.open":"Open source","agent-bubble.label":"Message from the live agent","export-transcript.email.title":"Receive chat history","export-transcript.email.description":"Please enter the e-mail address to which the chat history should be sent.","export-transcript.email.cancel":"Cancel","export-transcript.email.send":"Send","export-transcript.email.placeholder":"E-mail address","export-transcript.email.invalid":"Please enter a valid e-mail address.","export-transcript.email.success":"The chat history was sent to the e-mail address provided.","general-conditions.header":"**Terms of use**","general-conditions.body":`Please consider the following points:
114
+ - Geben Sie im Chatfenster keine persönlichen Daten ein (Passwörter, Geburtsdatum usw.).`,"general-conditions.accept-conditions-note":"Mit der Verwendung des Chats erklären Sie sich mit den Nutzungsbedingungen einverstanden.","block-user-input.title":"Bitte auf die Antwort des Chatbots warten.","conversation-rating.call-to-action.title":"Bewerten Sie diesen Chat","conversation-rating.overlay.title":"Wie zufrieden sind Sie mit diesem Chat?","conversation-rating.overlay.guest-feedback.input-placeholder":"Feedback bitte hier eingeben (optional)","conversation-rating.overlay.star.very-bad":"Sehr schlecht","conversation-rating.overlay.star.very-good":"Sehr gut","conversation-rating.overlay.bot-message.rate-feedback.value-1":"Oh, das tönt nicht gut. Bitte geben Sie mir doch ein schriftliches Feedback, damit ich dazulernen kann.","conversation-rating.overlay.bot-message.rate-feedback.value-2":"Oh, das tönt nicht gut. Bitte geben Sie mir doch ein schriftliches Feedback, damit ich dazulernen kann.","conversation-rating.overlay.bot-message.rate-feedback.value-3":"Durchschnitt ist nicht mein Ziel, was kann ich noch verbessern?","conversation-rating.overlay.bot-message.rate-feedback.value-4":"Knapp daneben ist auch vorbei. Was kann ich noch verbessern, um das nächste Mal alle Sterne zu erreichen?","conversation-rating.overlay.bot-message.rate-feedback.value-5":"Perfekt! Dann hoffe ich, dass ich Sie wieder einmal so gut beraten kann.","conversation-rating.overlay.bot-message.submit-feedback":"Vielen Dank für die Rückmeldung. Ich bin bestrebt, mich ständig zu verbessern.","conversation-rating.overlay.action.submit":"Bewertung senden","conversation-rating.overlay.action.back-to-chat":"Zurück zum Chat","conversation-rating.overlay.action.close-chat":"Chat minimieren","conversation-rating.overlay.action.cancel":"Abbrechen","start-screen.intro":"","start-screen.start-chat":"Chat starten","start-screen.waiting-for-login":"Warte auf Login ...","header.close-chat":"Chat minimieren","header.menu.title":"Menü","header.menu.restart-chat":"Chat neu starten","header.menu.expand-chat-window":"Fenster maximieren","header.menu.download-transcript":"Chatverlauf herunterladen","header.menu.send-transcript":"Chatverlauf versenden","header.menu.export-transcript":"Chatverlauf exportieren","header.menu.rate-conversation":"Chat bewerten","source-infos.close":"Schliessen","source-infos.open-source":"Quelle öffnen","source-infos.error.title":"Fehler","source-infos.error.info":"Oops! Etwas ist schiefgelaufen. Bitte versuche es erneut oder kontaktiere den Support, falls das Problem weiterhin besteht.","source-infos.highlight-loading.title":"Relevante Inhalte werden markiert...","source-infos.highlight-loading.description":"Einen Moment – die Quelle wird analysiert.","commands.show-more.action":"Weitere ...","commands.show-more.tooltip":"Weitere Befehle anzeigen","commands.show-less.action":"Weniger ...","commands.show-less.tooltip":"Weniger Befehle anzeigen"},hM={"page.title":"Bubble Chat Chatbot","message-input-label":"User input","message-input-placeholder":"Enter a message","message-input.actions.submit.label":"Send message","message-input.actions.start-audio-recording.label":"Start voice input","message-input.actions.stop-audio-recording.label":"Stop voice input","message-input.actions.submit-audio-recording.label":"Transmit voice input","guest-bubble.label":"Your message","bot-bubble.label":"Message from the chatbot","bot-bubble.reaction.good":"I like","bot-bubble.reaction.bad":"I don't like it","bot-bubble.reaction.remove":"Remove marker","bot-bubble.reaction.say-more":"Please tell us more","bot-bubble.reaction.category.WRONG_INFORMATION":"Wrong","bot-bubble.reaction.category.MISSING_INFORMATION":"Incomplete","bot-bubble.reaction.category.OLD_INFORMATION":"Outdated","bot-bubble.reaction.category.UNCLEAR":"Unclear","bot-bubble.reaction.category.OFF_TOPIC":"Not relevant to the question","bot-bubble.reaction.comment":"Share your thoughts with us...","bot-bubble.reaction.close":"Close","bot-bubble.copy":"Copy","bot-bubble.sources":"Source list","bot-bubble.source.open":"Open source","agent-bubble.label":"Message from the live agent","export-transcript.email.title":"Receive chat history","export-transcript.email.description":"Please enter the e-mail address to which the chat history should be sent.","export-transcript.email.cancel":"Cancel","export-transcript.email.send":"Send","export-transcript.email.placeholder":"E-mail address","export-transcript.email.invalid":"Please enter a valid e-mail address.","export-transcript.email.success":"The chat history was sent to the e-mail address provided.","general-conditions.header":"**Terms of use**","general-conditions.body":`Please consider the following points:
115
115
 
116
116
  - The chat history is stored in the EU area and can only be viewed by authorized personnel.
117
- - Do not enter any personal information in the chat window (passwords, date of birth, etc.)`,"general-conditions.accept-conditions-note":"By using the chat you agree to the terms of use.","block-user-input.title":"Please wait for the chatbot's response.","conversation-rating.call-to-action.title":"Rate this chat","conversation-rating.overlay.title":"How satisfied are you with this chat?","conversation-rating.overlay.guest-feedback.input-placeholder":"Please enter feedback here (optional)","conversation-rating.overlay.star.very-bad":"Very bad","conversation-rating.overlay.star.very-good":"Very good","conversation-rating.overlay.bot-message.rate-feedback.value-1":"Oh, that doesn't sound good. Please give me some feedback so that I can learn more.","conversation-rating.overlay.bot-message.rate-feedback.value-2":"Oh, that doesn't sound good. Please give me some feedback so that I can learn more.","conversation-rating.overlay.bot-message.rate-feedback.value-3":"Average is not my goal, what can I still improve?","conversation-rating.overlay.bot-message.rate-feedback.value-4":"Just missed is also over. What can I improve to achieve all stars next time?","conversation-rating.overlay.bot-message.rate-feedback.value-5":"Perfect! Then I hope that I can once again advise you so well.","conversation-rating.overlay.bot-message.submit-feedback":"Thank you for the feedback. I am constantly striving to improve.","conversation-rating.overlay.action.submit":"Send rating","conversation-rating.overlay.action.back-to-chat":"Close","conversation-rating.overlay.action.close-chat":"Minimize chat","conversation-rating.overlay.action.cancel":"Cancel","start-screen.intro":"","start-screen.start-chat":"Start chat","start-screen.waiting-for-login":"Waiting for login ...","header.close-chat":"Minimize chat","header.menu.title":"Menu","header.menu.restart-chat":"Restart chat","header.menu.expand-chat-window":"Maximize window","header.menu.download-transcript":"Download chat history","header.menu.export-transcript":"Export chat history","header.menu.send-transcript":"Send chat history","header.menu.rate-conversation":"Rate chat","source-infos.close":"Close","source-infos.open-source":"Open source","source-infos.error.title":"Error","source-infos.error.info":"Oops! Something went wrong. Please try again or contact support if the problem persists.","source-infos.highlight-loading.title":"Relevant content is highlighted...","source-infos.highlight-loading.description":"One moment - the source is being analyzed.","commands.show-more.action":"More","commands.show-more.tooltip":"Show more commands","commands.show-less.action":"Less","commands.show-less.tooltip":"Show less commands"},fM={"page.title":"Bubble Chat Chatbot","message-input-label":"Input dell'utente","message-input-placeholder":"Saisir un message","message-input.actions.submit.label":"Envoyer un message","message-input.actions.start-audio-recording.label":"Démarrer la saisie vocale","message-input.actions.stop-audio-recording.label":"Arrêt de la saisie vocale","message-input.actions.submit-audio-recording.label":"Transmettre une entrée vocale","guest-bubble.label":"Votre message","bot-bubble.label":"Message du chatbot","bot-bubble.reaction.good":"J'aime bien","bot-bubble.reaction.bad":"Je n'aime pas","bot-bubble.reaction.remove":"Retirer le marqueur","bot-bubble.reaction.say-more":"Dis-nous en plus, s'il te plaît","bot-bubble.reaction.category.WRONG_INFORMATION":"Faux","bot-bubble.reaction.category.MISSING_INFORMATION":"Incomplet","bot-bubble.reaction.category.OLD_INFORMATION":"Obsolète","bot-bubble.reaction.category.UNCLEAR":"Peu clair","bot-bubble.reaction.category.OFF_TOPIC":"Hors sujet","bot-bubble.reaction.comment":"Partager ses pensées avec nous...","bot-bubble.reaction.close":"Fermer","bot-bubble.copy":"Copie","bot-bubble.sources":"Liste des sources","bot-bubble.source.open":"Ouvrir la source","agent-bubble.label":"Message de l'agent en direct","export-transcript.email.title":"Recevoir l'historique du chat","export-transcript.email.description":"Veuillez indiquer l'adresse e-mail à laquelle l'historique de chat doit être envoyé.","export-transcript.email.cancel":"Annuler","export-transcript.email.send":"Envoyer","export-transcript.email.placeholder":"E-mail","export-transcript.email.invalid":"Veuillez entrer une adresse électronique valide.","export-transcript.email.success":"L'historique du chat a été envoyé à l'adresse e-mail fournie.","general-conditions.header":"**Conditions d'utilisation**","general-conditions.body":`Veuillez considérer les points suivants:
117
+ - Do not enter any personal information in the chat window (passwords, date of birth, etc.)`,"general-conditions.accept-conditions-note":"By using the chat you agree to the terms of use.","block-user-input.title":"Please wait for the chatbot's response.","conversation-rating.call-to-action.title":"Rate this chat","conversation-rating.overlay.title":"How satisfied are you with this chat?","conversation-rating.overlay.guest-feedback.input-placeholder":"Please enter feedback here (optional)","conversation-rating.overlay.star.very-bad":"Very bad","conversation-rating.overlay.star.very-good":"Very good","conversation-rating.overlay.bot-message.rate-feedback.value-1":"Oh, that doesn't sound good. Please give me some feedback so that I can learn more.","conversation-rating.overlay.bot-message.rate-feedback.value-2":"Oh, that doesn't sound good. Please give me some feedback so that I can learn more.","conversation-rating.overlay.bot-message.rate-feedback.value-3":"Average is not my goal, what can I still improve?","conversation-rating.overlay.bot-message.rate-feedback.value-4":"Just missed is also over. What can I improve to achieve all stars next time?","conversation-rating.overlay.bot-message.rate-feedback.value-5":"Perfect! Then I hope that I can once again advise you so well.","conversation-rating.overlay.bot-message.submit-feedback":"Thank you for the feedback. I am constantly striving to improve.","conversation-rating.overlay.action.submit":"Send rating","conversation-rating.overlay.action.back-to-chat":"Close","conversation-rating.overlay.action.close-chat":"Minimize chat","conversation-rating.overlay.action.cancel":"Cancel","start-screen.intro":"","start-screen.start-chat":"Start chat","start-screen.waiting-for-login":"Waiting for login ...","header.close-chat":"Minimize chat","header.menu.title":"Menu","header.menu.restart-chat":"Restart chat","header.menu.expand-chat-window":"Maximize window","header.menu.download-transcript":"Download chat history","header.menu.export-transcript":"Export chat history","header.menu.send-transcript":"Send chat history","header.menu.rate-conversation":"Rate chat","source-infos.close":"Close","source-infos.open-source":"Open source","source-infos.error.title":"Error","source-infos.error.info":"Oops! Something went wrong. Please try again or contact support if the problem persists.","source-infos.highlight-loading.title":"Relevant content is highlighted...","source-infos.highlight-loading.description":"One moment - the source is being analyzed.","commands.show-more.action":"More","commands.show-more.tooltip":"Show more commands","commands.show-less.action":"Less","commands.show-less.tooltip":"Show less commands"},mM={"page.title":"Bubble Chat Chatbot","message-input-label":"Input dell'utente","message-input-placeholder":"Saisir un message","message-input.actions.submit.label":"Envoyer un message","message-input.actions.start-audio-recording.label":"Démarrer la saisie vocale","message-input.actions.stop-audio-recording.label":"Arrêt de la saisie vocale","message-input.actions.submit-audio-recording.label":"Transmettre une entrée vocale","guest-bubble.label":"Votre message","bot-bubble.label":"Message du chatbot","bot-bubble.reaction.good":"J'aime bien","bot-bubble.reaction.bad":"Je n'aime pas","bot-bubble.reaction.remove":"Retirer le marqueur","bot-bubble.reaction.say-more":"Dis-nous en plus, s'il te plaît","bot-bubble.reaction.category.WRONG_INFORMATION":"Faux","bot-bubble.reaction.category.MISSING_INFORMATION":"Incomplet","bot-bubble.reaction.category.OLD_INFORMATION":"Obsolète","bot-bubble.reaction.category.UNCLEAR":"Peu clair","bot-bubble.reaction.category.OFF_TOPIC":"Hors sujet","bot-bubble.reaction.comment":"Partager ses pensées avec nous...","bot-bubble.reaction.close":"Fermer","bot-bubble.copy":"Copie","bot-bubble.sources":"Liste des sources","bot-bubble.source.open":"Ouvrir la source","agent-bubble.label":"Message de l'agent en direct","export-transcript.email.title":"Recevoir l'historique du chat","export-transcript.email.description":"Veuillez indiquer l'adresse e-mail à laquelle l'historique de chat doit être envoyé.","export-transcript.email.cancel":"Annuler","export-transcript.email.send":"Envoyer","export-transcript.email.placeholder":"E-mail","export-transcript.email.invalid":"Veuillez entrer une adresse électronique valide.","export-transcript.email.success":"L'historique du chat a été envoyé à l'adresse e-mail fournie.","general-conditions.header":"**Conditions d'utilisation**","general-conditions.body":`Veuillez considérer les points suivants:
118
118
 
119
119
  - L'historique du chat est stocké dans l'espace UE et ne peut être consulté que par les personnes autorisées.
120
- - Ne saisissez aucune information personnelle dans la fenêtre de chat (mots de passe, date de naissance, etc.).`,"general-conditions.accept-conditions-note":"En utilisant le chat, vous acceptez les conditions d'utilisation.","block-user-input.title":"Veuillez attendre la réponse du chatbot.","conversation-rating.call-to-action.title":"Notez ce chat","conversation-rating.overlay.title":"Dans quelle mesure êtes-vous satisfait de ce chat ?","conversation-rating.overlay.guest-feedback.input-placeholder":"Veuillez saisir vos commentaires ici (facultatif)","conversation-rating.overlay.star.very-bad":"Très mauvais","conversation-rating.overlay.star.very-good":"Très bien","conversation-rating.overlay.bot-message.rate-feedback.value-1":"Oh, ça ne sonne pas bien. Merci de me donner un feedback pour que je puisse en apprendre davantage.","conversation-rating.overlay.bot-message.rate-feedback.value-2":"Oh, ça ne sonne pas bien. Merci de me donner un feedback pour que je puisse en apprendre davantage.","conversation-rating.overlay.bot-message.rate-feedback.value-3":"La moyenne n'est pas mon objectif, que puis-je encore améliorer ?","conversation-rating.overlay.bot-message.rate-feedback.value-4":"Le rater de peu, c'est le rater aussi. Que puis-je encore améliorer pour obtenir toutes les étoiles la prochaine fois ?","conversation-rating.overlay.bot-message.rate-feedback.value-5":"Parfait ! Alors j'espère pouvoir vous conseiller aussi bien une fois de plus.","conversation-rating.overlay.bot-message.submit-feedback":"Merci beaucoup pour votre feed-back. Je m'efforce de m'améliorer en permanence.","conversation-rating.overlay.action.submit":"Envoyer","conversation-rating.overlay.action.back-to-chat":"Fermer","conversation-rating.overlay.action.close-chat":"Minimiser le chat","conversation-rating.overlay.action.cancel":"Annuler","start-screen.intro":"","start-screen.start-chat":"Démarrer le chat","start-screen.waiting-for-login":"En attente de connexion ...","header.close-chat":"Minimiser le chat","header.menu.title":"Menu","header.menu.restart-chat":"Redémarrer le chat","header.menu.expand-chat-window":"Agrandir la fenêtre","header.menu.download-transcript":"Télécharger l'historique du chat","header.menu.send-transcript":"Envoyer l'historique du chat","header.menu.export-transcript":"Exporter l'historique du chat","header.menu.rate-conversation":"Évaluer le chat","source-infos.close":"Fermer","source-infos.open-source":"Ouvrir source","source-infos.error.title":"Erreur","source-infos.error.info":"Oups ! Quelque chose s'est mal passé. Merci de réessayer ou de contacter le support si le problème persiste.","source-infos.highlight-loading.title":"Contenus pertinents en surbrillance...","source-infos.highlight-loading.description":"Un instant - la source est analysée","commands.show-more.action":"Plus","commands.show-more.tooltip":"Afficher plus de commandes","commands.show-less.action":"Moins","commands.show-less.tooltip":"Afficher moins de commandes"},dM={"page.title":"Bubble Chat Chatbot","message-input-label":"Input dell'utente","message-input-placeholder":"Inserire un messaggio","message-input.actions.submit.label":"Invia messaggio","message-input.actions.start-audio-recording.label":"Avviare l'input vocale","message-input.actions.stop-audio-recording.label":"Interrompere l'input vocale","message-input.actions.submit-audio-recording.label":"Trasmettere l'input vocale","guest-bubble.label":"Il tuo messaggio","bot-bubble.label":"Messaggio del chatbot","bot-bubble.reaction.good":"Mi piace","bot-bubble.reaction.bad":"Non mi piace","bot-bubble.reaction.remove":"Rimuovere il marcatore","bot-bubble.reaction.say-more":"Disci più, per favore","bot-bubble.reaction.category.WRONG_INFORMATION":"Errate","bot-bubble.reaction.category.MISSING_INFORMATION":"Incompleto","bot-bubble.reaction.category.OLD_INFORMATION":"Obsoleta","bot-bubble.reaction.category.UNCLEAR":"Poco chiaro","bot-bubble.reaction.category.OFF_TOPIC":"Non pertinente alla domanda","bot-bubble.reaction.comment":"Condividete con noi i vostri pensieri...","bot-bubble.reaction.close":"Chiudere","bot-bubble.copy":"Copia","bot-bubble.sources":"Elenco delle fonti","bot-bubble.source.open":"Fonte aperta","agent-bubble.label":"Messaggio dell'agente dal vivo","export-transcript.email.title":"Ricevere la cronologia della chat","export-transcript.email.description":"Inserire l'indirizzo e-mail a cui inviare la cronologia della chat.","export-transcript.email.cancel":"Annulla","export-transcript.email.send":"Invia","export-transcript.email.placeholder":"E-mail","export-transcript.email.invalid":"Inserire un indirizzo e-mail valido.","export-transcript.email.success":"La cronologia della chat è stata inviata all'indirizzo e-mail fornito.","general-conditions.header":"**Condizioni di utilizzo**","general-conditions.body":`Si prega di considerare i seguenti punti:
120
+ - Ne saisissez aucune information personnelle dans la fenêtre de chat (mots de passe, date de naissance, etc.).`,"general-conditions.accept-conditions-note":"En utilisant le chat, vous acceptez les conditions d'utilisation.","block-user-input.title":"Veuillez attendre la réponse du chatbot.","conversation-rating.call-to-action.title":"Notez ce chat","conversation-rating.overlay.title":"Dans quelle mesure êtes-vous satisfait de ce chat ?","conversation-rating.overlay.guest-feedback.input-placeholder":"Veuillez saisir vos commentaires ici (facultatif)","conversation-rating.overlay.star.very-bad":"Très mauvais","conversation-rating.overlay.star.very-good":"Très bien","conversation-rating.overlay.bot-message.rate-feedback.value-1":"Oh, ça ne sonne pas bien. Merci de me donner un feedback pour que je puisse en apprendre davantage.","conversation-rating.overlay.bot-message.rate-feedback.value-2":"Oh, ça ne sonne pas bien. Merci de me donner un feedback pour que je puisse en apprendre davantage.","conversation-rating.overlay.bot-message.rate-feedback.value-3":"La moyenne n'est pas mon objectif, que puis-je encore améliorer ?","conversation-rating.overlay.bot-message.rate-feedback.value-4":"Le rater de peu, c'est le rater aussi. Que puis-je encore améliorer pour obtenir toutes les étoiles la prochaine fois ?","conversation-rating.overlay.bot-message.rate-feedback.value-5":"Parfait ! Alors j'espère pouvoir vous conseiller aussi bien une fois de plus.","conversation-rating.overlay.bot-message.submit-feedback":"Merci beaucoup pour votre feed-back. Je m'efforce de m'améliorer en permanence.","conversation-rating.overlay.action.submit":"Envoyer","conversation-rating.overlay.action.back-to-chat":"Fermer","conversation-rating.overlay.action.close-chat":"Minimiser le chat","conversation-rating.overlay.action.cancel":"Annuler","start-screen.intro":"","start-screen.start-chat":"Démarrer le chat","start-screen.waiting-for-login":"En attente de connexion ...","header.close-chat":"Minimiser le chat","header.menu.title":"Menu","header.menu.restart-chat":"Redémarrer le chat","header.menu.expand-chat-window":"Agrandir la fenêtre","header.menu.download-transcript":"Télécharger l'historique du chat","header.menu.send-transcript":"Envoyer l'historique du chat","header.menu.export-transcript":"Exporter l'historique du chat","header.menu.rate-conversation":"Évaluer le chat","source-infos.close":"Fermer","source-infos.open-source":"Ouvrir source","source-infos.error.title":"Erreur","source-infos.error.info":"Oups ! Quelque chose s'est mal passé. Merci de réessayer ou de contacter le support si le problème persiste.","source-infos.highlight-loading.title":"Contenus pertinents en surbrillance...","source-infos.highlight-loading.description":"Un instant - la source est analysée","commands.show-more.action":"Plus","commands.show-more.tooltip":"Afficher plus de commandes","commands.show-less.action":"Moins","commands.show-less.tooltip":"Afficher moins de commandes"},pM={"page.title":"Bubble Chat Chatbot","message-input-label":"Input dell'utente","message-input-placeholder":"Inserire un messaggio","message-input.actions.submit.label":"Invia messaggio","message-input.actions.start-audio-recording.label":"Avviare l'input vocale","message-input.actions.stop-audio-recording.label":"Interrompere l'input vocale","message-input.actions.submit-audio-recording.label":"Trasmettere l'input vocale","guest-bubble.label":"Il tuo messaggio","bot-bubble.label":"Messaggio del chatbot","bot-bubble.reaction.good":"Mi piace","bot-bubble.reaction.bad":"Non mi piace","bot-bubble.reaction.remove":"Rimuovere il marcatore","bot-bubble.reaction.say-more":"Disci più, per favore","bot-bubble.reaction.category.WRONG_INFORMATION":"Errate","bot-bubble.reaction.category.MISSING_INFORMATION":"Incompleto","bot-bubble.reaction.category.OLD_INFORMATION":"Obsoleta","bot-bubble.reaction.category.UNCLEAR":"Poco chiaro","bot-bubble.reaction.category.OFF_TOPIC":"Non pertinente alla domanda","bot-bubble.reaction.comment":"Condividete con noi i vostri pensieri...","bot-bubble.reaction.close":"Chiudere","bot-bubble.copy":"Copia","bot-bubble.sources":"Elenco delle fonti","bot-bubble.source.open":"Fonte aperta","agent-bubble.label":"Messaggio dell'agente dal vivo","export-transcript.email.title":"Ricevere la cronologia della chat","export-transcript.email.description":"Inserire l'indirizzo e-mail a cui inviare la cronologia della chat.","export-transcript.email.cancel":"Annulla","export-transcript.email.send":"Invia","export-transcript.email.placeholder":"E-mail","export-transcript.email.invalid":"Inserire un indirizzo e-mail valido.","export-transcript.email.success":"La cronologia della chat è stata inviata all'indirizzo e-mail fornito.","general-conditions.header":"**Condizioni di utilizzo**","general-conditions.body":`Si prega di considerare i seguenti punti:
121
121
 
122
122
  - La cronologia delle chat è memorizzata nell'area UE e può essere visualizzata solo da persone autorizzate.
123
- - Non inserire dati personali nella finestra di chat (password, data di nascita, ecc.).`,"general-conditions.accept-conditions-note":"Utilizzando la chat si accettano le condizioni d'uso.","block-user-input.title":"Attendere la risposta del chatbot.","conversation-rating.call-to-action.title":"Valuta questa chat","conversation-rating.overlay.title":"Quanto sei soddisfatto di questa chat?","conversation-rating.overlay.guest-feedback.input-placeholder":"Inserisci qui il tuo feedback (opzionale)","conversation-rating.overlay.star.very-bad":"Molto male","conversation-rating.overlay.star.very-good":"Molto buono","conversation-rating.overlay.bot-message.rate-feedback.value-1":"Oh, non suona bene. Vi prego di darmi un feedback in modo che possa imparare di più.","conversation-rating.overlay.bot-message.rate-feedback.value-2":"Oh, non suona bene. Vi prego di darmi un feedback in modo che possa imparare di più.","conversation-rating.overlay.bot-message.rate-feedback.value-3":"La media non è il mio obiettivo, cosa posso ancora migliorare?","conversation-rating.overlay.bot-message.rate-feedback.value-4":"Anche l'assenza è finita. Cosa posso migliorare per ottenere tutte le stelle la prossima volta?","conversation-rating.overlay.bot-message.rate-feedback.value-5":"Perfetto! Allora spero di potervi consigliare ancora una volta bene.","conversation-rating.overlay.bot-message.submit-feedback":"Grazie mille per il feedback. Mi impegno costantemente per migliorare.","conversation-rating.overlay.action.submit":"Invia","conversation-rating.overlay.action.back-to-chat":"Chiudere","conversation-rating.overlay.action.close-chat":"Minimizzare la chat","conversation-rating.overlay.action.cancel":"Annulla","start-screen.intro":"","start-screen.start-chat":"Avviare la chat","start-screen.waiting-for-login":"In attesa di login ...","header.close-chat":"Minimizzare la chat","header.menu.title":"Menu","header.menu.restart-chat":"Riavviare la chat","header.menu.expand-chat-window":"Espandere la finestra","header.menu.download-transcript":"Scaricare la trascrizione","header.menu.send-transcript":"Inviare la trascrizione","header.menu.export-transcript":"Esportare la trascrizione","header.menu.rate-conversation":"Valutare la conversazione","source-infos.close":"Chiudere","source-infos.open-source":"Fonte aperta","source-infos.error.title":"Errore","source-infos.error.info":"Ops! Qualcosa è andato storto. Riprovare o contattare l'assistenza se il problema persiste.","source-infos.highlight-loading.title":"Il contenuto rilevante è evidenziato...","source-infos.highlight-loading.description":"Un momento - la fonte è in fase di analisi","commands.show-more.action":"Di più","commands.show-more.tooltip":"Mostra più comandi","commands.show-less.action":"Meno","commands.show-less.tooltip":"Mostra meno comandi"},hM=["de","en","fr","it"],f_={locale:"de",messages:c_},mM=(t,r)=>{if(hM.includes(t)){const i=pM(t),s=uM(r);return{...i,...s}}return r},pM=t=>{switch(t.toString()){case"en":return cM;case"fr":return fM;case"it":return dM;default:return c_}},gM=(t=yM,r)=>{switch(r.type){case kh:return Object.assign({},t,{connectionState:Ia.CONNECTING});case qh:return Object.assign({},t,{connectionState:Ia.CONNECTED});case Fh:return Object.assign({},t,{connectionState:Ia.DISCONNECTED});case Vh:return Object.assign({},t,{connectionState:Ia.RECONNECTED});case Ph:return Object.assign({},t,{sessionId:r.sessionId});case pu:return Object.assign({},t,{sessionId:r.payload.sessionId,userId:r.payload.userId});case gu:return Object.assign({},t,{sessionId:void 0});default:return t}},yM={connectionState:Ia.DISCONNECTED,sessionId:void 0,userId:void 0},bM=(t=d1,r)=>{switch(r.type){case Nv:return d1;case pu:return Ua({type:"webclient.chat.started"}),t;case gu:return Ua({type:"webclient.chat.ended"}),t;case Te.ActionTypes.TYPING_ON:return Object.assign({},t,{isBotTyping:!0});case Te.ActionTypes.TYPING_OFF:return Object.assign({},t,{isBotTyping:!1});case Te.ActionTypes.MESSAGE_FROM_GUEST:case Te.ActionTypes.MESSAGE_WITHOUT_ANALYSIS_FROM_GUEST:return f1(t,r.message);case Te.ActionTypes.MESSAGE_TO_GUEST:{Ua(r);const i=Object.assign({},r.message,{_id:r.meta.actionId}),s=t.messages.filter(u=>u._id===r.meta.actionId).length>0;return Object.assign({},t,{isBotTyping:!1,messages:s?t.messages:t.messages.concat([i]),quickReplies:i.quickReplies?i.quickReplies:[]})}case wh:{const i=r.messages,s=i.length?i[i.length-1]:void 0;return Object.assign({},t,{isBotTyping:!1,messages:i,quickReplies:s?.quickReplies||[]})}case Rh:return Ua(r.message),t;case Te.ActionTypes.EVENT_TO_GUEST:return Ua(r.event),t;case Te.ActionTypes.DRAWER_OPEN:return Object.assign({},t,{drawerContentUrl:r.payload.parameters.contentUrl});case Te.ActionTypes.DRAWER_CLOSE:return Object.assign({},t,{drawerContentUrl:void 0});case Te.ActionTypes.GUEST_LOCALE_CHANGED:return Object.assign({},t,{locale:r.payload.locale});case fv:return Ua(r),t;case dv:return Ua(r),{...t,conversationRating:{...t.conversationRating,opener:void 0}};case Nh:{const i=new Te.TextMessage(r.transcription,new Te.GuestUser),s=Object.assign({},i,{_id:Wo()});return f1(t,s)}case Te.ActionTypes.TRANSCRIPT_ITEM_GUEST_REACTION:{const i=t.messages.map(s=>s._id===r.payload.actionId?Object.assign({},s,r.payload.reaction?{reaction:{type:r.payload.reaction,category:r.payload.category,comment:r.payload.comment}}:{reaction:void 0}):s);return Object.assign({},t,{messages:i})}case Mh:{const i={enabled:!0,rating:r.payload.rating};return Object.assign({},t,{conversationRating:i})}case Te.ActionTypes.CONVERSATION_RATING_FROM_GUEST:{const i={...t.conversationRating,rating:r.payload};return Object.assign({},t,{conversationRating:i})}case Dv:{const i={...t.conversationRating,opener:r.payload.opener,...r.payload.defaultRating?{rating:{value:r.payload.defaultRating,feedback:t.conversationRating.rating?.feedback||""}}:{}};return Object.assign({},t,{conversationRating:i})}case Lv:{const i={...t.conversationRating,opener:void 0};return Object.assign({},t,{conversationRating:i})}case Lh:return{...t,sourceInfos:{type:"loading",chunkId:r.payload.chunkId}};case Dh:{const{highlighted:i}=r.payload;return t.sourceInfos?.type==="loaded"&&i?{...t,sourceInfos:{...t.sourceInfos,highlighted:!0}}:{...t,sourceInfos:{type:"loading-error"}}}case cv:{const i=t.sourceInfos?.type,{chunkId:s,knowledgeBaseType:u,title:c,content:d,highlighted:h,url:m}=r.payload,p=t.sourceInfos?.type==="loading"||t.sourceInfos?.type==="loaded"?t.sourceInfos?.chunkId:void 0;return p&&p!==s?t:i==="loading"||i==="loaded"&&h?{...t,sourceInfos:{type:"loaded",chunkId:s,knowledgeBaseType:u,title:c,content:d,highlighted:h,url:m}}:t}case Bh:return{...t,sourceInfos:void 0};case Mv:return{...t,showTranscriptMailOverlay:!t.showTranscriptMailOverlay,conversationRating:{...t.conversationRating,opener:void 0}};default:return t}},f1=(t,r)=>{const i=t.messages[t.messages.length-1],s=i?.text===r.text;return i&&i.sender.type===r.sender.type&&s?t:Object.assign({},t,{messages:t.messages.concat([r]),quickReplies:[]})},Ua=t=>{vM()?window.top?.postMessage(t,"*"):t.type==="webclient.change.url"&&window.open(t.url)},vM=()=>typeof window<"u"&&window.self!==window.top,d1={messages:[],quickReplies:[],isBotTyping:!1,showTranscriptMailOverlay:!1,conversationRating:{enabled:!1}},d_=Ih({name:"intl",initialState:f_,reducers:{updateIntl:(t,r)=>{t.locale=r.payload.language,t.messages=r.payload.messages}}}),{updateIntl:_M}=d_.actions,EM=d_.reducer,SM={version:void 0,requiresUserAuthentication:!1,enableStartScreen:void 0,enableStandaloneView:!1,enableTranscriptExportEmail:!1,enableTranscriptExportPdf:!1,enableGeneralConditions:!1,enableSpeechSupport:!1,commands:[],menuItems:[]},h_=Ih({name:"settings",initialState:SM,reducers:{setSettings(t,r){t.version&&t.version!==r.payload.version?(console.log("version changed, reloading chat window"),window.location.reload()):(t.version=r.payload.version,t.requiresUserAuthentication=r.payload.requiresUserAuthentication,t.enableStartScreen=r.payload.enableStartScreen,t.enableStandaloneView=r.payload.enableStandaloneView,t.enableTranscriptExportEmail=r.payload.enableTranscriptExportEmail,t.enableTranscriptExportPdf=r.payload.enableTranscriptExportPdf,t.enableGeneralConditions=r.payload.enableGeneralConditions,t.enableSpeechSupport=r.payload.enableSpeechSupport,t.commands=r.payload.commands,t.menuItems=r.payload.menuItems||[])}}}),{setSettings:TM}=h_.actions,AM=h_.reducer,OM=bv({settings:AM,chat:bM,startScreen:Sx,connection:gM,intl:EM}),xM="bubble-chat",m_="state-last-saved-at",p_="state",RM=t=>{try{if(!NM())return;const r=h1(t,m_);if(CM(r))return;{const i=h1(t,p_);return i===null?void 0:JSON.parse(i)}}catch(r){console.error(r);return}},wM=(t,r)=>{try{const i=JSON.stringify(r);m1(t,p_,i);const s=new Date().toISOString();m1(t,m_,s)}catch(i){console.error(i)}},CM=t=>{if(t===null)return!1;const r=new Date(t);return r.setHours(r.getHours()+12),new Date>r},NM=()=>typeof localStorage<"u",h1=(t,r)=>{const i=g_(t,r);return localStorage.getItem(i)},m1=(t,r,i)=>{const s=g_(t,r);return localStorage.setItem(s,i)},g_=(t,r)=>`${xM}-${t}-${r}`,tr=Object.create(null);tr.open="0";tr.close="1";tr.ping="2";tr.pong="3";tr.message="4";tr.upgrade="5";tr.noop="6";const Xo=Object.create(null);Object.keys(tr).forEach(t=>{Xo[tr[t]]=t});const ch={type:"error",data:"parser error"},y_=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",b_=typeof ArrayBuffer=="function",v_=t=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(t):t&&t.buffer instanceof ArrayBuffer,$h=({type:t,data:r},i,s)=>y_&&r instanceof Blob?i?s(r):p1(r,s):b_&&(r instanceof ArrayBuffer||v_(r))?i?s(r):p1(new Blob([r]),s):s(tr[t]+(r||"")),p1=(t,r)=>{const i=new FileReader;return i.onload=function(){const s=i.result.split(",")[1];r("b"+(s||""))},i.readAsDataURL(t)};function g1(t){return t instanceof Uint8Array?t:t instanceof ArrayBuffer?new Uint8Array(t):new Uint8Array(t.buffer,t.byteOffset,t.byteLength)}let Id;function MM(t,r){if(y_&&t.data instanceof Blob)return t.data.arrayBuffer().then(g1).then(r);if(b_&&(t.data instanceof ArrayBuffer||v_(t.data)))return r(g1(t.data));$h(t,!1,i=>{Id||(Id=new TextEncoder),r(Id.encode(i))})}const y1="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Ks=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let t=0;t<y1.length;t++)Ks[y1.charCodeAt(t)]=t;const DM=t=>{let r=t.length*.75,i=t.length,s,u=0,c,d,h,m;t[t.length-1]==="="&&(r--,t[t.length-2]==="="&&r--);const p=new ArrayBuffer(r),b=new Uint8Array(p);for(s=0;s<i;s+=4)c=Ks[t.charCodeAt(s)],d=Ks[t.charCodeAt(s+1)],h=Ks[t.charCodeAt(s+2)],m=Ks[t.charCodeAt(s+3)],b[u++]=c<<2|d>>4,b[u++]=(d&15)<<4|h>>2,b[u++]=(h&3)<<6|m&63;return p},LM=typeof ArrayBuffer=="function",Wh=(t,r)=>{if(typeof t!="string")return{type:"message",data:__(t,r)};const i=t.charAt(0);return i==="b"?{type:"message",data:BM(t.substring(1),r)}:Xo[i]?t.length>1?{type:Xo[i],data:t.substring(1)}:{type:Xo[i]}:ch},BM=(t,r)=>{if(LM){const i=DM(t);return __(i,r)}else return{base64:!0,data:t}},__=(t,r)=>{switch(r){case"blob":return t instanceof Blob?t:new Blob([t]);case"arraybuffer":default:return t instanceof ArrayBuffer?t:t.buffer}},E_="",UM=(t,r)=>{const i=t.length,s=new Array(i);let u=0;t.forEach((c,d)=>{$h(c,!1,h=>{s[d]=h,++u===i&&r(s.join(E_))})})},HM=(t,r)=>{const i=t.split(E_),s=[];for(let u=0;u<i.length;u++){const c=Wh(i[u],r);if(s.push(c),c.type==="error")break}return s};function jM(){return new TransformStream({transform(t,r){MM(t,i=>{const s=i.length;let u;if(s<126)u=new Uint8Array(1),new DataView(u.buffer).setUint8(0,s);else if(s<65536){u=new Uint8Array(3);const c=new DataView(u.buffer);c.setUint8(0,126),c.setUint16(1,s)}else{u=new Uint8Array(9);const c=new DataView(u.buffer);c.setUint8(0,127),c.setBigUint64(1,BigInt(s))}t.data&&typeof t.data!="string"&&(u[0]|=128),r.enqueue(u),r.enqueue(i)})}})}let zd;function ko(t){return t.reduce((r,i)=>r+i.length,0)}function qo(t,r){if(t[0].length===r)return t.shift();const i=new Uint8Array(r);let s=0;for(let u=0;u<r;u++)i[u]=t[0][s++],s===t[0].length&&(t.shift(),s=0);return t.length&&s<t[0].length&&(t[0]=t[0].slice(s)),i}function IM(t,r){zd||(zd=new TextDecoder);const i=[];let s=0,u=-1,c=!1;return new TransformStream({transform(d,h){for(i.push(d);;){if(s===0){if(ko(i)<1)break;const m=qo(i,1);c=(m[0]&128)===128,u=m[0]&127,u<126?s=3:u===126?s=1:s=2}else if(s===1){if(ko(i)<2)break;const m=qo(i,2);u=new DataView(m.buffer,m.byteOffset,m.length).getUint16(0),s=3}else if(s===2){if(ko(i)<8)break;const m=qo(i,8),p=new DataView(m.buffer,m.byteOffset,m.length),b=p.getUint32(0);if(b>Math.pow(2,21)-1){h.enqueue(ch);break}u=b*Math.pow(2,32)+p.getUint32(4),s=3}else{if(ko(i)<u)break;const m=qo(i,u);h.enqueue(Wh(c?m:zd.decode(m),r)),s=0}if(u===0||u>t){h.enqueue(ch);break}}}})}const S_=4;function dt(t){if(t)return zM(t)}function zM(t){for(var r in dt.prototype)t[r]=dt.prototype[r];return t}dt.prototype.on=dt.prototype.addEventListener=function(t,r){return this._callbacks=this._callbacks||{},(this._callbacks["$"+t]=this._callbacks["$"+t]||[]).push(r),this};dt.prototype.once=function(t,r){function i(){this.off(t,i),r.apply(this,arguments)}return i.fn=r,this.on(t,i),this};dt.prototype.off=dt.prototype.removeListener=dt.prototype.removeAllListeners=dt.prototype.removeEventListener=function(t,r){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var i=this._callbacks["$"+t];if(!i)return this;if(arguments.length==1)return delete this._callbacks["$"+t],this;for(var s,u=0;u<i.length;u++)if(s=i[u],s===r||s.fn===r){i.splice(u,1);break}return i.length===0&&delete this._callbacks["$"+t],this};dt.prototype.emit=function(t){this._callbacks=this._callbacks||{};for(var r=new Array(arguments.length-1),i=this._callbacks["$"+t],s=1;s<arguments.length;s++)r[s-1]=arguments[s];if(i){i=i.slice(0);for(var s=0,u=i.length;s<u;++s)i[s].apply(this,r)}return this};dt.prototype.emitReserved=dt.prototype.emit;dt.prototype.listeners=function(t){return this._callbacks=this._callbacks||{},this._callbacks["$"+t]||[]};dt.prototype.hasListeners=function(t){return!!this.listeners(t).length};const Su=typeof Promise=="function"&&typeof Promise.resolve=="function"?r=>Promise.resolve().then(r):(r,i)=>i(r,0),Sn=typeof self<"u"?self:typeof window<"u"?window:Function("return this")(),GM="arraybuffer";function T_(t,...r){return r.reduce((i,s)=>(t.hasOwnProperty(s)&&(i[s]=t[s]),i),{})}const kM=Sn.setTimeout,qM=Sn.clearTimeout;function Tu(t,r){r.useNativeTimers?(t.setTimeoutFn=kM.bind(Sn),t.clearTimeoutFn=qM.bind(Sn)):(t.setTimeoutFn=Sn.setTimeout.bind(Sn),t.clearTimeoutFn=Sn.clearTimeout.bind(Sn))}const FM=1.33;function VM(t){return typeof t=="string"?PM(t):Math.ceil((t.byteLength||t.size)*FM)}function PM(t){let r=0,i=0;for(let s=0,u=t.length;s<u;s++)r=t.charCodeAt(s),r<128?i+=1:r<2048?i+=2:r<55296||r>=57344?i+=3:(s++,i+=4);return i}function A_(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)}function YM(t){let r="";for(let i in t)t.hasOwnProperty(i)&&(r.length&&(r+="&"),r+=encodeURIComponent(i)+"="+encodeURIComponent(t[i]));return r}function XM(t){let r={},i=t.split("&");for(let s=0,u=i.length;s<u;s++){let c=i[s].split("=");r[decodeURIComponent(c[0])]=decodeURIComponent(c[1])}return r}class ZM extends Error{constructor(r,i,s){super(r),this.description=i,this.context=s,this.type="TransportError"}}class Jh extends dt{constructor(r){super(),this.writable=!1,Tu(this,r),this.opts=r,this.query=r.query,this.socket=r.socket,this.supportsBinary=!r.forceBase64}onError(r,i,s){return super.emitReserved("error",new ZM(r,i,s)),this}open(){return this.readyState="opening",this.doOpen(),this}close(){return(this.readyState==="opening"||this.readyState==="open")&&(this.doClose(),this.onClose()),this}send(r){this.readyState==="open"&&this.write(r)}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(r){const i=Wh(r,this.socket.binaryType);this.onPacket(i)}onPacket(r){super.emitReserved("packet",r)}onClose(r){this.readyState="closed",super.emitReserved("close",r)}pause(r){}createUri(r,i={}){return r+"://"+this._hostname()+this._port()+this.opts.path+this._query(i)}_hostname(){const r=this.opts.hostname;return r.indexOf(":")===-1?r:"["+r+"]"}_port(){return this.opts.port&&(this.opts.secure&&+(this.opts.port!==443)||!this.opts.secure&&Number(this.opts.port)!==80)?":"+this.opts.port:""}_query(r){const i=YM(r);return i.length?"?"+i:""}}class QM extends Jh{constructor(){super(...arguments),this._polling=!1}get name(){return"polling"}doOpen(){this._poll()}pause(r){this.readyState="pausing";const i=()=>{this.readyState="paused",r()};if(this._polling||!this.writable){let s=0;this._polling&&(s++,this.once("pollComplete",function(){--s||i()})),this.writable||(s++,this.once("drain",function(){--s||i()}))}else i()}_poll(){this._polling=!0,this.doPoll(),this.emitReserved("poll")}onData(r){const i=s=>{if(this.readyState==="opening"&&s.type==="open"&&this.onOpen(),s.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(s)};HM(r,this.socket.binaryType).forEach(i),this.readyState!=="closed"&&(this._polling=!1,this.emitReserved("pollComplete"),this.readyState==="open"&&this._poll())}doClose(){const r=()=>{this.write([{type:"close"}])};this.readyState==="open"?r():this.once("open",r)}write(r){this.writable=!1,UM(r,i=>{this.doWrite(i,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){const r=this.opts.secure?"https":"http",i=this.query||{};return this.opts.timestampRequests!==!1&&(i[this.opts.timestampParam]=A_()),!this.supportsBinary&&!i.sid&&(i.b64=1),this.createUri(r,i)}}let O_=!1;try{O_=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{}const KM=O_;function $M(){}class WM extends QM{constructor(r){if(super(r),typeof location<"u"){const i=location.protocol==="https:";let s=location.port;s||(s=i?"443":"80"),this.xd=typeof location<"u"&&r.hostname!==location.hostname||s!==r.port}}doWrite(r,i){const s=this.request({method:"POST",data:r});s.on("success",i),s.on("error",(u,c)=>{this.onError("xhr post error",u,c)})}doPoll(){const r=this.request();r.on("data",this.onData.bind(this)),r.on("error",(i,s)=>{this.onError("xhr poll error",i,s)}),this.pollXhr=r}}class Jn extends dt{constructor(r,i,s){super(),this.createRequest=r,Tu(this,s),this._opts=s,this._method=s.method||"GET",this._uri=i,this._data=s.data!==void 0?s.data:null,this._create()}_create(){var r;const i=T_(this._opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");i.xdomain=!!this._opts.xd;const s=this._xhr=this.createRequest(i);try{s.open(this._method,this._uri,!0);try{if(this._opts.extraHeaders){s.setDisableHeaderCheck&&s.setDisableHeaderCheck(!0);for(let u in this._opts.extraHeaders)this._opts.extraHeaders.hasOwnProperty(u)&&s.setRequestHeader(u,this._opts.extraHeaders[u])}}catch{}if(this._method==="POST")try{s.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{s.setRequestHeader("Accept","*/*")}catch{}(r=this._opts.cookieJar)===null||r===void 0||r.addCookies(s),"withCredentials"in s&&(s.withCredentials=this._opts.withCredentials),this._opts.requestTimeout&&(s.timeout=this._opts.requestTimeout),s.onreadystatechange=()=>{var u;s.readyState===3&&((u=this._opts.cookieJar)===null||u===void 0||u.parseCookies(s.getResponseHeader("set-cookie"))),s.readyState===4&&(s.status===200||s.status===1223?this._onLoad():this.setTimeoutFn(()=>{this._onError(typeof s.status=="number"?s.status:0)},0))},s.send(this._data)}catch(u){this.setTimeoutFn(()=>{this._onError(u)},0);return}typeof document<"u"&&(this._index=Jn.requestsCount++,Jn.requests[this._index]=this)}_onError(r){this.emitReserved("error",r,this._xhr),this._cleanup(!0)}_cleanup(r){if(!(typeof this._xhr>"u"||this._xhr===null)){if(this._xhr.onreadystatechange=$M,r)try{this._xhr.abort()}catch{}typeof document<"u"&&delete Jn.requests[this._index],this._xhr=null}}_onLoad(){const r=this._xhr.responseText;r!==null&&(this.emitReserved("data",r),this.emitReserved("success"),this._cleanup())}abort(){this._cleanup()}}Jn.requestsCount=0;Jn.requests={};if(typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",b1);else if(typeof addEventListener=="function"){const t="onpagehide"in Sn?"pagehide":"unload";addEventListener(t,b1,!1)}}function b1(){for(let t in Jn.requests)Jn.requests.hasOwnProperty(t)&&Jn.requests[t].abort()}const JM=function(){const t=x_({xdomain:!1});return t&&t.responseType!==null}();class e8 extends WM{constructor(r){super(r);const i=r&&r.forceBase64;this.supportsBinary=JM&&!i}request(r={}){return Object.assign(r,{xd:this.xd},this.opts),new Jn(x_,this.uri(),r)}}function x_(t){const r=t.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!r||KM))return new XMLHttpRequest}catch{}if(!r)try{return new Sn[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}const R_=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative";class t8 extends Jh{get name(){return"websocket"}doOpen(){const r=this.uri(),i=this.opts.protocols,s=R_?{}:T_(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(s.headers=this.opts.extraHeaders);try{this.ws=this.createSocket(r,i,s)}catch(u){return this.emitReserved("error",u)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=r=>this.onClose({description:"websocket connection closed",context:r}),this.ws.onmessage=r=>this.onData(r.data),this.ws.onerror=r=>this.onError("websocket error",r)}write(r){this.writable=!1;for(let i=0;i<r.length;i++){const s=r[i],u=i===r.length-1;$h(s,this.supportsBinary,c=>{try{this.doWrite(s,c)}catch{}u&&Su(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){typeof this.ws<"u"&&(this.ws.onerror=()=>{},this.ws.close(),this.ws=null)}uri(){const r=this.opts.secure?"wss":"ws",i=this.query||{};return this.opts.timestampRequests&&(i[this.opts.timestampParam]=A_()),this.supportsBinary||(i.b64=1),this.createUri(r,i)}}const Gd=Sn.WebSocket||Sn.MozWebSocket;class n8 extends t8{createSocket(r,i,s){return R_?new Gd(r,i,s):i?new Gd(r,i):new Gd(r)}doWrite(r,i){this.ws.send(i)}}class r8 extends Jh{get name(){return"webtransport"}doOpen(){try{this._transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name])}catch(r){return this.emitReserved("error",r)}this._transport.closed.then(()=>{this.onClose()}).catch(r=>{this.onError("webtransport error",r)}),this._transport.ready.then(()=>{this._transport.createBidirectionalStream().then(r=>{const i=IM(Number.MAX_SAFE_INTEGER,this.socket.binaryType),s=r.readable.pipeThrough(i).getReader(),u=jM();u.readable.pipeTo(r.writable),this._writer=u.writable.getWriter();const c=()=>{s.read().then(({done:h,value:m})=>{h||(this.onPacket(m),c())}).catch(h=>{})};c();const d={type:"open"};this.query.sid&&(d.data=`{"sid":"${this.query.sid}"}`),this._writer.write(d).then(()=>this.onOpen())})})}write(r){this.writable=!1;for(let i=0;i<r.length;i++){const s=r[i],u=i===r.length-1;this._writer.write(s).then(()=>{u&&Su(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var r;(r=this._transport)===null||r===void 0||r.close()}}const a8={websocket:n8,webtransport:r8,polling:e8},i8=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,s8=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function fh(t){if(t.length>8e3)throw"URI too long";const r=t,i=t.indexOf("["),s=t.indexOf("]");i!=-1&&s!=-1&&(t=t.substring(0,i)+t.substring(i,s).replace(/:/g,";")+t.substring(s,t.length));let u=i8.exec(t||""),c={},d=14;for(;d--;)c[s8[d]]=u[d]||"";return i!=-1&&s!=-1&&(c.source=r,c.host=c.host.substring(1,c.host.length-1).replace(/;/g,":"),c.authority=c.authority.replace("[","").replace("]","").replace(/;/g,":"),c.ipv6uri=!0),c.pathNames=l8(c,c.path),c.queryKey=o8(c,c.query),c}function l8(t,r){const i=/\/{2,9}/g,s=r.replace(i,"/").split("/");return(r.slice(0,1)=="/"||r.length===0)&&s.splice(0,1),r.slice(-1)=="/"&&s.splice(s.length-1,1),s}function o8(t,r){const i={};return r.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(s,u,c){u&&(i[u]=c)}),i}const dh=typeof addEventListener=="function"&&typeof removeEventListener=="function",Zo=[];dh&&addEventListener("offline",()=>{Zo.forEach(t=>t())},!1);class la extends dt{constructor(r,i){if(super(),this.binaryType=GM,this.writeBuffer=[],this._prevBufferLen=0,this._pingInterval=-1,this._pingTimeout=-1,this._maxPayload=-1,this._pingTimeoutTime=1/0,r&&typeof r=="object"&&(i=r,r=null),r){const s=fh(r);i.hostname=s.host,i.secure=s.protocol==="https"||s.protocol==="wss",i.port=s.port,s.query&&(i.query=s.query)}else i.host&&(i.hostname=fh(i.host).host);Tu(this,i),this.secure=i.secure!=null?i.secure:typeof location<"u"&&location.protocol==="https:",i.hostname&&!i.port&&(i.port=this.secure?"443":"80"),this.hostname=i.hostname||(typeof location<"u"?location.hostname:"localhost"),this.port=i.port||(typeof location<"u"&&location.port?location.port:this.secure?"443":"80"),this.transports=[],this._transportsByName={},i.transports.forEach(s=>{const u=s.prototype.name;this.transports.push(u),this._transportsByName[u]=s}),this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},i),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),typeof this.opts.query=="string"&&(this.opts.query=XM(this.opts.query)),dh&&(this.opts.closeOnBeforeunload&&(this._beforeunloadEventListener=()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener("beforeunload",this._beforeunloadEventListener,!1)),this.hostname!=="localhost"&&(this._offlineEventListener=()=>{this._onClose("transport close",{description:"network connection lost"})},Zo.push(this._offlineEventListener))),this.opts.withCredentials&&(this._cookieJar=void 0),this._open()}createTransport(r){const i=Object.assign({},this.opts.query);i.EIO=S_,i.transport=r,this.id&&(i.sid=this.id);const s=Object.assign({},this.opts,{query:i,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[r]);return new this._transportsByName[r](s)}_open(){if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}const r=this.opts.rememberUpgrade&&la.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1?"websocket":this.transports[0];this.readyState="opening";const i=this.createTransport(r);i.open(),this.setTransport(i)}setTransport(r){this.transport&&this.transport.removeAllListeners(),this.transport=r,r.on("drain",this._onDrain.bind(this)).on("packet",this._onPacket.bind(this)).on("error",this._onError.bind(this)).on("close",i=>this._onClose("transport close",i))}onOpen(){this.readyState="open",la.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush()}_onPacket(r){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")switch(this.emitReserved("packet",r),this.emitReserved("heartbeat"),r.type){case"open":this.onHandshake(JSON.parse(r.data));break;case"ping":this._sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong"),this._resetPingTimeout();break;case"error":const i=new Error("server error");i.code=r.data,this._onError(i);break;case"message":this.emitReserved("data",r.data),this.emitReserved("message",r.data);break}}onHandshake(r){this.emitReserved("handshake",r),this.id=r.sid,this.transport.query.sid=r.sid,this._pingInterval=r.pingInterval,this._pingTimeout=r.pingTimeout,this._maxPayload=r.maxPayload,this.onOpen(),this.readyState!=="closed"&&this._resetPingTimeout()}_resetPingTimeout(){this.clearTimeoutFn(this._pingTimeoutTimer);const r=this._pingInterval+this._pingTimeout;this._pingTimeoutTime=Date.now()+r,this._pingTimeoutTimer=this.setTimeoutFn(()=>{this._onClose("ping timeout")},r),this.opts.autoUnref&&this._pingTimeoutTimer.unref()}_onDrain(){this.writeBuffer.splice(0,this._prevBufferLen),this._prevBufferLen=0,this.writeBuffer.length===0?this.emitReserved("drain"):this.flush()}flush(){if(this.readyState!=="closed"&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){const r=this._getWritablePackets();this.transport.send(r),this._prevBufferLen=r.length,this.emitReserved("flush")}}_getWritablePackets(){if(!(this._maxPayload&&this.transport.name==="polling"&&this.writeBuffer.length>1))return this.writeBuffer;let i=1;for(let s=0;s<this.writeBuffer.length;s++){const u=this.writeBuffer[s].data;if(u&&(i+=VM(u)),s>0&&i>this._maxPayload)return this.writeBuffer.slice(0,s);i+=2}return this.writeBuffer}_hasPingExpired(){if(!this._pingTimeoutTime)return!0;const r=Date.now()>this._pingTimeoutTime;return r&&(this._pingTimeoutTime=0,Su(()=>{this._onClose("ping timeout")},this.setTimeoutFn)),r}write(r,i,s){return this._sendPacket("message",r,i,s),this}send(r,i,s){return this._sendPacket("message",r,i,s),this}_sendPacket(r,i,s,u){if(typeof i=="function"&&(u=i,i=void 0),typeof s=="function"&&(u=s,s=null),this.readyState==="closing"||this.readyState==="closed")return;s=s||{},s.compress=s.compress!==!1;const c={type:r,data:i,options:s};this.emitReserved("packetCreate",c),this.writeBuffer.push(c),u&&this.once("flush",u),this.flush()}close(){const r=()=>{this._onClose("forced close"),this.transport.close()},i=()=>{this.off("upgrade",i),this.off("upgradeError",i),r()},s=()=>{this.once("upgrade",i),this.once("upgradeError",i)};return(this.readyState==="opening"||this.readyState==="open")&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?s():r()}):this.upgrading?s():r()),this}_onError(r){if(la.priorWebsocketSuccess=!1,this.opts.tryAllTransports&&this.transports.length>1&&this.readyState==="opening")return this.transports.shift(),this._open();this.emitReserved("error",r),this._onClose("transport error",r)}_onClose(r,i){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing"){if(this.clearTimeoutFn(this._pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),dh&&(this._beforeunloadEventListener&&removeEventListener("beforeunload",this._beforeunloadEventListener,!1),this._offlineEventListener)){const s=Zo.indexOf(this._offlineEventListener);s!==-1&&Zo.splice(s,1)}this.readyState="closed",this.id=null,this.emitReserved("close",r,i),this.writeBuffer=[],this._prevBufferLen=0}}}la.protocol=S_;class u8 extends la{constructor(){super(...arguments),this._upgrades=[]}onOpen(){if(super.onOpen(),this.readyState==="open"&&this.opts.upgrade)for(let r=0;r<this._upgrades.length;r++)this._probe(this._upgrades[r])}_probe(r){let i=this.createTransport(r),s=!1;la.priorWebsocketSuccess=!1;const u=()=>{s||(i.send([{type:"ping",data:"probe"}]),i.once("packet",E=>{if(!s)if(E.type==="pong"&&E.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",i),!i)return;la.priorWebsocketSuccess=i.name==="websocket",this.transport.pause(()=>{s||this.readyState!=="closed"&&(b(),this.setTransport(i),i.send([{type:"upgrade"}]),this.emitReserved("upgrade",i),i=null,this.upgrading=!1,this.flush())})}else{const A=new Error("probe error");A.transport=i.name,this.emitReserved("upgradeError",A)}}))};function c(){s||(s=!0,b(),i.close(),i=null)}const d=E=>{const A=new Error("probe error: "+E);A.transport=i.name,c(),this.emitReserved("upgradeError",A)};function h(){d("transport closed")}function m(){d("socket closed")}function p(E){i&&E.name!==i.name&&c()}const b=()=>{i.removeListener("open",u),i.removeListener("error",d),i.removeListener("close",h),this.off("close",m),this.off("upgrading",p)};i.once("open",u),i.once("error",d),i.once("close",h),this.once("close",m),this.once("upgrading",p),this._upgrades.indexOf("webtransport")!==-1&&r!=="webtransport"?this.setTimeoutFn(()=>{s||i.open()},200):i.open()}onHandshake(r){this._upgrades=this._filterUpgrades(r.upgrades),super.onHandshake(r)}_filterUpgrades(r){const i=[];for(let s=0;s<r.length;s++)~this.transports.indexOf(r[s])&&i.push(r[s]);return i}}let c8=class extends u8{constructor(r,i={}){const s=typeof r=="object"?r:i;(!s.transports||s.transports&&typeof s.transports[0]=="string")&&(s.transports=(s.transports||["polling","websocket","webtransport"]).map(u=>a8[u]).filter(u=>!!u)),super(r,s)}};function f8(t,r="",i){let s=t;i=i||typeof location<"u"&&location,t==null&&(t=i.protocol+"//"+i.host),typeof t=="string"&&(t.charAt(0)==="/"&&(t.charAt(1)==="/"?t=i.protocol+t:t=i.host+t),/^(https?|wss?):\/\//.test(t)||(typeof i<"u"?t=i.protocol+"//"+t:t="https://"+t),s=fh(t)),s.port||(/^(http|ws)$/.test(s.protocol)?s.port="80":/^(http|ws)s$/.test(s.protocol)&&(s.port="443")),s.path=s.path||"/";const c=s.host.indexOf(":")!==-1?"["+s.host+"]":s.host;return s.id=s.protocol+"://"+c+":"+s.port+r,s.href=s.protocol+"://"+c+(i&&i.port===s.port?"":":"+s.port),s}const d8=typeof ArrayBuffer=="function",h8=t=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(t):t.buffer instanceof ArrayBuffer,w_=Object.prototype.toString,m8=typeof Blob=="function"||typeof Blob<"u"&&w_.call(Blob)==="[object BlobConstructor]",p8=typeof File=="function"||typeof File<"u"&&w_.call(File)==="[object FileConstructor]";function em(t){return d8&&(t instanceof ArrayBuffer||h8(t))||m8&&t instanceof Blob||p8&&t instanceof File}function Qo(t,r){if(!t||typeof t!="object")return!1;if(Array.isArray(t)){for(let i=0,s=t.length;i<s;i++)if(Qo(t[i]))return!0;return!1}if(em(t))return!0;if(t.toJSON&&typeof t.toJSON=="function"&&arguments.length===1)return Qo(t.toJSON(),!0);for(const i in t)if(Object.prototype.hasOwnProperty.call(t,i)&&Qo(t[i]))return!0;return!1}function g8(t){const r=[],i=t.data,s=t;return s.data=hh(i,r),s.attachments=r.length,{packet:s,buffers:r}}function hh(t,r){if(!t)return t;if(em(t)){const i={_placeholder:!0,num:r.length};return r.push(t),i}else if(Array.isArray(t)){const i=new Array(t.length);for(let s=0;s<t.length;s++)i[s]=hh(t[s],r);return i}else if(typeof t=="object"&&!(t instanceof Date)){const i={};for(const s in t)Object.prototype.hasOwnProperty.call(t,s)&&(i[s]=hh(t[s],r));return i}return t}function y8(t,r){return t.data=mh(t.data,r),delete t.attachments,t}function mh(t,r){if(!t)return t;if(t&&t._placeholder===!0){if(typeof t.num=="number"&&t.num>=0&&t.num<r.length)return r[t.num];throw new Error("illegal attachments")}else if(Array.isArray(t))for(let i=0;i<t.length;i++)t[i]=mh(t[i],r);else if(typeof t=="object")for(const i in t)Object.prototype.hasOwnProperty.call(t,i)&&(t[i]=mh(t[i],r));return t}const b8=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"],v8=5;var Ce;(function(t){t[t.CONNECT=0]="CONNECT",t[t.DISCONNECT=1]="DISCONNECT",t[t.EVENT=2]="EVENT",t[t.ACK=3]="ACK",t[t.CONNECT_ERROR=4]="CONNECT_ERROR",t[t.BINARY_EVENT=5]="BINARY_EVENT",t[t.BINARY_ACK=6]="BINARY_ACK"})(Ce||(Ce={}));class _8{constructor(r){this.replacer=r}encode(r){return(r.type===Ce.EVENT||r.type===Ce.ACK)&&Qo(r)?this.encodeAsBinary({type:r.type===Ce.EVENT?Ce.BINARY_EVENT:Ce.BINARY_ACK,nsp:r.nsp,data:r.data,id:r.id}):[this.encodeAsString(r)]}encodeAsString(r){let i=""+r.type;return(r.type===Ce.BINARY_EVENT||r.type===Ce.BINARY_ACK)&&(i+=r.attachments+"-"),r.nsp&&r.nsp!=="/"&&(i+=r.nsp+","),r.id!=null&&(i+=r.id),r.data!=null&&(i+=JSON.stringify(r.data,this.replacer)),i}encodeAsBinary(r){const i=g8(r),s=this.encodeAsString(i.packet),u=i.buffers;return u.unshift(s),u}}function v1(t){return Object.prototype.toString.call(t)==="[object Object]"}class tm extends dt{constructor(r){super(),this.reviver=r}add(r){let i;if(typeof r=="string"){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");i=this.decodeString(r);const s=i.type===Ce.BINARY_EVENT;s||i.type===Ce.BINARY_ACK?(i.type=s?Ce.EVENT:Ce.ACK,this.reconstructor=new E8(i),i.attachments===0&&super.emitReserved("decoded",i)):super.emitReserved("decoded",i)}else if(em(r)||r.base64)if(this.reconstructor)i=this.reconstructor.takeBinaryData(r),i&&(this.reconstructor=null,super.emitReserved("decoded",i));else throw new Error("got binary data when not reconstructing a packet");else throw new Error("Unknown type: "+r)}decodeString(r){let i=0;const s={type:Number(r.charAt(0))};if(Ce[s.type]===void 0)throw new Error("unknown packet type "+s.type);if(s.type===Ce.BINARY_EVENT||s.type===Ce.BINARY_ACK){const c=i+1;for(;r.charAt(++i)!=="-"&&i!=r.length;);const d=r.substring(c,i);if(d!=Number(d)||r.charAt(i)!=="-")throw new Error("Illegal attachments");s.attachments=Number(d)}if(r.charAt(i+1)==="/"){const c=i+1;for(;++i&&!(r.charAt(i)===","||i===r.length););s.nsp=r.substring(c,i)}else s.nsp="/";const u=r.charAt(i+1);if(u!==""&&Number(u)==u){const c=i+1;for(;++i;){const d=r.charAt(i);if(d==null||Number(d)!=d){--i;break}if(i===r.length)break}s.id=Number(r.substring(c,i+1))}if(r.charAt(++i)){const c=this.tryParse(r.substr(i));if(tm.isPayloadValid(s.type,c))s.data=c;else throw new Error("invalid payload")}return s}tryParse(r){try{return JSON.parse(r,this.reviver)}catch{return!1}}static isPayloadValid(r,i){switch(r){case Ce.CONNECT:return v1(i);case Ce.DISCONNECT:return i===void 0;case Ce.CONNECT_ERROR:return typeof i=="string"||v1(i);case Ce.EVENT:case Ce.BINARY_EVENT:return Array.isArray(i)&&(typeof i[0]=="number"||typeof i[0]=="string"&&b8.indexOf(i[0])===-1);case Ce.ACK:case Ce.BINARY_ACK:return Array.isArray(i)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}}class E8{constructor(r){this.packet=r,this.buffers=[],this.reconPack=r}takeBinaryData(r){if(this.buffers.push(r),this.buffers.length===this.reconPack.attachments){const i=y8(this.reconPack,this.buffers);return this.finishedReconstruction(),i}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}const S8=Object.freeze(Object.defineProperty({__proto__:null,Decoder:tm,Encoder:_8,get PacketType(){return Ce},protocol:v8},Symbol.toStringTag,{value:"Module"}));function In(t,r,i){return t.on(r,i),function(){t.off(r,i)}}const T8=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class C_ extends dt{constructor(r,i,s){super(),this.connected=!1,this.recovered=!1,this.receiveBuffer=[],this.sendBuffer=[],this._queue=[],this._queueSeq=0,this.ids=0,this.acks={},this.flags={},this.io=r,this.nsp=i,s&&s.auth&&(this.auth=s.auth),this._opts=Object.assign({},s),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;const r=this.io;this.subs=[In(r,"open",this.onopen.bind(this)),In(r,"packet",this.onpacket.bind(this)),In(r,"error",this.onerror.bind(this)),In(r,"close",this.onclose.bind(this))]}get active(){return!!this.subs}connect(){return this.connected?this:(this.subEvents(),this.io._reconnecting||this.io.open(),this.io._readyState==="open"&&this.onopen(),this)}open(){return this.connect()}send(...r){return r.unshift("message"),this.emit.apply(this,r),this}emit(r,...i){var s,u,c;if(T8.hasOwnProperty(r))throw new Error('"'+r.toString()+'" is a reserved event name');if(i.unshift(r),this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this._addToQueue(i),this;const d={type:Ce.EVENT,data:i};if(d.options={},d.options.compress=this.flags.compress!==!1,typeof i[i.length-1]=="function"){const b=this.ids++,E=i.pop();this._registerAckCallback(b,E),d.id=b}const h=(u=(s=this.io.engine)===null||s===void 0?void 0:s.transport)===null||u===void 0?void 0:u.writable,m=this.connected&&!(!((c=this.io.engine)===null||c===void 0)&&c._hasPingExpired());return this.flags.volatile&&!h||(m?(this.notifyOutgoingListeners(d),this.packet(d)):this.sendBuffer.push(d)),this.flags={},this}_registerAckCallback(r,i){var s;const u=(s=this.flags.timeout)!==null&&s!==void 0?s:this._opts.ackTimeout;if(u===void 0){this.acks[r]=i;return}const c=this.io.setTimeoutFn(()=>{delete this.acks[r];for(let h=0;h<this.sendBuffer.length;h++)this.sendBuffer[h].id===r&&this.sendBuffer.splice(h,1);i.call(this,new Error("operation has timed out"))},u),d=(...h)=>{this.io.clearTimeoutFn(c),i.apply(this,h)};d.withError=!0,this.acks[r]=d}emitWithAck(r,...i){return new Promise((s,u)=>{const c=(d,h)=>d?u(d):s(h);c.withError=!0,i.push(c),this.emit(r,...i)})}_addToQueue(r){let i;typeof r[r.length-1]=="function"&&(i=r.pop());const s={id:this._queueSeq++,tryCount:0,pending:!1,args:r,flags:Object.assign({fromQueue:!0},this.flags)};r.push((u,...c)=>s!==this._queue[0]?void 0:(u!==null?s.tryCount>this._opts.retries&&(this._queue.shift(),i&&i(u)):(this._queue.shift(),i&&i(null,...c)),s.pending=!1,this._drainQueue())),this._queue.push(s),this._drainQueue()}_drainQueue(r=!1){if(!this.connected||this._queue.length===0)return;const i=this._queue[0];i.pending&&!r||(i.pending=!0,i.tryCount++,this.flags=i.flags,this.emit.apply(this,i.args))}packet(r){r.nsp=this.nsp,this.io._packet(r)}onopen(){typeof this.auth=="function"?this.auth(r=>{this._sendConnectPacket(r)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(r){this.packet({type:Ce.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},r):r})}onerror(r){this.connected||this.emitReserved("connect_error",r)}onclose(r,i){this.connected=!1,delete this.id,this.emitReserved("disconnect",r,i),this._clearAcks()}_clearAcks(){Object.keys(this.acks).forEach(r=>{if(!this.sendBuffer.some(s=>String(s.id)===r)){const s=this.acks[r];delete this.acks[r],s.withError&&s.call(this,new Error("socket has been disconnected"))}})}onpacket(r){if(r.nsp===this.nsp)switch(r.type){case Ce.CONNECT:r.data&&r.data.sid?this.onconnect(r.data.sid,r.data.pid):this.emitReserved("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case Ce.EVENT:case Ce.BINARY_EVENT:this.onevent(r);break;case Ce.ACK:case Ce.BINARY_ACK:this.onack(r);break;case Ce.DISCONNECT:this.ondisconnect();break;case Ce.CONNECT_ERROR:this.destroy();const s=new Error(r.data.message);s.data=r.data.data,this.emitReserved("connect_error",s);break}}onevent(r){const i=r.data||[];r.id!=null&&i.push(this.ack(r.id)),this.connected?this.emitEvent(i):this.receiveBuffer.push(Object.freeze(i))}emitEvent(r){if(this._anyListeners&&this._anyListeners.length){const i=this._anyListeners.slice();for(const s of i)s.apply(this,r)}super.emit.apply(this,r),this._pid&&r.length&&typeof r[r.length-1]=="string"&&(this._lastOffset=r[r.length-1])}ack(r){const i=this;let s=!1;return function(...u){s||(s=!0,i.packet({type:Ce.ACK,id:r,data:u}))}}onack(r){const i=this.acks[r.id];typeof i=="function"&&(delete this.acks[r.id],i.withError&&r.data.unshift(null),i.apply(this,r.data))}onconnect(r,i){this.id=r,this.recovered=i&&this._pid===i,this._pid=i,this.connected=!0,this.emitBuffered(),this.emitReserved("connect"),this._drainQueue(!0)}emitBuffered(){this.receiveBuffer.forEach(r=>this.emitEvent(r)),this.receiveBuffer=[],this.sendBuffer.forEach(r=>{this.notifyOutgoingListeners(r),this.packet(r)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(r=>r()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:Ce.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(r){return this.flags.compress=r,this}get volatile(){return this.flags.volatile=!0,this}timeout(r){return this.flags.timeout=r,this}onAny(r){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(r),this}prependAny(r){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(r),this}offAny(r){if(!this._anyListeners)return this;if(r){const i=this._anyListeners;for(let s=0;s<i.length;s++)if(r===i[s])return i.splice(s,1),this}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}onAnyOutgoing(r){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.push(r),this}prependAnyOutgoing(r){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.unshift(r),this}offAnyOutgoing(r){if(!this._anyOutgoingListeners)return this;if(r){const i=this._anyOutgoingListeners;for(let s=0;s<i.length;s++)if(r===i[s])return i.splice(s,1),this}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(r){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length){const i=this._anyOutgoingListeners.slice();for(const s of i)s.apply(this,r.data)}}}function Mi(t){t=t||{},this.ms=t.min||100,this.max=t.max||1e4,this.factor=t.factor||2,this.jitter=t.jitter>0&&t.jitter<=1?t.jitter:0,this.attempts=0}Mi.prototype.duration=function(){var t=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var r=Math.random(),i=Math.floor(r*this.jitter*t);t=(Math.floor(r*10)&1)==0?t-i:t+i}return Math.min(t,this.max)|0};Mi.prototype.reset=function(){this.attempts=0};Mi.prototype.setMin=function(t){this.ms=t};Mi.prototype.setMax=function(t){this.max=t};Mi.prototype.setJitter=function(t){this.jitter=t};class ph extends dt{constructor(r,i){var s;super(),this.nsps={},this.subs=[],r&&typeof r=="object"&&(i=r,r=void 0),i=i||{},i.path=i.path||"/socket.io",this.opts=i,Tu(this,i),this.reconnection(i.reconnection!==!1),this.reconnectionAttempts(i.reconnectionAttempts||1/0),this.reconnectionDelay(i.reconnectionDelay||1e3),this.reconnectionDelayMax(i.reconnectionDelayMax||5e3),this.randomizationFactor((s=i.randomizationFactor)!==null&&s!==void 0?s:.5),this.backoff=new Mi({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(i.timeout==null?2e4:i.timeout),this._readyState="closed",this.uri=r;const u=i.parser||S8;this.encoder=new u.Encoder,this.decoder=new u.Decoder,this._autoConnect=i.autoConnect!==!1,this._autoConnect&&this.open()}reconnection(r){return arguments.length?(this._reconnection=!!r,r||(this.skipReconnect=!0),this):this._reconnection}reconnectionAttempts(r){return r===void 0?this._reconnectionAttempts:(this._reconnectionAttempts=r,this)}reconnectionDelay(r){var i;return r===void 0?this._reconnectionDelay:(this._reconnectionDelay=r,(i=this.backoff)===null||i===void 0||i.setMin(r),this)}randomizationFactor(r){var i;return r===void 0?this._randomizationFactor:(this._randomizationFactor=r,(i=this.backoff)===null||i===void 0||i.setJitter(r),this)}reconnectionDelayMax(r){var i;return r===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=r,(i=this.backoff)===null||i===void 0||i.setMax(r),this)}timeout(r){return arguments.length?(this._timeout=r,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()}open(r){if(~this._readyState.indexOf("open"))return this;this.engine=new c8(this.uri,this.opts);const i=this.engine,s=this;this._readyState="opening",this.skipReconnect=!1;const u=In(i,"open",function(){s.onopen(),r&&r()}),c=h=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",h),r?r(h):this.maybeReconnectOnOpen()},d=In(i,"error",c);if(this._timeout!==!1){const h=this._timeout,m=this.setTimeoutFn(()=>{u(),c(new Error("timeout")),i.close()},h);this.opts.autoUnref&&m.unref(),this.subs.push(()=>{this.clearTimeoutFn(m)})}return this.subs.push(u),this.subs.push(d),this}connect(r){return this.open(r)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");const r=this.engine;this.subs.push(In(r,"ping",this.onping.bind(this)),In(r,"data",this.ondata.bind(this)),In(r,"error",this.onerror.bind(this)),In(r,"close",this.onclose.bind(this)),In(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(r){try{this.decoder.add(r)}catch(i){this.onclose("parse error",i)}}ondecoded(r){Su(()=>{this.emitReserved("packet",r)},this.setTimeoutFn)}onerror(r){this.emitReserved("error",r)}socket(r,i){let s=this.nsps[r];return s?this._autoConnect&&!s.active&&s.connect():(s=new C_(this,r,i),this.nsps[r]=s),s}_destroy(r){const i=Object.keys(this.nsps);for(const s of i)if(this.nsps[s].active)return;this._close()}_packet(r){const i=this.encoder.encode(r);for(let s=0;s<i.length;s++)this.engine.write(i[s],r.options)}cleanup(){this.subs.forEach(r=>r()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close")}disconnect(){return this._close()}onclose(r,i){var s;this.cleanup(),(s=this.engine)===null||s===void 0||s.close(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",r,i),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;const r=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{const i=this.backoff.duration();this._reconnecting=!0;const s=this.setTimeoutFn(()=>{r.skipReconnect||(this.emitReserved("reconnect_attempt",r.backoff.attempts),!r.skipReconnect&&r.open(u=>{u?(r._reconnecting=!1,r.reconnect(),this.emitReserved("reconnect_error",u)):r.onreconnect()}))},i);this.opts.autoUnref&&s.unref(),this.subs.push(()=>{this.clearTimeoutFn(s)})}}onreconnect(){const r=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",r)}}const Xs={};function Ko(t,r){typeof t=="object"&&(r=t,t=void 0),r=r||{};const i=f8(t,r.path||"/socket.io"),s=i.source,u=i.id,c=i.path,d=Xs[u]&&c in Xs[u].nsps,h=r.forceNew||r["force new connection"]||r.multiplex===!1||d;let m;return h?m=new ph(s,r):(Xs[u]||(Xs[u]=new ph(s,r)),m=Xs[u]),i.query&&!r.query&&(r.query=i.queryKey),m.socket(i.path,r)}Object.assign(Ko,{Manager:ph,Socket:C_,io:Ko,connect:Ko});const A8=[Te.ActionTypes.MESSAGE_TO_GUEST,Te.ActionTypes.EVENT_TO_GUEST,Te.ActionTypes.TYPING_ON,Te.ActionTypes.TYPING_OFF,Te.ActionTypes.RESTART_CHAT_REQUEST,...xx,...EO,"@@localize/SET_ACTIVE_LANGUAGE","@@localize/ADD_TRANSLATION_FOR_LANGUAGE"],O8=({dispatch:t,getState:r})=>i=>{let s=null;return u=>{const c=i(u);if(u.type===Gh){s?.disconnect(),t(Cx());const d=`/chat?${cu.stringify(u.querystrings)}`;s=Ko(`/${u.clientName}${d}`),s.on("action",t),s.on("connect",()=>t(Nx())),s.on("disconnect",()=>t(Mx())),s.on("reconnect",()=>t(Dx())),s.on("set-translations",(h,m)=>{t(_M({language:h,messages:mM(h,m)}))}),s.on("set-settings",h=>{t(TM(h))}),s.on("enable-conversation-rating",h=>t(xO(h))),s.on("speech-transcription",h=>t(TO(h))),s.on("restore-client-state",h=>{t(wx(h.sessionId)),t(wO(h.messages))}),s.on("expand-window",({devices:h,initial:m=!1})=>{t({type:fv,devices:h,initial:m})}),s.on("restart-chat",()=>{t(yu(u.clientName,u.querystrings))}),s.on("login-success",h=>{t(bx({loginToken:h.loginToken}))})}else if(u.type==="start-screen/requestLogin")s?.emit("login-requested",u.payload);else if(u.type===pu)s?.emit("start-chat",u.payload);else if(u.type===gu)s?.emit("terminate-session",u.payload);else if(u.type===_O)s?.emit("get-started",JSON.stringify(u));else if(u.type===Ch)s?.emit("audio-message",u.buffer);else if(u.type===Te.ActionTypes.CONVERSATION_RATING_FROM_GUEST)s?.emit("conversation-rating",u.payload);else if(u.type===hv){const{connection:{sessionId:d}}=r();window.location.href=`/transcript-pdf/${d}`}else A8.indexOf(u.type)===-1&&u.meta===void 0&&s&&s.emit("action",JSON.stringify(u));return c}},N_=Wv(),x8={...RM(N_),intl:f_},gh=ax({middleware:t=>t().concat(O8),reducer:OM,preloadedState:x8});gh.subscribe(sM(()=>{const t=gh.getState();wM(N_,{connection:t.connection,startScreen:t.startScreen})},1e3));const R8=document.getElementById("root"),w8=Y2.createRoot(R8);w8.render(y.jsx(PS,{store:gh,children:y.jsx(Y3,{})}));
124
- //# sourceMappingURL=index-hnXncAyS.js.map
123
+ - Non inserire dati personali nella finestra di chat (password, data di nascita, ecc.).`,"general-conditions.accept-conditions-note":"Utilizzando la chat si accettano le condizioni d'uso.","block-user-input.title":"Attendere la risposta del chatbot.","conversation-rating.call-to-action.title":"Valuta questa chat","conversation-rating.overlay.title":"Quanto sei soddisfatto di questa chat?","conversation-rating.overlay.guest-feedback.input-placeholder":"Inserisci qui il tuo feedback (opzionale)","conversation-rating.overlay.star.very-bad":"Molto male","conversation-rating.overlay.star.very-good":"Molto buono","conversation-rating.overlay.bot-message.rate-feedback.value-1":"Oh, non suona bene. Vi prego di darmi un feedback in modo che possa imparare di più.","conversation-rating.overlay.bot-message.rate-feedback.value-2":"Oh, non suona bene. Vi prego di darmi un feedback in modo che possa imparare di più.","conversation-rating.overlay.bot-message.rate-feedback.value-3":"La media non è il mio obiettivo, cosa posso ancora migliorare?","conversation-rating.overlay.bot-message.rate-feedback.value-4":"Anche l'assenza è finita. Cosa posso migliorare per ottenere tutte le stelle la prossima volta?","conversation-rating.overlay.bot-message.rate-feedback.value-5":"Perfetto! Allora spero di potervi consigliare ancora una volta bene.","conversation-rating.overlay.bot-message.submit-feedback":"Grazie mille per il feedback. Mi impegno costantemente per migliorare.","conversation-rating.overlay.action.submit":"Invia","conversation-rating.overlay.action.back-to-chat":"Chiudere","conversation-rating.overlay.action.close-chat":"Minimizzare la chat","conversation-rating.overlay.action.cancel":"Annulla","start-screen.intro":"","start-screen.start-chat":"Avviare la chat","start-screen.waiting-for-login":"In attesa di login ...","header.close-chat":"Minimizzare la chat","header.menu.title":"Menu","header.menu.restart-chat":"Riavviare la chat","header.menu.expand-chat-window":"Espandere la finestra","header.menu.download-transcript":"Scaricare la trascrizione","header.menu.send-transcript":"Inviare la trascrizione","header.menu.export-transcript":"Esportare la trascrizione","header.menu.rate-conversation":"Valutare la conversazione","source-infos.close":"Chiudere","source-infos.open-source":"Fonte aperta","source-infos.error.title":"Errore","source-infos.error.info":"Ops! Qualcosa è andato storto. Riprovare o contattare l'assistenza se il problema persiste.","source-infos.highlight-loading.title":"Il contenuto rilevante è evidenziato...","source-infos.highlight-loading.description":"Un momento - la fonte è in fase di analisi","commands.show-more.action":"Di più","commands.show-more.tooltip":"Mostra più comandi","commands.show-less.action":"Meno","commands.show-less.tooltip":"Mostra meno comandi"},gM=["de","en","fr","it"],d_={locale:"de",messages:f_},yM=(t,r)=>{if(gM.includes(t)){const i=bM(t),s=dM(r);return{...i,...s}}return r},bM=t=>{switch(t.toString()){case"en":return hM;case"fr":return mM;case"it":return pM;default:return f_}},vM=(t=_M,r)=>{switch(r.type){case kh:return Object.assign({},t,{connectionState:Ia.CONNECTING});case qh:return Object.assign({},t,{connectionState:Ia.CONNECTED});case Fh:return Object.assign({},t,{connectionState:Ia.DISCONNECTED});case Vh:return Object.assign({},t,{connectionState:Ia.RECONNECTED});case Ph:return Object.assign({},t,{sessionId:r.sessionId});case gu:return Object.assign({},t,{sessionId:r.payload.sessionId,userId:r.payload.userId});case yu:return Object.assign({},t,{sessionId:void 0});default:return t}},_M={connectionState:Ia.DISCONNECTED,sessionId:void 0,userId:void 0},EM=(t=d1,r)=>{switch(r.type){case Nv:return d1;case gu:return Ua({type:"webclient.chat.started"}),t;case yu:return Ua({type:"webclient.chat.ended"}),t;case Te.ActionTypes.TYPING_ON:return Object.assign({},t,{isBotTyping:!0});case Te.ActionTypes.TYPING_OFF:return Object.assign({},t,{isBotTyping:!1});case Te.ActionTypes.MESSAGE_FROM_GUEST:case Te.ActionTypes.MESSAGE_WITHOUT_ANALYSIS_FROM_GUEST:return f1(t,r.message);case Te.ActionTypes.MESSAGE_TO_GUEST:{Ua(r);const i=Object.assign({},r.message,{_id:r.meta.actionId}),s=t.messages.filter(u=>u._id===r.meta.actionId).length>0;return Object.assign({},t,{isBotTyping:!1,messages:s?t.messages:t.messages.concat([i]),quickReplies:i.quickReplies?i.quickReplies:[]})}case wh:{const i=r.messages,s=i.length?i[i.length-1]:void 0;return Object.assign({},t,{isBotTyping:!1,messages:i,quickReplies:s?.quickReplies||[]})}case Rh:return Ua(r.message),t;case Te.ActionTypes.EVENT_TO_GUEST:return Ua(r.event),t;case Te.ActionTypes.DRAWER_OPEN:return Object.assign({},t,{drawerContentUrl:r.payload.parameters.contentUrl});case Te.ActionTypes.DRAWER_CLOSE:return Object.assign({},t,{drawerContentUrl:void 0});case Te.ActionTypes.GUEST_LOCALE_CHANGED:return Object.assign({},t,{locale:r.payload.locale});case fv:return Ua(r),t;case dv:return Ua(r),{...t,conversationRating:{...t.conversationRating,opener:void 0}};case Nh:{const i=new Te.TextMessage(r.transcription,new Te.GuestUser),s=Object.assign({},i,{_id:Wo()});return f1(t,s)}case Te.ActionTypes.TRANSCRIPT_ITEM_GUEST_REACTION:{const i=t.messages.map(s=>s._id===r.payload.actionId?Object.assign({},s,r.payload.reaction?{reaction:{type:r.payload.reaction,category:r.payload.category,comment:r.payload.comment}}:{reaction:void 0}):s);return Object.assign({},t,{messages:i})}case Mh:{const i={enabled:!0,rating:r.payload.rating};return Object.assign({},t,{conversationRating:i})}case Te.ActionTypes.CONVERSATION_RATING_FROM_GUEST:{const i={...t.conversationRating,rating:r.payload};return Object.assign({},t,{conversationRating:i})}case Dv:{const i={...t.conversationRating,opener:r.payload.opener,...r.payload.defaultRating?{rating:{value:r.payload.defaultRating,feedback:t.conversationRating.rating?.feedback||""}}:{}};return Object.assign({},t,{conversationRating:i})}case Lv:{const i={...t.conversationRating,opener:void 0};return Object.assign({},t,{conversationRating:i})}case Lh:return{...t,sourceInfos:{type:"loading",chunkId:r.payload.chunkId}};case Dh:{const{highlighted:i}=r.payload;return t.sourceInfos?.type==="loaded"&&i?{...t,sourceInfos:{...t.sourceInfos,highlighted:!0}}:{...t,sourceInfos:{type:"loading-error"}}}case cv:{const i=t.sourceInfos?.type,{chunkId:s,knowledgeBaseType:u,title:c,content:d,highlighted:h,url:m}=r.payload,p=t.sourceInfos?.type==="loading"||t.sourceInfos?.type==="loaded"?t.sourceInfos?.chunkId:void 0;return p&&p!==s?t:i==="loading"||i==="loaded"&&h?{...t,sourceInfos:{type:"loaded",chunkId:s,knowledgeBaseType:u,title:c,content:d,highlighted:h,url:m}}:t}case Bh:return{...t,sourceInfos:void 0};case Mv:return{...t,showTranscriptMailOverlay:!t.showTranscriptMailOverlay,conversationRating:{...t.conversationRating,opener:void 0}};default:return t}},f1=(t,r)=>{const i=t.messages[t.messages.length-1],s=i?.text===r.text;return i&&i.sender.type===r.sender.type&&s?t:Object.assign({},t,{messages:t.messages.concat([r]),quickReplies:[]})},Ua=t=>{SM()?window.top?.postMessage(t,"*"):t.type==="webclient.change.url"&&window.open(t.url)},SM=()=>typeof window<"u"&&window.self!==window.top,d1={messages:[],quickReplies:[],isBotTyping:!1,showTranscriptMailOverlay:!1,conversationRating:{enabled:!1}},h_=Ih({name:"intl",initialState:d_,reducers:{updateIntl:(t,r)=>{t.locale=r.payload.language,t.messages=r.payload.messages}}}),{updateIntl:TM}=h_.actions,AM=h_.reducer,xM={version:void 0,requiresUserAuthentication:!1,enableStartScreen:void 0,enableStandaloneView:!1,enableTranscriptExportEmail:!1,enableTranscriptExportPdf:!1,enableGeneralConditions:!1,enableSpeechSupport:!1,commands:[],menuItems:[]},m_=Ih({name:"settings",initialState:xM,reducers:{setSettings(t,r){t.version&&t.version!==r.payload.version?(console.log("version changed, reloading chat window"),window.location.reload()):(t.version=r.payload.version,t.requiresUserAuthentication=r.payload.requiresUserAuthentication,t.enableStartScreen=r.payload.enableStartScreen,t.enableStandaloneView=r.payload.enableStandaloneView,t.enableTranscriptExportEmail=r.payload.enableTranscriptExportEmail,t.enableTranscriptExportPdf=r.payload.enableTranscriptExportPdf,t.enableGeneralConditions=r.payload.enableGeneralConditions,t.enableSpeechSupport=r.payload.enableSpeechSupport,t.commands=r.payload.commands,t.menuItems=r.payload.menuItems||[])}}}),{setSettings:OM}=m_.actions,RM=m_.reducer,wM=bv({settings:RM,chat:EM,startScreen:TO,connection:vM,intl:AM}),CM="bubble-chat",p_="state-last-saved-at",g_="state",NM=t=>{try{if(!LM())return;const r=h1(t,p_);if(DM(r))return;{const i=h1(t,g_);return i===null?void 0:JSON.parse(i)}}catch(r){console.error(r);return}},MM=(t,r)=>{try{const i=JSON.stringify(r);m1(t,g_,i);const s=new Date().toISOString();m1(t,p_,s)}catch(i){console.error(i)}},DM=t=>{if(t===null)return!1;const r=new Date(t);return r.setHours(r.getHours()+12),new Date>r},LM=()=>typeof localStorage<"u",h1=(t,r)=>{const i=y_(t,r);return localStorage.getItem(i)},m1=(t,r,i)=>{const s=y_(t,r);return localStorage.setItem(s,i)},y_=(t,r)=>`${CM}-${t}-${r}`,tr=Object.create(null);tr.open="0";tr.close="1";tr.ping="2";tr.pong="3";tr.message="4";tr.upgrade="5";tr.noop="6";const Xo=Object.create(null);Object.keys(tr).forEach(t=>{Xo[tr[t]]=t});const fh={type:"error",data:"parser error"},b_=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",v_=typeof ArrayBuffer=="function",__=t=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(t):t&&t.buffer instanceof ArrayBuffer,$h=({type:t,data:r},i,s)=>b_&&r instanceof Blob?i?s(r):p1(r,s):v_&&(r instanceof ArrayBuffer||__(r))?i?s(r):p1(new Blob([r]),s):s(tr[t]+(r||"")),p1=(t,r)=>{const i=new FileReader;return i.onload=function(){const s=i.result.split(",")[1];r("b"+(s||""))},i.readAsDataURL(t)};function g1(t){return t instanceof Uint8Array?t:t instanceof ArrayBuffer?new Uint8Array(t):new Uint8Array(t.buffer,t.byteOffset,t.byteLength)}let zd;function BM(t,r){if(b_&&t.data instanceof Blob)return t.data.arrayBuffer().then(g1).then(r);if(v_&&(t.data instanceof ArrayBuffer||__(t.data)))return r(g1(t.data));$h(t,!1,i=>{zd||(zd=new TextEncoder),r(zd.encode(i))})}const y1="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Ks=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let t=0;t<y1.length;t++)Ks[y1.charCodeAt(t)]=t;const UM=t=>{let r=t.length*.75,i=t.length,s,u=0,c,d,h,m;t[t.length-1]==="="&&(r--,t[t.length-2]==="="&&r--);const p=new ArrayBuffer(r),b=new Uint8Array(p);for(s=0;s<i;s+=4)c=Ks[t.charCodeAt(s)],d=Ks[t.charCodeAt(s+1)],h=Ks[t.charCodeAt(s+2)],m=Ks[t.charCodeAt(s+3)],b[u++]=c<<2|d>>4,b[u++]=(d&15)<<4|h>>2,b[u++]=(h&3)<<6|m&63;return p},HM=typeof ArrayBuffer=="function",Wh=(t,r)=>{if(typeof t!="string")return{type:"message",data:E_(t,r)};const i=t.charAt(0);return i==="b"?{type:"message",data:jM(t.substring(1),r)}:Xo[i]?t.length>1?{type:Xo[i],data:t.substring(1)}:{type:Xo[i]}:fh},jM=(t,r)=>{if(HM){const i=UM(t);return E_(i,r)}else return{base64:!0,data:t}},E_=(t,r)=>{switch(r){case"blob":return t instanceof Blob?t:new Blob([t]);case"arraybuffer":default:return t instanceof ArrayBuffer?t:t.buffer}},S_="",IM=(t,r)=>{const i=t.length,s=new Array(i);let u=0;t.forEach((c,d)=>{$h(c,!1,h=>{s[d]=h,++u===i&&r(s.join(S_))})})},zM=(t,r)=>{const i=t.split(S_),s=[];for(let u=0;u<i.length;u++){const c=Wh(i[u],r);if(s.push(c),c.type==="error")break}return s};function GM(){return new TransformStream({transform(t,r){BM(t,i=>{const s=i.length;let u;if(s<126)u=new Uint8Array(1),new DataView(u.buffer).setUint8(0,s);else if(s<65536){u=new Uint8Array(3);const c=new DataView(u.buffer);c.setUint8(0,126),c.setUint16(1,s)}else{u=new Uint8Array(9);const c=new DataView(u.buffer);c.setUint8(0,127),c.setBigUint64(1,BigInt(s))}t.data&&typeof t.data!="string"&&(u[0]|=128),r.enqueue(u),r.enqueue(i)})}})}let Gd;function ko(t){return t.reduce((r,i)=>r+i.length,0)}function qo(t,r){if(t[0].length===r)return t.shift();const i=new Uint8Array(r);let s=0;for(let u=0;u<r;u++)i[u]=t[0][s++],s===t[0].length&&(t.shift(),s=0);return t.length&&s<t[0].length&&(t[0]=t[0].slice(s)),i}function kM(t,r){Gd||(Gd=new TextDecoder);const i=[];let s=0,u=-1,c=!1;return new TransformStream({transform(d,h){for(i.push(d);;){if(s===0){if(ko(i)<1)break;const m=qo(i,1);c=(m[0]&128)===128,u=m[0]&127,u<126?s=3:u===126?s=1:s=2}else if(s===1){if(ko(i)<2)break;const m=qo(i,2);u=new DataView(m.buffer,m.byteOffset,m.length).getUint16(0),s=3}else if(s===2){if(ko(i)<8)break;const m=qo(i,8),p=new DataView(m.buffer,m.byteOffset,m.length),b=p.getUint32(0);if(b>Math.pow(2,21)-1){h.enqueue(fh);break}u=b*Math.pow(2,32)+p.getUint32(4),s=3}else{if(ko(i)<u)break;const m=qo(i,u);h.enqueue(Wh(c?m:Gd.decode(m),r)),s=0}if(u===0||u>t){h.enqueue(fh);break}}}})}const T_=4;function dt(t){if(t)return qM(t)}function qM(t){for(var r in dt.prototype)t[r]=dt.prototype[r];return t}dt.prototype.on=dt.prototype.addEventListener=function(t,r){return this._callbacks=this._callbacks||{},(this._callbacks["$"+t]=this._callbacks["$"+t]||[]).push(r),this};dt.prototype.once=function(t,r){function i(){this.off(t,i),r.apply(this,arguments)}return i.fn=r,this.on(t,i),this};dt.prototype.off=dt.prototype.removeListener=dt.prototype.removeAllListeners=dt.prototype.removeEventListener=function(t,r){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var i=this._callbacks["$"+t];if(!i)return this;if(arguments.length==1)return delete this._callbacks["$"+t],this;for(var s,u=0;u<i.length;u++)if(s=i[u],s===r||s.fn===r){i.splice(u,1);break}return i.length===0&&delete this._callbacks["$"+t],this};dt.prototype.emit=function(t){this._callbacks=this._callbacks||{};for(var r=new Array(arguments.length-1),i=this._callbacks["$"+t],s=1;s<arguments.length;s++)r[s-1]=arguments[s];if(i){i=i.slice(0);for(var s=0,u=i.length;s<u;++s)i[s].apply(this,r)}return this};dt.prototype.emitReserved=dt.prototype.emit;dt.prototype.listeners=function(t){return this._callbacks=this._callbacks||{},this._callbacks["$"+t]||[]};dt.prototype.hasListeners=function(t){return!!this.listeners(t).length};const Tu=typeof Promise=="function"&&typeof Promise.resolve=="function"?r=>Promise.resolve().then(r):(r,i)=>i(r,0),Sn=typeof self<"u"?self:typeof window<"u"?window:Function("return this")(),FM="arraybuffer";function A_(t,...r){return r.reduce((i,s)=>(t.hasOwnProperty(s)&&(i[s]=t[s]),i),{})}const VM=Sn.setTimeout,PM=Sn.clearTimeout;function Au(t,r){r.useNativeTimers?(t.setTimeoutFn=VM.bind(Sn),t.clearTimeoutFn=PM.bind(Sn)):(t.setTimeoutFn=Sn.setTimeout.bind(Sn),t.clearTimeoutFn=Sn.clearTimeout.bind(Sn))}const YM=1.33;function XM(t){return typeof t=="string"?ZM(t):Math.ceil((t.byteLength||t.size)*YM)}function ZM(t){let r=0,i=0;for(let s=0,u=t.length;s<u;s++)r=t.charCodeAt(s),r<128?i+=1:r<2048?i+=2:r<55296||r>=57344?i+=3:(s++,i+=4);return i}function x_(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)}function QM(t){let r="";for(let i in t)t.hasOwnProperty(i)&&(r.length&&(r+="&"),r+=encodeURIComponent(i)+"="+encodeURIComponent(t[i]));return r}function KM(t){let r={},i=t.split("&");for(let s=0,u=i.length;s<u;s++){let c=i[s].split("=");r[decodeURIComponent(c[0])]=decodeURIComponent(c[1])}return r}class $M extends Error{constructor(r,i,s){super(r),this.description=i,this.context=s,this.type="TransportError"}}class Jh extends dt{constructor(r){super(),this.writable=!1,Au(this,r),this.opts=r,this.query=r.query,this.socket=r.socket,this.supportsBinary=!r.forceBase64}onError(r,i,s){return super.emitReserved("error",new $M(r,i,s)),this}open(){return this.readyState="opening",this.doOpen(),this}close(){return(this.readyState==="opening"||this.readyState==="open")&&(this.doClose(),this.onClose()),this}send(r){this.readyState==="open"&&this.write(r)}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(r){const i=Wh(r,this.socket.binaryType);this.onPacket(i)}onPacket(r){super.emitReserved("packet",r)}onClose(r){this.readyState="closed",super.emitReserved("close",r)}pause(r){}createUri(r,i={}){return r+"://"+this._hostname()+this._port()+this.opts.path+this._query(i)}_hostname(){const r=this.opts.hostname;return r.indexOf(":")===-1?r:"["+r+"]"}_port(){return this.opts.port&&(this.opts.secure&&+(this.opts.port!==443)||!this.opts.secure&&Number(this.opts.port)!==80)?":"+this.opts.port:""}_query(r){const i=QM(r);return i.length?"?"+i:""}}class WM extends Jh{constructor(){super(...arguments),this._polling=!1}get name(){return"polling"}doOpen(){this._poll()}pause(r){this.readyState="pausing";const i=()=>{this.readyState="paused",r()};if(this._polling||!this.writable){let s=0;this._polling&&(s++,this.once("pollComplete",function(){--s||i()})),this.writable||(s++,this.once("drain",function(){--s||i()}))}else i()}_poll(){this._polling=!0,this.doPoll(),this.emitReserved("poll")}onData(r){const i=s=>{if(this.readyState==="opening"&&s.type==="open"&&this.onOpen(),s.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(s)};zM(r,this.socket.binaryType).forEach(i),this.readyState!=="closed"&&(this._polling=!1,this.emitReserved("pollComplete"),this.readyState==="open"&&this._poll())}doClose(){const r=()=>{this.write([{type:"close"}])};this.readyState==="open"?r():this.once("open",r)}write(r){this.writable=!1,IM(r,i=>{this.doWrite(i,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){const r=this.opts.secure?"https":"http",i=this.query||{};return this.opts.timestampRequests!==!1&&(i[this.opts.timestampParam]=x_()),!this.supportsBinary&&!i.sid&&(i.b64=1),this.createUri(r,i)}}let O_=!1;try{O_=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{}const JM=O_;function e8(){}class t8 extends WM{constructor(r){if(super(r),typeof location<"u"){const i=location.protocol==="https:";let s=location.port;s||(s=i?"443":"80"),this.xd=typeof location<"u"&&r.hostname!==location.hostname||s!==r.port}}doWrite(r,i){const s=this.request({method:"POST",data:r});s.on("success",i),s.on("error",(u,c)=>{this.onError("xhr post error",u,c)})}doPoll(){const r=this.request();r.on("data",this.onData.bind(this)),r.on("error",(i,s)=>{this.onError("xhr poll error",i,s)}),this.pollXhr=r}}class Jn extends dt{constructor(r,i,s){super(),this.createRequest=r,Au(this,s),this._opts=s,this._method=s.method||"GET",this._uri=i,this._data=s.data!==void 0?s.data:null,this._create()}_create(){var r;const i=A_(this._opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");i.xdomain=!!this._opts.xd;const s=this._xhr=this.createRequest(i);try{s.open(this._method,this._uri,!0);try{if(this._opts.extraHeaders){s.setDisableHeaderCheck&&s.setDisableHeaderCheck(!0);for(let u in this._opts.extraHeaders)this._opts.extraHeaders.hasOwnProperty(u)&&s.setRequestHeader(u,this._opts.extraHeaders[u])}}catch{}if(this._method==="POST")try{s.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{s.setRequestHeader("Accept","*/*")}catch{}(r=this._opts.cookieJar)===null||r===void 0||r.addCookies(s),"withCredentials"in s&&(s.withCredentials=this._opts.withCredentials),this._opts.requestTimeout&&(s.timeout=this._opts.requestTimeout),s.onreadystatechange=()=>{var u;s.readyState===3&&((u=this._opts.cookieJar)===null||u===void 0||u.parseCookies(s.getResponseHeader("set-cookie"))),s.readyState===4&&(s.status===200||s.status===1223?this._onLoad():this.setTimeoutFn(()=>{this._onError(typeof s.status=="number"?s.status:0)},0))},s.send(this._data)}catch(u){this.setTimeoutFn(()=>{this._onError(u)},0);return}typeof document<"u"&&(this._index=Jn.requestsCount++,Jn.requests[this._index]=this)}_onError(r){this.emitReserved("error",r,this._xhr),this._cleanup(!0)}_cleanup(r){if(!(typeof this._xhr>"u"||this._xhr===null)){if(this._xhr.onreadystatechange=e8,r)try{this._xhr.abort()}catch{}typeof document<"u"&&delete Jn.requests[this._index],this._xhr=null}}_onLoad(){const r=this._xhr.responseText;r!==null&&(this.emitReserved("data",r),this.emitReserved("success"),this._cleanup())}abort(){this._cleanup()}}Jn.requestsCount=0;Jn.requests={};if(typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",b1);else if(typeof addEventListener=="function"){const t="onpagehide"in Sn?"pagehide":"unload";addEventListener(t,b1,!1)}}function b1(){for(let t in Jn.requests)Jn.requests.hasOwnProperty(t)&&Jn.requests[t].abort()}const n8=function(){const t=R_({xdomain:!1});return t&&t.responseType!==null}();class r8 extends t8{constructor(r){super(r);const i=r&&r.forceBase64;this.supportsBinary=n8&&!i}request(r={}){return Object.assign(r,{xd:this.xd},this.opts),new Jn(R_,this.uri(),r)}}function R_(t){const r=t.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!r||JM))return new XMLHttpRequest}catch{}if(!r)try{return new Sn[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}const w_=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative";class a8 extends Jh{get name(){return"websocket"}doOpen(){const r=this.uri(),i=this.opts.protocols,s=w_?{}:A_(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(s.headers=this.opts.extraHeaders);try{this.ws=this.createSocket(r,i,s)}catch(u){return this.emitReserved("error",u)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=r=>this.onClose({description:"websocket connection closed",context:r}),this.ws.onmessage=r=>this.onData(r.data),this.ws.onerror=r=>this.onError("websocket error",r)}write(r){this.writable=!1;for(let i=0;i<r.length;i++){const s=r[i],u=i===r.length-1;$h(s,this.supportsBinary,c=>{try{this.doWrite(s,c)}catch{}u&&Tu(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){typeof this.ws<"u"&&(this.ws.onerror=()=>{},this.ws.close(),this.ws=null)}uri(){const r=this.opts.secure?"wss":"ws",i=this.query||{};return this.opts.timestampRequests&&(i[this.opts.timestampParam]=x_()),this.supportsBinary||(i.b64=1),this.createUri(r,i)}}const kd=Sn.WebSocket||Sn.MozWebSocket;class i8 extends a8{createSocket(r,i,s){return w_?new kd(r,i,s):i?new kd(r,i):new kd(r)}doWrite(r,i){this.ws.send(i)}}class s8 extends Jh{get name(){return"webtransport"}doOpen(){try{this._transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name])}catch(r){return this.emitReserved("error",r)}this._transport.closed.then(()=>{this.onClose()}).catch(r=>{this.onError("webtransport error",r)}),this._transport.ready.then(()=>{this._transport.createBidirectionalStream().then(r=>{const i=kM(Number.MAX_SAFE_INTEGER,this.socket.binaryType),s=r.readable.pipeThrough(i).getReader(),u=GM();u.readable.pipeTo(r.writable),this._writer=u.writable.getWriter();const c=()=>{s.read().then(({done:h,value:m})=>{h||(this.onPacket(m),c())}).catch(h=>{})};c();const d={type:"open"};this.query.sid&&(d.data=`{"sid":"${this.query.sid}"}`),this._writer.write(d).then(()=>this.onOpen())})})}write(r){this.writable=!1;for(let i=0;i<r.length;i++){const s=r[i],u=i===r.length-1;this._writer.write(s).then(()=>{u&&Tu(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var r;(r=this._transport)===null||r===void 0||r.close()}}const l8={websocket:i8,webtransport:s8,polling:r8},o8=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,u8=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function dh(t){if(t.length>8e3)throw"URI too long";const r=t,i=t.indexOf("["),s=t.indexOf("]");i!=-1&&s!=-1&&(t=t.substring(0,i)+t.substring(i,s).replace(/:/g,";")+t.substring(s,t.length));let u=o8.exec(t||""),c={},d=14;for(;d--;)c[u8[d]]=u[d]||"";return i!=-1&&s!=-1&&(c.source=r,c.host=c.host.substring(1,c.host.length-1).replace(/;/g,":"),c.authority=c.authority.replace("[","").replace("]","").replace(/;/g,":"),c.ipv6uri=!0),c.pathNames=c8(c,c.path),c.queryKey=f8(c,c.query),c}function c8(t,r){const i=/\/{2,9}/g,s=r.replace(i,"/").split("/");return(r.slice(0,1)=="/"||r.length===0)&&s.splice(0,1),r.slice(-1)=="/"&&s.splice(s.length-1,1),s}function f8(t,r){const i={};return r.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(s,u,c){u&&(i[u]=c)}),i}const hh=typeof addEventListener=="function"&&typeof removeEventListener=="function",Zo=[];hh&&addEventListener("offline",()=>{Zo.forEach(t=>t())},!1);class la extends dt{constructor(r,i){if(super(),this.binaryType=FM,this.writeBuffer=[],this._prevBufferLen=0,this._pingInterval=-1,this._pingTimeout=-1,this._maxPayload=-1,this._pingTimeoutTime=1/0,r&&typeof r=="object"&&(i=r,r=null),r){const s=dh(r);i.hostname=s.host,i.secure=s.protocol==="https"||s.protocol==="wss",i.port=s.port,s.query&&(i.query=s.query)}else i.host&&(i.hostname=dh(i.host).host);Au(this,i),this.secure=i.secure!=null?i.secure:typeof location<"u"&&location.protocol==="https:",i.hostname&&!i.port&&(i.port=this.secure?"443":"80"),this.hostname=i.hostname||(typeof location<"u"?location.hostname:"localhost"),this.port=i.port||(typeof location<"u"&&location.port?location.port:this.secure?"443":"80"),this.transports=[],this._transportsByName={},i.transports.forEach(s=>{const u=s.prototype.name;this.transports.push(u),this._transportsByName[u]=s}),this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},i),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),typeof this.opts.query=="string"&&(this.opts.query=KM(this.opts.query)),hh&&(this.opts.closeOnBeforeunload&&(this._beforeunloadEventListener=()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener("beforeunload",this._beforeunloadEventListener,!1)),this.hostname!=="localhost"&&(this._offlineEventListener=()=>{this._onClose("transport close",{description:"network connection lost"})},Zo.push(this._offlineEventListener))),this.opts.withCredentials&&(this._cookieJar=void 0),this._open()}createTransport(r){const i=Object.assign({},this.opts.query);i.EIO=T_,i.transport=r,this.id&&(i.sid=this.id);const s=Object.assign({},this.opts,{query:i,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[r]);return new this._transportsByName[r](s)}_open(){if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}const r=this.opts.rememberUpgrade&&la.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1?"websocket":this.transports[0];this.readyState="opening";const i=this.createTransport(r);i.open(),this.setTransport(i)}setTransport(r){this.transport&&this.transport.removeAllListeners(),this.transport=r,r.on("drain",this._onDrain.bind(this)).on("packet",this._onPacket.bind(this)).on("error",this._onError.bind(this)).on("close",i=>this._onClose("transport close",i))}onOpen(){this.readyState="open",la.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush()}_onPacket(r){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")switch(this.emitReserved("packet",r),this.emitReserved("heartbeat"),r.type){case"open":this.onHandshake(JSON.parse(r.data));break;case"ping":this._sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong"),this._resetPingTimeout();break;case"error":const i=new Error("server error");i.code=r.data,this._onError(i);break;case"message":this.emitReserved("data",r.data),this.emitReserved("message",r.data);break}}onHandshake(r){this.emitReserved("handshake",r),this.id=r.sid,this.transport.query.sid=r.sid,this._pingInterval=r.pingInterval,this._pingTimeout=r.pingTimeout,this._maxPayload=r.maxPayload,this.onOpen(),this.readyState!=="closed"&&this._resetPingTimeout()}_resetPingTimeout(){this.clearTimeoutFn(this._pingTimeoutTimer);const r=this._pingInterval+this._pingTimeout;this._pingTimeoutTime=Date.now()+r,this._pingTimeoutTimer=this.setTimeoutFn(()=>{this._onClose("ping timeout")},r),this.opts.autoUnref&&this._pingTimeoutTimer.unref()}_onDrain(){this.writeBuffer.splice(0,this._prevBufferLen),this._prevBufferLen=0,this.writeBuffer.length===0?this.emitReserved("drain"):this.flush()}flush(){if(this.readyState!=="closed"&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){const r=this._getWritablePackets();this.transport.send(r),this._prevBufferLen=r.length,this.emitReserved("flush")}}_getWritablePackets(){if(!(this._maxPayload&&this.transport.name==="polling"&&this.writeBuffer.length>1))return this.writeBuffer;let i=1;for(let s=0;s<this.writeBuffer.length;s++){const u=this.writeBuffer[s].data;if(u&&(i+=XM(u)),s>0&&i>this._maxPayload)return this.writeBuffer.slice(0,s);i+=2}return this.writeBuffer}_hasPingExpired(){if(!this._pingTimeoutTime)return!0;const r=Date.now()>this._pingTimeoutTime;return r&&(this._pingTimeoutTime=0,Tu(()=>{this._onClose("ping timeout")},this.setTimeoutFn)),r}write(r,i,s){return this._sendPacket("message",r,i,s),this}send(r,i,s){return this._sendPacket("message",r,i,s),this}_sendPacket(r,i,s,u){if(typeof i=="function"&&(u=i,i=void 0),typeof s=="function"&&(u=s,s=null),this.readyState==="closing"||this.readyState==="closed")return;s=s||{},s.compress=s.compress!==!1;const c={type:r,data:i,options:s};this.emitReserved("packetCreate",c),this.writeBuffer.push(c),u&&this.once("flush",u),this.flush()}close(){const r=()=>{this._onClose("forced close"),this.transport.close()},i=()=>{this.off("upgrade",i),this.off("upgradeError",i),r()},s=()=>{this.once("upgrade",i),this.once("upgradeError",i)};return(this.readyState==="opening"||this.readyState==="open")&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?s():r()}):this.upgrading?s():r()),this}_onError(r){if(la.priorWebsocketSuccess=!1,this.opts.tryAllTransports&&this.transports.length>1&&this.readyState==="opening")return this.transports.shift(),this._open();this.emitReserved("error",r),this._onClose("transport error",r)}_onClose(r,i){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing"){if(this.clearTimeoutFn(this._pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),hh&&(this._beforeunloadEventListener&&removeEventListener("beforeunload",this._beforeunloadEventListener,!1),this._offlineEventListener)){const s=Zo.indexOf(this._offlineEventListener);s!==-1&&Zo.splice(s,1)}this.readyState="closed",this.id=null,this.emitReserved("close",r,i),this.writeBuffer=[],this._prevBufferLen=0}}}la.protocol=T_;class d8 extends la{constructor(){super(...arguments),this._upgrades=[]}onOpen(){if(super.onOpen(),this.readyState==="open"&&this.opts.upgrade)for(let r=0;r<this._upgrades.length;r++)this._probe(this._upgrades[r])}_probe(r){let i=this.createTransport(r),s=!1;la.priorWebsocketSuccess=!1;const u=()=>{s||(i.send([{type:"ping",data:"probe"}]),i.once("packet",E=>{if(!s)if(E.type==="pong"&&E.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",i),!i)return;la.priorWebsocketSuccess=i.name==="websocket",this.transport.pause(()=>{s||this.readyState!=="closed"&&(b(),this.setTransport(i),i.send([{type:"upgrade"}]),this.emitReserved("upgrade",i),i=null,this.upgrading=!1,this.flush())})}else{const A=new Error("probe error");A.transport=i.name,this.emitReserved("upgradeError",A)}}))};function c(){s||(s=!0,b(),i.close(),i=null)}const d=E=>{const A=new Error("probe error: "+E);A.transport=i.name,c(),this.emitReserved("upgradeError",A)};function h(){d("transport closed")}function m(){d("socket closed")}function p(E){i&&E.name!==i.name&&c()}const b=()=>{i.removeListener("open",u),i.removeListener("error",d),i.removeListener("close",h),this.off("close",m),this.off("upgrading",p)};i.once("open",u),i.once("error",d),i.once("close",h),this.once("close",m),this.once("upgrading",p),this._upgrades.indexOf("webtransport")!==-1&&r!=="webtransport"?this.setTimeoutFn(()=>{s||i.open()},200):i.open()}onHandshake(r){this._upgrades=this._filterUpgrades(r.upgrades),super.onHandshake(r)}_filterUpgrades(r){const i=[];for(let s=0;s<r.length;s++)~this.transports.indexOf(r[s])&&i.push(r[s]);return i}}let h8=class extends d8{constructor(r,i={}){const s=typeof r=="object"?r:i;(!s.transports||s.transports&&typeof s.transports[0]=="string")&&(s.transports=(s.transports||["polling","websocket","webtransport"]).map(u=>l8[u]).filter(u=>!!u)),super(r,s)}};function m8(t,r="",i){let s=t;i=i||typeof location<"u"&&location,t==null&&(t=i.protocol+"//"+i.host),typeof t=="string"&&(t.charAt(0)==="/"&&(t.charAt(1)==="/"?t=i.protocol+t:t=i.host+t),/^(https?|wss?):\/\//.test(t)||(typeof i<"u"?t=i.protocol+"//"+t:t="https://"+t),s=dh(t)),s.port||(/^(http|ws)$/.test(s.protocol)?s.port="80":/^(http|ws)s$/.test(s.protocol)&&(s.port="443")),s.path=s.path||"/";const c=s.host.indexOf(":")!==-1?"["+s.host+"]":s.host;return s.id=s.protocol+"://"+c+":"+s.port+r,s.href=s.protocol+"://"+c+(i&&i.port===s.port?"":":"+s.port),s}const p8=typeof ArrayBuffer=="function",g8=t=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(t):t.buffer instanceof ArrayBuffer,C_=Object.prototype.toString,y8=typeof Blob=="function"||typeof Blob<"u"&&C_.call(Blob)==="[object BlobConstructor]",b8=typeof File=="function"||typeof File<"u"&&C_.call(File)==="[object FileConstructor]";function em(t){return p8&&(t instanceof ArrayBuffer||g8(t))||y8&&t instanceof Blob||b8&&t instanceof File}function Qo(t,r){if(!t||typeof t!="object")return!1;if(Array.isArray(t)){for(let i=0,s=t.length;i<s;i++)if(Qo(t[i]))return!0;return!1}if(em(t))return!0;if(t.toJSON&&typeof t.toJSON=="function"&&arguments.length===1)return Qo(t.toJSON(),!0);for(const i in t)if(Object.prototype.hasOwnProperty.call(t,i)&&Qo(t[i]))return!0;return!1}function v8(t){const r=[],i=t.data,s=t;return s.data=mh(i,r),s.attachments=r.length,{packet:s,buffers:r}}function mh(t,r){if(!t)return t;if(em(t)){const i={_placeholder:!0,num:r.length};return r.push(t),i}else if(Array.isArray(t)){const i=new Array(t.length);for(let s=0;s<t.length;s++)i[s]=mh(t[s],r);return i}else if(typeof t=="object"&&!(t instanceof Date)){const i={};for(const s in t)Object.prototype.hasOwnProperty.call(t,s)&&(i[s]=mh(t[s],r));return i}return t}function _8(t,r){return t.data=ph(t.data,r),delete t.attachments,t}function ph(t,r){if(!t)return t;if(t&&t._placeholder===!0){if(typeof t.num=="number"&&t.num>=0&&t.num<r.length)return r[t.num];throw new Error("illegal attachments")}else if(Array.isArray(t))for(let i=0;i<t.length;i++)t[i]=ph(t[i],r);else if(typeof t=="object")for(const i in t)Object.prototype.hasOwnProperty.call(t,i)&&(t[i]=ph(t[i],r));return t}const E8=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"],S8=5;var Ce;(function(t){t[t.CONNECT=0]="CONNECT",t[t.DISCONNECT=1]="DISCONNECT",t[t.EVENT=2]="EVENT",t[t.ACK=3]="ACK",t[t.CONNECT_ERROR=4]="CONNECT_ERROR",t[t.BINARY_EVENT=5]="BINARY_EVENT",t[t.BINARY_ACK=6]="BINARY_ACK"})(Ce||(Ce={}));class T8{constructor(r){this.replacer=r}encode(r){return(r.type===Ce.EVENT||r.type===Ce.ACK)&&Qo(r)?this.encodeAsBinary({type:r.type===Ce.EVENT?Ce.BINARY_EVENT:Ce.BINARY_ACK,nsp:r.nsp,data:r.data,id:r.id}):[this.encodeAsString(r)]}encodeAsString(r){let i=""+r.type;return(r.type===Ce.BINARY_EVENT||r.type===Ce.BINARY_ACK)&&(i+=r.attachments+"-"),r.nsp&&r.nsp!=="/"&&(i+=r.nsp+","),r.id!=null&&(i+=r.id),r.data!=null&&(i+=JSON.stringify(r.data,this.replacer)),i}encodeAsBinary(r){const i=v8(r),s=this.encodeAsString(i.packet),u=i.buffers;return u.unshift(s),u}}function v1(t){return Object.prototype.toString.call(t)==="[object Object]"}class tm extends dt{constructor(r){super(),this.reviver=r}add(r){let i;if(typeof r=="string"){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");i=this.decodeString(r);const s=i.type===Ce.BINARY_EVENT;s||i.type===Ce.BINARY_ACK?(i.type=s?Ce.EVENT:Ce.ACK,this.reconstructor=new A8(i),i.attachments===0&&super.emitReserved("decoded",i)):super.emitReserved("decoded",i)}else if(em(r)||r.base64)if(this.reconstructor)i=this.reconstructor.takeBinaryData(r),i&&(this.reconstructor=null,super.emitReserved("decoded",i));else throw new Error("got binary data when not reconstructing a packet");else throw new Error("Unknown type: "+r)}decodeString(r){let i=0;const s={type:Number(r.charAt(0))};if(Ce[s.type]===void 0)throw new Error("unknown packet type "+s.type);if(s.type===Ce.BINARY_EVENT||s.type===Ce.BINARY_ACK){const c=i+1;for(;r.charAt(++i)!=="-"&&i!=r.length;);const d=r.substring(c,i);if(d!=Number(d)||r.charAt(i)!=="-")throw new Error("Illegal attachments");s.attachments=Number(d)}if(r.charAt(i+1)==="/"){const c=i+1;for(;++i&&!(r.charAt(i)===","||i===r.length););s.nsp=r.substring(c,i)}else s.nsp="/";const u=r.charAt(i+1);if(u!==""&&Number(u)==u){const c=i+1;for(;++i;){const d=r.charAt(i);if(d==null||Number(d)!=d){--i;break}if(i===r.length)break}s.id=Number(r.substring(c,i+1))}if(r.charAt(++i)){const c=this.tryParse(r.substr(i));if(tm.isPayloadValid(s.type,c))s.data=c;else throw new Error("invalid payload")}return s}tryParse(r){try{return JSON.parse(r,this.reviver)}catch{return!1}}static isPayloadValid(r,i){switch(r){case Ce.CONNECT:return v1(i);case Ce.DISCONNECT:return i===void 0;case Ce.CONNECT_ERROR:return typeof i=="string"||v1(i);case Ce.EVENT:case Ce.BINARY_EVENT:return Array.isArray(i)&&(typeof i[0]=="number"||typeof i[0]=="string"&&E8.indexOf(i[0])===-1);case Ce.ACK:case Ce.BINARY_ACK:return Array.isArray(i)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}}class A8{constructor(r){this.packet=r,this.buffers=[],this.reconPack=r}takeBinaryData(r){if(this.buffers.push(r),this.buffers.length===this.reconPack.attachments){const i=_8(this.reconPack,this.buffers);return this.finishedReconstruction(),i}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}const x8=Object.freeze(Object.defineProperty({__proto__:null,Decoder:tm,Encoder:T8,get PacketType(){return Ce},protocol:S8},Symbol.toStringTag,{value:"Module"}));function In(t,r,i){return t.on(r,i),function(){t.off(r,i)}}const O8=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class N_ extends dt{constructor(r,i,s){super(),this.connected=!1,this.recovered=!1,this.receiveBuffer=[],this.sendBuffer=[],this._queue=[],this._queueSeq=0,this.ids=0,this.acks={},this.flags={},this.io=r,this.nsp=i,s&&s.auth&&(this.auth=s.auth),this._opts=Object.assign({},s),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;const r=this.io;this.subs=[In(r,"open",this.onopen.bind(this)),In(r,"packet",this.onpacket.bind(this)),In(r,"error",this.onerror.bind(this)),In(r,"close",this.onclose.bind(this))]}get active(){return!!this.subs}connect(){return this.connected?this:(this.subEvents(),this.io._reconnecting||this.io.open(),this.io._readyState==="open"&&this.onopen(),this)}open(){return this.connect()}send(...r){return r.unshift("message"),this.emit.apply(this,r),this}emit(r,...i){var s,u,c;if(O8.hasOwnProperty(r))throw new Error('"'+r.toString()+'" is a reserved event name');if(i.unshift(r),this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this._addToQueue(i),this;const d={type:Ce.EVENT,data:i};if(d.options={},d.options.compress=this.flags.compress!==!1,typeof i[i.length-1]=="function"){const b=this.ids++,E=i.pop();this._registerAckCallback(b,E),d.id=b}const h=(u=(s=this.io.engine)===null||s===void 0?void 0:s.transport)===null||u===void 0?void 0:u.writable,m=this.connected&&!(!((c=this.io.engine)===null||c===void 0)&&c._hasPingExpired());return this.flags.volatile&&!h||(m?(this.notifyOutgoingListeners(d),this.packet(d)):this.sendBuffer.push(d)),this.flags={},this}_registerAckCallback(r,i){var s;const u=(s=this.flags.timeout)!==null&&s!==void 0?s:this._opts.ackTimeout;if(u===void 0){this.acks[r]=i;return}const c=this.io.setTimeoutFn(()=>{delete this.acks[r];for(let h=0;h<this.sendBuffer.length;h++)this.sendBuffer[h].id===r&&this.sendBuffer.splice(h,1);i.call(this,new Error("operation has timed out"))},u),d=(...h)=>{this.io.clearTimeoutFn(c),i.apply(this,h)};d.withError=!0,this.acks[r]=d}emitWithAck(r,...i){return new Promise((s,u)=>{const c=(d,h)=>d?u(d):s(h);c.withError=!0,i.push(c),this.emit(r,...i)})}_addToQueue(r){let i;typeof r[r.length-1]=="function"&&(i=r.pop());const s={id:this._queueSeq++,tryCount:0,pending:!1,args:r,flags:Object.assign({fromQueue:!0},this.flags)};r.push((u,...c)=>s!==this._queue[0]?void 0:(u!==null?s.tryCount>this._opts.retries&&(this._queue.shift(),i&&i(u)):(this._queue.shift(),i&&i(null,...c)),s.pending=!1,this._drainQueue())),this._queue.push(s),this._drainQueue()}_drainQueue(r=!1){if(!this.connected||this._queue.length===0)return;const i=this._queue[0];i.pending&&!r||(i.pending=!0,i.tryCount++,this.flags=i.flags,this.emit.apply(this,i.args))}packet(r){r.nsp=this.nsp,this.io._packet(r)}onopen(){typeof this.auth=="function"?this.auth(r=>{this._sendConnectPacket(r)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(r){this.packet({type:Ce.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},r):r})}onerror(r){this.connected||this.emitReserved("connect_error",r)}onclose(r,i){this.connected=!1,delete this.id,this.emitReserved("disconnect",r,i),this._clearAcks()}_clearAcks(){Object.keys(this.acks).forEach(r=>{if(!this.sendBuffer.some(s=>String(s.id)===r)){const s=this.acks[r];delete this.acks[r],s.withError&&s.call(this,new Error("socket has been disconnected"))}})}onpacket(r){if(r.nsp===this.nsp)switch(r.type){case Ce.CONNECT:r.data&&r.data.sid?this.onconnect(r.data.sid,r.data.pid):this.emitReserved("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case Ce.EVENT:case Ce.BINARY_EVENT:this.onevent(r);break;case Ce.ACK:case Ce.BINARY_ACK:this.onack(r);break;case Ce.DISCONNECT:this.ondisconnect();break;case Ce.CONNECT_ERROR:this.destroy();const s=new Error(r.data.message);s.data=r.data.data,this.emitReserved("connect_error",s);break}}onevent(r){const i=r.data||[];r.id!=null&&i.push(this.ack(r.id)),this.connected?this.emitEvent(i):this.receiveBuffer.push(Object.freeze(i))}emitEvent(r){if(this._anyListeners&&this._anyListeners.length){const i=this._anyListeners.slice();for(const s of i)s.apply(this,r)}super.emit.apply(this,r),this._pid&&r.length&&typeof r[r.length-1]=="string"&&(this._lastOffset=r[r.length-1])}ack(r){const i=this;let s=!1;return function(...u){s||(s=!0,i.packet({type:Ce.ACK,id:r,data:u}))}}onack(r){const i=this.acks[r.id];typeof i=="function"&&(delete this.acks[r.id],i.withError&&r.data.unshift(null),i.apply(this,r.data))}onconnect(r,i){this.id=r,this.recovered=i&&this._pid===i,this._pid=i,this.connected=!0,this.emitBuffered(),this.emitReserved("connect"),this._drainQueue(!0)}emitBuffered(){this.receiveBuffer.forEach(r=>this.emitEvent(r)),this.receiveBuffer=[],this.sendBuffer.forEach(r=>{this.notifyOutgoingListeners(r),this.packet(r)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(r=>r()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:Ce.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(r){return this.flags.compress=r,this}get volatile(){return this.flags.volatile=!0,this}timeout(r){return this.flags.timeout=r,this}onAny(r){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(r),this}prependAny(r){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(r),this}offAny(r){if(!this._anyListeners)return this;if(r){const i=this._anyListeners;for(let s=0;s<i.length;s++)if(r===i[s])return i.splice(s,1),this}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}onAnyOutgoing(r){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.push(r),this}prependAnyOutgoing(r){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.unshift(r),this}offAnyOutgoing(r){if(!this._anyOutgoingListeners)return this;if(r){const i=this._anyOutgoingListeners;for(let s=0;s<i.length;s++)if(r===i[s])return i.splice(s,1),this}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(r){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length){const i=this._anyOutgoingListeners.slice();for(const s of i)s.apply(this,r.data)}}}function Mi(t){t=t||{},this.ms=t.min||100,this.max=t.max||1e4,this.factor=t.factor||2,this.jitter=t.jitter>0&&t.jitter<=1?t.jitter:0,this.attempts=0}Mi.prototype.duration=function(){var t=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var r=Math.random(),i=Math.floor(r*this.jitter*t);t=(Math.floor(r*10)&1)==0?t-i:t+i}return Math.min(t,this.max)|0};Mi.prototype.reset=function(){this.attempts=0};Mi.prototype.setMin=function(t){this.ms=t};Mi.prototype.setMax=function(t){this.max=t};Mi.prototype.setJitter=function(t){this.jitter=t};class gh extends dt{constructor(r,i){var s;super(),this.nsps={},this.subs=[],r&&typeof r=="object"&&(i=r,r=void 0),i=i||{},i.path=i.path||"/socket.io",this.opts=i,Au(this,i),this.reconnection(i.reconnection!==!1),this.reconnectionAttempts(i.reconnectionAttempts||1/0),this.reconnectionDelay(i.reconnectionDelay||1e3),this.reconnectionDelayMax(i.reconnectionDelayMax||5e3),this.randomizationFactor((s=i.randomizationFactor)!==null&&s!==void 0?s:.5),this.backoff=new Mi({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(i.timeout==null?2e4:i.timeout),this._readyState="closed",this.uri=r;const u=i.parser||x8;this.encoder=new u.Encoder,this.decoder=new u.Decoder,this._autoConnect=i.autoConnect!==!1,this._autoConnect&&this.open()}reconnection(r){return arguments.length?(this._reconnection=!!r,r||(this.skipReconnect=!0),this):this._reconnection}reconnectionAttempts(r){return r===void 0?this._reconnectionAttempts:(this._reconnectionAttempts=r,this)}reconnectionDelay(r){var i;return r===void 0?this._reconnectionDelay:(this._reconnectionDelay=r,(i=this.backoff)===null||i===void 0||i.setMin(r),this)}randomizationFactor(r){var i;return r===void 0?this._randomizationFactor:(this._randomizationFactor=r,(i=this.backoff)===null||i===void 0||i.setJitter(r),this)}reconnectionDelayMax(r){var i;return r===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=r,(i=this.backoff)===null||i===void 0||i.setMax(r),this)}timeout(r){return arguments.length?(this._timeout=r,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()}open(r){if(~this._readyState.indexOf("open"))return this;this.engine=new h8(this.uri,this.opts);const i=this.engine,s=this;this._readyState="opening",this.skipReconnect=!1;const u=In(i,"open",function(){s.onopen(),r&&r()}),c=h=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",h),r?r(h):this.maybeReconnectOnOpen()},d=In(i,"error",c);if(this._timeout!==!1){const h=this._timeout,m=this.setTimeoutFn(()=>{u(),c(new Error("timeout")),i.close()},h);this.opts.autoUnref&&m.unref(),this.subs.push(()=>{this.clearTimeoutFn(m)})}return this.subs.push(u),this.subs.push(d),this}connect(r){return this.open(r)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");const r=this.engine;this.subs.push(In(r,"ping",this.onping.bind(this)),In(r,"data",this.ondata.bind(this)),In(r,"error",this.onerror.bind(this)),In(r,"close",this.onclose.bind(this)),In(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(r){try{this.decoder.add(r)}catch(i){this.onclose("parse error",i)}}ondecoded(r){Tu(()=>{this.emitReserved("packet",r)},this.setTimeoutFn)}onerror(r){this.emitReserved("error",r)}socket(r,i){let s=this.nsps[r];return s?this._autoConnect&&!s.active&&s.connect():(s=new N_(this,r,i),this.nsps[r]=s),s}_destroy(r){const i=Object.keys(this.nsps);for(const s of i)if(this.nsps[s].active)return;this._close()}_packet(r){const i=this.encoder.encode(r);for(let s=0;s<i.length;s++)this.engine.write(i[s],r.options)}cleanup(){this.subs.forEach(r=>r()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close")}disconnect(){return this._close()}onclose(r,i){var s;this.cleanup(),(s=this.engine)===null||s===void 0||s.close(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",r,i),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;const r=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{const i=this.backoff.duration();this._reconnecting=!0;const s=this.setTimeoutFn(()=>{r.skipReconnect||(this.emitReserved("reconnect_attempt",r.backoff.attempts),!r.skipReconnect&&r.open(u=>{u?(r._reconnecting=!1,r.reconnect(),this.emitReserved("reconnect_error",u)):r.onreconnect()}))},i);this.opts.autoUnref&&s.unref(),this.subs.push(()=>{this.clearTimeoutFn(s)})}}onreconnect(){const r=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",r)}}const Xs={};function Ko(t,r){typeof t=="object"&&(r=t,t=void 0),r=r||{};const i=m8(t,r.path||"/socket.io"),s=i.source,u=i.id,c=i.path,d=Xs[u]&&c in Xs[u].nsps,h=r.forceNew||r["force new connection"]||r.multiplex===!1||d;let m;return h?m=new gh(s,r):(Xs[u]||(Xs[u]=new gh(s,r)),m=Xs[u]),i.query&&!r.query&&(r.query=i.queryKey),m.socket(i.path,r)}Object.assign(Ko,{Manager:gh,Socket:N_,io:Ko,connect:Ko});const R8=[Te.ActionTypes.MESSAGE_TO_GUEST,Te.ActionTypes.EVENT_TO_GUEST,Te.ActionTypes.TYPING_ON,Te.ActionTypes.TYPING_OFF,Te.ActionTypes.RESTART_CHAT_REQUEST,...RO,...Sx,"@@localize/SET_ACTIVE_LANGUAGE","@@localize/ADD_TRANSLATION_FOR_LANGUAGE"],w8=({dispatch:t,getState:r})=>i=>{let s=null;return u=>{const c=i(u);if(u.type===Gh){s?.disconnect(),t(NO());const d=`/chat?${fu.stringify(u.querystrings)}`;s=Ko(`/${u.clientName}${d}`),s.on("action",t),s.on("connect",()=>t(MO())),s.on("disconnect",()=>t(DO())),s.on("reconnect",()=>t(LO())),s.on("set-translations",(h,m)=>{t(TM({language:h,messages:yM(h,m)}))}),s.on("set-settings",h=>{t(OM(h))}),s.on("enable-conversation-rating",h=>t(Rx(h))),s.on("speech-transcription",h=>t(Ax(h))),s.on("restore-client-state",h=>{t(CO(h.sessionId)),t(Cx(h.messages))}),s.on("expand-window",({devices:h,initial:m=!1})=>{t({type:fv,devices:h,initial:m})}),s.on("restart-chat",()=>{t(bu(u.clientName,u.querystrings))}),s.on("login-success",h=>{t(vO({loginToken:h.loginToken}))})}else if(u.type==="start-screen/requestLogin")s?.emit("login-requested",u.payload);else if(u.type===gu)s?.emit("start-chat",u.payload);else if(u.type===yu)s?.emit("terminate-session",u.payload);else if(u.type===Ex)s?.emit("get-started",JSON.stringify(u));else if(u.type===Ch)s?.emit("audio-message",u.buffer);else if(u.type===Te.ActionTypes.CONVERSATION_RATING_FROM_GUEST)s?.emit("conversation-rating",u.payload);else if(u.type===hv){const{connection:{sessionId:d}}=r();window.location.href=`/transcript-pdf/${d}`}else R8.indexOf(u.type)===-1&&u.meta===void 0&&s&&s.emit("action",JSON.stringify(u));return c}},M_=t_(),C8={...NM(M_),intl:d_},yh=iO({middleware:t=>t().concat(w8),reducer:wM,preloadedState:C8});yh.subscribe(uM(()=>{const t=yh.getState();MM(M_,{connection:t.connection,startScreen:t.startScreen})},1e3));const N8=document.getElementById("root"),M8=X2.createRoot(N8);M8.render(y.jsx(YS,{store:yh,children:y.jsx(sM,{})}));
124
+ //# sourceMappingURL=index-DI-53Hfq.js.map