@botfabrik/engine-webclient 4.115.8 → 4.115.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client/assets/index-CQTbIPRX.js +78 -0
- package/dist/client/assets/index-CQTbIPRX.js.map +1 -0
- package/dist/client/index.html +1 -1
- package/dist/embed/bundle.js +1 -1
- package/package.json +5 -5
- package/dist/client/assets/index-DyOSmgo1.js +0 -78
- package/dist/client/assets/index-DyOSmgo1.js.map +0 -1
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,o=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),s=(e,n)=>{let r={};for(var i in e)t(r,i,{get:e[i],enumerable:!0});return n||t(r,Symbol.toStringTag,{value:`Module`}),r},c=(e,i,o,s)=>{if(i&&typeof i==`object`||typeof i==`function`)for(var c=r(i),l=0,u=c.length,d;l<u;l++)d=c[l],!a.call(e,d)&&d!==o&&t(e,d,{get:(e=>i[e]).bind(null,d),enumerable:!(s=n(i,d))||s.enumerable});return e},l=(n,r,a)=>(a=n==null?{}:e(i(n)),c(r||!n||!n.__esModule?t(a,`default`,{value:n,enumerable:!0}):a,n));(function(){let e=document.createElement(`link`).relList;if(e&&e.supports&&e.supports(`modulepreload`))return;for(let e of document.querySelectorAll(`link[rel="modulepreload"]`))n(e);new MutationObserver(e=>{for(let t of e)if(t.type===`childList`)for(let e of t.addedNodes)e.tagName===`LINK`&&e.rel===`modulepreload`&&n(e)}).observe(document,{childList:!0,subtree:!0});function t(e){let t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),e.crossOrigin===`use-credentials`?t.credentials=`include`:e.crossOrigin===`anonymous`?t.credentials=`omit`:t.credentials=`same-origin`,t}function n(e){if(e.ep)return;e.ep=!0;let n=t(e);fetch(e.href,n)}})();var u=o((e=>{function t(e,t){var n=e.length;e.push(t);a:for(;0<n;){var r=n-1>>>1,a=e[r];if(0<i(a,t))e[r]=t,e[n]=a,n=r;else break a}}function n(e){return e.length===0?null:e[0]}function r(e){if(e.length===0)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;a:for(var r=0,a=e.length,o=a>>>1;r<o;){var s=2*(r+1)-1,c=e[s],l=s+1,u=e[l];if(0>i(c,n))l<a&&0>i(u,c)?(e[r]=u,e[l]=n,r=l):(e[r]=c,e[s]=n,r=s);else if(l<a&&0>i(u,n))e[r]=u,e[l]=n,r=l;else break a}}return t}function i(e,t){var n=e.sortIndex-t.sortIndex;return n===0?e.id-t.id:n}if(e.unstable_now=void 0,typeof performance==`object`&&typeof performance.now==`function`){var a=performance;e.unstable_now=function(){return a.now()}}else{var o=Date,s=o.now();e.unstable_now=function(){return o.now()-s}}var c=[],l=[],u=1,d=null,f=3,p=!1,m=!1,h=!1,g=!1,_=typeof setTimeout==`function`?setTimeout:null,v=typeof clearTimeout==`function`?clearTimeout:null,y=typeof setImmediate<`u`?setImmediate:null;function b(e){for(var i=n(l);i!==null;){if(i.callback===null)r(l);else if(i.startTime<=e)r(l),i.sortIndex=i.expirationTime,t(c,i);else break;i=n(l)}}function x(e){if(h=!1,b(e),!m)if(n(c)!==null)m=!0,S||(S=!0,O());else{var t=n(l);t!==null&&ne(x,t.startTime-e)}}var S=!1,C=-1,w=5,T=-1;function E(){return g?!0:!(e.unstable_now()-T<w)}function D(){if(g=!1,S){var t=e.unstable_now();T=t;var i=!0;try{a:{m=!1,h&&(h=!1,v(C),C=-1),p=!0;var a=f;try{b:{for(b(t),d=n(c);d!==null&&!(d.expirationTime>t&&E());){var o=d.callback;if(typeof o==`function`){d.callback=null,f=d.priorityLevel;var s=o(d.expirationTime<=t);if(t=e.unstable_now(),typeof s==`function`){d.callback=s,b(t),i=!0;break b}d===n(c)&&r(c),b(t)}else r(c);d=n(c)}if(d!==null)i=!0;else{var u=n(l);u!==null&&ne(x,u.startTime-t),i=!1}}break a}finally{d=null,f=a,p=!1}i=void 0}}finally{i?O():S=!1}}}var O;if(typeof y==`function`)O=function(){y(D)};else if(typeof MessageChannel<`u`){var ee=new MessageChannel,te=ee.port2;ee.port1.onmessage=D,O=function(){te.postMessage(null)}}else O=function(){_(D,0)};function ne(t,n){C=_(function(){t(e.unstable_now())},n)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(e){e.callback=null},e.unstable_forceFrameRate=function(e){0>e||125<e?console.error(`forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported`):w=0<e?Math.floor(1e3/e):5},e.unstable_getCurrentPriorityLevel=function(){return f},e.unstable_next=function(e){switch(f){case 1:case 2:case 3:var t=3;break;default:t=f}var n=f;f=t;try{return e()}finally{f=n}},e.unstable_requestPaint=function(){g=!0},e.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=f;f=e;try{return t()}finally{f=n}},e.unstable_scheduleCallback=function(r,i,a){var o=e.unstable_now();switch(typeof a==`object`&&a?(a=a.delay,a=typeof a==`number`&&0<a?o+a:o):a=o,r){case 1:var s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}return s=a+s,r={id:u++,callback:i,priorityLevel:r,startTime:a,expirationTime:s,sortIndex:-1},a>o?(r.sortIndex=a,t(l,r),n(c)===null&&r===n(l)&&(h?(v(C),C=-1):h=!0,ne(x,a-o))):(r.sortIndex=s,t(c,r),m||p||(m=!0,S||(S=!0,O()))),r},e.unstable_shouldYield=E,e.unstable_wrapCallback=function(e){var t=f;return function(){var n=f;f=t;try{return e.apply(this,arguments)}finally{f=n}}}})),d=o(((e,t)=>{t.exports=u()})),f=o((e=>{var t=Symbol.for(`react.transitional.element`),n=Symbol.for(`react.portal`),r=Symbol.for(`react.fragment`),i=Symbol.for(`react.strict_mode`),a=Symbol.for(`react.profiler`),o=Symbol.for(`react.consumer`),s=Symbol.for(`react.context`),c=Symbol.for(`react.forward_ref`),l=Symbol.for(`react.suspense`),u=Symbol.for(`react.memo`),d=Symbol.for(`react.lazy`),f=Symbol.for(`react.activity`),p=Symbol.iterator;function m(e){return typeof e!=`object`||!e?null:(e=p&&e[p]||e[`@@iterator`],typeof e==`function`?e:null)}var h={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},g=Object.assign,_={};function v(e,t,n){this.props=e,this.context=t,this.refs=_,this.updater=n||h}v.prototype.isReactComponent={},v.prototype.setState=function(e,t){if(typeof e!=`object`&&typeof e!=`function`&&e!=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,e,t,`setState`)},v.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,`forceUpdate`)};function y(){}y.prototype=v.prototype;function b(e,t,n){this.props=e,this.context=t,this.refs=_,this.updater=n||h}var x=b.prototype=new y;x.constructor=b,g(x,v.prototype),x.isPureReactComponent=!0;var S=Array.isArray;function C(){}var w={H:null,A:null,T:null,S:null},T=Object.prototype.hasOwnProperty;function E(e,n,r){var i=r.ref;return{$$typeof:t,type:e,key:n,ref:i===void 0?null:i,props:r}}function D(e,t){return E(e.type,t,e.props)}function O(e){return typeof e==`object`&&!!e&&e.$$typeof===t}function ee(e){var t={"=":`=0`,":":`=2`};return`$`+e.replace(/[=:]/g,function(e){return t[e]})}var te=/\/+/g;function ne(e,t){return typeof e==`object`&&e&&e.key!=null?ee(``+e.key):t.toString(36)}function k(e){switch(e.status){case`fulfilled`:return e.value;case`rejected`:throw e.reason;default:switch(typeof e.status==`string`?e.then(C,C):(e.status=`pending`,e.then(function(t){e.status===`pending`&&(e.status=`fulfilled`,e.value=t)},function(t){e.status===`pending`&&(e.status=`rejected`,e.reason=t)})),e.status){case`fulfilled`:return e.value;case`rejected`:throw e.reason}}throw e}function re(e,r,i,a,o){var s=typeof e;(s===`undefined`||s===`boolean`)&&(e=null);var c=!1;if(e===null)c=!0;else switch(s){case`bigint`:case`string`:case`number`:c=!0;break;case`object`:switch(e.$$typeof){case t:case n:c=!0;break;case d:return c=e._init,re(c(e._payload),r,i,a,o)}}if(c)return o=o(e),c=a===``?`.`+ne(e,0):a,S(o)?(i=``,c!=null&&(i=c.replace(te,`$&/`)+`/`),re(o,r,i,``,function(e){return e})):o!=null&&(O(o)&&(o=D(o,i+(o.key==null||e&&e.key===o.key?``:(``+o.key).replace(te,`$&/`)+`/`)+c)),r.push(o)),1;c=0;var l=a===``?`.`:a+`:`;if(S(e))for(var u=0;u<e.length;u++)a=e[u],s=l+ne(a,u),c+=re(a,r,i,s,o);else if(u=m(e),typeof u==`function`)for(e=u.call(e),u=0;!(a=e.next()).done;)a=a.value,s=l+ne(a,u++),c+=re(a,r,i,s,o);else if(s===`object`){if(typeof e.then==`function`)return re(k(e),r,i,a,o);throw r=String(e),Error(`Objects are not valid as a React child (found: `+(r===`[object Object]`?`object with keys {`+Object.keys(e).join(`, `)+`}`:r)+`). If you meant to render a collection of children, use an array instead.`)}return c}function ie(e,t,n){if(e==null)return e;var r=[],i=0;return re(e,r,``,``,function(e){return t.call(n,e,i++)}),r}function ae(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(t){(e._status===0||e._status===-1)&&(e._status=1,e._result=t)},function(t){(e._status===0||e._status===-1)&&(e._status=2,e._result=t)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var A=typeof reportError==`function`?reportError:function(e){if(typeof window==`object`&&typeof window.ErrorEvent==`function`){var t=new window.ErrorEvent(`error`,{bubbles:!0,cancelable:!0,message:typeof e==`object`&&e&&typeof e.message==`string`?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process==`object`&&typeof process.emit==`function`){process.emit(`uncaughtException`,e);return}console.error(e)},j={map:ie,forEach:function(e,t,n){ie(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return ie(e,function(){t++}),t},toArray:function(e){return ie(e,function(e){return e})||[]},only:function(e){if(!O(e))throw Error(`React.Children.only expected to receive a single React element child.`);return e}};e.Activity=f,e.Children=j,e.Component=v,e.Fragment=r,e.Profiler=a,e.PureComponent=b,e.StrictMode=i,e.Suspense=l,e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=w,e.__COMPILER_RUNTIME={__proto__:null,c:function(e){return w.H.useMemoCache(e)}},e.cache=function(e){return function(){return e.apply(null,arguments)}},e.cacheSignal=function(){return null},e.cloneElement=function(e,t,n){if(e==null)throw Error(`The argument must be a React element, but you passed `+e+`.`);var r=g({},e.props),i=e.key;if(t!=null)for(a in t.key!==void 0&&(i=``+t.key),t)!T.call(t,a)||a===`key`||a===`__self`||a===`__source`||a===`ref`&&t.ref===void 0||(r[a]=t[a]);var a=arguments.length-2;if(a===1)r.children=n;else if(1<a){for(var o=Array(a),s=0;s<a;s++)o[s]=arguments[s+2];r.children=o}return E(e.type,i,r)},e.createContext=function(e){return e={$$typeof:s,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider=e,e.Consumer={$$typeof:o,_context:e},e},e.createElement=function(e,t,n){var r,i={},a=null;if(t!=null)for(r in t.key!==void 0&&(a=``+t.key),t)T.call(t,r)&&r!==`key`&&r!==`__self`&&r!==`__source`&&(i[r]=t[r]);var o=arguments.length-2;if(o===1)i.children=n;else if(1<o){for(var s=Array(o),c=0;c<o;c++)s[c]=arguments[c+2];i.children=s}if(e&&e.defaultProps)for(r in o=e.defaultProps,o)i[r]===void 0&&(i[r]=o[r]);return E(e,a,i)},e.createRef=function(){return{current:null}},e.forwardRef=function(e){return{$$typeof:c,render:e}},e.isValidElement=O,e.lazy=function(e){return{$$typeof:d,_payload:{_status:-1,_result:e},_init:ae}},e.memo=function(e,t){return{$$typeof:u,type:e,compare:t===void 0?null:t}},e.startTransition=function(e){var t=w.T,n={};w.T=n;try{var r=e(),i=w.S;i!==null&&i(n,r),typeof r==`object`&&r&&typeof r.then==`function`&&r.then(C,A)}catch(e){A(e)}finally{t!==null&&n.types!==null&&(t.types=n.types),w.T=t}},e.unstable_useCacheRefresh=function(){return w.H.useCacheRefresh()},e.use=function(e){return w.H.use(e)},e.useActionState=function(e,t,n){return w.H.useActionState(e,t,n)},e.useCallback=function(e,t){return w.H.useCallback(e,t)},e.useContext=function(e){return w.H.useContext(e)},e.useDebugValue=function(){},e.useDeferredValue=function(e,t){return w.H.useDeferredValue(e,t)},e.useEffect=function(e,t){return w.H.useEffect(e,t)},e.useEffectEvent=function(e){return w.H.useEffectEvent(e)},e.useId=function(){return w.H.useId()},e.useImperativeHandle=function(e,t,n){return w.H.useImperativeHandle(e,t,n)},e.useInsertionEffect=function(e,t){return w.H.useInsertionEffect(e,t)},e.useLayoutEffect=function(e,t){return w.H.useLayoutEffect(e,t)},e.useMemo=function(e,t){return w.H.useMemo(e,t)},e.useOptimistic=function(e,t){return w.H.useOptimistic(e,t)},e.useReducer=function(e,t,n){return w.H.useReducer(e,t,n)},e.useRef=function(e){return w.H.useRef(e)},e.useState=function(e){return w.H.useState(e)},e.useSyncExternalStore=function(e,t,n){return w.H.useSyncExternalStore(e,t,n)},e.useTransition=function(){return w.H.useTransition()},e.version=`19.2.4`})),p=o(((e,t)=>{t.exports=f()})),m=o((e=>{var t=p();function n(e){var t=`https://react.dev/errors/`+e;if(1<arguments.length){t+=`?args[]=`+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+=`&args[]=`+encodeURIComponent(arguments[n])}return`Minified React error #`+e+`; visit `+t+` for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`}function r(){}var i={d:{f:r,r:function(){throw Error(n(522))},D:r,C:r,L:r,m:r,X:r,S:r,M:r},p:0,findDOMNode:null},a=Symbol.for(`react.portal`);function o(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:a,key:r==null?null:``+r,children:e,containerInfo:t,implementation:n}}var s=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function c(e,t){if(e===`font`)return``;if(typeof t==`string`)return t===`use-credentials`?t:``}e.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=i,e.createPortal=function(e,t){var r=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)throw Error(n(299));return o(e,t,null,r)},e.flushSync=function(e){var t=s.T,n=i.p;try{if(s.T=null,i.p=2,e)return e()}finally{s.T=t,i.p=n,i.d.f()}},e.preconnect=function(e,t){typeof e==`string`&&(t?(t=t.crossOrigin,t=typeof t==`string`?t===`use-credentials`?t:``:void 0):t=null,i.d.C(e,t))},e.prefetchDNS=function(e){typeof e==`string`&&i.d.D(e)},e.preinit=function(e,t){if(typeof e==`string`&&t&&typeof t.as==`string`){var n=t.as,r=c(n,t.crossOrigin),a=typeof t.integrity==`string`?t.integrity:void 0,o=typeof t.fetchPriority==`string`?t.fetchPriority:void 0;n===`style`?i.d.S(e,typeof t.precedence==`string`?t.precedence:void 0,{crossOrigin:r,integrity:a,fetchPriority:o}):n===`script`&&i.d.X(e,{crossOrigin:r,integrity:a,fetchPriority:o,nonce:typeof t.nonce==`string`?t.nonce:void 0})}},e.preinitModule=function(e,t){if(typeof e==`string`)if(typeof t==`object`&&t){if(t.as==null||t.as===`script`){var n=c(t.as,t.crossOrigin);i.d.M(e,{crossOrigin:n,integrity:typeof t.integrity==`string`?t.integrity:void 0,nonce:typeof t.nonce==`string`?t.nonce:void 0})}}else t??i.d.M(e)},e.preload=function(e,t){if(typeof e==`string`&&typeof t==`object`&&t&&typeof t.as==`string`){var n=t.as,r=c(n,t.crossOrigin);i.d.L(e,n,{crossOrigin:r,integrity:typeof t.integrity==`string`?t.integrity:void 0,nonce:typeof t.nonce==`string`?t.nonce:void 0,type:typeof t.type==`string`?t.type:void 0,fetchPriority:typeof t.fetchPriority==`string`?t.fetchPriority:void 0,referrerPolicy:typeof t.referrerPolicy==`string`?t.referrerPolicy:void 0,imageSrcSet:typeof t.imageSrcSet==`string`?t.imageSrcSet:void 0,imageSizes:typeof t.imageSizes==`string`?t.imageSizes:void 0,media:typeof t.media==`string`?t.media:void 0})}},e.preloadModule=function(e,t){if(typeof e==`string`)if(t){var n=c(t.as,t.crossOrigin);i.d.m(e,{as:typeof t.as==`string`&&t.as!==`script`?t.as:void 0,crossOrigin:n,integrity:typeof t.integrity==`string`?t.integrity:void 0})}else i.d.m(e)},e.requestFormReset=function(e){i.d.r(e)},e.unstable_batchedUpdates=function(e,t){return e(t)},e.useFormState=function(e,t,n){return s.H.useFormState(e,t,n)},e.useFormStatus=function(){return s.H.useHostTransitionStatus()},e.version=`19.2.4`})),h=o(((e,t)=>{function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>`u`||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!=`function`))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}n(),t.exports=m()})),g=o((e=>{var t=d(),n=p(),r=h();function i(e){var t=`https://react.dev/errors/`+e;if(1<arguments.length){t+=`?args[]=`+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+=`&args[]=`+encodeURIComponent(arguments[n])}return`Minified React error #`+e+`; visit `+t+` for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`}function a(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function o(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function s(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function c(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function l(e){if(o(e)!==e)throw Error(i(188))}function u(e){var t=e.alternate;if(!t){if(t=o(e),t===null)throw Error(i(188));return t===e?e:null}for(var n=e,r=t;;){var a=n.return;if(a===null)break;var s=a.alternate;if(s===null){if(r=a.return,r!==null){n=r;continue}break}if(a.child===s.child){for(s=a.child;s;){if(s===n)return l(a),e;if(s===r)return l(a),t;s=s.sibling}throw Error(i(188))}if(n.return!==r.return)n=a,r=s;else{for(var c=!1,u=a.child;u;){if(u===n){c=!0,n=a,r=s;break}if(u===r){c=!0,r=a,n=s;break}u=u.sibling}if(!c){for(u=s.child;u;){if(u===n){c=!0,n=s,r=a;break}if(u===r){c=!0,r=s,n=a;break}u=u.sibling}if(!c)throw Error(i(189))}}if(n.alternate!==r)throw Error(i(190))}if(n.tag!==3)throw Error(i(188));return n.stateNode.current===n?e:t}function f(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=f(e),t!==null)return t;e=e.sibling}return null}var m=Object.assign,g=Symbol.for(`react.element`),_=Symbol.for(`react.transitional.element`),v=Symbol.for(`react.portal`),y=Symbol.for(`react.fragment`),b=Symbol.for(`react.strict_mode`),x=Symbol.for(`react.profiler`),S=Symbol.for(`react.consumer`),C=Symbol.for(`react.context`),w=Symbol.for(`react.forward_ref`),T=Symbol.for(`react.suspense`),E=Symbol.for(`react.suspense_list`),D=Symbol.for(`react.memo`),O=Symbol.for(`react.lazy`),ee=Symbol.for(`react.activity`),te=Symbol.for(`react.memo_cache_sentinel`),ne=Symbol.iterator;function k(e){return typeof e!=`object`||!e?null:(e=ne&&e[ne]||e[`@@iterator`],typeof e==`function`?e:null)}var re=Symbol.for(`react.client.reference`);function ie(e){if(e==null)return null;if(typeof e==`function`)return e.$$typeof===re?null:e.displayName||e.name||null;if(typeof e==`string`)return e;switch(e){case y:return`Fragment`;case x:return`Profiler`;case b:return`StrictMode`;case T:return`Suspense`;case E:return`SuspenseList`;case ee:return`Activity`}if(typeof e==`object`)switch(e.$$typeof){case v:return`Portal`;case C:return e.displayName||`Context`;case S:return(e._context.displayName||`Context`)+`.Consumer`;case w:var t=e.render;return e=e.displayName,e||=(e=t.displayName||t.name||``,e===``?`ForwardRef`:`ForwardRef(`+e+`)`),e;case D:return t=e.displayName||null,t===null?ie(e.type)||`Memo`:t;case O:t=e._payload,e=e._init;try{return ie(e(t))}catch{}}return null}var ae=Array.isArray,A=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,j=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,oe={pending:!1,data:null,method:null,action:null},M=[],se=-1;function N(e){return{current:e}}function P(e){0>se||(e.current=M[se],M[se]=null,se--)}function F(e,t){se++,M[se]=e.current,e.current=t}var I=N(null),ce=N(null),le=N(null),ue=N(null);function de(e,t){switch(F(le,t),F(ce,e),F(I,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Vd(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Vd(t),e=Hd(t,e);else switch(e){case`svg`:e=1;break;case`math`:e=2;break;default:e=0}}P(I),F(I,e)}function fe(){P(I),P(ce),P(le)}function L(e){e.memoizedState!==null&&F(ue,e);var t=I.current,n=Hd(t,e.type);t!==n&&(F(ce,e),F(I,n))}function pe(e){ce.current===e&&(P(I),P(ce)),ue.current===e&&(P(ue),Qf._currentValue=oe)}var me,he;function ge(e){if(me===void 0)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);me=t&&t[1]||``,he=-1<e.stack.indexOf(`
|
|
2
|
+
at`)?` (<anonymous>)`:-1<e.stack.indexOf(`@`)?`@unknown:0:0`:``}return`
|
|
3
|
+
`+me+e+he}var _e=!1;function ve(e,t){if(!e||_e)return``;_e=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var r={DetermineComponentFrameRoot:function(){try{if(t){var n=function(){throw Error()};if(Object.defineProperty(n.prototype,`props`,{set:function(){throw Error()}}),typeof Reflect==`object`&&Reflect.construct){try{Reflect.construct(n,[])}catch(e){var r=e}Reflect.construct(e,[],n)}else{try{n.call()}catch(e){r=e}e.call(n.prototype)}}else{try{throw Error()}catch(e){r=e}(n=e())&&typeof n.catch==`function`&&n.catch(function(){})}}catch(e){if(e&&r&&typeof e.stack==`string`)return[e.stack,r.stack]}return[null,null]}};r.DetermineComponentFrameRoot.displayName=`DetermineComponentFrameRoot`;var i=Object.getOwnPropertyDescriptor(r.DetermineComponentFrameRoot,`name`);i&&i.configurable&&Object.defineProperty(r.DetermineComponentFrameRoot,`name`,{value:`DetermineComponentFrameRoot`});var a=r.DetermineComponentFrameRoot(),o=a[0],s=a[1];if(o&&s){var c=o.split(`
|
|
4
|
+
`),l=s.split(`
|
|
5
|
+
`);for(i=r=0;r<c.length&&!c[r].includes(`DetermineComponentFrameRoot`);)r++;for(;i<l.length&&!l[i].includes(`DetermineComponentFrameRoot`);)i++;if(r===c.length||i===l.length)for(r=c.length-1,i=l.length-1;1<=r&&0<=i&&c[r]!==l[i];)i--;for(;1<=r&&0<=i;r--,i--)if(c[r]!==l[i]){if(r!==1||i!==1)do if(r--,i--,0>i||c[r]!==l[i]){var u=`
|
|
6
|
+
`+c[r].replace(` at new `,` at `);return e.displayName&&u.includes(`<anonymous>`)&&(u=u.replace(`<anonymous>`,e.displayName)),u}while(1<=r&&0<=i);break}}}finally{_e=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:``)?ge(n):``}function ye(e,t){switch(e.tag){case 26:case 27:case 5:return ge(e.type);case 16:return ge(`Lazy`);case 13:return e.child!==t&&t!==null?ge(`Suspense Fallback`):ge(`Suspense`);case 19:return ge(`SuspenseList`);case 0:case 15:return ve(e.type,!1);case 11:return ve(e.type.render,!1);case 1:return ve(e.type,!0);case 31:return ge(`Activity`);default:return``}}function be(e){try{var t=``,n=null;do t+=ye(e,n),n=e,e=e.return;while(e);return t}catch(e){return`
|
|
7
|
+
Error generating stack: `+e.message+`
|
|
8
|
+
`+e.stack}}var xe=Object.prototype.hasOwnProperty,Se=t.unstable_scheduleCallback,Ce=t.unstable_cancelCallback,we=t.unstable_shouldYield,Te=t.unstable_requestPaint,Ee=t.unstable_now,De=t.unstable_getCurrentPriorityLevel,Oe=t.unstable_ImmediatePriority,ke=t.unstable_UserBlockingPriority,Ae=t.unstable_NormalPriority,je=t.unstable_LowPriority,Me=t.unstable_IdlePriority,Ne=t.log,Pe=t.unstable_setDisableYieldValue,Fe=null,Ie=null;function Le(e){if(typeof Ne==`function`&&Pe(e),Ie&&typeof Ie.setStrictMode==`function`)try{Ie.setStrictMode(Fe,e)}catch{}}var Re=Math.clz32?Math.clz32:Ve,ze=Math.log,Be=Math.LN2;function Ve(e){return e>>>=0,e===0?32:31-(ze(e)/Be|0)|0}var He=256,Ue=262144,We=4194304;function Ge(e){var t=e&42;if(t!==0)return t;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:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;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 Ke(e,t,n){var r=e.pendingLanes;if(r===0)return 0;var i=0,a=e.suspendedLanes,o=e.pingedLanes;e=e.warmLanes;var s=r&134217727;return s===0?(s=r&~a,s===0?o===0?n||(n=r&~e,n!==0&&(i=Ge(n))):i=Ge(o):i=Ge(s)):(r=s&~a,r===0?(o&=s,o===0?n||(n=s&~e,n!==0&&(i=Ge(n))):i=Ge(o)):i=Ge(r)),i===0?0:t!==0&&t!==i&&(t&a)===0&&(a=i&-i,n=t&-t,a>=n||a===32&&n&4194048)?t:i}function qe(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function Je(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+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 t+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 Ye(){var e=We;return We<<=1,!(We&62914560)&&(We=4194304),e}function Xe(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Ze(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Qe(e,t,n,r,i,a){var o=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var s=e.entanglements,c=e.expirationTimes,l=e.hiddenUpdates;for(n=o&~n;0<n;){var u=31-Re(n),d=1<<u;s[u]=0,c[u]=-1;var f=l[u];if(f!==null)for(l[u]=null,u=0;u<f.length;u++){var p=f[u];p!==null&&(p.lane&=-536870913)}n&=~d}r!==0&&$e(e,r,0),a!==0&&i===0&&e.tag!==0&&(e.suspendedLanes|=a&~(o&~t))}function $e(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var r=31-Re(t);e.entangledLanes|=t,e.entanglements[r]=e.entanglements[r]|1073741824|n&261930}function et(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Re(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}function tt(e,t){var n=t&-t;return n=n&42?1:nt(n),(n&(e.suspendedLanes|t))===0?n:0}function nt(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 rt(e){return e&=-e,2<e?8<e?e&134217727?32:268435456:8:2}function R(){var e=j.p;return e===0?(e=window.event,e===void 0?32:mp(e.type)):e}function it(e,t){var n=j.p;try{return j.p=e,t()}finally{j.p=n}}var at=Math.random().toString(36).slice(2),ot=`__reactFiber$`+at,st=`__reactProps$`+at,ct=`__reactContainer$`+at,lt=`__reactEvents$`+at,ut=`__reactListeners$`+at,dt=`__reactHandles$`+at,ft=`__reactResources$`+at,pt=`__reactMarker$`+at;function mt(e){delete e[ot],delete e[st],delete e[lt],delete e[ut],delete e[dt]}function ht(e){var t=e[ot];if(t)return t;for(var n=e.parentNode;n;){if(t=n[ct]||n[ot]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=df(e);e!==null;){if(n=e[ot])return n;e=df(e)}return t}e=n,n=e.parentNode}return null}function gt(e){if(e=e[ot]||e[ct]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function _t(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(i(33))}function vt(e){var t=e[ft];return t||=e[ft]={hoistableStyles:new Map,hoistableScripts:new Map},t}function yt(e){e[pt]=!0}var bt=new Set,xt={};function St(e,t){Ct(e,t),Ct(e+`Capture`,t)}function Ct(e,t){for(xt[e]=t,e=0;e<t.length;e++)bt.add(t[e])}var wt=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]*$`),Tt={},Et={};function Dt(e){return xe.call(Et,e)?!0:xe.call(Tt,e)?!1:wt.test(e)?Et[e]=!0:(Tt[e]=!0,!1)}function Ot(e,t,n){if(Dt(t))if(n===null)e.removeAttribute(t);else{switch(typeof n){case`undefined`:case`function`:case`symbol`:e.removeAttribute(t);return;case`boolean`:var r=t.toLowerCase().slice(0,5);if(r!==`data-`&&r!==`aria-`){e.removeAttribute(t);return}}e.setAttribute(t,``+n)}}function kt(e,t,n){if(n===null)e.removeAttribute(t);else{switch(typeof n){case`undefined`:case`function`:case`symbol`:case`boolean`:e.removeAttribute(t);return}e.setAttribute(t,``+n)}}function At(e,t,n,r){if(r===null)e.removeAttribute(n);else{switch(typeof r){case`undefined`:case`function`:case`symbol`:case`boolean`:e.removeAttribute(n);return}e.setAttributeNS(t,n,``+r)}}function jt(e){switch(typeof e){case`bigint`:case`boolean`:case`number`:case`string`:case`undefined`:return e;case`object`:return e;default:return``}}function Mt(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()===`input`&&(t===`checkbox`||t===`radio`)}function Nt(e,t,n){var r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&r!==void 0&&typeof r.get==`function`&&typeof r.set==`function`){var i=r.get,a=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(e){n=``+e,a.call(this,e)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(e){n=``+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Pt(e){if(!e._valueTracker){var t=Mt(e)?`checked`:`value`;e._valueTracker=Nt(e,t,``+e[t])}}function Ft(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r=``;return e&&(r=Mt(e)?e.checked?`true`:`false`:e.value),e=r,e===n?!1:(t.setValue(e),!0)}function It(e){if(e||=typeof document<`u`?document:void 0,e===void 0)return null;try{return e.activeElement||e.body}catch{return e.body}}var Lt=/[\n"\\]/g;function Rt(e){return e.replace(Lt,function(e){return`\\`+e.charCodeAt(0).toString(16)+` `})}function zt(e,t,n,r,i,a,o,s){e.name=``,o!=null&&typeof o!=`function`&&typeof o!=`symbol`&&typeof o!=`boolean`?e.type=o:e.removeAttribute(`type`),t==null?o!==`submit`&&o!==`reset`||e.removeAttribute(`value`):o===`number`?(t===0&&e.value===``||e.value!=t)&&(e.value=``+jt(t)):e.value!==``+jt(t)&&(e.value=``+jt(t)),t==null?n==null?r!=null&&e.removeAttribute(`value`):Vt(e,o,jt(n)):Vt(e,o,jt(t)),i==null&&a!=null&&(e.defaultChecked=!!a),i!=null&&(e.checked=i&&typeof i!=`function`&&typeof i!=`symbol`),s!=null&&typeof s!=`function`&&typeof s!=`symbol`&&typeof s!=`boolean`?e.name=``+jt(s):e.removeAttribute(`name`)}function Bt(e,t,n,r,i,a,o,s){if(a!=null&&typeof a!=`function`&&typeof a!=`symbol`&&typeof a!=`boolean`&&(e.type=a),t!=null||n!=null){if(!(a!==`submit`&&a!==`reset`||t!=null)){Pt(e);return}n=n==null?``:``+jt(n),t=t==null?n:``+jt(t),s||t===e.value||(e.value=t),e.defaultValue=t}r??=i,r=typeof r!=`function`&&typeof r!=`symbol`&&!!r,e.checked=s?e.checked:!!r,e.defaultChecked=!!r,o!=null&&typeof o!=`function`&&typeof o!=`symbol`&&typeof o!=`boolean`&&(e.name=o),Pt(e)}function Vt(e,t,n){t===`number`&&It(e.ownerDocument)===e||e.defaultValue===``+n||(e.defaultValue=``+n)}function Ht(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t[`$`+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty(`$`+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=``+jt(n),t=null,i=0;i<e.length;i++){if(e[i].value===n){e[i].selected=!0,r&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function Ut(e,t,n){if(t!=null&&(t=``+jt(t),t!==e.value&&(e.value=t),n==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=n==null?``:``+jt(n)}function Wt(e,t,n,r){if(t==null){if(r!=null){if(n!=null)throw Error(i(92));if(ae(r)){if(1<r.length)throw Error(i(93));r=r[0]}n=r}n??=``,t=n}n=jt(t),e.defaultValue=n,r=e.textContent,r===n&&r!==``&&r!==null&&(e.value=r),Pt(e)}function Gt(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Kt=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 qt(e,t,n){var r=t.indexOf(`--`)===0;n==null||typeof n==`boolean`||n===``?r?e.setProperty(t,``):t===`float`?e.cssFloat=``:e[t]=``:r?e.setProperty(t,n):typeof n!=`number`||n===0||Kt.has(t)?t===`float`?e.cssFloat=n:e[t]=(``+n).trim():e[t]=n+`px`}function Jt(e,t,n){if(t!=null&&typeof t!=`object`)throw Error(i(62));if(e=e.style,n!=null){for(var r in n)!n.hasOwnProperty(r)||t!=null&&t.hasOwnProperty(r)||(r.indexOf(`--`)===0?e.setProperty(r,``):r===`float`?e.cssFloat=``:e[r]=``);for(var a in t)r=t[a],t.hasOwnProperty(a)&&n[a]!==r&&qt(e,a,r)}else for(var o in t)t.hasOwnProperty(o)&&qt(e,o,t[o])}function Yt(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 Xt=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`]]),Zt=/^[\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 Qt(e){return Zt.test(``+e)?`javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')`:e}function $t(){}var en=null;function tn(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var nn=null,rn=null;function an(e){var t=gt(e);if(t&&(e=t.stateNode)){var n=e[st]||null;a:switch(e=t.stateNode,t.type){case`input`:if(zt(e,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),t=n.name,n.type===`radio`&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll(`input[name="`+Rt(``+t)+`"][type="radio"]`),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var a=r[st]||null;if(!a)throw Error(i(90));zt(r,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name)}}for(t=0;t<n.length;t++)r=n[t],r.form===e.form&&Ft(r)}break a;case`textarea`:Ut(e,n.value,n.defaultValue);break a;case`select`:t=n.value,t!=null&&Ht(e,!!n.multiple,t,!1)}}}var on=!1;function sn(e,t,n){if(on)return e(t,n);on=!0;try{return e(t)}finally{if(on=!1,(nn!==null||rn!==null)&&(vu(),nn&&(t=nn,e=rn,rn=nn=null,an(t),e)))for(t=0;t<e.length;t++)an(e[t])}}function cn(e,t){var n=e.stateNode;if(n===null)return null;var r=n[st]||null;if(r===null)return null;n=r[t];a:switch(t){case`onClick`:case`onClickCapture`:case`onDoubleClick`:case`onDoubleClickCapture`:case`onMouseDown`:case`onMouseDownCapture`:case`onMouseMove`:case`onMouseMoveCapture`:case`onMouseUp`:case`onMouseUpCapture`:case`onMouseEnter`:(r=!r.disabled)||(e=e.type,r=!(e===`button`||e===`input`||e===`select`||e===`textarea`)),e=!r;break a;default:e=!1}if(e)return null;if(n&&typeof n!=`function`)throw Error(i(231,t,typeof n));return n}var ln=!(typeof window>`u`||window.document===void 0||window.document.createElement===void 0),un=!1;if(ln)try{var dn={};Object.defineProperty(dn,`passive`,{get:function(){un=!0}}),window.addEventListener(`test`,dn,dn),window.removeEventListener(`test`,dn,dn)}catch{un=!1}var fn=null,pn=null,mn=null;function hn(){if(mn)return mn;var e,t=pn,n=t.length,r,i=`value`in fn?fn.value:fn.textContent,a=i.length;for(e=0;e<n&&t[e]===i[e];e++);var o=n-e;for(r=1;r<=o&&t[n-r]===i[a-r];r++);return mn=i.slice(e,1<r?1-r:void 0)}function gn(e){var t=e.keyCode;return`charCode`in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function _n(){return!0}function vn(){return!1}function yn(e){function t(t,n,r,i,a){for(var o in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=i,this.target=a,this.currentTarget=null,e)e.hasOwnProperty(o)&&(t=e[o],this[o]=t?t(i):i[o]);return this.isDefaultPrevented=(i.defaultPrevented==null?!1===i.returnValue:i.defaultPrevented)?_n:vn,this.isPropagationStopped=vn,this}return m(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():typeof e.returnValue!=`unknown`&&(e.returnValue=!1),this.isDefaultPrevented=_n)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():typeof e.cancelBubble!=`unknown`&&(e.cancelBubble=!0),this.isPropagationStopped=_n)},persist:function(){},isPersistent:_n}),t}var bn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},xn=yn(bn),Sn=m({},bn,{view:0,detail:0}),Cn=yn(Sn),wn,Tn,En,Dn=m({},Sn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Rn,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!==En&&(En&&e.type===`mousemove`?(wn=e.screenX-En.screenX,Tn=e.screenY-En.screenY):Tn=wn=0,En=e),wn)},movementY:function(e){return`movementY`in e?e.movementY:Tn}}),On=yn(Dn),kn=yn(m({},Dn,{dataTransfer:0})),An=yn(m({},Sn,{relatedTarget:0})),jn=yn(m({},bn,{animationName:0,elapsedTime:0,pseudoElement:0})),Mn=yn(m({},bn,{clipboardData:function(e){return`clipboardData`in e?e.clipboardData:window.clipboardData}})),Nn=yn(m({},bn,{data:0})),Pn={Esc:`Escape`,Spacebar:` `,Left:`ArrowLeft`,Up:`ArrowUp`,Right:`ArrowRight`,Down:`ArrowDown`,Del:`Delete`,Win:`OS`,Menu:`ContextMenu`,Apps:`ContextMenu`,Scroll:`ScrollLock`,MozPrintableKey:`Unidentified`},Fn={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`},In={Alt:`altKey`,Control:`ctrlKey`,Meta:`metaKey`,Shift:`shiftKey`};function Ln(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=In[e])?!!t[e]:!1}function Rn(){return Ln}var zn=yn(m({},Sn,{key:function(e){if(e.key){var t=Pn[e.key]||e.key;if(t!==`Unidentified`)return t}return e.type===`keypress`?(e=gn(e),e===13?`Enter`:String.fromCharCode(e)):e.type===`keydown`||e.type===`keyup`?Fn[e.keyCode]||`Unidentified`:``},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Rn,charCode:function(e){return e.type===`keypress`?gn(e):0},keyCode:function(e){return e.type===`keydown`||e.type===`keyup`?e.keyCode:0},which:function(e){return e.type===`keypress`?gn(e):e.type===`keydown`||e.type===`keyup`?e.keyCode:0}})),Bn=yn(m({},Dn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Vn=yn(m({},Sn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Rn})),Hn=yn(m({},bn,{propertyName:0,elapsedTime:0,pseudoElement:0})),Un=yn(m({},Dn,{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})),Wn=yn(m({},bn,{newState:0,oldState:0})),Gn=[9,13,27,32],Kn=ln&&`CompositionEvent`in window,qn=null;ln&&`documentMode`in document&&(qn=document.documentMode);var Jn=ln&&`TextEvent`in window&&!qn,Yn=ln&&(!Kn||qn&&8<qn&&11>=qn),Xn=` `,Zn=!1;function Qn(e,t){switch(e){case`keyup`:return Gn.indexOf(t.keyCode)!==-1;case`keydown`:return t.keyCode!==229;case`keypress`:case`mousedown`:case`focusout`:return!0;default:return!1}}function $n(e){return e=e.detail,typeof e==`object`&&`data`in e?e.data:null}var er=!1;function tr(e,t){switch(e){case`compositionend`:return $n(t);case`keypress`:return t.which===32?(Zn=!0,Xn):null;case`textInput`:return e=t.data,e===Xn&&Zn?null:e;default:return null}}function nr(e,t){if(er)return e===`compositionend`||!Kn&&Qn(e,t)?(e=hn(),mn=pn=fn=null,er=!1,e):null;switch(e){case`paste`:return null;case`keypress`:if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case`compositionend`:return Yn&&t.locale!==`ko`?null:t.data;default:return null}}var rr={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 ir(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t===`input`?!!rr[e.type]:t===`textarea`}function ar(e,t,n,r){nn?rn?rn.push(r):rn=[r]:nn=r,t=Td(t,`onChange`),0<t.length&&(n=new xn(`onChange`,`change`,null,n,r),e.push({event:n,listeners:t}))}var or=null,sr=null;function cr(e){vd(e,0)}function lr(e){if(Ft(_t(e)))return e}function ur(e,t){if(e===`change`)return t}var dr=!1;if(ln){var fr;if(ln){var pr=`oninput`in document;if(!pr){var mr=document.createElement(`div`);mr.setAttribute(`oninput`,`return;`),pr=typeof mr.oninput==`function`}fr=pr}else fr=!1;dr=fr&&(!document.documentMode||9<document.documentMode)}function hr(){or&&(or.detachEvent(`onpropertychange`,gr),sr=or=null)}function gr(e){if(e.propertyName===`value`&&lr(sr)){var t=[];ar(t,sr,e,tn(e)),sn(cr,t)}}function _r(e,t,n){e===`focusin`?(hr(),or=t,sr=n,or.attachEvent(`onpropertychange`,gr)):e===`focusout`&&hr()}function vr(e){if(e===`selectionchange`||e===`keyup`||e===`keydown`)return lr(sr)}function yr(e,t){if(e===`click`)return lr(t)}function br(e,t){if(e===`input`||e===`change`)return lr(t)}function xr(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var Sr=typeof Object.is==`function`?Object.is:xr;function Cr(e,t){if(Sr(e,t))return!0;if(typeof e!=`object`||!e||typeof t!=`object`||!t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!xe.call(t,i)||!Sr(e[i],t[i]))return!1}return!0}function wr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Tr(e,t){var n=wr(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}a:{for(;n;){if(n.nextSibling){n=n.nextSibling;break a}n=n.parentNode}n=void 0}n=wr(n)}}function Er(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Er(e,t.parentNode):`contains`in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Dr(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=It(e.document);t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href==`string`}catch{n=!1}if(n)e=t.contentWindow;else break;t=It(e.document)}return t}function Or(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t===`input`&&(e.type===`text`||e.type===`search`||e.type===`tel`||e.type===`url`||e.type===`password`)||t===`textarea`||e.contentEditable===`true`)}var kr=ln&&`documentMode`in document&&11>=document.documentMode,Ar=null,jr=null,Mr=null,Nr=!1;function Pr(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Nr||Ar==null||Ar!==It(r)||(r=Ar,`selectionStart`in r&&Or(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Mr&&Cr(Mr,r)||(Mr=r,r=Td(jr,`onSelect`),0<r.length&&(t=new xn(`onSelect`,`select`,null,t,n),e.push({event:t,listeners:r}),t.target=Ar)))}function Fr(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n[`Webkit`+e]=`webkit`+t,n[`Moz`+e]=`moz`+t,n}var Ir={animationend:Fr(`Animation`,`AnimationEnd`),animationiteration:Fr(`Animation`,`AnimationIteration`),animationstart:Fr(`Animation`,`AnimationStart`),transitionrun:Fr(`Transition`,`TransitionRun`),transitionstart:Fr(`Transition`,`TransitionStart`),transitioncancel:Fr(`Transition`,`TransitionCancel`),transitionend:Fr(`Transition`,`TransitionEnd`)},Lr={},Rr={};ln&&(Rr=document.createElement(`div`).style,`AnimationEvent`in window||(delete Ir.animationend.animation,delete Ir.animationiteration.animation,delete Ir.animationstart.animation),`TransitionEvent`in window||delete Ir.transitionend.transition);function zr(e){if(Lr[e])return Lr[e];if(!Ir[e])return e;var t=Ir[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Rr)return Lr[e]=t[n];return e}var Br=zr(`animationend`),Vr=zr(`animationiteration`),Hr=zr(`animationstart`),Ur=zr(`transitionrun`),Wr=zr(`transitionstart`),Gr=zr(`transitioncancel`),Kr=zr(`transitionend`),qr=new Map,Jr=`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(` `);Jr.push(`scrollEnd`);function Yr(e,t){qr.set(e,t),St(t,[e])}var Xr=typeof reportError==`function`?reportError:function(e){if(typeof window==`object`&&typeof window.ErrorEvent==`function`){var t=new window.ErrorEvent(`error`,{bubbles:!0,cancelable:!0,message:typeof e==`object`&&e&&typeof e.message==`string`?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process==`object`&&typeof process.emit==`function`){process.emit(`uncaughtException`,e);return}console.error(e)},Zr=[],Qr=0,$r=0;function ei(){for(var e=Qr,t=$r=Qr=0;t<e;){var n=Zr[t];Zr[t++]=null;var r=Zr[t];Zr[t++]=null;var i=Zr[t];Zr[t++]=null;var a=Zr[t];if(Zr[t++]=null,r!==null&&i!==null){var o=r.pending;o===null?i.next=i:(i.next=o.next,o.next=i),r.pending=i}a!==0&&ii(n,i,a)}}function ti(e,t,n,r){Zr[Qr++]=e,Zr[Qr++]=t,Zr[Qr++]=n,Zr[Qr++]=r,$r|=r,e.lanes|=r,e=e.alternate,e!==null&&(e.lanes|=r)}function ni(e,t,n,r){return ti(e,t,n,r),ai(e)}function ri(e,t){return ti(e,null,null,t),ai(e)}function ii(e,t,n){e.lanes|=n;var r=e.alternate;r!==null&&(r.lanes|=n);for(var i=!1,a=e.return;a!==null;)a.childLanes|=n,r=a.alternate,r!==null&&(r.childLanes|=n),a.tag===22&&(e=a.stateNode,e===null||e._visibility&1||(i=!0)),e=a,a=a.return;return e.tag===3?(a=e.stateNode,i&&t!==null&&(i=31-Re(n),e=a.hiddenUpdates,r=e[i],r===null?e[i]=[t]:r.push(t),t.lane=n|536870912),a):null}function ai(e){if(50<lu)throw lu=0,uu=null,Error(i(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var oi={};function si(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function ci(e,t,n,r){return new si(e,t,n,r)}function li(e){return e=e.prototype,!(!e||!e.isReactComponent)}function ui(e,t){var n=e.alternate;return n===null?(n=ci(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&65011712,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n.refCleanup=e.refCleanup,n}function di(e,t){e.flags&=65011714;var n=e.alternate;return n===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type,t=n.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function fi(e,t,n,r,a,o){var s=0;if(r=e,typeof e==`function`)li(e)&&(s=1);else if(typeof e==`string`)s=Uf(e,n,I.current)?26:e===`html`||e===`head`||e===`body`?27:5;else a:switch(e){case ee:return e=ci(31,n,t,a),e.elementType=ee,e.lanes=o,e;case y:return pi(n.children,a,o,t);case b:s=8,a|=24;break;case x:return e=ci(12,n,t,a|2),e.elementType=x,e.lanes=o,e;case T:return e=ci(13,n,t,a),e.elementType=T,e.lanes=o,e;case E:return e=ci(19,n,t,a),e.elementType=E,e.lanes=o,e;default:if(typeof e==`object`&&e)switch(e.$$typeof){case C:s=10;break a;case S:s=9;break a;case w:s=11;break a;case D:s=14;break a;case O:s=16,r=null;break a}s=29,n=Error(i(130,e===null?`null`:typeof e,``)),r=null}return t=ci(s,n,t,a),t.elementType=e,t.type=r,t.lanes=o,t}function pi(e,t,n,r){return e=ci(7,e,r,t),e.lanes=n,e}function mi(e,t,n){return e=ci(6,e,null,t),e.lanes=n,e}function hi(e){var t=ci(18,null,null,0);return t.stateNode=e,t}function gi(e,t,n){return t=ci(4,e.children===null?[]:e.children,e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var _i=new WeakMap;function vi(e,t){if(typeof e==`object`&&e){var n=_i.get(e);return n===void 0?(t={value:e,source:t,stack:be(t)},_i.set(e,t),t):n}return{value:e,source:t,stack:be(t)}}var yi=[],bi=0,xi=null,Si=0,Ci=[],wi=0,Ti=null,Ei=1,Di=``;function Oi(e,t){yi[bi++]=Si,yi[bi++]=xi,xi=e,Si=t}function ki(e,t,n){Ci[wi++]=Ei,Ci[wi++]=Di,Ci[wi++]=Ti,Ti=e;var r=Ei;e=Di;var i=32-Re(r)-1;r&=~(1<<i),n+=1;var a=32-Re(t)+i;if(30<a){var o=i-i%5;a=(r&(1<<o)-1).toString(32),r>>=o,i-=o,Ei=1<<32-Re(t)+i|n<<i|r,Di=a+e}else Ei=1<<a|n<<i|r,Di=e}function Ai(e){e.return!==null&&(Oi(e,1),ki(e,1,0))}function ji(e){for(;e===xi;)xi=yi[--bi],yi[bi]=null,Si=yi[--bi],yi[bi]=null;for(;e===Ti;)Ti=Ci[--wi],Ci[wi]=null,Di=Ci[--wi],Ci[wi]=null,Ei=Ci[--wi],Ci[wi]=null}function Mi(e,t){Ci[wi++]=Ei,Ci[wi++]=Di,Ci[wi++]=Ti,Ei=t.id,Di=t.overflow,Ti=e}var Ni=null,Pi=null,Fi=!1,Ii=null,Li=!1,Ri=Error(i(519));function zi(e){throw Gi(vi(Error(i(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?`text`:`HTML`,``)),e)),Ri}function Bi(e){var t=e.stateNode,n=e.type,r=e.memoizedProps;switch(t[ot]=e,t[st]=r,n){case`dialog`:$(`cancel`,t),$(`close`,t);break;case`iframe`:case`object`:case`embed`:$(`load`,t);break;case`video`:case`audio`:for(n=0;n<gd.length;n++)$(gd[n],t);break;case`source`:$(`error`,t);break;case`img`:case`image`:case`link`:$(`error`,t),$(`load`,t);break;case`details`:$(`toggle`,t);break;case`input`:$(`invalid`,t),Bt(t,r.value,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name,!0);break;case`select`:$(`invalid`,t);break;case`textarea`:$(`invalid`,t),Wt(t,r.value,r.defaultValue,r.children)}n=r.children,typeof n!=`string`&&typeof n!=`number`&&typeof n!=`bigint`||t.textContent===``+n||!0===r.suppressHydrationWarning||jd(t.textContent,n)?(r.popover!=null&&($(`beforetoggle`,t),$(`toggle`,t)),r.onScroll!=null&&$(`scroll`,t),r.onScrollEnd!=null&&$(`scrollend`,t),r.onClick!=null&&(t.onclick=$t),t=!0):t=!1,t||zi(e,!0)}function Vi(e){for(Ni=e.return;Ni;)switch(Ni.tag){case 5:case 31:case 13:Li=!1;return;case 27:case 3:Li=!0;return;default:Ni=Ni.return}}function Hi(e){if(e!==Ni)return!1;if(!Fi)return Vi(e),Fi=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=!(n!==`form`&&n!==`button`)||Ud(e.type,e.memoizedProps)),n=!n),n&&Pi&&zi(e),Vi(e),t===13){if(e=e.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(i(317));Pi=uf(e)}else if(t===31){if(e=e.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(i(317));Pi=uf(e)}else t===27?(t=Pi,Zd(e.type)?(e=lf,lf=null,Pi=e):Pi=t):Pi=Ni?cf(e.stateNode.nextSibling):null;return!0}function Ui(){Pi=Ni=null,Fi=!1}function Wi(){var e=Ii;return e!==null&&(Yl===null?Yl=e:Yl.push.apply(Yl,e),Ii=null),e}function Gi(e){Ii===null?Ii=[e]:Ii.push(e)}var Ki=N(null),qi=null,Ji=null;function Yi(e,t,n){F(Ki,t._currentValue),t._currentValue=n}function Xi(e){e._currentValue=Ki.current,P(Ki)}function Zi(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)===t?r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t):(e.childLanes|=t,r!==null&&(r.childLanes|=t)),e===n)break;e=e.return}}function Qi(e,t,n,r){var a=e.child;for(a!==null&&(a.return=e);a!==null;){var o=a.dependencies;if(o!==null){var s=a.child;o=o.firstContext;a:for(;o!==null;){var c=o;o=a;for(var l=0;l<t.length;l++)if(c.context===t[l]){o.lanes|=n,c=o.alternate,c!==null&&(c.lanes|=n),Zi(o.return,n,e),r||(s=null);break a}o=c.next}}else if(a.tag===18){if(s=a.return,s===null)throw Error(i(341));s.lanes|=n,o=s.alternate,o!==null&&(o.lanes|=n),Zi(s,n,e),s=null}else s=a.child;if(s!==null)s.return=a;else for(s=a;s!==null;){if(s===e){s=null;break}if(a=s.sibling,a!==null){a.return=s.return,s=a;break}s=s.return}a=s}}function $i(e,t,n,r){e=null;for(var a=t,o=!1;a!==null;){if(!o){if(a.flags&524288)o=!0;else if(a.flags&262144)break}if(a.tag===10){var s=a.alternate;if(s===null)throw Error(i(387));if(s=s.memoizedProps,s!==null){var c=a.type;Sr(a.pendingProps.value,s.value)||(e===null?e=[c]:e.push(c))}}else if(a===ue.current){if(s=a.alternate,s===null)throw Error(i(387));s.memoizedState.memoizedState!==a.memoizedState.memoizedState&&(e===null?e=[Qf]:e.push(Qf))}a=a.return}e!==null&&Qi(t,e,n,r),t.flags|=262144}function ea(e){for(e=e.firstContext;e!==null;){if(!Sr(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function ta(e){qi=e,Ji=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function z(e){return ra(qi,e)}function na(e,t){return qi===null&&ta(e),ra(e,t)}function ra(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},Ji===null){if(e===null)throw Error(i(308));Ji=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else Ji=Ji.next=t;return n}var ia=typeof AbortController<`u`?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(t,n){e.push(n)}};this.abort=function(){t.aborted=!0,e.forEach(function(e){return e()})}},aa=t.unstable_scheduleCallback,oa=t.unstable_NormalPriority,sa={$$typeof:C,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function B(){return{controller:new ia,data:new Map,refCount:0}}function V(e){e.refCount--,e.refCount===0&&aa(oa,function(){e.controller.abort()})}var ca=null,H=0,U=0,la=null;function ua(e,t){if(ca===null){var n=ca=[];H=0,U=ud(),la={status:`pending`,value:void 0,then:function(e){n.push(e)}}}return H++,t.then(da,da),t}function da(){if(--H===0&&ca!==null){la!==null&&(la.status=`fulfilled`);var e=ca;ca=null,U=0,la=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function W(e,t){var n=[],r={status:`pending`,value:null,reason:null,then:function(e){n.push(e)}};return e.then(function(){r.status=`fulfilled`,r.value=t;for(var e=0;e<n.length;e++)(0,n[e])(t)},function(e){for(r.status=`rejected`,r.reason=e,e=0;e<n.length;e++)(0,n[e])(void 0)}),r}var fa=A.S;A.S=function(e,t){Ql=Ee(),typeof t==`object`&&t&&typeof t.then==`function`&&ua(e,t),fa!==null&&fa(e,t)};var pa=N(null);function G(){var e=pa.current;return e===null?Pl.pooledCache:e}function ma(e,t){t===null?F(pa,pa.current):F(pa,t.pool)}function ha(){var e=G();return e===null?null:{parent:sa._currentValue,pool:e}}var ga=Error(i(460)),_a=Error(i(474)),va=Error(i(542)),ya={then:function(){}};function ba(e){return e=e.status,e===`fulfilled`||e===`rejected`}function xa(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then($t,$t),t=n),t.status){case`fulfilled`:return t.value;case`rejected`:throw e=t.reason,Ta(e),e;default:if(typeof t.status==`string`)t.then($t,$t);else{if(e=Pl,e!==null&&100<e.shellSuspendCounter)throw Error(i(482));e=t,e.status=`pending`,e.then(function(e){if(t.status===`pending`){var n=t;n.status=`fulfilled`,n.value=e}},function(e){if(t.status===`pending`){var n=t;n.status=`rejected`,n.reason=e}})}switch(t.status){case`fulfilled`:return t.value;case`rejected`:throw e=t.reason,Ta(e),e}throw Ca=t,ga}}function Sa(e){try{var t=e._init;return t(e._payload)}catch(e){throw typeof e==`object`&&e&&typeof e.then==`function`?(Ca=e,ga):e}}var Ca=null;function wa(){if(Ca===null)throw Error(i(459));var e=Ca;return Ca=null,e}function Ta(e){if(e===ga||e===va)throw Error(i(483))}var Ea=null,Da=0;function Oa(e){var t=Da;return Da+=1,Ea===null&&(Ea=[]),xa(Ea,e,t)}function ka(e,t){t=t.props.ref,e.ref=t===void 0?null:t}function Aa(e,t){throw t.$$typeof===g?Error(i(525)):(e=Object.prototype.toString.call(t),Error(i(31,e===`[object Object]`?`object with keys {`+Object.keys(t).join(`, `)+`}`:e)))}function ja(e){function t(t,n){if(e){var r=t.deletions;r===null?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;r!==null;)t(n,r),r=r.sibling;return null}function r(e){for(var t=new Map;e!==null;)e.key===null?t.set(e.index,e):t.set(e.key,e),e=e.sibling;return t}function a(e,t){return e=ui(e,t),e.index=0,e.sibling=null,e}function o(t,n,r){return t.index=r,e?(r=t.alternate,r===null?(t.flags|=67108866,n):(r=r.index,r<n?(t.flags|=67108866,n):r)):(t.flags|=1048576,n)}function s(t){return e&&t.alternate===null&&(t.flags|=67108866),t}function c(e,t,n,r){return t===null||t.tag!==6?(t=mi(n,e.mode,r),t.return=e,t):(t=a(t,n),t.return=e,t)}function l(e,t,n,r){var i=n.type;return i===y?d(e,t,n.props.children,r,n.key):t!==null&&(t.elementType===i||typeof i==`object`&&i&&i.$$typeof===O&&Sa(i)===t.type)?(t=a(t,n.props),ka(t,n),t.return=e,t):(t=fi(n.type,n.key,n.props,null,e.mode,r),ka(t,n),t.return=e,t)}function u(e,t,n,r){return t===null||t.tag!==4||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?(t=gi(n,e.mode,r),t.return=e,t):(t=a(t,n.children||[]),t.return=e,t)}function d(e,t,n,r,i){return t===null||t.tag!==7?(t=pi(n,e.mode,r,i),t.return=e,t):(t=a(t,n),t.return=e,t)}function f(e,t,n){if(typeof t==`string`&&t!==``||typeof t==`number`||typeof t==`bigint`)return t=mi(``+t,e.mode,n),t.return=e,t;if(typeof t==`object`&&t){switch(t.$$typeof){case _:return n=fi(t.type,t.key,t.props,null,e.mode,n),ka(n,t),n.return=e,n;case v:return t=gi(t,e.mode,n),t.return=e,t;case O:return t=Sa(t),f(e,t,n)}if(ae(t)||k(t))return t=pi(t,e.mode,n,null),t.return=e,t;if(typeof t.then==`function`)return f(e,Oa(t),n);if(t.$$typeof===C)return f(e,na(e,t),n);Aa(e,t)}return null}function p(e,t,n,r){var i=t===null?null:t.key;if(typeof n==`string`&&n!==``||typeof n==`number`||typeof n==`bigint`)return i===null?c(e,t,``+n,r):null;if(typeof n==`object`&&n){switch(n.$$typeof){case _:return n.key===i?l(e,t,n,r):null;case v:return n.key===i?u(e,t,n,r):null;case O:return n=Sa(n),p(e,t,n,r)}if(ae(n)||k(n))return i===null?d(e,t,n,r,null):null;if(typeof n.then==`function`)return p(e,t,Oa(n),r);if(n.$$typeof===C)return p(e,t,na(e,n),r);Aa(e,n)}return null}function m(e,t,n,r,i){if(typeof r==`string`&&r!==``||typeof r==`number`||typeof r==`bigint`)return e=e.get(n)||null,c(t,e,``+r,i);if(typeof r==`object`&&r){switch(r.$$typeof){case _:return e=e.get(r.key===null?n:r.key)||null,l(t,e,r,i);case v:return e=e.get(r.key===null?n:r.key)||null,u(t,e,r,i);case O:return r=Sa(r),m(e,t,n,r,i)}if(ae(r)||k(r))return e=e.get(n)||null,d(t,e,r,i,null);if(typeof r.then==`function`)return m(e,t,n,Oa(r),i);if(r.$$typeof===C)return m(e,t,n,na(t,r),i);Aa(t,r)}return null}function h(i,a,s,c){for(var l=null,u=null,d=a,h=a=0,g=null;d!==null&&h<s.length;h++){d.index>h?(g=d,d=null):g=d.sibling;var _=p(i,d,s[h],c);if(_===null){d===null&&(d=g);break}e&&d&&_.alternate===null&&t(i,d),a=o(_,a,h),u===null?l=_:u.sibling=_,u=_,d=g}if(h===s.length)return n(i,d),Fi&&Oi(i,h),l;if(d===null){for(;h<s.length;h++)d=f(i,s[h],c),d!==null&&(a=o(d,a,h),u===null?l=d:u.sibling=d,u=d);return Fi&&Oi(i,h),l}for(d=r(d);h<s.length;h++)g=m(d,i,h,s[h],c),g!==null&&(e&&g.alternate!==null&&d.delete(g.key===null?h:g.key),a=o(g,a,h),u===null?l=g:u.sibling=g,u=g);return e&&d.forEach(function(e){return t(i,e)}),Fi&&Oi(i,h),l}function g(a,s,c,l){if(c==null)throw Error(i(151));for(var u=null,d=null,h=s,g=s=0,_=null,v=c.next();h!==null&&!v.done;g++,v=c.next()){h.index>g?(_=h,h=null):_=h.sibling;var y=p(a,h,v.value,l);if(y===null){h===null&&(h=_);break}e&&h&&y.alternate===null&&t(a,h),s=o(y,s,g),d===null?u=y:d.sibling=y,d=y,h=_}if(v.done)return n(a,h),Fi&&Oi(a,g),u;if(h===null){for(;!v.done;g++,v=c.next())v=f(a,v.value,l),v!==null&&(s=o(v,s,g),d===null?u=v:d.sibling=v,d=v);return Fi&&Oi(a,g),u}for(h=r(h);!v.done;g++,v=c.next())v=m(h,a,g,v.value,l),v!==null&&(e&&v.alternate!==null&&h.delete(v.key===null?g:v.key),s=o(v,s,g),d===null?u=v:d.sibling=v,d=v);return e&&h.forEach(function(e){return t(a,e)}),Fi&&Oi(a,g),u}function b(e,r,o,c){if(typeof o==`object`&&o&&o.type===y&&o.key===null&&(o=o.props.children),typeof o==`object`&&o){switch(o.$$typeof){case _:a:{for(var l=o.key;r!==null;){if(r.key===l){if(l=o.type,l===y){if(r.tag===7){n(e,r.sibling),c=a(r,o.props.children),c.return=e,e=c;break a}}else if(r.elementType===l||typeof l==`object`&&l&&l.$$typeof===O&&Sa(l)===r.type){n(e,r.sibling),c=a(r,o.props),ka(c,o),c.return=e,e=c;break a}n(e,r);break}else t(e,r);r=r.sibling}o.type===y?(c=pi(o.props.children,e.mode,c,o.key),c.return=e,e=c):(c=fi(o.type,o.key,o.props,null,e.mode,c),ka(c,o),c.return=e,e=c)}return s(e);case v:a:{for(l=o.key;r!==null;){if(r.key===l)if(r.tag===4&&r.stateNode.containerInfo===o.containerInfo&&r.stateNode.implementation===o.implementation){n(e,r.sibling),c=a(r,o.children||[]),c.return=e,e=c;break a}else{n(e,r);break}else t(e,r);r=r.sibling}c=gi(o,e.mode,c),c.return=e,e=c}return s(e);case O:return o=Sa(o),b(e,r,o,c)}if(ae(o))return h(e,r,o,c);if(k(o)){if(l=k(o),typeof l!=`function`)throw Error(i(150));return o=l.call(o),g(e,r,o,c)}if(typeof o.then==`function`)return b(e,r,Oa(o),c);if(o.$$typeof===C)return b(e,r,na(e,o),c);Aa(e,o)}return typeof o==`string`&&o!==``||typeof o==`number`||typeof o==`bigint`?(o=``+o,r!==null&&r.tag===6?(n(e,r.sibling),c=a(r,o),c.return=e,e=c):(n(e,r),c=mi(o,e.mode,c),c.return=e,e=c),s(e)):n(e,r)}return function(e,t,n,r){try{Da=0;var i=b(e,t,n,r);return Ea=null,i}catch(t){if(t===ga||t===va)throw t;var a=ci(29,t,null,e.mode);return a.lanes=r,a.return=e,a}}}var Ma=ja(!0),Na=ja(!1),Pa=!1;function Fa(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Ia(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function La(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Ra(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,Nl&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,t=ai(e),ii(e,null,n),t}return ti(e,r,t,n),ai(e)}function za(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,n&4194048)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,et(e,n)}}function Ba(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,a=null;if(n=n.firstBaseUpdate,n!==null){do{var o={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};a===null?i=a=o:a=a.next=o,n=n.next}while(n!==null);a===null?i=a=t:a=a.next=t}else i=a=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:a,shared:r.shared,callbacks:r.callbacks},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var Va=!1;function Ha(){if(Va){var e=la;if(e!==null)throw e}}function Ua(e,t,n,r){Va=!1;var i=e.updateQueue;Pa=!1;var a=i.firstBaseUpdate,o=i.lastBaseUpdate,s=i.shared.pending;if(s!==null){i.shared.pending=null;var c=s,l=c.next;c.next=null,o===null?a=l:o.next=l,o=c;var u=e.alternate;u!==null&&(u=u.updateQueue,s=u.lastBaseUpdate,s!==o&&(s===null?u.firstBaseUpdate=l:s.next=l,u.lastBaseUpdate=c))}if(a!==null){var d=i.baseState;o=0,u=l=c=null,s=a;do{var f=s.lane&-536870913,p=f!==s.lane;if(p?(Fl&f)===f:(r&f)===f){f!==0&&f===U&&(Va=!0),u!==null&&(u=u.next={lane:0,tag:s.tag,payload:s.payload,callback:null,next:null});a:{var h=e,g=s;f=t;var _=n;switch(g.tag){case 1:if(h=g.payload,typeof h==`function`){d=h.call(_,d,f);break a}d=h;break a;case 3:h.flags=h.flags&-65537|128;case 0:if(h=g.payload,f=typeof h==`function`?h.call(_,d,f):h,f==null)break a;d=m({},d,f);break a;case 2:Pa=!0}}f=s.callback,f!==null&&(e.flags|=64,p&&(e.flags|=8192),p=i.callbacks,p===null?i.callbacks=[f]:p.push(f))}else p={lane:f,tag:s.tag,payload:s.payload,callback:s.callback,next:null},u===null?(l=u=p,c=d):u=u.next=p,o|=f;if(s=s.next,s===null){if(s=i.shared.pending,s===null)break;p=s,s=p.next,p.next=null,i.lastBaseUpdate=p,i.shared.pending=null}}while(1);u===null&&(c=d),i.baseState=c,i.firstBaseUpdate=l,i.lastBaseUpdate=u,a===null&&(i.shared.lanes=0),Ul|=o,e.lanes=o,e.memoizedState=d}}function Wa(e,t){if(typeof e!=`function`)throw Error(i(191,e));e.call(t)}function Ga(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)Wa(n[e],t)}var Ka=N(null),qa=N(0);function Ja(e,t){e=Vl,F(qa,e),F(Ka,t),Vl=e|t.baseLanes}function Ya(){F(qa,Vl),F(Ka,Ka.current)}function Xa(){Vl=qa.current,P(Ka),P(qa)}var K=N(null),Za=null;function Qa(e){var t=e.alternate;F(no,no.current&1),F(K,e),Za===null&&(t===null||Ka.current!==null||t.memoizedState!==null)&&(Za=e)}function $a(e){F(no,no.current),F(K,e),Za===null&&(Za=e)}function eo(e){e.tag===22?(F(no,no.current),F(K,e),Za===null&&(Za=e)):q(e)}function q(){F(no,no.current),F(K,K.current)}function to(e){P(K),Za===e&&(Za=null),P(no)}var no=N(0);function ro(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||af(n)||of(n)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder===`forwards`||t.memoizedProps.revealOrder===`backwards`||t.memoizedProps.revealOrder===`unstable_legacy-backwards`||t.memoizedProps.revealOrder===`together`)){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var io=0,J=null,ao=null,oo=null,so=!1,co=!1,lo=!1,uo=0,fo=0,po=null,mo=0;function ho(){throw Error(i(321))}function go(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Sr(e[n],t[n]))return!1;return!0}function _o(e,t,n,r,i,a){return io=a,J=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,A.H=e===null||e.memoizedState===null?Ns:Ps,lo=!1,a=n(r,i),lo=!1,co&&(a=yo(t,n,r,i)),vo(e),a}function vo(e){A.H=Ms;var t=ao!==null&&ao.next!==null;if(io=0,oo=ao=J=null,so=!1,fo=0,po=null,t)throw Error(i(300));e===null||Zs||(e=e.dependencies,e!==null&&ea(e)&&(Zs=!0))}function yo(e,t,n,r){J=e;var a=0;do{if(co&&(po=null),fo=0,co=!1,25<=a)throw Error(i(301));if(a+=1,oo=ao=null,e.updateQueue!=null){var o=e.updateQueue;o.lastEffect=null,o.events=null,o.stores=null,o.memoCache!=null&&(o.memoCache.index=0)}A.H=Fs,o=t(n,r)}while(co);return o}function bo(){var e=A.H,t=e.useState()[0];return t=typeof t.then==`function`?Do(t):t,e=e.useState()[0],(ao===null?null:ao.memoizedState)!==e&&(J.flags|=1024),t}function xo(){var e=uo!==0;return uo=0,e}function So(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function Co(e){if(so){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}so=!1}io=0,oo=ao=J=null,co=!1,fo=uo=0,po=null}function wo(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return oo===null?J.memoizedState=oo=e:oo=oo.next=e,oo}function To(){if(ao===null){var e=J.alternate;e=e===null?null:e.memoizedState}else e=ao.next;var t=oo===null?J.memoizedState:oo.next;if(t!==null)oo=t,ao=e;else{if(e===null)throw J.alternate===null?Error(i(467)):Error(i(310));ao=e,e={memoizedState:ao.memoizedState,baseState:ao.baseState,baseQueue:ao.baseQueue,queue:ao.queue,next:null},oo===null?J.memoizedState=oo=e:oo=oo.next=e}return oo}function Eo(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Do(e){var t=fo;return fo+=1,po===null&&(po=[]),e=xa(po,e,t),t=J,(oo===null?t.memoizedState:oo.next)===null&&(t=t.alternate,A.H=t===null||t.memoizedState===null?Ns:Ps),e}function Oo(e){if(typeof e==`object`&&e){if(typeof e.then==`function`)return Do(e);if(e.$$typeof===C)return z(e)}throw Error(i(438,String(e)))}function ko(e){var t=null,n=J.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var r=J.alternate;r!==null&&(r=r.updateQueue,r!==null&&(r=r.memoCache,r!=null&&(t={data:r.data.map(function(e){return e.slice()}),index:0})))}if(t??={data:[],index:0},n===null&&(n=Eo(),J.updateQueue=n),n.memoCache=t,n=t.data[t.index],n===void 0)for(n=t.data[t.index]=Array(e),r=0;r<e;r++)n[r]=te;return t.index++,n}function Ao(e,t){return typeof t==`function`?t(e):t}function jo(e){return Mo(To(),ao,e)}function Mo(e,t,n){var r=e.queue;if(r===null)throw Error(i(311));r.lastRenderedReducer=n;var a=e.baseQueue,o=r.pending;if(o!==null){if(a!==null){var s=a.next;a.next=o.next,o.next=s}t.baseQueue=a=o,r.pending=null}if(o=e.baseState,a===null)e.memoizedState=o;else{t=a.next;var c=s=null,l=null,u=t,d=!1;do{var f=u.lane&-536870913;if(f===u.lane?(io&f)===f:(Fl&f)===f){var p=u.revertLane;if(p===0)l!==null&&(l=l.next={lane:0,revertLane:0,gesture:null,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),f===U&&(d=!0);else if((io&p)===p){u=u.next,p===U&&(d=!0);continue}else f={lane:0,revertLane:u.revertLane,gesture:null,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},l===null?(c=l=f,s=o):l=l.next=f,J.lanes|=p,Ul|=p;f=u.action,lo&&n(o,f),o=u.hasEagerState?u.eagerState:n(o,f)}else p={lane:f,revertLane:u.revertLane,gesture:u.gesture,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},l===null?(c=l=p,s=o):l=l.next=p,J.lanes|=f,Ul|=f;u=u.next}while(u!==null&&u!==t);if(l===null?s=o:l.next=c,!Sr(o,e.memoizedState)&&(Zs=!0,d&&(n=la,n!==null)))throw n;e.memoizedState=o,e.baseState=s,e.baseQueue=l,r.lastRenderedState=o}return a===null&&(r.lanes=0),[e.memoizedState,r.dispatch]}function No(e){var t=To(),n=t.queue;if(n===null)throw Error(i(311));n.lastRenderedReducer=e;var r=n.dispatch,a=n.pending,o=t.memoizedState;if(a!==null){n.pending=null;var s=a=a.next;do o=e(o,s.action),s=s.next;while(s!==a);Sr(o,t.memoizedState)||(Zs=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function Po(e,t,n){var r=J,a=To(),o=Fi;if(o){if(n===void 0)throw Error(i(407));n=n()}else n=t();var s=!Sr((ao||a).memoizedState,n);if(s&&(a.memoizedState=n,Zs=!0),a=a.queue,as(Lo.bind(null,r,a,e),[e]),a.getSnapshot!==t||s||oo!==null&&oo.memoizedState.tag&1){if(r.flags|=2048,es(9,{destroy:void 0},Io.bind(null,r,a,n,t),null),Pl===null)throw Error(i(349));o||io&127||Fo(r,t,n)}return n}function Fo(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=J.updateQueue,t===null?(t=Eo(),J.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Io(e,t,n,r){t.value=n,t.getSnapshot=r,Ro(t)&&zo(e)}function Lo(e,t,n){return n(function(){Ro(t)&&zo(e)})}function Ro(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Sr(e,n)}catch{return!0}}function zo(e){var t=ri(e,2);t!==null&&pu(t,e,2)}function Bo(e){var t=wo();if(typeof e==`function`){var n=e;if(e=n(),lo){Le(!0);try{n()}finally{Le(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ao,lastRenderedState:e},t}function Vo(e,t,n,r){return e.baseState=n,Mo(e,ao,typeof r==`function`?r:Ao)}function Ho(e,t,n,r,a){if(ks(e))throw Error(i(485));if(e=t.action,e!==null){var o={payload:a,action:e,next:null,isTransition:!0,status:`pending`,value:null,reason:null,listeners:[],then:function(e){o.listeners.push(e)}};A.T===null?o.isTransition=!1:n(!0),r(o),n=t.pending,n===null?(o.next=t.pending=o,Uo(t,o)):(o.next=n.next,t.pending=n.next=o)}}function Uo(e,t){var n=t.action,r=t.payload,i=e.state;if(t.isTransition){var a=A.T,o={};A.T=o;try{var s=n(i,r),c=A.S;c!==null&&c(o,s),Wo(e,t,s)}catch(n){Ko(e,t,n)}finally{a!==null&&o.types!==null&&(a.types=o.types),A.T=a}}else try{a=n(i,r),Wo(e,t,a)}catch(n){Ko(e,t,n)}}function Wo(e,t,n){typeof n==`object`&&n&&typeof n.then==`function`?n.then(function(n){Go(e,t,n)},function(n){return Ko(e,t,n)}):Go(e,t,n)}function Go(e,t,n){t.status=`fulfilled`,t.value=n,qo(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,Uo(e,n)))}function Ko(e,t,n){var r=e.pending;if(e.pending=null,r!==null){r=r.next;do t.status=`rejected`,t.reason=n,qo(t),t=t.next;while(t!==r)}e.action=null}function qo(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function Jo(e,t){return t}function Yo(e,t){if(Fi){var n=Pl.formState;if(n!==null){a:{var r=J;if(Fi){if(Pi){b:{for(var i=Pi,a=Li;i.nodeType!==8;){if(!a){i=null;break b}if(i=cf(i.nextSibling),i===null){i=null;break b}}a=i.data,i=a===`F!`||a===`F`?i:null}if(i){Pi=cf(i.nextSibling),r=i.data===`F!`;break a}}zi(r)}r=!1}r&&(t=n[0])}}return n=wo(),n.memoizedState=n.baseState=t,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Jo,lastRenderedState:t},n.queue=r,n=Es.bind(null,J,r),r.dispatch=n,r=Bo(!1),a=Os.bind(null,J,!1,r.queue),r=wo(),i={state:t,dispatch:null,action:e,pending:null},r.queue=i,n=Ho.bind(null,J,i,a,n),i.dispatch=n,r.memoizedState=e,[t,n,!1]}function Xo(e){return Zo(To(),ao,e)}function Zo(e,t,n){if(t=Mo(e,t,Jo)[0],e=jo(Ao)[0],typeof t==`object`&&t&&typeof t.then==`function`)try{var r=Do(t)}catch(e){throw e===ga?va:e}else r=t;t=To();var i=t.queue,a=i.dispatch;return n!==t.memoizedState&&(J.flags|=2048,es(9,{destroy:void 0},Qo.bind(null,i,n),null)),[r,a,e]}function Qo(e,t){e.action=t}function $o(e){var t=To(),n=ao;if(n!==null)return Zo(t,n,e);To(),t=t.memoizedState,n=To();var r=n.queue.dispatch;return n.memoizedState=e,[t,r,!1]}function es(e,t,n,r){return e={tag:e,create:n,deps:r,inst:t,next:null},t=J.updateQueue,t===null&&(t=Eo(),J.updateQueue=t),n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function ts(){return To().memoizedState}function ns(e,t,n,r){var i=wo();J.flags|=e,i.memoizedState=es(1|t,{destroy:void 0},n,r===void 0?null:r)}function rs(e,t,n,r){var i=To();r=r===void 0?null:r;var a=i.memoizedState.inst;ao!==null&&r!==null&&go(r,ao.memoizedState.deps)?i.memoizedState=es(t,a,n,r):(J.flags|=e,i.memoizedState=es(1|t,a,n,r))}function is(e,t){ns(8390656,8,e,t)}function as(e,t){rs(2048,8,e,t)}function os(e){J.flags|=4;var t=J.updateQueue;if(t===null)t=Eo(),J.updateQueue=t,t.events=[e];else{var n=t.events;n===null?t.events=[e]:n.push(e)}}function ss(e){var t=To().memoizedState;return os({ref:t,nextImpl:e}),function(){if(Nl&2)throw Error(i(440));return t.impl.apply(void 0,arguments)}}function cs(e,t){return rs(4,2,e,t)}function Y(e,t){return rs(4,4,e,t)}function ls(e,t){if(typeof t==`function`){e=e();var n=t(e);return function(){typeof n==`function`?n():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function us(e,t,n){n=n==null?null:n.concat([e]),rs(4,4,ls.bind(null,t,e),n)}function ds(){}function fs(e,t){var n=To();t=t===void 0?null:t;var r=n.memoizedState;return t!==null&&go(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function ps(e,t){var n=To();t=t===void 0?null:t;var r=n.memoizedState;if(t!==null&&go(t,r[1]))return r[0];if(r=e(),lo){Le(!0);try{e()}finally{Le(!1)}}return n.memoizedState=[r,t],r}function ms(e,t,n){return n===void 0||io&1073741824&&!(Fl&261930)?e.memoizedState=t:(e.memoizedState=n,e=fu(),J.lanes|=e,Ul|=e,n)}function hs(e,t,n,r){return Sr(n,t)?n:Ka.current===null?!(io&42)||io&1073741824&&!(Fl&261930)?(Zs=!0,e.memoizedState=n):(e=fu(),J.lanes|=e,Ul|=e,t):(e=ms(e,n,r),Sr(e,t)||(Zs=!0),e)}function gs(e,t,n,r,i){var a=j.p;j.p=a!==0&&8>a?a:8;var o=A.T,s={};A.T=s,Os(e,!1,t,n);try{var c=i(),l=A.S;l!==null&&l(s,c),typeof c==`object`&&c&&typeof c.then==`function`?Ds(e,t,W(c,r),du(e)):Ds(e,t,r,du(e))}catch(n){Ds(e,t,{then:function(){},status:`rejected`,reason:n},du())}finally{j.p=a,o!==null&&s.types!==null&&(o.types=s.types),A.T=o}}function _s(){}function vs(e,t,n,r){if(e.tag!==5)throw Error(i(476));var a=ys(e).queue;gs(e,a,t,oe,n===null?_s:function(){return bs(e),n(r)})}function ys(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:oe,baseState:oe,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ao,lastRenderedState:oe},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ao,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function bs(e){var t=ys(e);t.next===null&&(t=e.alternate.memoizedState),Ds(e,t.next.queue,{},du())}function xs(){return z(Qf)}function Ss(){return To().memoizedState}function Cs(){return To().memoizedState}function ws(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=du();e=La(n);var r=Ra(t,e,n);r!==null&&(pu(r,t,n),za(r,t,n)),t={cache:B()},e.payload=t;return}t=t.return}}function Ts(e,t,n){var r=du();n={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},ks(e)?As(t,n):(n=ni(e,t,n,r),n!==null&&(pu(n,e,r),js(n,t,r)))}function Es(e,t,n){Ds(e,t,n,du())}function Ds(e,t,n,r){var i={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(ks(e))As(t,i);else{var a=e.alternate;if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null))try{var o=t.lastRenderedState,s=a(o,n);if(i.hasEagerState=!0,i.eagerState=s,Sr(s,o))return ti(e,t,i,0),Pl===null&&ei(),!1}catch{}if(n=ni(e,t,i,r),n!==null)return pu(n,e,r),js(n,t,r),!0}return!1}function Os(e,t,n,r){if(r={lane:2,revertLane:ud(),gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null},ks(e)){if(t)throw Error(i(479))}else t=ni(e,n,r,2),t!==null&&pu(t,e,2)}function ks(e){var t=e.alternate;return e===J||t!==null&&t===J}function As(e,t){co=so=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function js(e,t,n){if(n&4194048){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,et(e,n)}}var Ms={readContext:z,use:Oo,useCallback:ho,useContext:ho,useEffect:ho,useImperativeHandle:ho,useLayoutEffect:ho,useInsertionEffect:ho,useMemo:ho,useReducer:ho,useRef:ho,useState:ho,useDebugValue:ho,useDeferredValue:ho,useTransition:ho,useSyncExternalStore:ho,useId:ho,useHostTransitionStatus:ho,useFormState:ho,useActionState:ho,useOptimistic:ho,useMemoCache:ho,useCacheRefresh:ho};Ms.useEffectEvent=ho;var Ns={readContext:z,use:Oo,useCallback:function(e,t){return wo().memoizedState=[e,t===void 0?null:t],e},useContext:z,useEffect:is,useImperativeHandle:function(e,t,n){n=n==null?null:n.concat([e]),ns(4194308,4,ls.bind(null,t,e),n)},useLayoutEffect:function(e,t){return ns(4194308,4,e,t)},useInsertionEffect:function(e,t){ns(4,2,e,t)},useMemo:function(e,t){var n=wo();t=t===void 0?null:t;var r=e();if(lo){Le(!0);try{e()}finally{Le(!1)}}return n.memoizedState=[r,t],r},useReducer:function(e,t,n){var r=wo();if(n!==void 0){var i=n(t);if(lo){Le(!0);try{n(t)}finally{Le(!1)}}}else i=t;return r.memoizedState=r.baseState=i,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:i},r.queue=e,e=e.dispatch=Ts.bind(null,J,e),[r.memoizedState,e]},useRef:function(e){var t=wo();return e={current:e},t.memoizedState=e},useState:function(e){e=Bo(e);var t=e.queue,n=Es.bind(null,J,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:ds,useDeferredValue:function(e,t){return ms(wo(),e,t)},useTransition:function(){var e=Bo(!1);return e=gs.bind(null,J,e.queue,!0,!1),wo().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var r=J,a=wo();if(Fi){if(n===void 0)throw Error(i(407));n=n()}else{if(n=t(),Pl===null)throw Error(i(349));Fl&127||Fo(r,t,n)}a.memoizedState=n;var o={value:n,getSnapshot:t};return a.queue=o,is(Lo.bind(null,r,o,e),[e]),r.flags|=2048,es(9,{destroy:void 0},Io.bind(null,r,o,n,t),null),n},useId:function(){var e=wo(),t=Pl.identifierPrefix;if(Fi){var n=Di,r=Ei;n=(r&~(1<<32-Re(r)-1)).toString(32)+n,t=`_`+t+`R_`+n,n=uo++,0<n&&(t+=`H`+n.toString(32)),t+=`_`}else n=mo++,t=`_`+t+`r_`+n.toString(32)+`_`;return e.memoizedState=t},useHostTransitionStatus:xs,useFormState:Yo,useActionState:Yo,useOptimistic:function(e){var t=wo();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=Os.bind(null,J,!0,n),n.dispatch=t,[e,t]},useMemoCache:ko,useCacheRefresh:function(){return wo().memoizedState=ws.bind(null,J)},useEffectEvent:function(e){var t=wo(),n={impl:e};return t.memoizedState=n,function(){if(Nl&2)throw Error(i(440));return n.impl.apply(void 0,arguments)}}},Ps={readContext:z,use:Oo,useCallback:fs,useContext:z,useEffect:as,useImperativeHandle:us,useInsertionEffect:cs,useLayoutEffect:Y,useMemo:ps,useReducer:jo,useRef:ts,useState:function(){return jo(Ao)},useDebugValue:ds,useDeferredValue:function(e,t){return hs(To(),ao.memoizedState,e,t)},useTransition:function(){var e=jo(Ao)[0],t=To().memoizedState;return[typeof e==`boolean`?e:Do(e),t]},useSyncExternalStore:Po,useId:Ss,useHostTransitionStatus:xs,useFormState:Xo,useActionState:Xo,useOptimistic:function(e,t){return Vo(To(),ao,e,t)},useMemoCache:ko,useCacheRefresh:Cs};Ps.useEffectEvent=ss;var Fs={readContext:z,use:Oo,useCallback:fs,useContext:z,useEffect:as,useImperativeHandle:us,useInsertionEffect:cs,useLayoutEffect:Y,useMemo:ps,useReducer:No,useRef:ts,useState:function(){return No(Ao)},useDebugValue:ds,useDeferredValue:function(e,t){var n=To();return ao===null?ms(n,e,t):hs(n,ao.memoizedState,e,t)},useTransition:function(){var e=No(Ao)[0],t=To().memoizedState;return[typeof e==`boolean`?e:Do(e),t]},useSyncExternalStore:Po,useId:Ss,useHostTransitionStatus:xs,useFormState:$o,useActionState:$o,useOptimistic:function(e,t){var n=To();return ao===null?(n.baseState=e,[e,n.queue.dispatch]):Vo(n,ao,e,t)},useMemoCache:ko,useCacheRefresh:Cs};Fs.useEffectEvent=ss;function Is(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:m({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Ls={enqueueSetState:function(e,t,n){e=e._reactInternals;var r=du(),i=La(r);i.payload=t,n!=null&&(i.callback=n),t=Ra(e,i,r),t!==null&&(pu(t,e,r),za(t,e,r))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=du(),i=La(r);i.tag=1,i.payload=t,n!=null&&(i.callback=n),t=Ra(e,i,r),t!==null&&(pu(t,e,r),za(t,e,r))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=du(),r=La(n);r.tag=2,t!=null&&(r.callback=t),t=Ra(e,r,n),t!==null&&(pu(t,e,n),za(t,e,n))}};function Rs(e,t,n,r,i,a,o){return e=e.stateNode,typeof e.shouldComponentUpdate==`function`?e.shouldComponentUpdate(r,a,o):t.prototype&&t.prototype.isPureReactComponent?!Cr(n,r)||!Cr(i,a):!0}function zs(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps==`function`&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps==`function`&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&Ls.enqueueReplaceState(t,t.state,null)}function Bs(e,t){var n=t;if(`ref`in t)for(var r in n={},t)r!==`ref`&&(n[r]=t[r]);if(e=e.defaultProps)for(var i in n===t&&(n=m({},n)),e)n[i]===void 0&&(n[i]=e[i]);return n}function Vs(e){Xr(e)}function Hs(e){console.error(e)}function Us(e){Xr(e)}function Ws(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(e){setTimeout(function(){throw e})}}function Gs(e,t,n){try{var r=e.onCaughtError;r(n.value,{componentStack:n.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(e){setTimeout(function(){throw e})}}function Ks(e,t,n){return n=La(n),n.tag=3,n.payload={element:null},n.callback=function(){Ws(e,t)},n}function qs(e){return e=La(e),e.tag=3,e}function Js(e,t,n,r){var i=n.type.getDerivedStateFromError;if(typeof i==`function`){var a=r.value;e.payload=function(){return i(a)},e.callback=function(){Gs(t,n,r)}}var o=n.stateNode;o!==null&&typeof o.componentDidCatch==`function`&&(e.callback=function(){Gs(t,n,r),typeof i!=`function`&&(tu===null?tu=new Set([this]):tu.add(this));var e=r.stack;this.componentDidCatch(r.value,{componentStack:e===null?``:e})})}function Ys(e,t,n,r,a){if(n.flags|=32768,typeof r==`object`&&r&&typeof r.then==`function`){if(t=n.alternate,t!==null&&$i(t,n,a,!0),n=K.current,n!==null){switch(n.tag){case 31:case 13:return Za===null?Tu():n.alternate===null&&Hl===0&&(Hl=3),n.flags&=-257,n.flags|=65536,n.lanes=a,r===ya?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([r]):t.add(r),Wu(e,r,a)),!1;case 22:return n.flags|=65536,r===ya?n.flags|=16384:(t=n.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([r])},n.updateQueue=t):(n=t.retryQueue,n===null?t.retryQueue=new Set([r]):n.add(r)),Wu(e,r,a)),!1}throw Error(i(435,n.tag))}return Wu(e,r,a),Tu(),!1}if(Fi)return t=K.current,t===null?(r!==Ri&&(t=Error(i(423),{cause:r}),Gi(vi(t,n))),e=e.current.alternate,e.flags|=65536,a&=-a,e.lanes|=a,r=vi(r,n),a=Ks(e.stateNode,r,a),Ba(e,a),Hl!==4&&(Hl=2)):(!(t.flags&65536)&&(t.flags|=256),t.flags|=65536,t.lanes=a,r!==Ri&&(e=Error(i(422),{cause:r}),Gi(vi(e,n)))),!1;var o=Error(i(520),{cause:r});if(o=vi(o,n),Jl===null?Jl=[o]:Jl.push(o),Hl!==4&&(Hl=2),t===null)return!0;r=vi(r,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=a&-a,n.lanes|=e,e=Ks(n.stateNode,r,e),Ba(n,e),!1;case 1:if(t=n.type,o=n.stateNode,!(n.flags&128)&&(typeof t.getDerivedStateFromError==`function`||o!==null&&typeof o.componentDidCatch==`function`&&(tu===null||!tu.has(o))))return n.flags|=65536,a&=-a,n.lanes|=a,a=qs(a),Js(a,e,n,r),Ba(n,a),!1}n=n.return}while(n!==null);return!1}var Xs=Error(i(461)),Zs=!1;function Qs(e,t,n,r){t.child=e===null?Na(t,null,n,r):Ma(t,e.child,n,r)}function $s(e,t,n,r,i){n=n.render;var a=t.ref;if(`ref`in r){var o={};for(var s in r)s!==`ref`&&(o[s]=r[s])}else o=r;return ta(t),r=_o(e,t,n,o,a,i),s=xo(),e!==null&&!Zs?(So(e,t,i),Cc(e,t,i)):(Fi&&s&&Ai(t),t.flags|=1,Qs(e,t,r,i),t.child)}function ec(e,t,n,r,i){if(e===null){var a=n.type;return typeof a==`function`&&!li(a)&&a.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=a,tc(e,t,a,r,i)):(e=fi(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(a=e.child,!X(e,i)){var o=a.memoizedProps;if(n=n.compare,n=n===null?Cr:n,n(o,r)&&e.ref===t.ref)return Cc(e,t,i)}return t.flags|=1,e=ui(a,r),e.ref=t.ref,e.return=t,t.child=e}function tc(e,t,n,r,i){if(e!==null){var a=e.memoizedProps;if(Cr(a,r)&&e.ref===t.ref)if(Zs=!1,t.pendingProps=r=a,X(e,i))e.flags&131072&&(Zs=!0);else return t.lanes=e.lanes,Cc(e,t,i)}return lc(e,t,n,r,i)}function nc(e,t,n,r){var i=r.children,a=e===null?null:e.memoizedState;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),r.mode===`hidden`){if(t.flags&128){if(a=a===null?n:a.baseLanes|n,e!==null){for(r=t.child=e.child,i=0;r!==null;)i=i|r.lanes|r.childLanes,r=r.sibling;r=i&~a}else r=0,t.child=null;return ic(e,t,a,n,r)}if(n&536870912)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&ma(t,a===null?null:a.cachePool),a===null?Ya():Ja(t,a),eo(t);else return r=t.lanes=536870912,ic(e,t,a===null?n:a.baseLanes|n,n,r)}else a===null?(e!==null&&ma(t,null),Ya(),q(t)):(ma(t,a.cachePool),Ja(t,a),q(t),t.memoizedState=null);return Qs(e,t,i,n),t.child}function rc(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function ic(e,t,n,r,i){var a=G();return a=a===null?null:{parent:sa._currentValue,pool:a},t.memoizedState={baseLanes:n,cachePool:a},e!==null&&ma(t,null),Ya(),eo(t),e!==null&&$i(e,t,r,!0),t.childLanes=i,null}function ac(e,t){return t=vc({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function oc(e,t,n){return Ma(t,e.child,null,n),e=ac(t,t.pendingProps),e.flags|=2,to(t),t.memoizedState=null,e}function sc(e,t,n){var r=t.pendingProps,a=(t.flags&128)!=0;if(t.flags&=-129,e===null){if(Fi){if(r.mode===`hidden`)return e=ac(t,r),t.lanes=536870912,rc(null,e);if($a(t),(e=Pi)?(e=rf(e,Li),e=e!==null&&e.data===`&`?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Ti===null?null:{id:Ei,overflow:Di},retryLane:536870912,hydrationErrors:null},n=hi(e),n.return=t,t.child=n,Ni=t,Pi=null)):e=null,e===null)throw zi(t);return t.lanes=536870912,null}return ac(t,r)}var o=e.memoizedState;if(o!==null){var s=o.dehydrated;if($a(t),a)if(t.flags&256)t.flags&=-257,t=oc(e,t,n);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(i(558));else if(Zs||$i(e,t,n,!1),a=(n&e.childLanes)!==0,Zs||a){if(r=Pl,r!==null&&(s=tt(r,n),s!==0&&s!==o.retryLane))throw o.retryLane=s,ri(e,s),pu(r,e,s),Xs;Tu(),t=oc(e,t,n)}else e=o.treeContext,Pi=cf(s.nextSibling),Ni=t,Fi=!0,Ii=null,Li=!1,e!==null&&Mi(t,e),t=ac(t,r),t.flags|=4096;return t}return e=ui(e.child,{mode:r.mode,children:r.children}),e.ref=t.ref,t.child=e,e.return=t,e}function cc(e,t){var n=t.ref;if(n===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof n!=`function`&&typeof n!=`object`)throw Error(i(284));(e===null||e.ref!==n)&&(t.flags|=4194816)}}function lc(e,t,n,r,i){return ta(t),n=_o(e,t,n,r,void 0,i),r=xo(),e!==null&&!Zs?(So(e,t,i),Cc(e,t,i)):(Fi&&r&&Ai(t),t.flags|=1,Qs(e,t,n,i),t.child)}function uc(e,t,n,r,i,a){return ta(t),t.updateQueue=null,n=yo(t,r,n,i),vo(e),r=xo(),e!==null&&!Zs?(So(e,t,a),Cc(e,t,a)):(Fi&&r&&Ai(t),t.flags|=1,Qs(e,t,n,a),t.child)}function dc(e,t,n,r,i){if(ta(t),t.stateNode===null){var a=oi,o=n.contextType;typeof o==`object`&&o&&(a=z(o)),a=new n(r,a),t.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,a.updater=Ls,t.stateNode=a,a._reactInternals=t,a=t.stateNode,a.props=r,a.state=t.memoizedState,a.refs={},Fa(t),o=n.contextType,a.context=typeof o==`object`&&o?z(o):oi,a.state=t.memoizedState,o=n.getDerivedStateFromProps,typeof o==`function`&&(Is(t,n,o,r),a.state=t.memoizedState),typeof n.getDerivedStateFromProps==`function`||typeof a.getSnapshotBeforeUpdate==`function`||typeof a.UNSAFE_componentWillMount!=`function`&&typeof a.componentWillMount!=`function`||(o=a.state,typeof a.componentWillMount==`function`&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount==`function`&&a.UNSAFE_componentWillMount(),o!==a.state&&Ls.enqueueReplaceState(a,a.state,null),Ua(t,r,a,i),Ha(),a.state=t.memoizedState),typeof a.componentDidMount==`function`&&(t.flags|=4194308),r=!0}else if(e===null){a=t.stateNode;var s=t.memoizedProps,c=Bs(n,s);a.props=c;var l=a.context,u=n.contextType;o=oi,typeof u==`object`&&u&&(o=z(u));var d=n.getDerivedStateFromProps;u=typeof d==`function`||typeof a.getSnapshotBeforeUpdate==`function`,s=t.pendingProps!==s,u||typeof a.UNSAFE_componentWillReceiveProps!=`function`&&typeof a.componentWillReceiveProps!=`function`||(s||l!==o)&&zs(t,a,r,o),Pa=!1;var f=t.memoizedState;a.state=f,Ua(t,r,a,i),Ha(),l=t.memoizedState,s||f!==l||Pa?(typeof d==`function`&&(Is(t,n,d,r),l=t.memoizedState),(c=Pa||Rs(t,n,c,r,f,l,o))?(u||typeof a.UNSAFE_componentWillMount!=`function`&&typeof a.componentWillMount!=`function`||(typeof a.componentWillMount==`function`&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount==`function`&&a.UNSAFE_componentWillMount()),typeof a.componentDidMount==`function`&&(t.flags|=4194308)):(typeof a.componentDidMount==`function`&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),a.props=r,a.state=l,a.context=o,r=c):(typeof a.componentDidMount==`function`&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,Ia(e,t),o=t.memoizedProps,u=Bs(n,o),a.props=u,d=t.pendingProps,f=a.context,l=n.contextType,c=oi,typeof l==`object`&&l&&(c=z(l)),s=n.getDerivedStateFromProps,(l=typeof s==`function`||typeof a.getSnapshotBeforeUpdate==`function`)||typeof a.UNSAFE_componentWillReceiveProps!=`function`&&typeof a.componentWillReceiveProps!=`function`||(o!==d||f!==c)&&zs(t,a,r,c),Pa=!1,f=t.memoizedState,a.state=f,Ua(t,r,a,i),Ha();var p=t.memoizedState;o!==d||f!==p||Pa||e!==null&&e.dependencies!==null&&ea(e.dependencies)?(typeof s==`function`&&(Is(t,n,s,r),p=t.memoizedState),(u=Pa||Rs(t,n,u,r,f,p,c)||e!==null&&e.dependencies!==null&&ea(e.dependencies))?(l||typeof a.UNSAFE_componentWillUpdate!=`function`&&typeof a.componentWillUpdate!=`function`||(typeof a.componentWillUpdate==`function`&&a.componentWillUpdate(r,p,c),typeof a.UNSAFE_componentWillUpdate==`function`&&a.UNSAFE_componentWillUpdate(r,p,c)),typeof a.componentDidUpdate==`function`&&(t.flags|=4),typeof a.getSnapshotBeforeUpdate==`function`&&(t.flags|=1024)):(typeof a.componentDidUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=p),a.props=r,a.state=p,a.context=c,r=u):(typeof a.componentDidUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return a=r,cc(e,t),r=(t.flags&128)!=0,a||r?(a=t.stateNode,n=r&&typeof n.getDerivedStateFromError!=`function`?null:a.render(),t.flags|=1,e!==null&&r?(t.child=Ma(t,e.child,null,i),t.child=Ma(t,null,n,i)):Qs(e,t,n,i),t.memoizedState=a.state,e=t.child):e=Cc(e,t,i),e}function fc(e,t,n,r){return Ui(),t.flags|=256,Qs(e,t,n,r),t.child}var pc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function mc(e){return{baseLanes:e,cachePool:ha()}}function hc(e,t,n){return e=e===null?0:e.childLanes&~n,t&&(e|=Kl),e}function gc(e,t,n){var r=t.pendingProps,a=!1,o=(t.flags&128)!=0,s;if((s=o)||(s=e!==null&&e.memoizedState===null?!1:(no.current&2)!=0),s&&(a=!0,t.flags&=-129),s=(t.flags&32)!=0,t.flags&=-33,e===null){if(Fi){if(a?Qa(t):q(t),(e=Pi)?(e=rf(e,Li),e=e!==null&&e.data!==`&`?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Ti===null?null:{id:Ei,overflow:Di},retryLane:536870912,hydrationErrors:null},n=hi(e),n.return=t,t.child=n,Ni=t,Pi=null)):e=null,e===null)throw zi(t);return of(e)?t.lanes=32:t.lanes=536870912,null}var c=r.children;return r=r.fallback,a?(q(t),a=t.mode,c=vc({mode:`hidden`,children:c},a),r=pi(r,a,n,null),c.return=t,r.return=t,c.sibling=r,t.child=c,r=t.child,r.memoizedState=mc(n),r.childLanes=hc(e,s,n),t.memoizedState=pc,rc(null,r)):(Qa(t),_c(t,c))}var l=e.memoizedState;if(l!==null&&(c=l.dehydrated,c!==null)){if(o)t.flags&256?(Qa(t),t.flags&=-257,t=yc(e,t,n)):t.memoizedState===null?(q(t),c=r.fallback,a=t.mode,r=vc({mode:`visible`,children:r.children},a),c=pi(c,a,n,null),c.flags|=2,r.return=t,c.return=t,r.sibling=c,t.child=r,Ma(t,e.child,null,n),r=t.child,r.memoizedState=mc(n),r.childLanes=hc(e,s,n),t.memoizedState=pc,t=rc(null,r)):(q(t),t.child=e.child,t.flags|=128,t=null);else if(Qa(t),of(c)){if(s=c.nextSibling&&c.nextSibling.dataset,s)var u=s.dgst;s=u,r=Error(i(419)),r.stack=``,r.digest=s,Gi({value:r,source:null,stack:null}),t=yc(e,t,n)}else if(Zs||$i(e,t,n,!1),s=(n&e.childLanes)!==0,Zs||s){if(s=Pl,s!==null&&(r=tt(s,n),r!==0&&r!==l.retryLane))throw l.retryLane=r,ri(e,r),pu(s,e,r),Xs;af(c)||Tu(),t=yc(e,t,n)}else af(c)?(t.flags|=192,t.child=e.child,t=null):(e=l.treeContext,Pi=cf(c.nextSibling),Ni=t,Fi=!0,Ii=null,Li=!1,e!==null&&Mi(t,e),t=_c(t,r.children),t.flags|=4096);return t}return a?(q(t),c=r.fallback,a=t.mode,l=e.child,u=l.sibling,r=ui(l,{mode:`hidden`,children:r.children}),r.subtreeFlags=l.subtreeFlags&65011712,u===null?(c=pi(c,a,n,null),c.flags|=2):c=ui(u,c),c.return=t,r.return=t,r.sibling=c,t.child=r,rc(null,r),r=t.child,c=e.child.memoizedState,c===null?c=mc(n):(a=c.cachePool,a===null?a=ha():(l=sa._currentValue,a=a.parent===l?a:{parent:l,pool:l}),c={baseLanes:c.baseLanes|n,cachePool:a}),r.memoizedState=c,r.childLanes=hc(e,s,n),t.memoizedState=pc,rc(e.child,r)):(Qa(t),n=e.child,e=n.sibling,n=ui(n,{mode:`visible`,children:r.children}),n.return=t,n.sibling=null,e!==null&&(s=t.deletions,s===null?(t.deletions=[e],t.flags|=16):s.push(e)),t.child=n,t.memoizedState=null,n)}function _c(e,t){return t=vc({mode:`visible`,children:t},e.mode),t.return=e,e.child=t}function vc(e,t){return e=ci(22,e,null,t),e.lanes=0,e}function yc(e,t,n){return Ma(t,e.child,null,n),e=_c(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function bc(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Zi(e.return,t,n)}function xc(e,t,n,r,i,a){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i,treeForkCount:a}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=i,o.treeForkCount=a)}function Sc(e,t,n){var r=t.pendingProps,i=r.revealOrder,a=r.tail;r=r.children;var o=no.current,s=(o&2)!=0;if(s?(o=o&1|2,t.flags|=128):o&=1,F(no,o),Qs(e,t,r,n),r=Fi?Si:0,!s&&e!==null&&e.flags&128)a:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&bc(e,n,t);else if(e.tag===19)bc(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break a;for(;e.sibling===null;){if(e.return===null||e.return===t)break a;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(i){case`forwards`:for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&ro(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),xc(t,!1,i,n,a,r);break;case`backwards`:case`unstable_legacy-backwards`:for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&ro(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}xc(t,!0,n,null,a,r);break;case`together`:xc(t,!1,null,null,void 0,r);break;default:t.memoizedState=null}return t.child}function Cc(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Ul|=t.lanes,(n&t.childLanes)===0)if(e!==null){if($i(e,t,n,!1),(n&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(i(153));if(t.child!==null){for(e=t.child,n=ui(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=ui(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function X(e,t){return(e.lanes&t)===0?(e=e.dependencies,!!(e!==null&&ea(e))):!0}function wc(e,t,n){switch(t.tag){case 3:de(t,t.stateNode.containerInfo),Yi(t,sa,e.memoizedState.cache),Ui();break;case 27:case 5:L(t);break;case 4:de(t,t.stateNode.containerInfo);break;case 10:Yi(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,$a(t),null;break;case 13:var r=t.memoizedState;if(r!==null)return r.dehydrated===null?(n&t.child.childLanes)===0?(Qa(t),e=Cc(e,t,n),e===null?null:e.sibling):gc(e,t,n):(Qa(t),t.flags|=128,null);Qa(t);break;case 19:var i=(e.flags&128)!=0;if(r=(n&t.childLanes)!==0,r||=($i(e,t,n,!1),(n&t.childLanes)!==0),i){if(r)return Sc(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),F(no,no.current),r)break;return null;case 22:return t.lanes=0,nc(e,t,n,t.pendingProps);case 24:Yi(t,sa,e.memoizedState.cache)}return Cc(e,t,n)}function Tc(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps)Zs=!0;else{if(!X(e,n)&&!(t.flags&128))return Zs=!1,wc(e,t,n);Zs=!!(e.flags&131072)}else Zs=!1,Fi&&t.flags&1048576&&ki(t,Si,t.index);switch(t.lanes=0,t.tag){case 16:a:{var r=t.pendingProps;if(e=Sa(t.elementType),t.type=e,typeof e==`function`)li(e)?(r=Bs(e,r),t.tag=1,t=dc(null,t,e,r,n)):(t.tag=0,t=lc(null,t,e,r,n));else{if(e!=null){var a=e.$$typeof;if(a===w){t.tag=11,t=$s(null,t,e,r,n);break a}else if(a===D){t.tag=14,t=ec(null,t,e,r,n);break a}}throw t=ie(e)||e,Error(i(306,t,``))}}return t;case 0:return lc(e,t,t.type,t.pendingProps,n);case 1:return r=t.type,a=Bs(r,t.pendingProps),dc(e,t,r,a,n);case 3:a:{if(de(t,t.stateNode.containerInfo),e===null)throw Error(i(387));r=t.pendingProps;var o=t.memoizedState;a=o.element,Ia(e,t),Ua(t,r,null,n);var s=t.memoizedState;if(r=s.cache,Yi(t,sa,r),r!==o.cache&&Qi(t,[sa],n,!0),Ha(),r=s.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:s.cache},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){t=fc(e,t,r,n);break a}else if(r!==a){a=vi(Error(i(424)),t),Gi(a),t=fc(e,t,r,n);break a}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName===`HTML`?e.ownerDocument.body:e}for(Pi=cf(e.firstChild),Ni=t,Fi=!0,Ii=null,Li=!0,n=Na(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling}else{if(Ui(),r===a){t=Cc(e,t,n);break a}Qs(e,t,r,n)}t=t.child}return t;case 26:return cc(e,t),e===null?(n=kf(t.type,null,t.pendingProps,null))?t.memoizedState=n:Fi||(n=t.type,e=t.pendingProps,r=Bd(le.current).createElement(n),r[ot]=t,r[st]=e,Pd(r,n,e),yt(r),t.stateNode=r):t.memoizedState=kf(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return L(t),e===null&&Fi&&(r=t.stateNode=ff(t.type,t.pendingProps,le.current),Ni=t,Li=!0,a=Pi,Zd(t.type)?(lf=a,Pi=cf(r.firstChild)):Pi=a),Qs(e,t,t.pendingProps.children,n),cc(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&Fi&&((a=r=Pi)&&(r=tf(r,t.type,t.pendingProps,Li),r===null?a=!1:(t.stateNode=r,Ni=t,Pi=cf(r.firstChild),Li=!1,a=!0)),a||zi(t)),L(t),a=t.type,o=t.pendingProps,s=e===null?null:e.memoizedProps,r=o.children,Ud(a,o)?r=null:s!==null&&Ud(a,s)&&(t.flags|=32),t.memoizedState!==null&&(a=_o(e,t,bo,null,null,n),Qf._currentValue=a),cc(e,t),Qs(e,t,r,n),t.child;case 6:return e===null&&Fi&&((e=n=Pi)&&(n=nf(n,t.pendingProps,Li),n===null?e=!1:(t.stateNode=n,Ni=t,Pi=null,e=!0)),e||zi(t)),null;case 13:return gc(e,t,n);case 4:return de(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Ma(t,null,r,n):Qs(e,t,r,n),t.child;case 11:return $s(e,t,t.type,t.pendingProps,n);case 7:return Qs(e,t,t.pendingProps,n),t.child;case 8:return Qs(e,t,t.pendingProps.children,n),t.child;case 12:return Qs(e,t,t.pendingProps.children,n),t.child;case 10:return r=t.pendingProps,Yi(t,t.type,r.value),Qs(e,t,r.children,n),t.child;case 9:return a=t.type._context,r=t.pendingProps.children,ta(t),a=z(a),r=r(a),t.flags|=1,Qs(e,t,r,n),t.child;case 14:return ec(e,t,t.type,t.pendingProps,n);case 15:return tc(e,t,t.type,t.pendingProps,n);case 19:return Sc(e,t,n);case 31:return sc(e,t,n);case 22:return nc(e,t,n,t.pendingProps);case 24:return ta(t),r=z(sa),e===null?(a=G(),a===null&&(a=Pl,o=B(),a.pooledCache=o,o.refCount++,o!==null&&(a.pooledCacheLanes|=n),a=o),t.memoizedState={parent:r,cache:a},Fa(t),Yi(t,sa,a)):((e.lanes&n)!==0&&(Ia(e,t),Ua(t,null,null,n),Ha()),a=e.memoizedState,o=t.memoizedState,a.parent===r?(r=o.cache,Yi(t,sa,r),r!==a.cache&&Qi(t,[sa],n,!0)):(a={parent:r,cache:r},t.memoizedState=a,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=a),Yi(t,sa,r))),Qs(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(i(156,t.tag))}function Ec(e){e.flags|=4}function Dc(e,t,n,r,i){if((t=(e.mode&32)!=0)&&(t=!1),t){if(e.flags|=16777216,(i&335544128)===i)if(e.stateNode.complete)e.flags|=8192;else if(Su())e.flags|=8192;else throw Ca=ya,_a}else e.flags&=-16777217}function Oc(e,t){if(t.type!==`stylesheet`||t.state.loading&4)e.flags&=-16777217;else if(e.flags|=16777216,!Wf(t))if(Su())e.flags|=8192;else throw Ca=ya,_a}function kc(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag===22?536870912:Ye(),e.lanes|=t,ql|=t)}function Z(e,t){if(!Fi)switch(e.tailMode){case`hidden`:t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case`collapsed`:n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Ac(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags&65011712,r|=i.flags&65011712,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function jc(e,t,n){var r=t.pendingProps;switch(ji(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ac(t),null;case 1:return Ac(t),null;case 3:return n=t.stateNode,r=null,e!==null&&(r=e.memoizedState.cache),t.memoizedState.cache!==r&&(t.flags|=2048),Xi(sa),fe(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(Hi(t)?Ec(t):e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Wi())),Ac(t),null;case 26:var a=t.type,o=t.memoizedState;return e===null?(Ec(t),o===null?(Ac(t),Dc(t,a,null,r,n)):(Ac(t),Oc(t,o))):o?o===e.memoizedState?(Ac(t),t.flags&=-16777217):(Ec(t),Ac(t),Oc(t,o)):(e=e.memoizedProps,e!==r&&Ec(t),Ac(t),Dc(t,a,e,r,n)),null;case 27:if(pe(t),n=le.current,a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&Ec(t);else{if(!r){if(t.stateNode===null)throw Error(i(166));return Ac(t),null}e=I.current,Hi(t)?Bi(t,e):(e=ff(a,r,n),t.stateNode=e,Ec(t))}return Ac(t),null;case 5:if(pe(t),a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&Ec(t);else{if(!r){if(t.stateNode===null)throw Error(i(166));return Ac(t),null}if(o=I.current,Hi(t))Bi(t,o);else{var s=Bd(le.current);switch(o){case 1:o=s.createElementNS(`http://www.w3.org/2000/svg`,a);break;case 2:o=s.createElementNS(`http://www.w3.org/1998/Math/MathML`,a);break;default:switch(a){case`svg`:o=s.createElementNS(`http://www.w3.org/2000/svg`,a);break;case`math`:o=s.createElementNS(`http://www.w3.org/1998/Math/MathML`,a);break;case`script`:o=s.createElement(`div`),o.innerHTML=`<script><\/script>`,o=o.removeChild(o.firstChild);break;case`select`:o=typeof r.is==`string`?s.createElement(`select`,{is:r.is}):s.createElement(`select`),r.multiple?o.multiple=!0:r.size&&(o.size=r.size);break;default:o=typeof r.is==`string`?s.createElement(a,{is:r.is}):s.createElement(a)}}o[ot]=t,o[st]=r;a:for(s=t.child;s!==null;){if(s.tag===5||s.tag===6)o.appendChild(s.stateNode);else if(s.tag!==4&&s.tag!==27&&s.child!==null){s.child.return=s,s=s.child;continue}if(s===t)break a;for(;s.sibling===null;){if(s.return===null||s.return===t)break a;s=s.return}s.sibling.return=s.return,s=s.sibling}t.stateNode=o;a:switch(Pd(o,a,r),a){case`button`:case`input`:case`select`:case`textarea`:r=!!r.autoFocus;break a;case`img`:r=!0;break a;default:r=!1}r&&Ec(t)}}return Ac(t),Dc(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==r&&Ec(t);else{if(typeof r!=`string`&&t.stateNode===null)throw Error(i(166));if(e=le.current,Hi(t)){if(e=t.stateNode,n=t.memoizedProps,r=null,a=Ni,a!==null)switch(a.tag){case 27:case 5:r=a.memoizedProps}e[ot]=t,e=!!(e.nodeValue===n||r!==null&&!0===r.suppressHydrationWarning||jd(e.nodeValue,n)),e||zi(t,!0)}else e=Bd(e).createTextNode(r),e[ot]=t,t.stateNode=e}return Ac(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(r=Hi(t),n!==null){if(e===null){if(!r)throw Error(i(318));if(e=t.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(i(557));e[ot]=t}else Ui(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Ac(t),e=!1}else n=Wi(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(to(t),t):(to(t),null);if(t.flags&128)throw Error(i(558))}return Ac(t),null;case 13:if(r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(a=Hi(t),r!==null&&r.dehydrated!==null){if(e===null){if(!a)throw Error(i(318));if(a=t.memoizedState,a=a===null?null:a.dehydrated,!a)throw Error(i(317));a[ot]=t}else Ui(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Ac(t),a=!1}else a=Wi(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),a=!0;if(!a)return t.flags&256?(to(t),t):(to(t),null)}return to(t),t.flags&128?(t.lanes=n,t):(n=r!==null,e=e!==null&&e.memoizedState!==null,n&&(r=t.child,a=null,r.alternate!==null&&r.alternate.memoizedState!==null&&r.alternate.memoizedState.cachePool!==null&&(a=r.alternate.memoizedState.cachePool.pool),o=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(o=r.memoizedState.cachePool.pool),o!==a&&(r.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),kc(t,t.updateQueue),Ac(t),null);case 4:return fe(),e===null&&xd(t.stateNode.containerInfo),Ac(t),null;case 10:return Xi(t.type),Ac(t),null;case 19:if(P(no),r=t.memoizedState,r===null)return Ac(t),null;if(a=(t.flags&128)!=0,o=r.rendering,o===null)if(a)Z(r,!1);else{if(Hl!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=ro(e),o!==null){for(t.flags|=128,Z(r,!1),e=o.updateQueue,t.updateQueue=e,kc(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)di(n,e),n=n.sibling;return F(no,no.current&1|2),Fi&&Oi(t,r.treeForkCount),t.child}e=e.sibling}r.tail!==null&&Ee()>$l&&(t.flags|=128,a=!0,Z(r,!1),t.lanes=4194304)}else{if(!a)if(e=ro(o),e!==null){if(t.flags|=128,a=!0,e=e.updateQueue,t.updateQueue=e,kc(t,e),Z(r,!0),r.tail===null&&r.tailMode===`hidden`&&!o.alternate&&!Fi)return Ac(t),null}else 2*Ee()-r.renderingStartTime>$l&&n!==536870912&&(t.flags|=128,a=!0,Z(r,!1),t.lanes=4194304);r.isBackwards?(o.sibling=t.child,t.child=o):(e=r.last,e===null?t.child=o:e.sibling=o,r.last=o)}return r.tail===null?(Ac(t),null):(e=r.tail,r.rendering=e,r.tail=e.sibling,r.renderingStartTime=Ee(),e.sibling=null,n=no.current,F(no,a?n&1|2:n&1),Fi&&Oi(t,r.treeForkCount),e);case 22:case 23:return to(t),Xa(),r=t.memoizedState!==null,e===null?r&&(t.flags|=8192):e.memoizedState!==null!==r&&(t.flags|=8192),r?n&536870912&&!(t.flags&128)&&(Ac(t),t.subtreeFlags&6&&(t.flags|=8192)):Ac(t),n=t.updateQueue,n!==null&&kc(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),r=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(r=t.memoizedState.cachePool.pool),r!==n&&(t.flags|=2048),e!==null&&P(pa),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),Xi(sa),Ac(t),null;case 25:return null;case 30:return null}throw Error(i(156,t.tag))}function Mc(e,t){switch(ji(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Xi(sa),fe(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return pe(t),null;case 31:if(t.memoizedState!==null){if(to(t),t.alternate===null)throw Error(i(340));Ui()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(to(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(i(340));Ui()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return P(no),null;case 4:return fe(),null;case 10:return Xi(t.type),null;case 22:case 23:return to(t),Xa(),e!==null&&P(pa),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Xi(sa),null;case 25:return null;default:return null}}function Nc(e,t){switch(ji(t),t.tag){case 3:Xi(sa),fe();break;case 26:case 27:case 5:pe(t);break;case 4:fe();break;case 31:t.memoizedState!==null&&to(t);break;case 13:to(t);break;case 19:P(no);break;case 10:Xi(t.type);break;case 22:case 23:to(t),Xa(),e!==null&&P(pa);break;case 24:Xi(sa)}}function Pc(e,t){try{var n=t.updateQueue,r=n===null?null:n.lastEffect;if(r!==null){var i=r.next;n=i;do{if((n.tag&e)===e){r=void 0;var a=n.create,o=n.inst;r=a(),o.destroy=r}n=n.next}while(n!==i)}}catch(e){Uu(t,t.return,e)}}function Fc(e,t,n){try{var r=t.updateQueue,i=r===null?null:r.lastEffect;if(i!==null){var a=i.next;r=a;do{if((r.tag&e)===e){var o=r.inst,s=o.destroy;if(s!==void 0){o.destroy=void 0,i=t;var c=n,l=s;try{l()}catch(e){Uu(i,c,e)}}}r=r.next}while(r!==a)}}catch(e){Uu(t,t.return,e)}}function Ic(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{Ga(t,n)}catch(t){Uu(e,e.return,t)}}}function Lc(e,t,n){n.props=Bs(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(n){Uu(e,t,n)}}function Rc(e,t){try{var n=e.ref;if(n!==null){switch(e.tag){case 26:case 27:case 5:var r=e.stateNode;break;case 30:r=e.stateNode;break;default:r=e.stateNode}typeof n==`function`?e.refCleanup=n(r):n.current=r}}catch(n){Uu(e,t,n)}}function zc(e,t){var n=e.ref,r=e.refCleanup;if(n!==null)if(typeof r==`function`)try{r()}catch(n){Uu(e,t,n)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n==`function`)try{n(null)}catch(n){Uu(e,t,n)}else n.current=null}function Bc(e){var t=e.type,n=e.memoizedProps,r=e.stateNode;try{a:switch(t){case`button`:case`input`:case`select`:case`textarea`:n.autoFocus&&r.focus();break a;case`img`:n.src?r.src=n.src:n.srcSet&&(r.srcset=n.srcSet)}}catch(t){Uu(e,e.return,t)}}function Vc(e,t,n){try{var r=e.stateNode;Fd(r,e.type,n,t),r[st]=t}catch(t){Uu(e,e.return,t)}}function Hc(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Zd(e.type)||e.tag===4}function Uc(e){a:for(;;){for(;e.sibling===null;){if(e.return===null||Hc(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&&Zd(e.type)||e.flags&2||e.child===null||e.tag===4)continue a;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Wc(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?(n.nodeType===9?n.body:n.nodeName===`HTML`?n.ownerDocument.body:n).insertBefore(e,t):(t=n.nodeType===9?n.body:n.nodeName===`HTML`?n.ownerDocument.body:n,t.appendChild(e),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=$t));else if(r!==4&&(r===27&&Zd(e.type)&&(n=e.stateNode,t=null),e=e.child,e!==null))for(Wc(e,t,n),e=e.sibling;e!==null;)Wc(e,t,n),e=e.sibling}function Gc(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(r===27&&Zd(e.type)&&(n=e.stateNode),e=e.child,e!==null))for(Gc(e,t,n),e=e.sibling;e!==null;)Gc(e,t,n),e=e.sibling}function Kc(e){var t=e.stateNode,n=e.memoizedProps;try{for(var r=e.type,i=t.attributes;i.length;)t.removeAttributeNode(i[0]);Pd(t,r,n),t[ot]=e,t[st]=n}catch(t){Uu(e,e.return,t)}}var qc=!1,Jc=!1,Yc=!1,Xc=typeof WeakSet==`function`?WeakSet:Set,Zc=null;function Qc(e,t){if(e=e.containerInfo,Rd=sp,e=Dr(e),Or(e)){if(`selectionStart`in e)var n={start:e.selectionStart,end:e.selectionEnd};else a:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var a=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break a}var s=0,c=-1,l=-1,u=0,d=0,f=e,p=null;b:for(;;){for(var m;f!==n||a!==0&&f.nodeType!==3||(c=s+a),f!==o||r!==0&&f.nodeType!==3||(l=s+r),f.nodeType===3&&(s+=f.nodeValue.length),(m=f.firstChild)!==null;)p=f,f=m;for(;;){if(f===e)break b;if(p===n&&++u===a&&(c=s),p===o&&++d===r&&(l=s),(m=f.nextSibling)!==null)break;f=p,p=f.parentNode}f=m}n=c===-1||l===-1?null:{start:c,end:l}}else n=null}n||={start:0,end:0}}else n=null;for(zd={focusedElem:e,selectionRange:n},sp=!1,Zc=t;Zc!==null;)if(t=Zc,e=t.child,t.subtreeFlags&1028&&e!==null)e.return=t,Zc=e;else for(;Zc!==null;){switch(t=Zc,o=t.alternate,e=t.flags,t.tag){case 0:if(e&4&&(e=t.updateQueue,e=e===null?null:e.events,e!==null))for(n=0;n<e.length;n++)a=e[n],a.ref.impl=a.nextImpl;break;case 11:case 15:break;case 1:if(e&1024&&o!==null){e=void 0,n=t,a=o.memoizedProps,o=o.memoizedState,r=n.stateNode;try{var h=Bs(n.type,a);e=r.getSnapshotBeforeUpdate(h,o),r.__reactInternalSnapshotBeforeUpdate=e}catch(e){Uu(n,n.return,e)}}break;case 3:if(e&1024){if(e=t.stateNode.containerInfo,n=e.nodeType,n===9)ef(e);else if(n===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)throw Error(i(163))}if(e=t.sibling,e!==null){e.return=t.return,Zc=e;break}Zc=t.return}}function $c(e,t,n){var r=n.flags;switch(n.tag){case 0:case 11:case 15:ml(e,n),r&4&&Pc(5,n);break;case 1:if(ml(e,n),r&4)if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(e){Uu(n,n.return,e)}else{var i=Bs(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(i,t,e.__reactInternalSnapshotBeforeUpdate)}catch(e){Uu(n,n.return,e)}}r&64&&Ic(n),r&512&&Rc(n,n.return);break;case 3:if(ml(e,n),r&64&&(e=n.updateQueue,e!==null)){if(t=null,n.child!==null)switch(n.child.tag){case 27:case 5:t=n.child.stateNode;break;case 1:t=n.child.stateNode}try{Ga(e,t)}catch(e){Uu(n,n.return,e)}}break;case 27:t===null&&r&4&&Kc(n);case 26:case 5:ml(e,n),t===null&&r&4&&Bc(n),r&512&&Rc(n,n.return);break;case 12:ml(e,n);break;case 31:ml(e,n),r&4&&al(e,n);break;case 13:ml(e,n),r&4&&ol(e,n),r&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=qu.bind(null,n),sf(e,n))));break;case 22:if(r=n.memoizedState!==null||qc,!r){t=t!==null&&t.memoizedState!==null||Jc,i=qc;var a=Jc;qc=r,(Jc=t)&&!a?gl(e,n,(n.subtreeFlags&8772)!=0):ml(e,n),qc=i,Jc=a}break;case 30:break;default:ml(e,n)}}function el(e){var t=e.alternate;t!==null&&(e.alternate=null,el(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&mt(t)),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 tl=null,nl=!1;function rl(e,t,n){for(n=n.child;n!==null;)il(e,t,n),n=n.sibling}function il(e,t,n){if(Ie&&typeof Ie.onCommitFiberUnmount==`function`)try{Ie.onCommitFiberUnmount(Fe,n)}catch{}switch(n.tag){case 26:Jc||zc(n,t),rl(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:Jc||zc(n,t);var r=tl,i=nl;Zd(n.type)&&(tl=n.stateNode,nl=!1),rl(e,t,n),pf(n.stateNode),tl=r,nl=i;break;case 5:Jc||zc(n,t);case 6:if(r=tl,i=nl,tl=null,rl(e,t,n),tl=r,nl=i,tl!==null)if(nl)try{(tl.nodeType===9?tl.body:tl.nodeName===`HTML`?tl.ownerDocument.body:tl).removeChild(n.stateNode)}catch(e){Uu(n,t,e)}else try{tl.removeChild(n.stateNode)}catch(e){Uu(n,t,e)}break;case 18:tl!==null&&(nl?(e=tl,Qd(e.nodeType===9?e.body:e.nodeName===`HTML`?e.ownerDocument.body:e,n.stateNode),Np(e)):Qd(tl,n.stateNode));break;case 4:r=tl,i=nl,tl=n.stateNode.containerInfo,nl=!0,rl(e,t,n),tl=r,nl=i;break;case 0:case 11:case 14:case 15:Fc(2,n,t),Jc||Fc(4,n,t),rl(e,t,n);break;case 1:Jc||(zc(n,t),r=n.stateNode,typeof r.componentWillUnmount==`function`&&Lc(n,t,r)),rl(e,t,n);break;case 21:rl(e,t,n);break;case 22:Jc=(r=Jc)||n.memoizedState!==null,rl(e,t,n),Jc=r;break;default:rl(e,t,n)}}function al(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Np(e)}catch(e){Uu(t,t.return,e)}}}function ol(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Np(e)}catch(e){Uu(t,t.return,e)}}function sl(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new Xc),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new Xc),t;default:throw Error(i(435,e.tag))}}function cl(e,t){var n=sl(e);t.forEach(function(t){if(!n.has(t)){n.add(t);var r=Ju.bind(null,e,t);t.then(r,r)}})}function ll(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var a=n[r],o=e,s=t,c=s;a:for(;c!==null;){switch(c.tag){case 27:if(Zd(c.type)){tl=c.stateNode,nl=!1;break a}break;case 5:tl=c.stateNode,nl=!1;break a;case 3:case 4:tl=c.stateNode.containerInfo,nl=!0;break a}c=c.return}if(tl===null)throw Error(i(160));il(o,s,a),tl=null,nl=!1,o=a.alternate,o!==null&&(o.return=null),a.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)dl(t,e),t=t.sibling}var ul=null;function dl(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:ll(t,e),fl(e),r&4&&(Fc(3,e,e.return),Pc(3,e),Fc(5,e,e.return));break;case 1:ll(t,e),fl(e),r&512&&(Jc||n===null||zc(n,n.return)),r&64&&qc&&(e=e.updateQueue,e!==null&&(r=e.callbacks,r!==null&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=n===null?r:n.concat(r))));break;case 26:var a=ul;if(ll(t,e),fl(e),r&512&&(Jc||n===null||zc(n,n.return)),r&4){var o=n===null?null:n.memoizedState;if(r=e.memoizedState,n===null)if(r===null)if(e.stateNode===null){a:{r=e.type,n=e.memoizedProps,a=a.ownerDocument||a;b:switch(r){case`title`:o=a.getElementsByTagName(`title`)[0],(!o||o[pt]||o[ot]||o.namespaceURI===`http://www.w3.org/2000/svg`||o.hasAttribute(`itemprop`))&&(o=a.createElement(r),a.head.insertBefore(o,a.querySelector(`head > title`))),Pd(o,r,n),o[ot]=e,yt(o),r=o;break a;case`link`:var s=Vf(`link`,`href`,a).get(r+(n.href||``));if(s){for(var c=0;c<s.length;c++)if(o=s[c],o.getAttribute(`href`)===(n.href==null||n.href===``?null:n.href)&&o.getAttribute(`rel`)===(n.rel==null?null:n.rel)&&o.getAttribute(`title`)===(n.title==null?null:n.title)&&o.getAttribute(`crossorigin`)===(n.crossOrigin==null?null:n.crossOrigin)){s.splice(c,1);break b}}o=a.createElement(r),Pd(o,r,n),a.head.appendChild(o);break;case`meta`:if(s=Vf(`meta`,`content`,a).get(r+(n.content||``))){for(c=0;c<s.length;c++)if(o=s[c],o.getAttribute(`content`)===(n.content==null?null:``+n.content)&&o.getAttribute(`name`)===(n.name==null?null:n.name)&&o.getAttribute(`property`)===(n.property==null?null:n.property)&&o.getAttribute(`http-equiv`)===(n.httpEquiv==null?null:n.httpEquiv)&&o.getAttribute(`charset`)===(n.charSet==null?null:n.charSet)){s.splice(c,1);break b}}o=a.createElement(r),Pd(o,r,n),a.head.appendChild(o);break;default:throw Error(i(468,r))}o[ot]=e,yt(o),r=o}e.stateNode=r}else Hf(a,e.type,e.stateNode);else e.stateNode=If(a,r,e.memoizedProps);else o===r?r===null&&e.stateNode!==null&&Vc(e,e.memoizedProps,n.memoizedProps):(o===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):o.count--,r===null?Hf(a,e.type,e.stateNode):If(a,r,e.memoizedProps))}break;case 27:ll(t,e),fl(e),r&512&&(Jc||n===null||zc(n,n.return)),n!==null&&r&4&&Vc(e,e.memoizedProps,n.memoizedProps);break;case 5:if(ll(t,e),fl(e),r&512&&(Jc||n===null||zc(n,n.return)),e.flags&32){a=e.stateNode;try{Gt(a,``)}catch(t){Uu(e,e.return,t)}}r&4&&e.stateNode!=null&&(a=e.memoizedProps,Vc(e,a,n===null?a:n.memoizedProps)),r&1024&&(Yc=!0);break;case 6:if(ll(t,e),fl(e),r&4){if(e.stateNode===null)throw Error(i(162));r=e.memoizedProps,n=e.stateNode;try{n.nodeValue=r}catch(t){Uu(e,e.return,t)}}break;case 3:if(Bf=null,a=ul,ul=gf(t.containerInfo),ll(t,e),ul=a,fl(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{Np(t.containerInfo)}catch(t){Uu(e,e.return,t)}Yc&&(Yc=!1,pl(e));break;case 4:r=ul,ul=gf(e.stateNode.containerInfo),ll(t,e),fl(e),ul=r;break;case 12:ll(t,e),fl(e);break;case 31:ll(t,e),fl(e),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,cl(e,r)));break;case 13:ll(t,e),fl(e),e.child.flags&8192&&e.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(Zl=Ee()),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,cl(e,r)));break;case 22:a=e.memoizedState!==null;var l=n!==null&&n.memoizedState!==null,u=qc,d=Jc;if(qc=u||a,Jc=d||l,ll(t,e),Jc=d,qc=u,fl(e),r&8192)a:for(t=e.stateNode,t._visibility=a?t._visibility&-2:t._visibility|1,a&&(n===null||l||qc||Jc||hl(e)),n=null,t=e;;){if(t.tag===5||t.tag===26){if(n===null){l=n=t;try{if(o=l.stateNode,a)s=o.style,typeof s.setProperty==`function`?s.setProperty(`display`,`none`,`important`):s.display=`none`;else{c=l.stateNode;var f=l.memoizedProps.style,p=f!=null&&f.hasOwnProperty(`display`)?f.display:null;c.style.display=p==null||typeof p==`boolean`?``:(``+p).trim()}}catch(e){Uu(l,l.return,e)}}}else if(t.tag===6){if(n===null){l=t;try{l.stateNode.nodeValue=a?``:l.memoizedProps}catch(e){Uu(l,l.return,e)}}}else if(t.tag===18){if(n===null){l=t;try{var m=l.stateNode;a?$d(m,!0):$d(l.stateNode,!1)}catch(e){Uu(l,l.return,e)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break a;for(;t.sibling===null;){if(t.return===null||t.return===e)break a;n===t&&(n=null),t=t.return}n===t&&(n=null),t.sibling.return=t.return,t=t.sibling}r&4&&(r=e.updateQueue,r!==null&&(n=r.retryQueue,n!==null&&(r.retryQueue=null,cl(e,n))));break;case 19:ll(t,e),fl(e),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,cl(e,r)));break;case 30:break;case 21:break;default:ll(t,e),fl(e)}}function fl(e){var t=e.flags;if(t&2){try{for(var n,r=e.return;r!==null;){if(Hc(r)){n=r;break}r=r.return}if(n==null)throw Error(i(160));switch(n.tag){case 27:var a=n.stateNode;Gc(e,Uc(e),a);break;case 5:var o=n.stateNode;n.flags&32&&(Gt(o,``),n.flags&=-33),Gc(e,Uc(e),o);break;case 3:case 4:var s=n.stateNode.containerInfo;Wc(e,Uc(e),s);break;default:throw Error(i(161))}}catch(t){Uu(e,e.return,t)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function pl(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;pl(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function ml(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)$c(e,t.alternate,t),t=t.sibling}function hl(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:Fc(4,t,t.return),hl(t);break;case 1:zc(t,t.return);var n=t.stateNode;typeof n.componentWillUnmount==`function`&&Lc(t,t.return,n),hl(t);break;case 27:pf(t.stateNode);case 26:case 5:zc(t,t.return),hl(t);break;case 22:t.memoizedState===null&&hl(t);break;case 30:hl(t);break;default:hl(t)}e=e.sibling}}function gl(e,t,n){for(n&&=(t.subtreeFlags&8772)!=0,t=t.child;t!==null;){var r=t.alternate,i=e,a=t,o=a.flags;switch(a.tag){case 0:case 11:case 15:gl(i,a,n),Pc(4,a);break;case 1:if(gl(i,a,n),r=a,i=r.stateNode,typeof i.componentDidMount==`function`)try{i.componentDidMount()}catch(e){Uu(r,r.return,e)}if(r=a,i=r.updateQueue,i!==null){var s=r.stateNode;try{var c=i.shared.hiddenCallbacks;if(c!==null)for(i.shared.hiddenCallbacks=null,i=0;i<c.length;i++)Wa(c[i],s)}catch(e){Uu(r,r.return,e)}}n&&o&64&&Ic(a),Rc(a,a.return);break;case 27:Kc(a);case 26:case 5:gl(i,a,n),n&&r===null&&o&4&&Bc(a),Rc(a,a.return);break;case 12:gl(i,a,n);break;case 31:gl(i,a,n),n&&o&4&&al(i,a);break;case 13:gl(i,a,n),n&&o&4&&ol(i,a);break;case 22:a.memoizedState===null&&gl(i,a,n),Rc(a,a.return);break;case 30:break;default:gl(i,a,n)}t=t.sibling}}function _l(e,t){var n=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==n&&(e!=null&&e.refCount++,n!=null&&V(n))}function vl(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&V(e))}function yl(e,t,n,r){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)bl(e,t,n,r),t=t.sibling}function bl(e,t,n,r){var i=t.flags;switch(t.tag){case 0:case 11:case 15:yl(e,t,n,r),i&2048&&Pc(9,t);break;case 1:yl(e,t,n,r);break;case 3:yl(e,t,n,r),i&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&V(e)));break;case 12:if(i&2048){yl(e,t,n,r),e=t.stateNode;try{var a=t.memoizedProps,o=a.id,s=a.onPostCommit;typeof s==`function`&&s(o,t.alternate===null?`mount`:`update`,e.passiveEffectDuration,-0)}catch(e){Uu(t,t.return,e)}}else yl(e,t,n,r);break;case 31:yl(e,t,n,r);break;case 13:yl(e,t,n,r);break;case 23:break;case 22:a=t.stateNode,o=t.alternate,t.memoizedState===null?a._visibility&2?yl(e,t,n,r):(a._visibility|=2,xl(e,t,n,r,(t.subtreeFlags&10256)!=0||!1)):a._visibility&2?yl(e,t,n,r):Sl(e,t),i&2048&&_l(o,t);break;case 24:yl(e,t,n,r),i&2048&&vl(t.alternate,t);break;default:yl(e,t,n,r)}}function xl(e,t,n,r,i){for(i&&=(t.subtreeFlags&10256)!=0||!1,t=t.child;t!==null;){var a=e,o=t,s=n,c=r,l=o.flags;switch(o.tag){case 0:case 11:case 15:xl(a,o,s,c,i),Pc(8,o);break;case 23:break;case 22:var u=o.stateNode;o.memoizedState===null?(u._visibility|=2,xl(a,o,s,c,i)):u._visibility&2?xl(a,o,s,c,i):Sl(a,o),i&&l&2048&&_l(o.alternate,o);break;case 24:xl(a,o,s,c,i),i&&l&2048&&vl(o.alternate,o);break;default:xl(a,o,s,c,i)}t=t.sibling}}function Sl(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var n=e,r=t,i=r.flags;switch(r.tag){case 22:Sl(n,r),i&2048&&_l(r.alternate,r);break;case 24:Sl(n,r),i&2048&&vl(r.alternate,r);break;default:Sl(n,r)}t=t.sibling}}var Cl=8192;function wl(e,t,n){if(e.subtreeFlags&Cl)for(e=e.child;e!==null;)Tl(e,t,n),e=e.sibling}function Tl(e,t,n){switch(e.tag){case 26:wl(e,t,n),e.flags&Cl&&e.memoizedState!==null&&Gf(n,ul,e.memoizedState,e.memoizedProps);break;case 5:wl(e,t,n);break;case 3:case 4:var r=ul;ul=gf(e.stateNode.containerInfo),wl(e,t,n),ul=r;break;case 22:e.memoizedState===null&&(r=e.alternate,r!==null&&r.memoizedState!==null?(r=Cl,Cl=16777216,wl(e,t,n),Cl=r):wl(e,t,n));break;default:wl(e,t,n)}}function El(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function Dl(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n];Zc=r,Al(r,e)}El(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Ol(e),e=e.sibling}function Ol(e){switch(e.tag){case 0:case 11:case 15:Dl(e),e.flags&2048&&Fc(9,e,e.return);break;case 3:Dl(e);break;case 12:Dl(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,kl(e)):Dl(e);break;default:Dl(e)}}function kl(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n];Zc=r,Al(r,e)}El(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Fc(8,t,t.return),kl(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,kl(t));break;default:kl(t)}e=e.sibling}}function Al(e,t){for(;Zc!==null;){var n=Zc;switch(n.tag){case 0:case 11:case 15:Fc(8,n,t);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var r=n.memoizedState.cachePool.pool;r!=null&&r.refCount++}break;case 24:V(n.memoizedState.cache)}if(r=n.child,r!==null)r.return=n,Zc=r;else a:for(n=e;Zc!==null;){r=Zc;var i=r.sibling,a=r.return;if(el(r),r===n){Zc=null;break a}if(i!==null){i.return=a,Zc=i;break a}Zc=a}}}var jl={getCacheForType:function(e){var t=z(sa),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return z(sa).controller.signal}},Ml=typeof WeakMap==`function`?WeakMap:Map,Nl=0,Pl=null,Q=null,Fl=0,Il=0,Ll=null,Rl=!1,zl=!1,Bl=!1,Vl=0,Hl=0,Ul=0,Wl=0,Gl=0,Kl=0,ql=0,Jl=null,Yl=null,Xl=!1,Zl=0,Ql=0,$l=1/0,eu=null,tu=null,nu=0,ru=null,iu=null,au=0,ou=0,su=null,cu=null,lu=0,uu=null;function du(){return Nl&2&&Fl!==0?Fl&-Fl:A.T===null?R():ud()}function fu(){if(Kl===0)if(!(Fl&536870912)||Fi){var e=Ue;Ue<<=1,!(Ue&3932160)&&(Ue=262144),Kl=e}else Kl=536870912;return e=K.current,e!==null&&(e.flags|=32),Kl}function pu(e,t,n){(e===Pl&&(Il===2||Il===9)||e.cancelPendingCommit!==null)&&(bu(e,0),_u(e,Fl,Kl,!1)),Ze(e,n),(!(Nl&2)||e!==Pl)&&(e===Pl&&(!(Nl&2)&&(Wl|=n),Hl===4&&_u(e,Fl,Kl,!1)),nd(e))}function mu(e,t,n){if(Nl&6)throw Error(i(327));var r=!n&&(t&127)==0&&(t&e.expiredLanes)===0||qe(e,t),a=r?Ou(e,t):Eu(e,t,!0),o=r;do{if(a===0){zl&&!r&&_u(e,t,0,!1);break}else{if(n=e.current.alternate,o&&!gu(n)){a=Eu(e,t,!1),o=!1;continue}if(a===2){if(o=t,e.errorRecoveryDisabledLanes&o)var s=0;else s=e.pendingLanes&-536870913,s=s===0?s&536870912?536870912:0:s;if(s!==0){t=s;a:{var c=e;a=Jl;var l=c.current.memoizedState.isDehydrated;if(l&&(bu(c,s).flags|=256),s=Eu(c,s,!1),s!==2){if(Bl&&!l){c.errorRecoveryDisabledLanes|=o,Wl|=o,a=4;break a}o=Yl,Yl=a,o!==null&&(Yl===null?Yl=o:Yl.push.apply(Yl,o))}a=s}if(o=!1,a!==2)continue}}if(a===1){bu(e,0),_u(e,t,0,!0);break}a:{switch(r=e,o=a,o){case 0:case 1:throw Error(i(345));case 4:if((t&4194048)!==t)break;case 6:_u(r,t,Kl,!Rl);break a;case 2:Yl=null;break;case 3:case 5:break;default:throw Error(i(329))}if((t&62914560)===t&&(a=Zl+300-Ee(),10<a)){if(_u(r,t,Kl,!Rl),Ke(r,0,!0)!==0)break a;au=t,r.timeoutHandle=Kd(hu.bind(null,r,n,Yl,eu,Xl,t,Kl,Wl,ql,Rl,o,`Throttled`,-0,0),a);break a}hu(r,n,Yl,eu,Xl,t,Kl,Wl,ql,Rl,o,null,-0,0)}}break}while(1);nd(e)}function hu(e,t,n,r,i,a,o,s,c,l,u,d,f,p){if(e.timeoutHandle=-1,d=t.subtreeFlags,d&8192||(d&16785408)==16785408){d={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:$t},Tl(t,a,d);var m=(a&62914560)===a?Zl-Ee():(a&4194048)===a?Ql-Ee():0;if(m=qf(d,m),m!==null){au=a,e.cancelPendingCommit=m(Fu.bind(null,e,t,a,n,r,i,o,s,c,u,d,null,f,p)),_u(e,a,o,!l);return}}Fu(e,t,a,n,r,i,o,s,c)}function gu(e){for(var t=e;;){var n=t.tag;if((n===0||n===11||n===15)&&t.flags&16384&&(n=t.updateQueue,n!==null&&(n=n.stores,n!==null)))for(var r=0;r<n.length;r++){var i=n[r],a=i.getSnapshot;i=i.value;try{if(!Sr(a(),i))return!1}catch{return!1}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function _u(e,t,n,r){t&=~Gl,t&=~Wl,e.suspendedLanes|=t,e.pingedLanes&=~t,r&&(e.warmLanes|=t),r=e.expirationTimes;for(var i=t;0<i;){var a=31-Re(i),o=1<<a;r[a]=-1,i&=~o}n!==0&&$e(e,n,t)}function vu(){return Nl&6?!0:(rd(0,!1),!1)}function yu(){if(Q!==null){if(Il===0)var e=Q.return;else e=Q,Ji=qi=null,Co(e),Ea=null,Da=0,e=Q;for(;e!==null;)Nc(e.alternate,e),e=e.return;Q=null}}function bu(e,t){var n=e.timeoutHandle;n!==-1&&(e.timeoutHandle=-1,qd(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),au=0,yu(),Pl=e,Q=n=ui(e.current,null),Fl=t,Il=0,Ll=null,Rl=!1,zl=qe(e,t),Bl=!1,ql=Kl=Gl=Wl=Ul=Hl=0,Yl=Jl=null,Xl=!1,t&8&&(t|=t&32);var r=e.entangledLanes;if(r!==0)for(e=e.entanglements,r&=t;0<r;){var i=31-Re(r),a=1<<i;t|=e[i],r&=~a}return Vl=t,ei(),n}function xu(e,t){J=null,A.H=Ms,t===ga||t===va?(t=wa(),Il=3):t===_a?(t=wa(),Il=4):Il=t===Xs?8:typeof t==`object`&&t&&typeof t.then==`function`?6:1,Ll=t,Q===null&&(Hl=1,Ws(e,vi(t,e.current)))}function Su(){var e=K.current;return e===null?!0:(Fl&4194048)===Fl?Za===null:(Fl&62914560)===Fl||Fl&536870912?e===Za:!1}function Cu(){var e=A.H;return A.H=Ms,e===null?Ms:e}function wu(){var e=A.A;return A.A=jl,e}function Tu(){Hl=4,Rl||(Fl&4194048)!==Fl&&K.current!==null||(zl=!0),!(Ul&134217727)&&!(Wl&134217727)||Pl===null||_u(Pl,Fl,Kl,!1)}function Eu(e,t,n){var r=Nl;Nl|=2;var i=Cu(),a=wu();(Pl!==e||Fl!==t)&&(eu=null,bu(e,t)),t=!1;var o=Hl;a:do try{if(Il!==0&&Q!==null){var s=Q,c=Ll;switch(Il){case 8:yu(),o=6;break a;case 3:case 2:case 9:case 6:K.current===null&&(t=!0);var l=Il;if(Il=0,Ll=null,Mu(e,s,c,l),n&&zl){o=0;break a}break;default:l=Il,Il=0,Ll=null,Mu(e,s,c,l)}}Du(),o=Hl;break}catch(t){xu(e,t)}while(1);return t&&e.shellSuspendCounter++,Ji=qi=null,Nl=r,A.H=i,A.A=a,Q===null&&(Pl=null,Fl=0,ei()),o}function Du(){for(;Q!==null;)Au(Q)}function Ou(e,t){var n=Nl;Nl|=2;var r=Cu(),a=wu();Pl!==e||Fl!==t?(eu=null,$l=Ee()+500,bu(e,t)):zl=qe(e,t);a:do try{if(Il!==0&&Q!==null){t=Q;var o=Ll;b:switch(Il){case 1:Il=0,Ll=null,Mu(e,t,o,1);break;case 2:case 9:if(ba(o)){Il=0,Ll=null,ju(t);break}t=function(){Il!==2&&Il!==9||Pl!==e||(Il=7),nd(e)},o.then(t,t);break a;case 3:Il=7;break a;case 4:Il=5;break a;case 7:ba(o)?(Il=0,Ll=null,ju(t)):(Il=0,Ll=null,Mu(e,t,o,7));break;case 5:var s=null;switch(Q.tag){case 26:s=Q.memoizedState;case 5:case 27:var c=Q;if(s?Wf(s):c.stateNode.complete){Il=0,Ll=null;var l=c.sibling;if(l!==null)Q=l;else{var u=c.return;u===null?Q=null:(Q=u,Nu(u))}break b}}Il=0,Ll=null,Mu(e,t,o,5);break;case 6:Il=0,Ll=null,Mu(e,t,o,6);break;case 8:yu(),Hl=6;break a;default:throw Error(i(462))}}ku();break}catch(t){xu(e,t)}while(1);return Ji=qi=null,A.H=r,A.A=a,Nl=n,Q===null?(Pl=null,Fl=0,ei(),Hl):0}function ku(){for(;Q!==null&&!we();)Au(Q)}function Au(e){var t=Tc(e.alternate,e,Vl);e.memoizedProps=e.pendingProps,t===null?Nu(e):Q=t}function ju(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=uc(n,t,t.pendingProps,t.type,void 0,Fl);break;case 11:t=uc(n,t,t.pendingProps,t.type.render,t.ref,Fl);break;case 5:Co(t);default:Nc(n,t),t=Q=di(t,Vl),t=Tc(n,t,Vl)}e.memoizedProps=e.pendingProps,t===null?Nu(e):Q=t}function Mu(e,t,n,r){Ji=qi=null,Co(t),Ea=null,Da=0;var i=t.return;try{if(Ys(e,i,t,n,Fl)){Hl=1,Ws(e,vi(n,e.current)),Q=null;return}}catch(t){if(i!==null)throw Q=i,t;Hl=1,Ws(e,vi(n,e.current)),Q=null;return}t.flags&32768?(Fi||r===1?e=!0:zl||Fl&536870912?e=!1:(Rl=e=!0,(r===2||r===9||r===3||r===6)&&(r=K.current,r!==null&&r.tag===13&&(r.flags|=16384))),Pu(t,e)):Nu(t)}function Nu(e){var t=e;do{if(t.flags&32768){Pu(t,Rl);return}e=t.return;var n=jc(t.alternate,t,Vl);if(n!==null){Q=n;return}if(t=t.sibling,t!==null){Q=t;return}Q=t=e}while(t!==null);Hl===0&&(Hl=5)}function Pu(e,t){do{var n=Mc(e.alternate,e);if(n!==null){n.flags&=32767,Q=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){Q=e;return}Q=e=n}while(e!==null);Hl=6,Q=null}function Fu(e,t,n,r,a,o,s,c,l){e.cancelPendingCommit=null;do Bu();while(nu!==0);if(Nl&6)throw Error(i(327));if(t!==null){if(t===e.current)throw Error(i(177));if(o=t.lanes|t.childLanes,o|=$r,Qe(e,n,o,s,c,l),e===Pl&&(Q=Pl=null,Fl=0),iu=t,ru=e,au=n,ou=o,su=a,cu=r,t.subtreeFlags&10256||t.flags&10256?(e.callbackNode=null,e.callbackPriority=0,Yu(Ae,function(){return Vu(),null})):(e.callbackNode=null,e.callbackPriority=0),r=(t.flags&13878)!=0,t.subtreeFlags&13878||r){r=A.T,A.T=null,a=j.p,j.p=2,s=Nl,Nl|=4;try{Qc(e,t,n)}finally{Nl=s,j.p=a,A.T=r}}nu=1,Iu(),Lu(),Ru()}}function Iu(){if(nu===1){nu=0;var e=ru,t=iu,n=(t.flags&13878)!=0;if(t.subtreeFlags&13878||n){n=A.T,A.T=null;var r=j.p;j.p=2;var i=Nl;Nl|=4;try{dl(t,e);var a=zd,o=Dr(e.containerInfo),s=a.focusedElem,c=a.selectionRange;if(o!==s&&s&&s.ownerDocument&&Er(s.ownerDocument.documentElement,s)){if(c!==null&&Or(s)){var l=c.start,u=c.end;if(u===void 0&&(u=l),`selectionStart`in s)s.selectionStart=l,s.selectionEnd=Math.min(u,s.value.length);else{var d=s.ownerDocument||document,f=d&&d.defaultView||window;if(f.getSelection){var p=f.getSelection(),m=s.textContent.length,h=Math.min(c.start,m),g=c.end===void 0?h:Math.min(c.end,m);!p.extend&&h>g&&(o=g,g=h,h=o);var _=Tr(s,h),v=Tr(s,g);if(_&&v&&(p.rangeCount!==1||p.anchorNode!==_.node||p.anchorOffset!==_.offset||p.focusNode!==v.node||p.focusOffset!==v.offset)){var y=d.createRange();y.setStart(_.node,_.offset),p.removeAllRanges(),h>g?(p.addRange(y),p.extend(v.node,v.offset)):(y.setEnd(v.node,v.offset),p.addRange(y))}}}}for(d=[],p=s;p=p.parentNode;)p.nodeType===1&&d.push({element:p,left:p.scrollLeft,top:p.scrollTop});for(typeof s.focus==`function`&&s.focus(),s=0;s<d.length;s++){var b=d[s];b.element.scrollLeft=b.left,b.element.scrollTop=b.top}}sp=!!Rd,zd=Rd=null}finally{Nl=i,j.p=r,A.T=n}}e.current=t,nu=2}}function Lu(){if(nu===2){nu=0;var e=ru,t=iu,n=(t.flags&8772)!=0;if(t.subtreeFlags&8772||n){n=A.T,A.T=null;var r=j.p;j.p=2;var i=Nl;Nl|=4;try{$c(e,t.alternate,t)}finally{Nl=i,j.p=r,A.T=n}}nu=3}}function Ru(){if(nu===4||nu===3){nu=0,Te();var e=ru,t=iu,n=au,r=cu;t.subtreeFlags&10256||t.flags&10256?nu=5:(nu=0,iu=ru=null,zu(e,e.pendingLanes));var i=e.pendingLanes;if(i===0&&(tu=null),rt(n),t=t.stateNode,Ie&&typeof Ie.onCommitFiberRoot==`function`)try{Ie.onCommitFiberRoot(Fe,t,void 0,(t.current.flags&128)==128)}catch{}if(r!==null){t=A.T,i=j.p,j.p=2,A.T=null;try{for(var a=e.onRecoverableError,o=0;o<r.length;o++){var s=r[o];a(s.value,{componentStack:s.stack})}}finally{A.T=t,j.p=i}}au&3&&Bu(),nd(e),i=e.pendingLanes,n&261930&&i&42?e===uu?lu++:(lu=0,uu=e):lu=0,rd(0,!1)}}function zu(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,V(t)))}function Bu(){return Iu(),Lu(),Ru(),Vu()}function Vu(){if(nu!==5)return!1;var e=ru,t=ou;ou=0;var n=rt(au),r=A.T,a=j.p;try{j.p=32>n?32:n,A.T=null,n=su,su=null;var o=ru,s=au;if(nu=0,iu=ru=null,au=0,Nl&6)throw Error(i(331));var c=Nl;if(Nl|=4,Ol(o.current),bl(o,o.current,s,n),Nl=c,rd(0,!1),Ie&&typeof Ie.onPostCommitFiberRoot==`function`)try{Ie.onPostCommitFiberRoot(Fe,o)}catch{}return!0}finally{j.p=a,A.T=r,zu(e,t)}}function Hu(e,t,n){t=vi(n,t),t=Ks(e.stateNode,t,2),e=Ra(e,t,2),e!==null&&(Ze(e,2),nd(e))}function Uu(e,t,n){if(e.tag===3)Hu(e,e,n);else for(;t!==null;){if(t.tag===3){Hu(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError==`function`||typeof r.componentDidCatch==`function`&&(tu===null||!tu.has(r))){e=vi(n,e),n=qs(2),r=Ra(t,n,2),r!==null&&(Js(n,r,t,e),Ze(r,2),nd(r));break}}t=t.return}}function Wu(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new Ml;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(Bl=!0,i.add(n),e=Gu.bind(null,e,t,n),t.then(e,e))}function Gu(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,Pl===e&&(Fl&n)===n&&(Hl===4||Hl===3&&(Fl&62914560)===Fl&&300>Ee()-Zl?!(Nl&2)&&bu(e,0):Gl|=n,ql===Fl&&(ql=0)),nd(e)}function Ku(e,t){t===0&&(t=Ye()),e=ri(e,t),e!==null&&(Ze(e,t),nd(e))}function qu(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Ku(e,n)}function Ju(e,t){var n=0;switch(e.tag){case 31:case 13:var r=e.stateNode,a=e.memoizedState;a!==null&&(n=a.retryLane);break;case 19:r=e.stateNode;break;case 22:r=e.stateNode._retryCache;break;default:throw Error(i(314))}r!==null&&r.delete(t),Ku(e,n)}function Yu(e,t){return Se(e,t)}var Xu=null,Zu=null,Qu=!1,$u=!1,ed=!1,td=0;function nd(e){e!==Zu&&e.next===null&&(Zu===null?Xu=Zu=e:Zu=Zu.next=e),$u=!0,Qu||(Qu=!0,ld())}function rd(e,t){if(!ed&&$u){ed=!0;do for(var n=!1,r=Xu;r!==null;){if(!t)if(e!==0){var i=r.pendingLanes;if(i===0)var a=0;else{var o=r.suspendedLanes,s=r.pingedLanes;a=(1<<31-Re(42|e)+1)-1,a&=i&~(o&~s),a=a&201326741?a&201326741|1:a?a|2:0}a!==0&&(n=!0,cd(r,a))}else a=Fl,a=Ke(r,r===Pl?a:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),!(a&3)||qe(r,a)||(n=!0,cd(r,a));r=r.next}while(n);ed=!1}}function id(){ad()}function ad(){$u=Qu=!1;var e=0;td!==0&&Gd()&&(e=td);for(var t=Ee(),n=null,r=Xu;r!==null;){var i=r.next,a=od(r,t);a===0?(r.next=null,n===null?Xu=i:n.next=i,i===null&&(Zu=n)):(n=r,(e!==0||a&3)&&($u=!0)),r=i}nu!==0&&nu!==5||rd(e,!1),td!==0&&(td=0)}function od(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,a=e.pendingLanes&-62914561;0<a;){var o=31-Re(a),s=1<<o,c=i[o];c===-1?((s&n)===0||(s&r)!==0)&&(i[o]=Je(s,t)):c<=t&&(e.expiredLanes|=s),a&=~s}if(t=Pl,n=Fl,n=Ke(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r=e.callbackNode,n===0||e===t&&(Il===2||Il===9)||e.cancelPendingCommit!==null)return r!==null&&r!==null&&Ce(r),e.callbackNode=null,e.callbackPriority=0;if(!(n&3)||qe(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(r!==null&&Ce(r),rt(n)){case 2:case 8:n=ke;break;case 32:n=Ae;break;case 268435456:n=Me;break;default:n=Ae}return r=sd.bind(null,e),n=Se(n,r),e.callbackPriority=t,e.callbackNode=n,t}return r!==null&&r!==null&&Ce(r),e.callbackPriority=2,e.callbackNode=null,2}function sd(e,t){if(nu!==0&&nu!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(Bu()&&e.callbackNode!==n)return null;var r=Fl;return r=Ke(e,e===Pl?r:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r===0?null:(mu(e,r,t),od(e,Ee()),e.callbackNode!=null&&e.callbackNode===n?sd.bind(null,e):null)}function cd(e,t){if(Bu())return null;mu(e,t,!0)}function ld(){Yd(function(){Nl&6?Se(Oe,id):ad()})}function ud(){if(td===0){var e=U;e===0&&(e=He,He<<=1,!(He&261888)&&(He=256)),td=e}return td}function dd(e){return e==null||typeof e==`symbol`||typeof e==`boolean`?null:typeof e==`function`?e:Qt(``+e)}function fd(e,t){var n=t.ownerDocument.createElement(`input`);return n.name=t.name,n.value=t.value,e.id&&n.setAttribute(`form`,e.id),t.parentNode.insertBefore(n,t),e=new FormData(e),n.parentNode.removeChild(n),e}function pd(e,t,n,r,i){if(t===`submit`&&n&&n.stateNode===i){var a=dd((i[st]||null).action),o=r.submitter;o&&(t=(t=o[st]||null)?dd(t.formAction):o.getAttribute(`formAction`),t!==null&&(a=t,o=null));var s=new xn(`action`,`action`,null,r,i);e.push({event:s,listeners:[{instance:null,listener:function(){if(r.defaultPrevented){if(td!==0){var e=o?fd(i,o):new FormData(i);vs(n,{pending:!0,data:e,method:i.method,action:a},null,e)}}else typeof a==`function`&&(s.preventDefault(),e=o?fd(i,o):new FormData(i),vs(n,{pending:!0,data:e,method:i.method,action:a},a,e))},currentTarget:i}]})}}for(var md=0;md<Jr.length;md++){var hd=Jr[md];Yr(hd.toLowerCase(),`on`+(hd[0].toUpperCase()+hd.slice(1)))}Yr(Br,`onAnimationEnd`),Yr(Vr,`onAnimationIteration`),Yr(Hr,`onAnimationStart`),Yr(`dblclick`,`onDoubleClick`),Yr(`focusin`,`onFocus`),Yr(`focusout`,`onBlur`),Yr(Ur,`onTransitionRun`),Yr(Wr,`onTransitionStart`),Yr(Gr,`onTransitionCancel`),Yr(Kr,`onTransitionEnd`),Ct(`onMouseEnter`,[`mouseout`,`mouseover`]),Ct(`onMouseLeave`,[`mouseout`,`mouseover`]),Ct(`onPointerEnter`,[`pointerout`,`pointerover`]),Ct(`onPointerLeave`,[`pointerout`,`pointerover`]),St(`onChange`,`change click focusin focusout input keydown keyup selectionchange`.split(` `)),St(`onSelect`,`focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange`.split(` `)),St(`onBeforeInput`,[`compositionend`,`keypress`,`textInput`,`paste`]),St(`onCompositionEnd`,`compositionend focusout keydown keypress keyup mousedown`.split(` `)),St(`onCompositionStart`,`compositionstart focusout keydown keypress keyup mousedown`.split(` `)),St(`onCompositionUpdate`,`compositionupdate focusout keydown keypress keyup mousedown`.split(` `));var gd=`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(` `),_d=new Set(`beforetoggle cancel close invalid load scroll scrollend toggle`.split(` `).concat(gd));function vd(e,t){t=(t&4)!=0;for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;a:{var a=void 0;if(t)for(var o=r.length-1;0<=o;o--){var s=r[o],c=s.instance,l=s.currentTarget;if(s=s.listener,c!==a&&i.isPropagationStopped())break a;a=s,i.currentTarget=l;try{a(i)}catch(e){Xr(e)}i.currentTarget=null,a=c}else for(o=0;o<r.length;o++){if(s=r[o],c=s.instance,l=s.currentTarget,s=s.listener,c!==a&&i.isPropagationStopped())break a;a=s,i.currentTarget=l;try{a(i)}catch(e){Xr(e)}i.currentTarget=null,a=c}}}}function $(e,t){var n=t[lt];n===void 0&&(n=t[lt]=new Set);var r=e+`__bubble`;n.has(r)||(Sd(t,e,2,!1),n.add(r))}function yd(e,t,n){var r=0;t&&(r|=4),Sd(n,e,r,t)}var bd=`_reactListening`+Math.random().toString(36).slice(2);function xd(e){if(!e[bd]){e[bd]=!0,bt.forEach(function(t){t!==`selectionchange`&&(_d.has(t)||yd(t,!1,e),yd(t,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[bd]||(t[bd]=!0,yd(`selectionchange`,!1,t))}}function Sd(e,t,n,r){switch(mp(t)){case 2:var i=cp;break;case 8:i=lp;break;default:i=up}n=i.bind(null,t,n,e),i=void 0,!un||t!==`touchstart`&&t!==`touchmove`&&t!==`wheel`||(i=!0),r?i===void 0?e.addEventListener(t,n,!0):e.addEventListener(t,n,{capture:!0,passive:i}):i===void 0?e.addEventListener(t,n,!1):e.addEventListener(t,n,{passive:i})}function Cd(e,t,n,r,i){var a=r;if(!(t&1)&&!(t&2)&&r!==null)a:for(;;){if(r===null)return;var s=r.tag;if(s===3||s===4){var c=r.stateNode.containerInfo;if(c===i)break;if(s===4)for(s=r.return;s!==null;){var l=s.tag;if((l===3||l===4)&&s.stateNode.containerInfo===i)return;s=s.return}for(;c!==null;){if(s=ht(c),s===null)return;if(l=s.tag,l===5||l===6||l===26||l===27){r=a=s;continue a}c=c.parentNode}}r=r.return}sn(function(){var r=a,i=tn(n),s=[];a:{var c=qr.get(e);if(c!==void 0){var l=xn,u=e;switch(e){case`keypress`:if(gn(n)===0)break a;case`keydown`:case`keyup`:l=zn;break;case`focusin`:u=`focus`,l=An;break;case`focusout`:u=`blur`,l=An;break;case`beforeblur`:case`afterblur`:l=An;break;case`click`:if(n.button===2)break a;case`auxclick`:case`dblclick`:case`mousedown`:case`mousemove`:case`mouseup`:case`mouseout`:case`mouseover`:case`contextmenu`:l=On;break;case`drag`:case`dragend`:case`dragenter`:case`dragexit`:case`dragleave`:case`dragover`:case`dragstart`:case`drop`:l=kn;break;case`touchcancel`:case`touchend`:case`touchmove`:case`touchstart`:l=Vn;break;case Br:case Vr:case Hr:l=jn;break;case Kr:l=Hn;break;case`scroll`:case`scrollend`:l=Cn;break;case`wheel`:l=Un;break;case`copy`:case`cut`:case`paste`:l=Mn;break;case`gotpointercapture`:case`lostpointercapture`:case`pointercancel`:case`pointerdown`:case`pointermove`:case`pointerout`:case`pointerover`:case`pointerup`:l=Bn;break;case`toggle`:case`beforetoggle`:l=Wn}var d=(t&4)!=0,f=!d&&(e===`scroll`||e===`scrollend`),p=d?c===null?null:c+`Capture`:c;d=[];for(var m=r,h;m!==null;){var g=m;if(h=g.stateNode,g=g.tag,g!==5&&g!==26&&g!==27||h===null||p===null||(g=cn(m,p),g!=null&&d.push(wd(m,g,h))),f)break;m=m.return}0<d.length&&(c=new l(c,u,null,n,i),s.push({event:c,listeners:d}))}}if(!(t&7)){a:{if(c=e===`mouseover`||e===`pointerover`,l=e===`mouseout`||e===`pointerout`,c&&n!==en&&(u=n.relatedTarget||n.fromElement)&&(ht(u)||u[ct]))break a;if((l||c)&&(c=i.window===i?i:(c=i.ownerDocument)?c.defaultView||c.parentWindow:window,l?(u=n.relatedTarget||n.toElement,l=r,u=u?ht(u):null,u!==null&&(f=o(u),d=u.tag,u!==f||d!==5&&d!==27&&d!==6)&&(u=null)):(l=null,u=r),l!==u)){if(d=On,g=`onMouseLeave`,p=`onMouseEnter`,m=`mouse`,(e===`pointerout`||e===`pointerover`)&&(d=Bn,g=`onPointerLeave`,p=`onPointerEnter`,m=`pointer`),f=l==null?c:_t(l),h=u==null?c:_t(u),c=new d(g,m+`leave`,l,n,i),c.target=f,c.relatedTarget=h,g=null,ht(i)===r&&(d=new d(p,m+`enter`,u,n,i),d.target=h,d.relatedTarget=f,g=d),f=g,l&&u)b:{for(d=Ed,p=l,m=u,h=0,g=p;g;g=d(g))h++;g=0;for(var _=m;_;_=d(_))g++;for(;0<h-g;)p=d(p),h--;for(;0<g-h;)m=d(m),g--;for(;h--;){if(p===m||m!==null&&p===m.alternate){d=p;break b}p=d(p),m=d(m)}d=null}else d=null;l!==null&&Dd(s,c,l,d,!1),u!==null&&f!==null&&Dd(s,f,u,d,!0)}}a:{if(c=r?_t(r):window,l=c.nodeName&&c.nodeName.toLowerCase(),l===`select`||l===`input`&&c.type===`file`)var v=ur;else if(ir(c))if(dr)v=br;else{v=vr;var y=_r}else l=c.nodeName,!l||l.toLowerCase()!==`input`||c.type!==`checkbox`&&c.type!==`radio`?r&&Yt(r.elementType)&&(v=ur):v=yr;if(v&&=v(e,r)){ar(s,v,n,i);break a}y&&y(e,c,r),e===`focusout`&&r&&c.type===`number`&&r.memoizedProps.value!=null&&Vt(c,`number`,c.value)}switch(y=r?_t(r):window,e){case`focusin`:(ir(y)||y.contentEditable===`true`)&&(Ar=y,jr=r,Mr=null);break;case`focusout`:Mr=jr=Ar=null;break;case`mousedown`:Nr=!0;break;case`contextmenu`:case`mouseup`:case`dragend`:Nr=!1,Pr(s,n,i);break;case`selectionchange`:if(kr)break;case`keydown`:case`keyup`:Pr(s,n,i)}var b;if(Kn)b:{switch(e){case`compositionstart`:var x=`onCompositionStart`;break b;case`compositionend`:x=`onCompositionEnd`;break b;case`compositionupdate`:x=`onCompositionUpdate`;break b}x=void 0}else er?Qn(e,n)&&(x=`onCompositionEnd`):e===`keydown`&&n.keyCode===229&&(x=`onCompositionStart`);x&&(Yn&&n.locale!==`ko`&&(er||x!==`onCompositionStart`?x===`onCompositionEnd`&&er&&(b=hn()):(fn=i,pn=`value`in fn?fn.value:fn.textContent,er=!0)),y=Td(r,x),0<y.length&&(x=new Nn(x,e,null,n,i),s.push({event:x,listeners:y}),b?x.data=b:(b=$n(n),b!==null&&(x.data=b)))),(b=Jn?tr(e,n):nr(e,n))&&(x=Td(r,`onBeforeInput`),0<x.length&&(y=new Nn(`onBeforeInput`,`beforeinput`,null,n,i),s.push({event:y,listeners:x}),y.data=b)),pd(s,e,r,n,i)}vd(s,t)})}function wd(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Td(e,t){for(var n=t+`Capture`,r=[];e!==null;){var i=e,a=i.stateNode;if(i=i.tag,i!==5&&i!==26&&i!==27||a===null||(i=cn(e,n),i!=null&&r.unshift(wd(e,i,a)),i=cn(e,t),i!=null&&r.push(wd(e,i,a))),e.tag===3)return r;e=e.return}return[]}function Ed(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Dd(e,t,n,r,i){for(var a=t._reactName,o=[];n!==null&&n!==r;){var s=n,c=s.alternate,l=s.stateNode;if(s=s.tag,c!==null&&c===r)break;s!==5&&s!==26&&s!==27||l===null||(c=l,i?(l=cn(n,a),l!=null&&o.unshift(wd(n,l,c))):i||(l=cn(n,a),l!=null&&o.push(wd(n,l,c)))),n=n.return}o.length!==0&&e.push({event:t,listeners:o})}var Od=/\r\n?/g,kd=/\u0000|\uFFFD/g;function Ad(e){return(typeof e==`string`?e:``+e).replace(Od,`
|
|
9
|
+
`).replace(kd,``)}function jd(e,t){return t=Ad(t),Ad(e)===t}function Md(e,t,n,r,a,o){switch(n){case`children`:typeof r==`string`?t===`body`||t===`textarea`&&r===``||Gt(e,r):(typeof r==`number`||typeof r==`bigint`)&&t!==`body`&&Gt(e,``+r);break;case`className`:kt(e,`class`,r);break;case`tabIndex`:kt(e,`tabindex`,r);break;case`dir`:case`role`:case`viewBox`:case`width`:case`height`:kt(e,n,r);break;case`style`:Jt(e,r,o);break;case`data`:if(t!==`object`){kt(e,`data`,r);break}case`src`:case`href`:if(r===``&&(t!==`a`||n!==`href`)){e.removeAttribute(n);break}if(r==null||typeof r==`function`||typeof r==`symbol`||typeof r==`boolean`){e.removeAttribute(n);break}r=Qt(``+r),e.setAttribute(n,r);break;case`action`:case`formAction`:if(typeof r==`function`){e.setAttribute(n,`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 o==`function`&&(n===`formAction`?(t!==`input`&&Md(e,t,`name`,a.name,a,null),Md(e,t,`formEncType`,a.formEncType,a,null),Md(e,t,`formMethod`,a.formMethod,a,null),Md(e,t,`formTarget`,a.formTarget,a,null)):(Md(e,t,`encType`,a.encType,a,null),Md(e,t,`method`,a.method,a,null),Md(e,t,`target`,a.target,a,null)));if(r==null||typeof r==`symbol`||typeof r==`boolean`){e.removeAttribute(n);break}r=Qt(``+r),e.setAttribute(n,r);break;case`onClick`:r!=null&&(e.onclick=$t);break;case`onScroll`:r!=null&&$(`scroll`,e);break;case`onScrollEnd`:r!=null&&$(`scrollend`,e);break;case`dangerouslySetInnerHTML`:if(r!=null){if(typeof r!=`object`||!(`__html`in r))throw Error(i(61));if(n=r.__html,n!=null){if(a.children!=null)throw Error(i(60));e.innerHTML=n}}break;case`multiple`:e.multiple=r&&typeof r!=`function`&&typeof r!=`symbol`;break;case`muted`:e.muted=r&&typeof r!=`function`&&typeof r!=`symbol`;break;case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`defaultValue`:case`defaultChecked`:case`innerHTML`:case`ref`:break;case`autoFocus`:break;case`xlinkHref`:if(r==null||typeof r==`function`||typeof r==`boolean`||typeof r==`symbol`){e.removeAttribute(`xlink:href`);break}n=Qt(``+r),e.setAttributeNS(`http://www.w3.org/1999/xlink`,`xlink:href`,n);break;case`contentEditable`:case`spellCheck`:case`draggable`:case`value`:case`autoReverse`:case`externalResourcesRequired`:case`focusable`:case`preserveAlpha`:r!=null&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,``+r):e.removeAttribute(n);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`:r&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,``):e.removeAttribute(n);break;case`capture`:case`download`:!0===r?e.setAttribute(n,``):!1!==r&&r!=null&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,r):e.removeAttribute(n);break;case`cols`:case`rows`:case`size`:case`span`:r!=null&&typeof r!=`function`&&typeof r!=`symbol`&&!isNaN(r)&&1<=r?e.setAttribute(n,r):e.removeAttribute(n);break;case`rowSpan`:case`start`:r==null||typeof r==`function`||typeof r==`symbol`||isNaN(r)?e.removeAttribute(n):e.setAttribute(n,r);break;case`popover`:$(`beforetoggle`,e),$(`toggle`,e),Ot(e,`popover`,r);break;case`xlinkActuate`:At(e,`http://www.w3.org/1999/xlink`,`xlink:actuate`,r);break;case`xlinkArcrole`:At(e,`http://www.w3.org/1999/xlink`,`xlink:arcrole`,r);break;case`xlinkRole`:At(e,`http://www.w3.org/1999/xlink`,`xlink:role`,r);break;case`xlinkShow`:At(e,`http://www.w3.org/1999/xlink`,`xlink:show`,r);break;case`xlinkTitle`:At(e,`http://www.w3.org/1999/xlink`,`xlink:title`,r);break;case`xlinkType`:At(e,`http://www.w3.org/1999/xlink`,`xlink:type`,r);break;case`xmlBase`:At(e,`http://www.w3.org/XML/1998/namespace`,`xml:base`,r);break;case`xmlLang`:At(e,`http://www.w3.org/XML/1998/namespace`,`xml:lang`,r);break;case`xmlSpace`:At(e,`http://www.w3.org/XML/1998/namespace`,`xml:space`,r);break;case`is`:Ot(e,`is`,r);break;case`innerText`:case`textContent`:break;default:(!(2<n.length)||n[0]!==`o`&&n[0]!==`O`||n[1]!==`n`&&n[1]!==`N`)&&(n=Xt.get(n)||n,Ot(e,n,r))}}function Nd(e,t,n,r,a,o){switch(n){case`style`:Jt(e,r,o);break;case`dangerouslySetInnerHTML`:if(r!=null){if(typeof r!=`object`||!(`__html`in r))throw Error(i(61));if(n=r.__html,n!=null){if(a.children!=null)throw Error(i(60));e.innerHTML=n}}break;case`children`:typeof r==`string`?Gt(e,r):(typeof r==`number`||typeof r==`bigint`)&&Gt(e,``+r);break;case`onScroll`:r!=null&&$(`scroll`,e);break;case`onScrollEnd`:r!=null&&$(`scrollend`,e);break;case`onClick`:r!=null&&(e.onclick=$t);break;case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`innerHTML`:case`ref`:break;case`innerText`:case`textContent`:break;default:if(!xt.hasOwnProperty(n))a:{if(n[0]===`o`&&n[1]===`n`&&(a=n.endsWith(`Capture`),t=n.slice(2,a?n.length-7:void 0),o=e[st]||null,o=o==null?null:o[n],typeof o==`function`&&e.removeEventListener(t,o,a),typeof r==`function`)){typeof o!=`function`&&o!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(t,r,a);break a}n in e?e[n]=r:!0===r?e.setAttribute(n,``):Ot(e,n,r)}}}function Pd(e,t,n){switch(t){case`div`:case`span`:case`svg`:case`path`:case`a`:case`g`:case`p`:case`li`:break;case`img`:$(`error`,e),$(`load`,e);var r=!1,a=!1,o;for(o in n)if(n.hasOwnProperty(o)){var s=n[o];if(s!=null)switch(o){case`src`:r=!0;break;case`srcSet`:a=!0;break;case`children`:case`dangerouslySetInnerHTML`:throw Error(i(137,t));default:Md(e,t,o,s,n,null)}}a&&Md(e,t,`srcSet`,n.srcSet,n,null),r&&Md(e,t,`src`,n.src,n,null);return;case`input`:$(`invalid`,e);var c=o=s=a=null,l=null,u=null;for(r in n)if(n.hasOwnProperty(r)){var d=n[r];if(d!=null)switch(r){case`name`:a=d;break;case`type`:s=d;break;case`checked`:l=d;break;case`defaultChecked`:u=d;break;case`value`:o=d;break;case`defaultValue`:c=d;break;case`children`:case`dangerouslySetInnerHTML`:if(d!=null)throw Error(i(137,t));break;default:Md(e,t,r,d,n,null)}}Bt(e,o,c,l,u,s,a,!1);return;case`select`:for(a in $(`invalid`,e),r=s=o=null,n)if(n.hasOwnProperty(a)&&(c=n[a],c!=null))switch(a){case`value`:o=c;break;case`defaultValue`:s=c;break;case`multiple`:r=c;default:Md(e,t,a,c,n,null)}t=o,n=s,e.multiple=!!r,t==null?n!=null&&Ht(e,!!r,n,!0):Ht(e,!!r,t,!1);return;case`textarea`:for(s in $(`invalid`,e),o=a=r=null,n)if(n.hasOwnProperty(s)&&(c=n[s],c!=null))switch(s){case`value`:r=c;break;case`defaultValue`:a=c;break;case`children`:o=c;break;case`dangerouslySetInnerHTML`:if(c!=null)throw Error(i(91));break;default:Md(e,t,s,c,n,null)}Wt(e,r,a,o);return;case`option`:for(l in n)if(n.hasOwnProperty(l)&&(r=n[l],r!=null))switch(l){case`selected`:e.selected=r&&typeof r!=`function`&&typeof r!=`symbol`;break;default:Md(e,t,l,r,n,null)}return;case`dialog`:$(`beforetoggle`,e),$(`toggle`,e),$(`cancel`,e),$(`close`,e);break;case`iframe`:case`object`:$(`load`,e);break;case`video`:case`audio`:for(r=0;r<gd.length;r++)$(gd[r],e);break;case`image`:$(`error`,e),$(`load`,e);break;case`details`:$(`toggle`,e);break;case`embed`:case`source`:case`link`:$(`error`,e),$(`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(u in n)if(n.hasOwnProperty(u)&&(r=n[u],r!=null))switch(u){case`children`:case`dangerouslySetInnerHTML`:throw Error(i(137,t));default:Md(e,t,u,r,n,null)}return;default:if(Yt(t)){for(d in n)n.hasOwnProperty(d)&&(r=n[d],r!==void 0&&Nd(e,t,d,r,n,void 0));return}}for(c in n)n.hasOwnProperty(c)&&(r=n[c],r!=null&&Md(e,t,c,r,n,null))}function Fd(e,t,n,r){switch(t){case`div`:case`span`:case`svg`:case`path`:case`a`:case`g`:case`p`:case`li`:break;case`input`:var a=null,o=null,s=null,c=null,l=null,u=null,d=null;for(m in n){var f=n[m];if(n.hasOwnProperty(m)&&f!=null)switch(m){case`checked`:break;case`value`:break;case`defaultValue`:l=f;default:r.hasOwnProperty(m)||Md(e,t,m,null,r,f)}}for(var p in r){var m=r[p];if(f=n[p],r.hasOwnProperty(p)&&(m!=null||f!=null))switch(p){case`type`:o=m;break;case`name`:a=m;break;case`checked`:u=m;break;case`defaultChecked`:d=m;break;case`value`:s=m;break;case`defaultValue`:c=m;break;case`children`:case`dangerouslySetInnerHTML`:if(m!=null)throw Error(i(137,t));break;default:m!==f&&Md(e,t,p,m,r,f)}}zt(e,s,c,l,u,d,o,a);return;case`select`:for(o in m=s=c=p=null,n)if(l=n[o],n.hasOwnProperty(o)&&l!=null)switch(o){case`value`:break;case`multiple`:m=l;default:r.hasOwnProperty(o)||Md(e,t,o,null,r,l)}for(a in r)if(o=r[a],l=n[a],r.hasOwnProperty(a)&&(o!=null||l!=null))switch(a){case`value`:p=o;break;case`defaultValue`:c=o;break;case`multiple`:s=o;default:o!==l&&Md(e,t,a,o,r,l)}t=c,n=s,r=m,p==null?!!r!=!!n&&(t==null?Ht(e,!!n,n?[]:``,!1):Ht(e,!!n,t,!0)):Ht(e,!!n,p,!1);return;case`textarea`:for(c in m=p=null,n)if(a=n[c],n.hasOwnProperty(c)&&a!=null&&!r.hasOwnProperty(c))switch(c){case`value`:break;case`children`:break;default:Md(e,t,c,null,r,a)}for(s in r)if(a=r[s],o=n[s],r.hasOwnProperty(s)&&(a!=null||o!=null))switch(s){case`value`:p=a;break;case`defaultValue`:m=a;break;case`children`:break;case`dangerouslySetInnerHTML`:if(a!=null)throw Error(i(91));break;default:a!==o&&Md(e,t,s,a,r,o)}Ut(e,p,m);return;case`option`:for(var h in n)if(p=n[h],n.hasOwnProperty(h)&&p!=null&&!r.hasOwnProperty(h))switch(h){case`selected`:e.selected=!1;break;default:Md(e,t,h,null,r,p)}for(l in r)if(p=r[l],m=n[l],r.hasOwnProperty(l)&&p!==m&&(p!=null||m!=null))switch(l){case`selected`:e.selected=p&&typeof p!=`function`&&typeof p!=`symbol`;break;default:Md(e,t,l,p,r,m)}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 g in n)p=n[g],n.hasOwnProperty(g)&&p!=null&&!r.hasOwnProperty(g)&&Md(e,t,g,null,r,p);for(u in r)if(p=r[u],m=n[u],r.hasOwnProperty(u)&&p!==m&&(p!=null||m!=null))switch(u){case`children`:case`dangerouslySetInnerHTML`:if(p!=null)throw Error(i(137,t));break;default:Md(e,t,u,p,r,m)}return;default:if(Yt(t)){for(var _ in n)p=n[_],n.hasOwnProperty(_)&&p!==void 0&&!r.hasOwnProperty(_)&&Nd(e,t,_,void 0,r,p);for(d in r)p=r[d],m=n[d],!r.hasOwnProperty(d)||p===m||p===void 0&&m===void 0||Nd(e,t,d,p,r,m);return}}for(var v in n)p=n[v],n.hasOwnProperty(v)&&p!=null&&!r.hasOwnProperty(v)&&Md(e,t,v,null,r,p);for(f in r)p=r[f],m=n[f],!r.hasOwnProperty(f)||p===m||p==null&&m==null||Md(e,t,f,p,r,m)}function Id(e){switch(e){case`css`:case`script`:case`font`:case`img`:case`image`:case`input`:case`link`:return!0;default:return!1}}function Ld(){if(typeof performance.getEntriesByType==`function`){for(var e=0,t=0,n=performance.getEntriesByType(`resource`),r=0;r<n.length;r++){var i=n[r],a=i.transferSize,o=i.initiatorType,s=i.duration;if(a&&s&&Id(o)){for(o=0,s=i.responseEnd,r+=1;r<n.length;r++){var c=n[r],l=c.startTime;if(l>s)break;var u=c.transferSize,d=c.initiatorType;u&&Id(d)&&(c=c.responseEnd,o+=u*(c<s?1:(s-l)/(c-l)))}if(--r,t+=8*(a+o)/(i.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e==`number`)?e:5}var Rd=null,zd=null;function Bd(e){return e.nodeType===9?e:e.ownerDocument}function Vd(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 Hd(e,t){if(e===0)switch(t){case`svg`:return 1;case`math`:return 2;default:return 0}return e===1&&t===`foreignObject`?0:e}function Ud(e,t){return e===`textarea`||e===`noscript`||typeof t.children==`string`||typeof t.children==`number`||typeof t.children==`bigint`||typeof t.dangerouslySetInnerHTML==`object`&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Wd=null;function Gd(){var e=window.event;return e&&e.type===`popstate`?e===Wd?!1:(Wd=e,!0):(Wd=null,!1)}var Kd=typeof setTimeout==`function`?setTimeout:void 0,qd=typeof clearTimeout==`function`?clearTimeout:void 0,Jd=typeof Promise==`function`?Promise:void 0,Yd=typeof queueMicrotask==`function`?queueMicrotask:Jd===void 0?Kd:function(e){return Jd.resolve(null).then(e).catch(Xd)};function Xd(e){setTimeout(function(){throw e})}function Zd(e){return e===`head`}function Qd(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&i.nodeType===8)if(n=i.data,n===`/$`||n===`/&`){if(r===0){e.removeChild(i),Np(t);return}r--}else if(n===`$`||n===`$?`||n===`$~`||n===`$!`||n===`&`)r++;else if(n===`html`)pf(e.ownerDocument.documentElement);else if(n===`head`){n=e.ownerDocument.head,pf(n);for(var a=n.firstChild;a;){var o=a.nextSibling,s=a.nodeName;a[pt]||s===`SCRIPT`||s===`STYLE`||s===`LINK`&&a.rel.toLowerCase()===`stylesheet`||n.removeChild(a),a=o}}else n===`body`&&pf(e.ownerDocument.body);n=i}while(n);Np(t)}function $d(e,t){var n=e;e=0;do{var r=n.nextSibling;if(n.nodeType===1?t?(n._stashedDisplay=n.style.display,n.style.display=`none`):(n.style.display=n._stashedDisplay||``,n.getAttribute(`style`)===``&&n.removeAttribute(`style`)):n.nodeType===3&&(t?(n._stashedText=n.nodeValue,n.nodeValue=``):n.nodeValue=n._stashedText||``),r&&r.nodeType===8)if(n=r.data,n===`/$`){if(e===0)break;e--}else n!==`$`&&n!==`$?`&&n!==`$~`&&n!==`$!`||e++;n=r}while(n)}function ef(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case`HTML`:case`HEAD`:case`BODY`:ef(n),mt(n);continue;case`SCRIPT`:case`STYLE`:continue;case`LINK`:if(n.rel.toLowerCase()===`stylesheet`)continue}e.removeChild(n)}}function tf(e,t,n,r){for(;e.nodeType===1;){var i=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!r&&(e.nodeName!==`INPUT`||e.type!==`hidden`))break}else if(!r)if(t===`input`&&e.type===`hidden`){var a=i.name==null?null:``+i.name;if(i.type===`hidden`&&e.getAttribute(`name`)===a)return e}else return e;else if(!e[pt])switch(t){case`meta`:if(!e.hasAttribute(`itemprop`))break;return e;case`link`:if(a=e.getAttribute(`rel`),a===`stylesheet`&&e.hasAttribute(`data-precedence`)||a!==i.rel||e.getAttribute(`href`)!==(i.href==null||i.href===``?null:i.href)||e.getAttribute(`crossorigin`)!==(i.crossOrigin==null?null:i.crossOrigin)||e.getAttribute(`title`)!==(i.title==null?null:i.title))break;return e;case`style`:if(e.hasAttribute(`data-precedence`))break;return e;case`script`:if(a=e.getAttribute(`src`),(a!==(i.src==null?null:i.src)||e.getAttribute(`type`)!==(i.type==null?null:i.type)||e.getAttribute(`crossorigin`)!==(i.crossOrigin==null?null:i.crossOrigin))&&a&&e.hasAttribute(`async`)&&!e.hasAttribute(`itemprop`))break;return e;default:return e}if(e=cf(e.nextSibling),e===null)break}return null}function nf(e,t,n){if(t===``)return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!==`INPUT`||e.type!==`hidden`)&&!n||(e=cf(e.nextSibling),e===null))return null;return e}function rf(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!==`INPUT`||e.type!==`hidden`)&&!t||(e=cf(e.nextSibling),e===null))return null;return e}function af(e){return e.data===`$?`||e.data===`$~`}function of(e){return e.data===`$!`||e.data===`$?`&&e.ownerDocument.readyState!==`loading`}function sf(e,t){var n=e.ownerDocument;if(e.data===`$~`)e._reactRetry=t;else if(e.data!==`$?`||n.readyState!==`loading`)t();else{var r=function(){t(),n.removeEventListener(`DOMContentLoaded`,r)};n.addEventListener(`DOMContentLoaded`,r),e._reactRetry=r}}function cf(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t===`$`||t===`$!`||t===`$?`||t===`$~`||t===`&`||t===`F!`||t===`F`)break;if(t===`/$`||t===`/&`)return null}}return e}var lf=null;function uf(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n===`/$`||n===`/&`){if(t===0)return cf(e.nextSibling);t--}else n!==`$`&&n!==`$!`&&n!==`$?`&&n!==`$~`&&n!==`&`||t++}e=e.nextSibling}return null}function df(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n===`$`||n===`$!`||n===`$?`||n===`$~`||n===`&`){if(t===0)return e;t--}else n!==`/$`&&n!==`/&`||t++}e=e.previousSibling}return null}function ff(e,t,n){switch(t=Bd(n),e){case`html`:if(e=t.documentElement,!e)throw Error(i(452));return e;case`head`:if(e=t.head,!e)throw Error(i(453));return e;case`body`:if(e=t.body,!e)throw Error(i(454));return e;default:throw Error(i(451))}}function pf(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);mt(e)}var mf=new Map,hf=new Set;function gf(e){return typeof e.getRootNode==`function`?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var _f=j.d;j.d={f:vf,r:yf,D:Sf,C:Cf,L:wf,m:Tf,X:Df,S:Ef,M:Of};function vf(){var e=_f.f(),t=vu();return e||t}function yf(e){var t=gt(e);t!==null&&t.tag===5&&t.type===`form`?bs(t):_f.r(e)}var bf=typeof document>`u`?null:document;function xf(e,t,n){var r=bf;if(r&&typeof t==`string`&&t){var i=Rt(t);i=`link[rel="`+e+`"][href="`+i+`"]`,typeof n==`string`&&(i+=`[crossorigin="`+n+`"]`),hf.has(i)||(hf.add(i),e={rel:e,crossOrigin:n,href:t},r.querySelector(i)===null&&(t=r.createElement(`link`),Pd(t,`link`,e),yt(t),r.head.appendChild(t)))}}function Sf(e){_f.D(e),xf(`dns-prefetch`,e,null)}function Cf(e,t){_f.C(e,t),xf(`preconnect`,e,t)}function wf(e,t,n){_f.L(e,t,n);var r=bf;if(r&&e&&t){var i=`link[rel="preload"][as="`+Rt(t)+`"]`;t===`image`&&n&&n.imageSrcSet?(i+=`[imagesrcset="`+Rt(n.imageSrcSet)+`"]`,typeof n.imageSizes==`string`&&(i+=`[imagesizes="`+Rt(n.imageSizes)+`"]`)):i+=`[href="`+Rt(e)+`"]`;var a=i;switch(t){case`style`:a=Af(e);break;case`script`:a=Pf(e)}mf.has(a)||(e=m({rel:`preload`,href:t===`image`&&n&&n.imageSrcSet?void 0:e,as:t},n),mf.set(a,e),r.querySelector(i)!==null||t===`style`&&r.querySelector(jf(a))||t===`script`&&r.querySelector(Ff(a))||(t=r.createElement(`link`),Pd(t,`link`,e),yt(t),r.head.appendChild(t)))}}function Tf(e,t){_f.m(e,t);var n=bf;if(n&&e){var r=t&&typeof t.as==`string`?t.as:`script`,i=`link[rel="modulepreload"][as="`+Rt(r)+`"][href="`+Rt(e)+`"]`,a=i;switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:a=Pf(e)}if(!mf.has(a)&&(e=m({rel:`modulepreload`,href:e},t),mf.set(a,e),n.querySelector(i)===null)){switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:if(n.querySelector(Ff(a)))return}r=n.createElement(`link`),Pd(r,`link`,e),yt(r),n.head.appendChild(r)}}}function Ef(e,t,n){_f.S(e,t,n);var r=bf;if(r&&e){var i=vt(r).hoistableStyles,a=Af(e);t||=`default`;var o=i.get(a);if(!o){var s={loading:0,preload:null};if(o=r.querySelector(jf(a)))s.loading=5;else{e=m({rel:`stylesheet`,href:e,"data-precedence":t},n),(n=mf.get(a))&&Rf(e,n);var c=o=r.createElement(`link`);yt(c),Pd(c,`link`,e),c._p=new Promise(function(e,t){c.onload=e,c.onerror=t}),c.addEventListener(`load`,function(){s.loading|=1}),c.addEventListener(`error`,function(){s.loading|=2}),s.loading|=4,Lf(o,t,r)}o={type:`stylesheet`,instance:o,count:1,state:s},i.set(a,o)}}}function Df(e,t){_f.X(e,t);var n=bf;if(n&&e){var r=vt(n).hoistableScripts,i=Pf(e),a=r.get(i);a||(a=n.querySelector(Ff(i)),a||(e=m({src:e,async:!0},t),(t=mf.get(i))&&zf(e,t),a=n.createElement(`script`),yt(a),Pd(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function Of(e,t){_f.M(e,t);var n=bf;if(n&&e){var r=vt(n).hoistableScripts,i=Pf(e),a=r.get(i);a||(a=n.querySelector(Ff(i)),a||(e=m({src:e,async:!0,type:`module`},t),(t=mf.get(i))&&zf(e,t),a=n.createElement(`script`),yt(a),Pd(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function kf(e,t,n,r){var a=(a=le.current)?gf(a):null;if(!a)throw Error(i(446));switch(e){case`meta`:case`title`:return null;case`style`:return typeof n.precedence==`string`&&typeof n.href==`string`?(t=Af(n.href),n=vt(a).hoistableStyles,r=n.get(t),r||(r={type:`style`,instance:null,count:0,state:null},n.set(t,r)),r):{type:`void`,instance:null,count:0,state:null};case`link`:if(n.rel===`stylesheet`&&typeof n.href==`string`&&typeof n.precedence==`string`){e=Af(n.href);var o=vt(a).hoistableStyles,s=o.get(e);if(s||(a=a.ownerDocument||a,s={type:`stylesheet`,instance:null,count:0,state:{loading:0,preload:null}},o.set(e,s),(o=a.querySelector(jf(e)))&&!o._p&&(s.instance=o,s.state.loading=5),mf.has(e)||(n={rel:`preload`,as:`style`,href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},mf.set(e,n),o||Nf(a,e,n,s.state))),t&&r===null)throw Error(i(528,``));return s}if(t&&r!==null)throw Error(i(529,``));return null;case`script`:return t=n.async,n=n.src,typeof n==`string`&&t&&typeof t!=`function`&&typeof t!=`symbol`?(t=Pf(n),n=vt(a).hoistableScripts,r=n.get(t),r||(r={type:`script`,instance:null,count:0,state:null},n.set(t,r)),r):{type:`void`,instance:null,count:0,state:null};default:throw Error(i(444,e))}}function Af(e){return`href="`+Rt(e)+`"`}function jf(e){return`link[rel="stylesheet"][`+e+`]`}function Mf(e){return m({},e,{"data-precedence":e.precedence,precedence:null})}function Nf(e,t,n,r){e.querySelector(`link[rel="preload"][as="style"][`+t+`]`)?r.loading=1:(t=e.createElement(`link`),r.preload=t,t.addEventListener(`load`,function(){return r.loading|=1}),t.addEventListener(`error`,function(){return r.loading|=2}),Pd(t,`link`,n),yt(t),e.head.appendChild(t))}function Pf(e){return`[src="`+Rt(e)+`"]`}function Ff(e){return`script[async]`+e}function If(e,t,n){if(t.count++,t.instance===null)switch(t.type){case`style`:var r=e.querySelector(`style[data-href~="`+Rt(n.href)+`"]`);if(r)return t.instance=r,yt(r),r;var a=m({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return r=(e.ownerDocument||e).createElement(`style`),yt(r),Pd(r,`style`,a),Lf(r,n.precedence,e),t.instance=r;case`stylesheet`:a=Af(n.href);var o=e.querySelector(jf(a));if(o)return t.state.loading|=4,t.instance=o,yt(o),o;r=Mf(n),(a=mf.get(a))&&Rf(r,a),o=(e.ownerDocument||e).createElement(`link`),yt(o);var s=o;return s._p=new Promise(function(e,t){s.onload=e,s.onerror=t}),Pd(o,`link`,r),t.state.loading|=4,Lf(o,n.precedence,e),t.instance=o;case`script`:return o=Pf(n.src),(a=e.querySelector(Ff(o)))?(t.instance=a,yt(a),a):(r=n,(a=mf.get(o))&&(r=m({},n),zf(r,a)),e=e.ownerDocument||e,a=e.createElement(`script`),yt(a),Pd(a,`link`,r),e.head.appendChild(a),t.instance=a);case`void`:return null;default:throw Error(i(443,t.type))}else t.type===`stylesheet`&&!(t.state.loading&4)&&(r=t.instance,t.state.loading|=4,Lf(r,n.precedence,e));return t.instance}function Lf(e,t,n){for(var r=n.querySelectorAll(`link[rel="stylesheet"][data-precedence],style[data-precedence]`),i=r.length?r[r.length-1]:null,a=i,o=0;o<r.length;o++){var s=r[o];if(s.dataset.precedence===t)a=s;else if(a!==i)break}a?a.parentNode.insertBefore(e,a.nextSibling):(t=n.nodeType===9?n.head:n,t.insertBefore(e,t.firstChild))}function Rf(e,t){e.crossOrigin??=t.crossOrigin,e.referrerPolicy??=t.referrerPolicy,e.title??=t.title}function zf(e,t){e.crossOrigin??=t.crossOrigin,e.referrerPolicy??=t.referrerPolicy,e.integrity??=t.integrity}var Bf=null;function Vf(e,t,n){if(Bf===null){var r=new Map,i=Bf=new Map;i.set(n,r)}else i=Bf,r=i.get(n),r||(r=new Map,i.set(n,r));if(r.has(e))return r;for(r.set(e,null),n=n.getElementsByTagName(e),i=0;i<n.length;i++){var a=n[i];if(!(a[pt]||a[ot]||e===`link`&&a.getAttribute(`rel`)===`stylesheet`)&&a.namespaceURI!==`http://www.w3.org/2000/svg`){var o=a.getAttribute(t)||``;o=e+o;var s=r.get(o);s?s.push(a):r.set(o,[a])}}return r}function Hf(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t===`title`?e.querySelector(`head > title`):null)}function Uf(e,t,n){if(n===1||t.itemProp!=null)return!1;switch(e){case`meta`:case`title`:return!0;case`style`:if(typeof t.precedence!=`string`||typeof t.href!=`string`||t.href===``)break;return!0;case`link`:if(typeof t.rel!=`string`||typeof t.href!=`string`||t.href===``||t.onLoad||t.onError)break;switch(t.rel){case`stylesheet`:return e=t.disabled,typeof t.precedence==`string`&&e==null;default:return!0}case`script`:if(t.async&&typeof t.async!=`function`&&typeof t.async!=`symbol`&&!t.onLoad&&!t.onError&&t.src&&typeof t.src==`string`)return!0}return!1}function Wf(e){return!(e.type===`stylesheet`&&!(e.state.loading&3))}function Gf(e,t,n,r){if(n.type===`stylesheet`&&(typeof r.media!=`string`||!1!==matchMedia(r.media).matches)&&!(n.state.loading&4)){if(n.instance===null){var i=Af(r.href),a=t.querySelector(jf(i));if(a){t=a._p,typeof t==`object`&&t&&typeof t.then==`function`&&(e.count++,e=Jf.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=a,yt(a);return}a=t.ownerDocument||t,r=Mf(r),(i=mf.get(i))&&Rf(r,i),a=a.createElement(`link`),yt(a);var o=a;o._p=new Promise(function(e,t){o.onload=e,o.onerror=t}),Pd(a,`link`,r),n.instance=a}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&!(n.state.loading&3)&&(e.count++,n=Jf.bind(e),t.addEventListener(`load`,n),t.addEventListener(`error`,n))}}var Kf=0;function qf(e,t){return e.stylesheets&&e.count===0&&Xf(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var r=setTimeout(function(){if(e.stylesheets&&Xf(e,e.stylesheets),e.unsuspend){var t=e.unsuspend;e.unsuspend=null,t()}},6e4+t);0<e.imgBytes&&Kf===0&&(Kf=62500*Ld());var i=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&Xf(e,e.stylesheets),e.unsuspend)){var t=e.unsuspend;e.unsuspend=null,t()}},(e.imgBytes>Kf?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(r),clearTimeout(i)}}:null}function Jf(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Xf(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Yf=null;function Xf(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Yf=new Map,t.forEach(Zf,e),Yf=null,Jf.call(e))}function Zf(e,t){if(!(t.state.loading&4)){var n=Yf.get(e);if(n)var r=n.get(null);else{n=new Map,Yf.set(e,n);for(var i=e.querySelectorAll(`link[data-precedence],style[data-precedence]`),a=0;a<i.length;a++){var o=i[a];(o.nodeName===`LINK`||o.getAttribute(`media`)!==`not all`)&&(n.set(o.dataset.precedence,o),r=o)}r&&n.set(null,r)}i=t.instance,o=i.getAttribute(`data-precedence`),a=n.get(o)||r,a===r&&n.set(null,i),n.set(o,i),this.count++,r=Jf.bind(this),i.addEventListener(`load`,r),i.addEventListener(`error`,r),a?a.parentNode.insertBefore(i,a.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(i,e.firstChild)),t.state.loading|=4}}var Qf={$$typeof:C,Provider:null,Consumer:null,_currentValue:oe,_currentValue2:oe,_threadCount:0};function $f(e,t,n,r,i,a,o,s,c){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=Xe(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Xe(0),this.hiddenUpdates=Xe(null),this.identifierPrefix=r,this.onUncaughtError=i,this.onCaughtError=a,this.onRecoverableError=o,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=c,this.incompleteTransitions=new Map}function ep(e,t,n,r,i,a,o,s,c,l,u,d){return e=new $f(e,t,n,o,c,l,u,d,s),t=1,!0===a&&(t|=24),a=ci(3,null,null,t),e.current=a,a.stateNode=e,t=B(),t.refCount++,e.pooledCache=t,t.refCount++,a.memoizedState={element:r,isDehydrated:n,cache:t},Fa(a),e}function tp(e){return e?(e=oi,e):oi}function np(e,t,n,r,i,a){i=tp(i),r.context===null?r.context=i:r.pendingContext=i,r=La(t),r.payload={element:n},a=a===void 0?null:a,a!==null&&(r.callback=a),n=Ra(e,r,t),n!==null&&(pu(n,e,t),za(n,e,t))}function rp(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function ip(e,t){rp(e,t),(e=e.alternate)&&rp(e,t)}function ap(e){if(e.tag===13||e.tag===31){var t=ri(e,67108864);t!==null&&pu(t,e,67108864),ip(e,67108864)}}function op(e){if(e.tag===13||e.tag===31){var t=du();t=nt(t);var n=ri(e,t);n!==null&&pu(n,e,t),ip(e,t)}}var sp=!0;function cp(e,t,n,r){var i=A.T;A.T=null;var a=j.p;try{j.p=2,up(e,t,n,r)}finally{j.p=a,A.T=i}}function lp(e,t,n,r){var i=A.T;A.T=null;var a=j.p;try{j.p=8,up(e,t,n,r)}finally{j.p=a,A.T=i}}function up(e,t,n,r){if(sp){var i=dp(r);if(i===null)Cd(e,t,r,fp,n),Cp(e,r);else if(Tp(i,e,t,n,r))r.stopPropagation();else if(Cp(e,r),t&4&&-1<Sp.indexOf(e)){for(;i!==null;){var a=gt(i);if(a!==null)switch(a.tag){case 3:if(a=a.stateNode,a.current.memoizedState.isDehydrated){var o=Ge(a.pendingLanes);if(o!==0){var s=a;for(s.pendingLanes|=2,s.entangledLanes|=2;o;){var c=1<<31-Re(o);s.entanglements[1]|=c,o&=~c}nd(a),!(Nl&6)&&($l=Ee()+500,rd(0,!1))}}break;case 31:case 13:s=ri(a,2),s!==null&&pu(s,a,2),vu(),ip(a,2)}if(a=dp(r),a===null&&Cd(e,t,r,fp,n),a===i)break;i=a}i!==null&&r.stopPropagation()}else Cd(e,t,r,null,n)}}function dp(e){return e=tn(e),pp(e)}var fp=null;function pp(e){if(fp=null,e=ht(e),e!==null){var t=o(e);if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=s(t),e!==null)return e;e=null}else if(n===31){if(e=c(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return fp=e,null}function mp(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(De()){case Oe:return 2;case ke:return 8;case Ae:case je:return 32;case Me:return 268435456;default:return 32}default:return 32}}var hp=!1,gp=null,_p=null,vp=null,yp=new Map,bp=new Map,xp=[],Sp=`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 Cp(e,t){switch(e){case`focusin`:case`focusout`:gp=null;break;case`dragenter`:case`dragleave`:_p=null;break;case`mouseover`:case`mouseout`:vp=null;break;case`pointerover`:case`pointerout`:yp.delete(t.pointerId);break;case`gotpointercapture`:case`lostpointercapture`:bp.delete(t.pointerId)}}function wp(e,t,n,r,i,a){return e===null||e.nativeEvent!==a?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:a,targetContainers:[i]},t!==null&&(t=gt(t),t!==null&&ap(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function Tp(e,t,n,r,i){switch(t){case`focusin`:return gp=wp(gp,e,t,n,r,i),!0;case`dragenter`:return _p=wp(_p,e,t,n,r,i),!0;case`mouseover`:return vp=wp(vp,e,t,n,r,i),!0;case`pointerover`:var a=i.pointerId;return yp.set(a,wp(yp.get(a)||null,e,t,n,r,i)),!0;case`gotpointercapture`:return a=i.pointerId,bp.set(a,wp(bp.get(a)||null,e,t,n,r,i)),!0}return!1}function Ep(e){var t=ht(e.target);if(t!==null){var n=o(t);if(n!==null){if(t=n.tag,t===13){if(t=s(n),t!==null){e.blockedOn=t,it(e.priority,function(){op(n)});return}}else if(t===31){if(t=c(n),t!==null){e.blockedOn=t,it(e.priority,function(){op(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Dp(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=dp(e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);en=r,n.target.dispatchEvent(r),en=null}else return t=gt(n),t!==null&&ap(t),e.blockedOn=n,!1;t.shift()}return!0}function Op(e,t,n){Dp(e)&&n.delete(t)}function kp(){hp=!1,gp!==null&&Dp(gp)&&(gp=null),_p!==null&&Dp(_p)&&(_p=null),vp!==null&&Dp(vp)&&(vp=null),yp.forEach(Op),bp.forEach(Op)}function Ap(e,n){e.blockedOn===n&&(e.blockedOn=null,hp||(hp=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,kp)))}var jp=null;function Mp(e){jp!==e&&(jp=e,t.unstable_scheduleCallback(t.unstable_NormalPriority,function(){jp===e&&(jp=null);for(var t=0;t<e.length;t+=3){var n=e[t],r=e[t+1],i=e[t+2];if(typeof r!=`function`){if(pp(r||n)===null)continue;break}var a=gt(n);a!==null&&(e.splice(t,3),t-=3,vs(a,{pending:!0,data:i,method:n.method,action:r},r,i))}}))}function Np(e){function t(t){return Ap(t,e)}gp!==null&&Ap(gp,e),_p!==null&&Ap(_p,e),vp!==null&&Ap(vp,e),yp.forEach(t),bp.forEach(t);for(var n=0;n<xp.length;n++){var r=xp[n];r.blockedOn===e&&(r.blockedOn=null)}for(;0<xp.length&&(n=xp[0],n.blockedOn===null);)Ep(n),n.blockedOn===null&&xp.shift();if(n=(e.ownerDocument||e).$$reactFormReplay,n!=null)for(r=0;r<n.length;r+=3){var i=n[r],a=n[r+1],o=i[st]||null;if(typeof a==`function`)o||Mp(n);else if(o){var s=null;if(a&&a.hasAttribute(`formAction`)){if(i=a,o=a[st]||null)s=o.formAction;else if(pp(i)!==null)continue}else s=o.action;typeof s==`function`?n[r+1]=s:(n.splice(r,3),r-=3),Mp(n)}}}function Pp(){function e(e){e.canIntercept&&e.info===`react-transition`&&e.intercept({handler:function(){return new Promise(function(e){return i=e})},focusReset:`manual`,scroll:`manual`})}function t(){i!==null&&(i(),i=null),r||setTimeout(n,20)}function n(){if(!r&&!navigation.transition){var e=navigation.currentEntry;e&&e.url!=null&&navigation.navigate(e.url,{state:e.getState(),info:`react-transition`,history:`replace`})}}if(typeof navigation==`object`){var r=!1,i=null;return navigation.addEventListener(`navigate`,e),navigation.addEventListener(`navigatesuccess`,t),navigation.addEventListener(`navigateerror`,t),setTimeout(n,100),function(){r=!0,navigation.removeEventListener(`navigate`,e),navigation.removeEventListener(`navigatesuccess`,t),navigation.removeEventListener(`navigateerror`,t),i!==null&&(i(),i=null)}}}function Fp(e){this._internalRoot=e}Ip.prototype.render=Fp.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(i(409));var n=t.current;np(n,du(),e,t,null,null)},Ip.prototype.unmount=Fp.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;np(e.current,2,null,e,null,null),vu(),t[ct]=null}};function Ip(e){this._internalRoot=e}Ip.prototype.unstable_scheduleHydration=function(e){if(e){var t=R();e={blockedOn:null,target:e,priority:t};for(var n=0;n<xp.length&&t!==0&&t<xp[n].priority;n++);xp.splice(n,0,e),n===0&&Ep(e)}};var Lp=n.version;if(Lp!==`19.2.4`)throw Error(i(527,Lp,`19.2.4`));j.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render==`function`?Error(i(188)):(e=Object.keys(e).join(`,`),Error(i(268,e)));return e=u(t),e=e===null?null:f(e),e=e===null?null:e.stateNode,e};var Rp={bundleType:0,version:`19.2.4`,rendererPackageName:`react-dom`,currentDispatcherRef:A,reconcilerVersion:`19.2.4`};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`){var zp=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!zp.isDisabled&&zp.supportsFiber)try{Fe=zp.inject(Rp),Ie=zp}catch{}}e.createRoot=function(e,t){if(!a(e))throw Error(i(299));var n=!1,r=``,o=Vs,s=Hs,c=Us;return t!=null&&(!0===t.unstable_strictMode&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onUncaughtError!==void 0&&(o=t.onUncaughtError),t.onCaughtError!==void 0&&(s=t.onCaughtError),t.onRecoverableError!==void 0&&(c=t.onRecoverableError)),t=ep(e,1,!1,null,null,n,r,null,o,s,c,Pp),e[ct]=t.current,xd(e),new Fp(t)}})),_=o(((e,t)=>{function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>`u`||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!=`function`))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}n(),t.exports=g()})),v=o((e=>{var t=p();function n(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var r=typeof Object.is==`function`?Object.is:n,i=t.useSyncExternalStore,a=t.useRef,o=t.useEffect,s=t.useMemo,c=t.useDebugValue;e.useSyncExternalStoreWithSelector=function(e,t,n,l,u){var d=a(null);if(d.current===null){var f={hasValue:!1,value:null};d.current=f}else f=d.current;d=s(function(){function e(e){if(!i){if(i=!0,a=e,e=l(e),u!==void 0&&f.hasValue){var t=f.value;if(u(t,e))return o=t}return o=e}if(t=o,r(a,e))return t;var n=l(e);return u!==void 0&&u(t,n)?(a=e,t):(a=e,o=n)}var i=!1,a,o,s=n===void 0?null:n;return[function(){return e(t())},s===null?void 0:function(){return e(s())}]},[t,n,l,u]);var p=i(e,d[0],d[1]);return o(function(){f.hasValue=!0,f.value=p},[p]),c(p),p}})),y=o(((e,t)=>{t.exports=v()})),b=_(),x=l(p(),1),S=y(),C=Symbol.for(`react.transitional.element`),w=Symbol.for(`react.portal`),T=Symbol.for(`react.fragment`),E=Symbol.for(`react.strict_mode`),D=Symbol.for(`react.profiler`),O=Symbol.for(`react.consumer`),ee=Symbol.for(`react.context`),te=Symbol.for(`react.forward_ref`),ne=Symbol.for(`react.suspense`),k=Symbol.for(`react.suspense_list`),re=Symbol.for(`react.memo`),ie=Symbol.for(`react.lazy`),ae=te,A=re;function j(e){if(typeof e==`object`&&e){let{$$typeof:t}=e;switch(t){case C:switch(e=e.type,e){case T:case D:case E:case ne:case k:return e;default:switch(e&&=e.$$typeof,e){case ee:case te:case ie:case re:return e;case O:return e;default:return t}}case w:return t}}}function oe(e){return j(e)===re}function M(e,t,n,r,{areStatesEqual:i,areOwnPropsEqual:a,areStatePropsEqual:o}){let s=!1,c,l,u,d,f;function p(i,a){return c=i,l=a,u=e(c,l),d=t(r,l),f=n(u,d,l),s=!0,f}function m(){return u=e(c,l),t.dependsOnOwnProps&&(d=t(r,l)),f=n(u,d,l),f}function h(){return e.dependsOnOwnProps&&(u=e(c,l)),t.dependsOnOwnProps&&(d=t(r,l)),f=n(u,d,l),f}function g(){let t=e(c,l),r=!o(t,u);return u=t,r&&(f=n(u,d,l)),f}function _(e,t){let n=!a(t,l),r=!i(e,c,t,l);return c=e,l=t,n&&r?m():n?h():r?g():f}return function(e,t){return s?_(e,t):p(e,t)}}function se(e,{initMapStateToProps:t,initMapDispatchToProps:n,initMergeProps:r,...i}){return M(t(e,i),n(e,i),r(e,i),e,i)}function N(e,t){let n={};for(let r in e){let i=e[r];typeof i==`function`&&(n[r]=(...e)=>t(i(...e)))}return n}function P(e){return function(t){let n=e(t);function r(){return n}return r.dependsOnOwnProps=!1,r}}function F(e){return e.dependsOnOwnProps?!!e.dependsOnOwnProps:e.length!==1}function I(e,t){return function(t,{displayName:n}){let r=function(e,t){return r.dependsOnOwnProps?r.mapToProps(e,t):r.mapToProps(e,void 0)};return r.dependsOnOwnProps=!0,r.mapToProps=function(t,n){r.mapToProps=e,r.dependsOnOwnProps=F(e);let i=r(t,n);return typeof i==`function`&&(r.mapToProps=i,r.dependsOnOwnProps=F(i),i=r(t,n)),i},r}}function ce(e,t){return(n,r)=>{throw Error(`Invalid value of type ${typeof e} for ${t} argument when connecting component ${r.wrappedComponentName}.`)}}function le(e){return e&&typeof e==`object`?P(t=>N(e,t)):e?typeof e==`function`?I(e,`mapDispatchToProps`):ce(e,`mapDispatchToProps`):P(e=>({dispatch:e}))}function ue(e){return e?typeof e==`function`?I(e,`mapStateToProps`):ce(e,`mapStateToProps`):P(()=>({}))}function de(e,t,n){return{...n,...e,...t}}function fe(e){return function(t,{displayName:n,areMergedPropsEqual:r}){let i=!1,a;return function(t,n,o){let s=e(t,n,o);return i?r(s,a)||(a=s):(i=!0,a=s),a}}}function L(e){return e?typeof e==`function`?fe(e):ce(e,`mergeProps`):()=>de}function pe(e){e()}function me(){let e=null,t=null;return{clear(){e=null,t=null},notify(){pe(()=>{let t=e;for(;t;)t.callback(),t=t.next})},get(){let t=[],n=e;for(;n;)t.push(n),n=n.next;return t},subscribe(n){let r=!0,i=t={callback:n,next:null,prev:t};return i.prev?i.prev.next=i:e=i,function(){!r||e===null||(r=!1,i.next?i.next.prev=i.prev:t=i.prev,i.prev?i.prev.next=i.next:e=i.next)}}}}var he={notify(){},get:()=>[]};function ge(e,t){let n,r=he,i=0,a=!1;function o(e){u();let t=r.subscribe(e),n=!1;return()=>{n||(n=!0,t(),d())}}function s(){r.notify()}function c(){m.onStateChange&&m.onStateChange()}function l(){return a}function u(){i++,n||(n=t?t.addNestedSub(c):e.subscribe(c),r=me())}function d(){i--,n&&i===0&&(n(),n=void 0,r.clear(),r=he)}function f(){a||(a=!0,u())}function p(){a&&(a=!1,d())}let m={addNestedSub:o,notifyNestedSubs:s,handleChangeWrapper:c,isSubscribed:l,trySubscribe:f,tryUnsubscribe:p,getListeners:()=>r};return m}var _e=typeof window<`u`&&window.document!==void 0&&window.document.createElement!==void 0,ve=typeof navigator<`u`&&navigator.product===`ReactNative`,ye=_e||ve?x.useLayoutEffect:x.useEffect;function be(e,t){return e===t?e!==0||t!==0||1/e==1/t:e!==e&&t!==t}function xe(e,t){if(be(e,t))return!0;if(typeof e!=`object`||!e||typeof t!=`object`||!t)return!1;let n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let r=0;r<n.length;r++)if(!Object.prototype.hasOwnProperty.call(t,n[r])||!be(e[n[r]],t[n[r]]))return!1;return!0}var Se={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},Ce={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},we={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Te={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Ee={[ae]:we,[A]:Te};function De(e){return oe(e)?Te:Ee[e.$$typeof]||Se}var Oe=Object.defineProperty,ke=Object.getOwnPropertyNames,Ae=Object.getOwnPropertySymbols,je=Object.getOwnPropertyDescriptor,Me=Object.getPrototypeOf,Ne=Object.prototype;function Pe(e,t){if(typeof t!=`string`){if(Ne){let n=Me(t);n&&n!==Ne&&Pe(e,n)}let n=ke(t);Ae&&(n=n.concat(Ae(t)));let r=De(e),i=De(t);for(let a=0;a<n.length;++a){let o=n[a];if(!Ce[o]&&!(i&&i[o])&&!(r&&r[o])){let n=je(t,o);try{Oe(e,o,n)}catch{}}}}return e}var Fe=Symbol.for(`react-redux-context`),Ie=typeof globalThis<`u`?globalThis:{};function Le(){if(!x.createContext)return{};let e=Ie[Fe]??=new Map,t=e.get(x.createContext);return t||(t=x.createContext(null),e.set(x.createContext,t)),t}var Re=Le(),ze=[null,null];function Be(e,t,n){ye(()=>e(...t),n)}function Ve(e,t,n,r,i,a){e.current=r,n.current=!1,i.current&&(i.current=null,a())}function He(e,t,n,r,i,a,o,s,c,l,u){if(!e)return()=>{};let d=!1,f=null,p=()=>{if(d||!s.current)return;let e=t.getState(),n,p;try{n=r(e,i.current)}catch(e){p=e,f=e}p||(f=null),n===a.current?o.current||l():(a.current=n,c.current=n,o.current=!0,u())};return n.onStateChange=p,n.trySubscribe(),p(),()=>{if(d=!0,n.tryUnsubscribe(),n.onStateChange=null,f)throw f}}function Ue(e,t){return e===t}function We(e,t,n,{pure:r,areStatesEqual:i=Ue,areOwnPropsEqual:a=xe,areStatePropsEqual:o=xe,areMergedPropsEqual:s=xe,forwardRef:c=!1,context:l=Re}={}){let u=l,d=ue(e),f=le(t),p=L(n),m=!!e;return e=>{let t=e.displayName||e.name||`Component`,n=`Connect(${t})`,r={shouldHandleStateChanges:m,displayName:n,wrappedComponentName:t,WrappedComponent:e,initMapStateToProps:d,initMapDispatchToProps:f,initMergeProps:p,areStatesEqual:i,areStatePropsEqual:o,areOwnPropsEqual:a,areMergedPropsEqual:s};function l(t){let[n,i,a]=x.useMemo(()=>{let{reactReduxForwardedRef:e,...n}=t;return[t.context,e,n]},[t]),o=x.useMemo(()=>{let e=u;return n?.Consumer,e},[n,u]),s=x.useContext(o),c=!!t.store&&!!t.store.getState&&!!t.store.dispatch,l=!!s&&!!s.store,d=c?t.store:s.store,f=l?s.getServerState:d.getState,p=x.useMemo(()=>se(d.dispatch,r),[d]),[h,g]=x.useMemo(()=>{if(!m)return ze;let e=ge(d,c?void 0:s.subscription);return[e,e.notifyNestedSubs.bind(e)]},[d,c,s]),_=x.useMemo(()=>c?s:{...s,subscription:h},[c,s,h]),v=x.useRef(void 0),y=x.useRef(a),b=x.useRef(void 0),S=x.useRef(!1),C=x.useRef(!1),w=x.useRef(void 0);ye(()=>(C.current=!0,()=>{C.current=!1}),[]);let T=x.useMemo(()=>()=>b.current&&a===y.current?b.current:p(d.getState(),a),[d,a]),E=x.useMemo(()=>e=>h?He(m,d,h,p,y,v,S,C,b,g,e):()=>{},[h]);Be(Ve,[y,v,S,a,b,g]);let D;try{D=x.useSyncExternalStore(E,T,f?()=>p(f(),a):T)}catch(e){throw w.current&&(e.message+=`
|
|
10
|
+
The error may be correlated with this previous error:
|
|
11
|
+
${w.current.stack}
|
|
12
|
+
|
|
13
|
+
`),e}ye(()=>{w.current=void 0,b.current=void 0,v.current=D});let O=x.useMemo(()=>x.createElement(e,{...D,ref:i}),[i,e,D]);return x.useMemo(()=>m?x.createElement(o.Provider,{value:_},O):O,[o,O,_])}let h=x.memo(l);if(h.WrappedComponent=e,h.displayName=l.displayName=n,c){let t=x.forwardRef(function(e,t){return x.createElement(h,{...e,reactReduxForwardedRef:t})});return t.displayName=n,t.WrappedComponent=e,Pe(t,e)}return Pe(h,e)}}var Ge=We;function Ke(e){let{children:t,context:n,serverState:r,store:i}=e,a=x.useMemo(()=>({store:i,subscription:ge(i),getServerState:r?()=>r:void 0}),[i,r]),o=x.useMemo(()=>i.getState(),[i]);ye(()=>{let{subscription:e}=a;return e.onStateChange=e.notifyNestedSubs,e.trySubscribe(),o!==i.getState()&&e.notifyNestedSubs(),()=>{e.tryUnsubscribe(),e.onStateChange=void 0}},[a,o]);let s=n||Re;return x.createElement(s.Provider,{value:a},t)}var qe=Ke;function Je(e=Re){return function(){return x.useContext(e)}}var Ye=Je();function Xe(e=Re){let t=e===Re?Ye:Je(e),n=()=>{let{store:e}=t();return e};return Object.assign(n,{withTypes:()=>n}),n}var Ze=Xe();function Qe(e=Re){let t=e===Re?Ze:Xe(e),n=()=>t().dispatch;return Object.assign(n,{withTypes:()=>n}),n}var $e=Qe(),et=(e,t)=>e===t;function tt(e=Re){let t=e===Re?Ye:Je(e),n=(e,n={})=>{let{equalityFn:r=et}=typeof n==`function`?{equalityFn:n}:n,{store:i,subscription:a,getServerState:o}=t();x.useRef(!0);let s=x.useCallback({[e.name](t){return e(t)}}[e.name],[e]),c=(0,S.useSyncExternalStoreWithSelector)(a.addNestedSub,i.getState,o||i.getState,s,r);return x.useDebugValue(c),c};return Object.assign(n,{withTypes:()=>n}),n}var nt=tt();function rt(e){var t,n,r=``;if(typeof e==`string`||typeof e==`number`)r+=e;else if(typeof e==`object`)if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=rt(e[t]))&&(r&&(r+=` `),r+=n)}else for(n in e)e[n]&&(r&&(r+=` `),r+=n);return r}function R(){for(var e,t,n=0,r=``,i=arguments.length;n<i;n++)(e=arguments[n])&&(t=rt(e))&&(r&&(r+=` `),r+=t);return r}var it={app:`_app_1rj0t_1`},at={TYPING_ON:`core.typing.on`,TYPING_OFF:`core.typing.off`,GUEST_CONNECTED:`core.guest.connected`,GUEST_DISCONNECTED:`core.guest.disconnected`,GUEST_FEEDBACK_RESPONSE:`core.guest.feedback.response`,MESSAGE_FROM_GUEST:`core.message.from.guest`,MESSAGE_WITHOUT_ANALYSIS_FROM_GUEST:`core.message.without.analysis.from.guest`,MESSAGE_TO_GUEST:`core.message.to.guest`,EXPERTS_CONNECT_REQUEST:`core.experts.connect.request`,EXPERTS_CONNECTED:`core.experts.connected`,EXPERTS_DISCONNECT_REQUEST:`core.experts.disconnect.request`,EXPERTS_DISCONNECTED:`core.experts.disconnected`,NLU_REQUEST_EVENT:`core.nlu.request.event`,EVENT_TO_GUEST:`core.event.to.guest`,RESTART_CHAT_REQUEST:`core.chat.restart.request`,INBOX_CONNECT_REQUEST:`core.inbox.connect.request`,TRANSCRIPT_MAIL_REQUEST:`core.transcript.mail.request`,TRANSCRIPT_ITEM_GUEST_REACTION:`core.transcript.item.guest.reaction`,CONVERSATION_RATING_FROM_GUEST:`core.conversation.rating.from.guest`,DRAWER_OPEN:`core.drawer.open`,DRAWER_CLOSE:`core.drawer.close`,GUEST_LOCALE_CHANGED:`core.guest.locale.changed`},ot=function(e){return e.GUEST=`GUEST`,e.BOT=`BOT`,e.PERSON=`PERSON`,e}({}),st=function(e){return e.WEB_URL=`web_url`,e.POSTBACK=`postback`,e}({}),ct=function(e){return e.TEXT=`TEXT`,e.DETAIL=`DETAIL`,e.MARKDOWN=`MARKDOWN`,e.VIDEO=`VIDEO`,e.IMAGE=`IMAGE`,e.FILE=`FILE`,e.AUDIO=`AUDIO`,e}({}),lt=class{type;id;name;avatar;constructor(e,t,n,r){this.type=e,this.id=t,this.name=n,this.avatar=r}},ut=class extends lt{constructor(){super(ot.BOT,null,`Chatbot`,`bot.svg`)}},dt=class extends lt{constructor(){super(ot.GUEST,null,`Guest`,`visitor.svg`)}},ft=class{type;sender;sources;quickReplies;constructor(e,t,n=[],r=[]){this.type=e,this.sender=t,this.sources=n,this.quickReplies=r}},pt=class extends ft{text;constructor(e,t,n=[],r=[]){super(ct.TEXT,t,n,r),this.text=e}},mt={receiveTextMessageFromGuest:e=>{let t=new pt(e,new dt);return{type:at.MESSAGE_FROM_GUEST,message:t}},receiveTextMessageWithoutAnalysisFromGuest:(e,t={})=>{let n=new pt(e,new dt);return{type:at.MESSAGE_WITHOUT_ANALYSIS_FROM_GUEST,message:n,payload:t}},requestNLUEvent:e=>({type:at.NLU_REQUEST_EVENT,event:e}),transcriptItemGuestReaction:(e,t,n=null,r=null)=>({type:at.TRANSCRIPT_ITEM_GUEST_REACTION,payload:{actionId:e,reaction:t,category:n,comment:r}})},ht=e=>t=>(e.payload.type!==at.MESSAGE_FROM_GUEST&&t(mt.receiveTextMessageWithoutAnalysisFromGuest(e.label,e.payload)),t(e.payload)),gt=e=>(t,n)=>{let{quickReplies:r}=n().chat,i=r.find(t=>e.toLocaleLowerCase().indexOf(t.label.toLocaleLowerCase())>-1);return t(i?ht({...i,label:e}):JSON.parse(JSON.stringify(mt.receiveTextMessageFromGuest(e))))},_t=`MESSAGE_TO_PARENT_PAGE`,vt=`RESTORE_PREVIOUS_CHAT_MESSAGES`,yt=`AUDIO_MESSAGE_FROM_USER`,bt=`RECEIVE_SPEECH_TRANSCRIPTION`,xt=`ENABLE_CONVERSATION_RATING`,St=`LOAD_SOURCE_INFOS_RESPONSE`,Ct=`LOAD_SOURCE_INFOS_ERROR`,wt=`LOAD_SOURCE_INFOS_REQUEST`,Tt=`CLOSE_SOURCE_INFOS`,Et=`webclient.window.expand`,Dt=`webclient.window.close`,Ot=`webclient.transcript.pdf.download`,kt=[_t,vt,yt,bt,xt,wt,Tt],At=e=>({type:yt,buffer:e}),jt=e=>({type:bt,transcription:e}),Mt=e=>({type:at.TRANSCRIPT_MAIL_REQUEST,payload:{parameters:{mailTo:e}}}),Nt=()=>({type:Ot}),Pt=({rating:e})=>({type:xt,payload:{rating:e}}),Ft=(e,t)=>({type:at.CONVERSATION_RATING_FROM_GUEST,payload:{value:e,feedback:t}}),It=e=>mt.requestNLUEvent(e),Lt=e=>({type:vt,messages:e}),Rt=e=>{switch(e.type){case st.WEB_URL:return Bt(e.url);case st.POSTBACK:return e.payload;default:throw Error(`unknown button type ${e.type}`)}},zt=e=>Bt(e),Bt=e=>({type:_t,message:{type:`webclient.change.url`,url:e}});function Vt(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)e[r]=n[r]}return e}var Ht={read:function(e){return e[0]===`"`&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}};function Ut(e,t){function n(n,r,i){if(!(typeof document>`u`)){i=Vt({},t,i),typeof i.expires==`number`&&(i.expires=new Date(Date.now()+i.expires*864e5)),i.expires&&=i.expires.toUTCString(),n=encodeURIComponent(n).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var a=``;for(var o in i)i[o]&&(a+=`; `+o,i[o]!==!0&&(a+=`=`+i[o].split(`;`)[0]));return document.cookie=n+`=`+e.write(r,n)+a}}function r(t){if(!(typeof document>`u`||arguments.length&&!t)){for(var n=document.cookie?document.cookie.split(`; `):[],r={},i=0;i<n.length;i++){var a=n[i].split(`=`),o=a.slice(1).join(`=`);try{var s=decodeURIComponent(a[0]);if(r[s]=e.read(o,s),t===s)break}catch{}}return t?r[t]:r}}return Object.create({set:n,get:r,remove:function(e,t){n(e,``,Vt({},t,{expires:-1}))},withAttributes:function(e){return Ut(this.converter,Vt({},this.attributes,e))},withConverter:function(e){return Ut(Vt({},this.converter,e),this.attributes)}},{attributes:{value:Object.freeze(t)},converter:{value:Object.freeze(e)}})}var Wt=Ut(Ht,{path:`/`}),Gt=[];for(let e=0;e<256;++e)Gt.push((e+256).toString(16).slice(1));function Kt(e,t=0){return(Gt[e[t+0]]+Gt[e[t+1]]+Gt[e[t+2]]+Gt[e[t+3]]+`-`+Gt[e[t+4]]+Gt[e[t+5]]+`-`+Gt[e[t+6]]+Gt[e[t+7]]+`-`+Gt[e[t+8]]+Gt[e[t+9]]+`-`+Gt[e[t+10]]+Gt[e[t+11]]+Gt[e[t+12]]+Gt[e[t+13]]+Gt[e[t+14]]+Gt[e[t+15]]).toLowerCase()}var qt,Jt=new Uint8Array(16);function Yt(){if(!qt){if(typeof crypto>`u`||!crypto.getRandomValues)throw Error(`crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported`);qt=crypto.getRandomValues.bind(crypto)}return qt(Jt)}var Xt={randomUUID:typeof crypto<`u`&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function Zt(e,t,n){e||={};let r=e.random??e.rng?.()??Yt();if(r.length<16)throw Error(`Random bytes length must be >= 16`);if(r[6]=r[6]&15|64,r[8]=r[8]&63|128,t){if(n||=0,n<0||n+16>t.length)throw RangeError(`UUID byte range ${n}:${n+15} is out of buffer bounds`);for(let e=0;e<16;++e)t[n+e]=r[e];return t}return Kt(r)}function Qt(e,t,n){return Xt.randomUUID&&!t&&!e?Xt.randomUUID():Zt(e,t,n)}var $t=()=>en(window.location.pathname),en=e=>{let t=e.split(`/`),n=e.endsWith(`/`);return t[t.length-(n?2:1)]};function tn(e){return`Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var nn=typeof Symbol==`function`&&Symbol.observable||`@@observable`,rn=()=>Math.random().toString(36).substring(7).split(``).join(`.`),an={INIT:`@@redux/INIT${rn()}`,REPLACE:`@@redux/REPLACE${rn()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${rn()}`};function on(e){if(typeof e!=`object`||!e)return!1;let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||Object.getPrototypeOf(e)===null}function sn(e,t,n){if(typeof e!=`function`)throw Error(tn(2));if(typeof t==`function`&&typeof n==`function`||typeof n==`function`&&typeof arguments[3]==`function`)throw Error(tn(0));if(typeof t==`function`&&n===void 0&&(n=t,t=void 0),n!==void 0){if(typeof n!=`function`)throw Error(tn(1));return n(sn)(e,t)}let r=e,i=t,a=new Map,o=a,s=0,c=!1;function l(){o===a&&(o=new Map,a.forEach((e,t)=>{o.set(t,e)}))}function u(){if(c)throw Error(tn(3));return i}function d(e){if(typeof e!=`function`)throw Error(tn(4));if(c)throw Error(tn(5));let t=!0;l();let n=s++;return o.set(n,e),function(){if(t){if(c)throw Error(tn(6));t=!1,l(),o.delete(n),a=null}}}function f(e){if(!on(e))throw Error(tn(7));if(e.type===void 0)throw Error(tn(8));if(typeof e.type!=`string`)throw Error(tn(17));if(c)throw Error(tn(9));try{c=!0,i=r(i,e)}finally{c=!1}return(a=o).forEach(e=>{e()}),e}function p(e){if(typeof e!=`function`)throw Error(tn(10));r=e,f({type:an.REPLACE})}function m(){let e=d;return{subscribe(t){if(typeof t!=`object`||!t)throw Error(tn(11));function n(){let e=t;e.next&&e.next(u())}return n(),{unsubscribe:e(n)}},[nn](){return this}}}return f({type:an.INIT}),{dispatch:f,subscribe:d,getState:u,replaceReducer:p,[nn]:m}}function cn(e){Object.keys(e).forEach(t=>{let n=e[t];if(n(void 0,{type:an.INIT})===void 0)throw Error(tn(12));if(n(void 0,{type:an.PROBE_UNKNOWN_ACTION()})===void 0)throw Error(tn(13))})}function ln(e){let t=Object.keys(e),n={};for(let r=0;r<t.length;r++){let i=t[r];typeof e[i]==`function`&&(n[i]=e[i])}let r=Object.keys(n),i;try{cn(n)}catch(e){i=e}return function(e={},t){if(i)throw i;let a=!1,o={};for(let i=0;i<r.length;i++){let s=r[i],c=n[s],l=e[s],u=c(l,t);if(u===void 0)throw t&&t.type,Error(tn(14));o[s]=u,a||=u!==l}return a||=r.length!==Object.keys(e).length,a?o:e}}function un(...e){return e.length===0?e=>e:e.length===1?e[0]:e.reduce((e,t)=>(...n)=>e(t(...n)))}function dn(...e){return t=>(n,r)=>{let i=t(n,r),a=()=>{throw Error(tn(15))},o={getState:i.getState,dispatch:(e,...t)=>a(e,...t)};return a=un(...e.map(e=>e(o)))(i.dispatch),{...i,dispatch:a}}}function fn(e){return on(e)&&`type`in e&&typeof e.type==`string`}var pn=Symbol.for(`immer-nothing`),mn=Symbol.for(`immer-draftable`),hn=Symbol.for(`immer-state`);function gn(e,...t){throw Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var _n=Object,vn=_n.getPrototypeOf,yn=`constructor`,bn=`prototype`,xn=`configurable`,Sn=`enumerable`,Cn=`writable`,wn=`value`,Tn=e=>!!e&&!!e[hn];function En(e){return e?kn(e)||In(e)||!!e[mn]||!!e[yn]?.[mn]||Ln(e)||Rn(e):!1}var Dn=_n[bn][yn].toString(),On=new WeakMap;function kn(e){if(!e||!zn(e))return!1;let t=vn(e);if(t===null||t===_n[bn])return!0;let n=_n.hasOwnProperty.call(t,yn)&&t[yn];if(n===Object)return!0;if(!Bn(n))return!1;let r=On.get(n);return r===void 0&&(r=Function.toString.call(n),On.set(n,r)),r===Dn}function An(e,t,n=!0){jn(e)===0?(n?Reflect.ownKeys(e):_n.keys(e)).forEach(n=>{t(n,e[n],e)}):e.forEach((n,r)=>t(r,n,e))}function jn(e){let t=e[hn];return t?t.type_:In(e)?1:Ln(e)?2:Rn(e)?3:0}var Mn=(e,t,n=jn(e))=>n===2?e.has(t):_n[bn].hasOwnProperty.call(e,t),Nn=(e,t,n=jn(e))=>n===2?e.get(t):e[t],Pn=(e,t,n,r=jn(e))=>{r===2?e.set(t,n):r===3?e.add(n):e[t]=n};function Fn(e,t){return e===t?e!==0||1/e==1/t:e!==e&&t!==t}var In=Array.isArray,Ln=e=>e instanceof Map,Rn=e=>e instanceof Set,zn=e=>typeof e==`object`,Bn=e=>typeof e==`function`,Vn=e=>typeof e==`boolean`;function Hn(e){let t=+e;return Number.isInteger(t)&&String(t)===e}var Un=e=>e.copy_||e.base_,Wn=e=>e.modified_?e.copy_:e.base_;function Gn(e,t){if(Ln(e))return new Map(e);if(Rn(e))return new Set(e);if(In(e))return Array[bn].slice.call(e);let n=kn(e);if(t===!0||t===`class_only`&&!n){let t=_n.getOwnPropertyDescriptors(e);delete t[hn];let n=Reflect.ownKeys(t);for(let r=0;r<n.length;r++){let i=n[r],a=t[i];a[Cn]===!1&&(a[Cn]=!0,a[xn]=!0),(a.get||a.set)&&(t[i]={[xn]:!0,[Cn]:!0,[Sn]:a[Sn],[wn]:e[i]})}return _n.create(vn(e),t)}else{let t=vn(e);if(t!==null&&n)return{...e};let r=_n.create(t);return _n.assign(r,e)}}function Kn(e,t=!1){return Yn(e)||Tn(e)||!En(e)?e:(jn(e)>1&&_n.defineProperties(e,{set:Jn,add:Jn,clear:Jn,delete:Jn}),_n.freeze(e),t&&An(e,(e,t)=>{Kn(t,!0)},!1),e)}function qn(){gn(2)}var Jn={[wn]:qn};function Yn(e){return e===null||!zn(e)?!0:_n.isFrozen(e)}var Xn=`MapSet`,Zn=`Patches`,Qn=`ArrayMethods`,$n={};function er(e){let t=$n[e];return t||gn(0,e),t}var tr=e=>!!$n[e],nr,rr=()=>nr,ir=(e,t)=>({drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0,handledSet_:new Set,processedForPatches_:new Set,mapSetPlugin_:tr(Xn)?er(Xn):void 0,arrayMethodsPlugin_:tr(Qn)?er(Qn):void 0});function ar(e,t){t&&(e.patchPlugin_=er(Zn),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function or(e){sr(e),e.drafts_.forEach(lr),e.drafts_=null}function sr(e){e===nr&&(nr=e.parent_)}var cr=e=>nr=ir(nr,e);function lr(e){let t=e[hn];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function ur(e,t){t.unfinalizedDrafts_=t.drafts_.length;let n=t.drafts_[0];if(e!==void 0&&e!==n){n[hn].modified_&&(or(t),gn(4)),En(e)&&(e=dr(t,e));let{patchPlugin_:r}=t;r&&r.generateReplacementPatches_(n[hn].base_,e,t)}else e=dr(t,n);return fr(t,e,!0),or(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e===pn?void 0:e}function dr(e,t){if(Yn(t))return t;let n=t[hn];if(!n)return br(t,e.handledSet_,e);if(!mr(n,e))return t;if(!n.modified_)return n.base_;if(!n.finalized_){let{callbacks_:t}=n;if(t)for(;t.length>0;)t.pop()(e);vr(n,e)}return n.copy_}function fr(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&Kn(t,n)}function pr(e){e.finalized_=!0,e.scope_.unfinalizedDrafts_--}var mr=(e,t)=>e.scope_===t,hr=[];function gr(e,t,n,r){let i=Un(e),a=e.type_;if(r!==void 0&&Nn(i,r,a)===t){Pn(i,r,n,a);return}if(!e.draftLocations_){let t=e.draftLocations_=new Map;An(i,(e,n)=>{if(Tn(n)){let r=t.get(n)||[];r.push(e),t.set(n,r)}})}let o=e.draftLocations_.get(t)??hr;for(let e of o)Pn(i,e,n,a)}function _r(e,t,n){e.callbacks_.push(function(r){let i=t;if(!i||!mr(i,r))return;r.mapSetPlugin_?.fixSetContents(i);let a=Wn(i);gr(e,i.draft_??i,a,n),vr(i,r)})}function vr(e,t){if(e.modified_&&!e.finalized_&&(e.type_===3||e.type_===1&&e.allIndicesReassigned_||(e.assigned_?.size??0)>0)){let{patchPlugin_:n}=t;if(n){let r=n.getPath(e);r&&n.generatePatches_(e,r,t)}pr(e)}}function yr(e,t,n){let{scope_:r}=e;if(Tn(n)){let i=n[hn];mr(i,r)&&i.callbacks_.push(function(){Or(e),gr(e,n,Wn(i),t)})}else En(n)&&e.callbacks_.push(function(){let i=Un(e);e.type_===3?i.has(n)&&br(n,r.handledSet_,r):Nn(i,t,e.type_)===n&&r.drafts_.length>1&&(e.assigned_.get(t)??!1)===!0&&e.copy_&&br(Nn(e.copy_,t,e.type_),r.handledSet_,r)})}function br(e,t,n){return!n.immer_.autoFreeze_&&n.unfinalizedDrafts_<1||Tn(e)||t.has(e)||!En(e)||Yn(e)?e:(t.add(e),An(e,(r,i)=>{if(Tn(i)){let t=i[hn];mr(t,n)&&(Pn(e,r,Wn(t),e.type_),pr(t))}else En(i)&&br(i,t,n)}),e)}function xr(e,t){let n=In(e),r={type_:n?1:0,scope_:t?t.scope_:rr(),modified_:!1,finalized_:!1,assigned_:void 0,parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1,callbacks_:void 0},i=r,a=Sr;n&&(i=[r],a=Cr);let{revoke:o,proxy:s}=Proxy.revocable(i,a);return r.draft_=s,r.revoke_=o,[s,r]}var Sr={get(e,t){if(t===hn)return e;let n=e.scope_.arrayMethodsPlugin_,r=e.type_===1&&typeof t==`string`;if(r&&n?.isArrayOperationMethod(t))return n.createMethodInterceptor(e,t);let i=Un(e);if(!Mn(i,t,e.type_))return Tr(e,i,t);let a=i[t];if(e.finalized_||!En(a)||r&&e.operationMethod&&n?.isMutatingArrayMethod(e.operationMethod)&&Hn(t))return a;if(a===wr(e.base_,t)){Or(e);let n=e.type_===1?+t:t,r=Ar(e.scope_,a,e,n);return e.copy_[n]=r}return a},has(e,t){return t in Un(e)},ownKeys(e){return Reflect.ownKeys(Un(e))},set(e,t,n){let r=Er(Un(e),t);if(r?.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){let r=wr(Un(e),t),i=r?.[hn];if(i&&i.base_===n)return e.copy_[t]=n,e.assigned_.set(t,!1),!0;if(Fn(n,r)&&(n!==void 0||Mn(e.base_,t,e.type_)))return!0;Or(e),Dr(e)}return e.copy_[t]===n&&(n!==void 0||t in e.copy_)||Number.isNaN(n)&&Number.isNaN(e.copy_[t])?!0:(e.copy_[t]=n,e.assigned_.set(t,!0),yr(e,t,n),!0)},deleteProperty(e,t){return Or(e),wr(e.base_,t)!==void 0||t in e.base_?(e.assigned_.set(t,!1),Dr(e)):e.assigned_.delete(t),e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){let n=Un(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{[Cn]:!0,[xn]:e.type_!==1||t!==`length`,[Sn]:r[Sn],[wn]:n[t]}},defineProperty(){gn(11)},getPrototypeOf(e){return vn(e.base_)},setPrototypeOf(){gn(12)}},Cr={};for(let e in Sr){let t=Sr[e];Cr[e]=function(){let e=arguments;return e[0]=e[0][0],t.apply(this,e)}}Cr.deleteProperty=function(e,t){return Cr.set.call(this,e,t,void 0)},Cr.set=function(e,t,n){return Sr.set.call(this,e[0],t,n,e[0])};function wr(e,t){let n=e[hn];return(n?Un(n):e)[t]}function Tr(e,t,n){let r=Er(t,n);return r?wn in r?r[wn]:r.get?.call(e.draft_):void 0}function Er(e,t){if(!(t in e))return;let n=vn(e);for(;n;){let e=Object.getOwnPropertyDescriptor(n,t);if(e)return e;n=vn(n)}}function Dr(e){e.modified_||(e.modified_=!0,e.parent_&&Dr(e.parent_))}function Or(e){e.copy_||=(e.assigned_=new Map,Gn(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var kr=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!1,this.produce=(e,t,n)=>{if(Bn(e)&&!Bn(t)){let n=t;t=e;let r=this;return function(e=n,...i){return r.produce(e,e=>t.call(this,e,...i))}}Bn(t)||gn(6),n!==void 0&&!Bn(n)&&gn(7);let r;if(En(e)){let i=cr(this),a=Ar(i,e,void 0),o=!0;try{r=t(a),o=!1}finally{o?or(i):sr(i)}return ar(i,n),ur(r,i)}else if(!e||!zn(e)){if(r=t(e),r===void 0&&(r=e),r===pn&&(r=void 0),this.autoFreeze_&&Kn(r,!0),n){let t=[],i=[];er(Zn).generateReplacementPatches_(e,r,{patches_:t,inversePatches_:i}),n(t,i)}return r}else gn(1,e)},this.produceWithPatches=(e,t)=>{if(Bn(e))return(t,...n)=>this.produceWithPatches(t,t=>e(t,...n));let n,r;return[this.produce(e,t,(e,t)=>{n=e,r=t}),n,r]},Vn(e?.autoFreeze)&&this.setAutoFreeze(e.autoFreeze),Vn(e?.useStrictShallowCopy)&&this.setUseStrictShallowCopy(e.useStrictShallowCopy),Vn(e?.useStrictIteration)&&this.setUseStrictIteration(e.useStrictIteration)}createDraft(e){En(e)||gn(8),Tn(e)&&(e=jr(e));let t=cr(this),n=Ar(t,e,void 0);return n[hn].isManual_=!0,sr(t),n}finishDraft(e,t){let n=e&&e[hn];(!n||!n.isManual_)&&gn(9);let{scope_:r}=n;return ar(r,t),ur(void 0,r)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}setUseStrictIteration(e){this.useStrictIteration_=e}shouldUseStrictIteration(){return this.useStrictIteration_}applyPatches(e,t){let n;for(n=t.length-1;n>=0;n--){let r=t[n];if(r.path.length===0&&r.op===`replace`){e=r.value;break}}n>-1&&(t=t.slice(n+1));let r=er(Zn).applyPatches_;return Tn(e)?r(e,t):this.produce(e,e=>r(e,t))}};function Ar(e,t,n,r){let[i,a]=Ln(t)?er(Xn).proxyMap_(t,n):Rn(t)?er(Xn).proxySet_(t,n):xr(t,n);return(n?.scope_??rr()).drafts_.push(i),a.callbacks_=n?.callbacks_??[],a.key_=r,n&&r!==void 0?_r(n,a,r):a.callbacks_.push(function(e){e.mapSetPlugin_?.fixSetContents(a);let{patchPlugin_:t}=e;a.modified_&&t&&t.generatePatches_(a,[],e)}),i}function jr(e){return Tn(e)||gn(10,e),Mr(e)}function Mr(e){if(!En(e)||Yn(e))return e;let t=e[hn],n,r=!0;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=Gn(e,t.scope_.immer_.useStrictShallowCopy_),r=t.scope_.immer_.shouldUseStrictIteration()}else n=Gn(e,!0);return An(n,(e,t)=>{Pn(n,e,Mr(t))},r),t&&(t.finalized_=!1),n}var Nr=new kr().produce;function Pr(e){return({dispatch:t,getState:n})=>r=>i=>typeof i==`function`?i(t,n,e):r(i)}var Fr=Pr(),Ir=Pr,Lr=typeof window<`u`&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]==`object`?un:un.apply(null,arguments)};typeof window<`u`&&window.__REDUX_DEVTOOLS_EXTENSION__&&window.__REDUX_DEVTOOLS_EXTENSION__;function Rr(e,t){function n(...n){if(t){let r=t(...n);if(!r)throw Error(gi(0));return{type:e,payload:r.payload,...`meta`in r&&{meta:r.meta},...`error`in r&&{error:r.error}}}return{type:e,payload:n[0]}}return n.toString=()=>`${e}`,n.type=e,n.match=t=>fn(t)&&t.type===e,n}var zr=class e extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,e.prototype)}static get[Symbol.species](){return e}concat(...e){return super.concat.apply(this,e)}prepend(...t){return t.length===1&&Array.isArray(t[0])?new e(...t[0].concat(this)):new e(...t.concat(this))}};function Br(e){return En(e)?Nr(e,()=>{}):e}function Vr(e,t,n){return e.has(t)?e.get(t):e.set(t,n(t)).get(t)}function Hr(e){return typeof e==`boolean`}var Ur=()=>function(e){let{thunk:t=!0,immutableCheck:n=!0,serializableCheck:r=!0,actionCreatorCheck:i=!0}=e??{},a=new zr;return t&&(Hr(t)?a.push(Fr):a.push(Ir(t.extraArgument))),a},Wr=`RTK_autoBatch`,Gr=e=>t=>{setTimeout(t,e)},Kr=(e={type:`raf`})=>t=>(...n)=>{let r=t(...n),i=!0,a=!1,o=!1,s=new Set,c=e.type===`tick`?queueMicrotask:e.type===`raf`?typeof window<`u`&&window.requestAnimationFrame?window.requestAnimationFrame:Gr(10):e.type===`callback`?e.queueNotification:Gr(e.timeout),l=()=>{o=!1,a&&(a=!1,s.forEach(e=>e()))};return Object.assign({},r,{subscribe(e){let t=r.subscribe(()=>i&&e());return s.add(e),()=>{t(),s.delete(e)}},dispatch(e){try{return i=!e?.meta?.[Wr],a=!i,a&&(o||(o=!0,c(l))),r.dispatch(e)}finally{i=!0}}})},qr=e=>function(t){let{autoBatch:n=!0}=t??{},r=new zr(e);return n&&r.push(Kr(typeof n==`object`?n:void 0)),r};function Jr(e){let t=Ur(),{reducer:n=void 0,middleware:r,devTools:i=!0,duplicateMiddlewareCheck:a=!0,preloadedState:o=void 0,enhancers:s=void 0}=e||{},c;if(typeof n==`function`)c=n;else if(on(n))c=ln(n);else throw Error(gi(1));let l;l=typeof r==`function`?r(t):t();let u=un;i&&(u=Lr({trace:!1,...typeof i==`object`&&i}));let d=qr(dn(...l)),f=typeof s==`function`?s(d):d(),p=u(...f);return sn(c,o,p)}function Yr(e){let t={},n=[],r,i={addCase(e,n){let r=typeof e==`string`?e:e.type;if(!r)throw Error(gi(28));if(r in t)throw Error(gi(29));return t[r]=n,i},addAsyncThunk(e,r){return r.pending&&(t[e.pending.type]=r.pending),r.rejected&&(t[e.rejected.type]=r.rejected),r.fulfilled&&(t[e.fulfilled.type]=r.fulfilled),r.settled&&n.push({matcher:e.settled,reducer:r.settled}),i},addMatcher(e,t){return n.push({matcher:e,reducer:t}),i},addDefaultCase(e){return r=e,i}};return e(i),[t,n,r]}function Xr(e){return typeof e==`function`}function Zr(e,t){let[n,r,i]=Yr(t),a;if(Xr(e))a=()=>Br(e());else{let t=Br(e);a=()=>t}function o(e=a(),t){let o=[n[t.type],...r.filter(({matcher:e})=>e(t)).map(({reducer:e})=>e)];return o.filter(e=>!!e).length===0&&(o=[i]),o.reduce((e,n)=>{if(n)if(Tn(e)){let r=n(e,t);return r===void 0?e:r}else if(En(e))return Nr(e,e=>n(e,t));else{let r=n(e,t);if(r===void 0){if(e===null)return e;throw Error(`A case reducer on a non-draftable value must not return undefined`)}return r}return e},e)}return o.getInitialState=a,o}var Qr=Symbol.for(`rtk-slice-createasyncthunk`);function $r(e,t){return`${e}/${t}`}function ei({creators:e}={}){let t=e?.asyncThunk?.[Qr];return function(e){let{name:n,reducerPath:r=n}=e;if(!n)throw Error(gi(11));let i=(typeof e.reducers==`function`?e.reducers(ri()):e.reducers)||{},a=Object.keys(i),o={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},s={addCase(e,t){let n=typeof e==`string`?e:e.type;if(!n)throw Error(gi(12));if(n in o.sliceCaseReducersByType)throw Error(gi(13));return o.sliceCaseReducersByType[n]=t,s},addMatcher(e,t){return o.sliceMatchers.push({matcher:e,reducer:t}),s},exposeAction(e,t){return o.actionCreators[e]=t,s},exposeCaseReducer(e,t){return o.sliceCaseReducersByName[e]=t,s}};a.forEach(r=>{let a=i[r],o={reducerName:r,type:$r(n,r),createNotation:typeof e.reducers==`function`};ai(a)?si(o,a,s,t):ii(o,a,s)});function c(){let[t={},n=[],r=void 0]=typeof e.extraReducers==`function`?Yr(e.extraReducers):[e.extraReducers],i={...t,...o.sliceCaseReducersByType};return Zr(e.initialState,e=>{for(let t in i)e.addCase(t,i[t]);for(let t of o.sliceMatchers)e.addMatcher(t.matcher,t.reducer);for(let t of n)e.addMatcher(t.matcher,t.reducer);r&&e.addDefaultCase(r)})}let l=e=>e,u=new Map,d=new WeakMap,f;function p(e,t){return f||=c(),f(e,t)}function m(){return f||=c(),f.getInitialState()}function h(t,n=!1){function r(e){let i=e[t];return i===void 0&&n&&(i=Vr(d,r,m)),i}function i(t=l){return Vr(Vr(u,n,()=>new WeakMap),t,()=>{let r={};for(let[i,a]of Object.entries(e.selectors??{}))r[i]=ti(a,t,()=>Vr(d,t,m),n);return r})}return{reducerPath:t,getSelectors:i,get selectors(){return i(r)},selectSlice:r}}let g={name:n,reducer:p,actions:o.actionCreators,caseReducers:o.sliceCaseReducersByName,getInitialState:m,...h(r),injectInto(e,{reducerPath:t,...n}={}){let i=t??r;return e.inject({reducerPath:i,reducer:p},n),{...g,...h(i,!0)}}};return g}}function ti(e,t,n,r){function i(i,...a){let o=t(i);return o===void 0&&r&&(o=n()),e(o,...a)}return i.unwrapped=e,i}var ni=ei();function ri(){function e(e,t){return{_reducerDefinitionType:`asyncThunk`,payloadCreator:e,...t}}return e.withTypes=()=>e,{reducer(e){return Object.assign({[e.name](...t){return e(...t)}}[e.name],{_reducerDefinitionType:`reducer`})},preparedReducer(e,t){return{_reducerDefinitionType:`reducerWithPrepare`,prepare:e,reducer:t}},asyncThunk:e}}function ii({type:e,reducerName:t,createNotation:n},r,i){let a,o;if(`reducer`in r){if(n&&!oi(r))throw Error(gi(17));a=r.reducer,o=r.prepare}else a=r;i.addCase(e,a).exposeCaseReducer(t,a).exposeAction(t,o?Rr(e,o):Rr(e))}function ai(e){return e._reducerDefinitionType===`asyncThunk`}function oi(e){return e._reducerDefinitionType===`reducerWithPrepare`}function si({type:e,reducerName:t},n,r,i){if(!i)throw Error(gi(18));let{payloadCreator:a,fulfilled:o,pending:s,rejected:c,settled:l,options:u}=n,d=i(e,a,u);r.exposeAction(t,d),o&&r.addCase(d.fulfilled,o),s&&r.addCase(d.pending,s),c&&r.addCase(d.rejected,c),l&&r.addMatcher(d.settled,l),r.exposeCaseReducer(t,{fulfilled:o||ci,pending:s||ci,rejected:c||ci,settled:l||ci})}function ci(){}var li=`listener`,ui=`completed`,di=`cancelled`;`${di}`,`${ui}`,`${li}${di}`,`${li}${ui}`;var{assign:fi}=Object,pi=`listenerMiddleware`,mi=fi(Rr(`${pi}/add`),{withTypes:()=>mi});`${pi}`;var hi=fi(Rr(`${pi}/remove`),{withTypes:()=>hi});function gi(e){return`Minified Redux Toolkit error #${e}; visit https://redux-toolkit.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var _i=ni({name:`start-screen`,initialState:{formValues:{}},reducers:{showStartScreen(e){e.startScreenStatus=`VISIBLE`,e.formValues={}},startChat(e,t){e.startScreenStatus=`HIDDEN`,e.formValues=t.payload.formValues},startAuthenticatedChat(e,t){e.startScreenStatus=`HIDDEN`,e.loginToken=t.payload.loginToken,e.loginRequestToken=void 0},requestLogin(e,t){e.loginRequestToken=t.payload.loginRequestToken,e.formValues=t.payload.formValues},loginWindowClosed(e){e.loginRequestToken=void 0}}}),{startChat:vi,startAuthenticatedChat:yi,showStartScreen:bi,requestLogin:xi,loginWindowClosed:Si}=_i.actions,Ci=_i.reducer,wi=`RESET_CHAT_STATE`,Ti=`TOGGLE_TRANSCRIPT_MAIL_OVERLAY`,Ei=`SHOW_CONVERSATION_RATING_OVERLAY`,Di=`HIDE_CONVERSATION_RATING_OVERLAY`,Oi=()=>({type:Dt}),ki=()=>({type:wi}),Ai=()=>({type:Ti}),ji=(e,t=void 0)=>({type:Ei,payload:{opener:e,defaultRating:t}}),Mi=()=>({type:Di}),Ni=(e,t,n)=>(r,i)=>{try{let a=i().connection.sessionId;if(!a)throw Error(`Session ID is not available`);r({type:wt,payload:{chunkId:n}}),Pi(e,a,t,n,!1,r),Pi(e,a,t,n,!0,r)}catch(e){console.error(`Error loading source infos:`,e),r({type:Ct})}},Pi=(e,t,n,r,i,a)=>{let o=`/${e}/me/chat-widget/transcript/${n}/chunks/${r}?highlight=${i}`;fetch(o,{headers:{"x-bubble-chat-session-id":t}}).then(e=>{if(!e.ok)throw Error(`HTTP error! Status: ${e.status}`);return e.json()}).then(e=>{a({type:St,payload:{...e,chunkId:r,highlighted:i}})}).catch(e=>{console.error(`Error fetching source infos:`,e),a({type:Ct,payload:{highlighted:i}})})},Fi=()=>({type:Tt}),Ii=`CONNECT`,Li=`CONNECTING`,Ri=`CONNECTED`,zi=`DISCONNECTED`,Bi=`RECONNECTED`,Vi=`RESTORE_SESSION_ID`,Hi=`START`,Ui=`CLEAR_SESSION_ID`,Wi=[Ii,Li,Ri,zi,Bi,Vi],Gi=(e,t)=>({type:Ii,clientName:e,querystrings:t}),Ki=e=>({type:Vi,sessionId:e}),qi=()=>({type:Li}),Ji=()=>({type:Ri}),Yi=()=>({type:zi}),Xi=()=>({type:Bi}),Zi=e=>(t,n)=>{let r=n().connection,{formValues:i,loginToken:a}=n().startScreen,o=r.sessionId;o===void 0&&(o=Qt());let s=r.userId;s===void 0&&(s=Wt.get(`bubble-chat-user-id`)||Wt.get(`bubble-chat-userId`)||Wt.get(`bf-webclient-userId`)||Qt(),Wt.set(`bubble-chat-user-id`,s,{expires:182}));let c=new URLSearchParams(n().connection.queryString||``),l=Object.fromEntries(c.entries());t({type:Hi,payload:{sessionId:o,userId:s,clientName:e,loginToken:a,querystrings:{...l,...i}}})},Qi=()=>(e,t)=>{if(e($i(t().connection.sessionId||``)),e(ki()),t().settings.enableStartScreen)e(bi());else return e(Zi($t()))},$i=e=>({type:Ui,payload:{sessionId:e}}),ea=$e,ta=nt,z=()=>{let e=ta(e=>e.intl.messages);return t=>e[t]||void 0},na=function(e){return e[e.CONNECTING=0]=`CONNECTING`,e[e.CONNECTED=1]=`CONNECTED`,e[e.RECONNECTED=2]=`RECONNECTED`,e[e.DISCONNECTED=3]=`DISCONNECTED`,e}({}),ra=function(e){return e.GUEST=`GUEST`,e.BOT=`BOT`,e.PERSON=`PERSON`,e}({}),ia={container:`_container_q2uun_1`,chatcontent:`_chatcontent_q2uun_6`,accessabilityHidden:`_accessabilityHidden_q2uun_12`},aa={messageContainer:`_messageContainer_1t640_1`,messages:`_messages_1t640_13`},oa;function sa(e){if(!oa)if(typeof document<`u`)oa=document.createElement(`textarea`);else return;var t=`&`+e+`;`;oa.innerHTML=t;var n=oa.value;return n===t?void 0:n}var B=32,V=9,ca=13,H=10,U=96,la=126,ua=91,da=94,W=62,fa=35,pa=37,G=45,ma=61,ha=92,ga=42,_a=95,va=60,ya=64,ba=93,xa=33,Sa=38,Ca=58,wa=70,Ta=102,Ea=104,Da=119,Oa=116,ka=112,Aa=115,ja=160,Ma=12,Na=44,Pa=59,Fa=63,Ia=46,La=47,Ra=39,za=34,Ba=43,Va=124,Ha=123,Ua=125,Wa=40,Ga=41,Ka=30,qa=31,Ja=48,Ya=57,Xa=65,K=90,Za=97,Qa=122,$a=128,eo=32,q={blockQuote:0,breakLine:1,breakThematic:2,codeBlock:3,codeInline:4,footnote:5,footnoteReference:6,frontmatter:7,gfmTask:8,heading:9,htmlBlock:10,htmlComment:11,htmlSelfClosing:12,image:13,link:14,orderedList:15,paragraph:16,ref:17,refCollection:18,table:19,text:20,textFormatted:21,unorderedList:22};function to(e){if(!po(e,`---`))return null;let t=3;for(;t<e.length&&(e[t]===` `||e[t]===` `);)t++;if(t<e.length&&e[t]===`\r`&&t++,t>=e.length||e[t]!==`
|
|
14
|
+
`)return null;t++;let n=!1;for(;t<e.length;){let r=t;for(;t<e.length&&e[t]!==`
|
|
15
|
+
`&&e[t]!==`\r`;)t++;if(t>=e.length)break;let i=t;if(e[t]===`\r`&&t++,t<e.length&&e[t]===`
|
|
16
|
+
`&&t++,po(e,`---`,r))return{endPos:t,hasValidYaml:n};let a=e.indexOf(`:`,r);a!==-1&&a<i&&(n=!0)}return null}var no=/&([a-zA-Z0-9]+|#[0-9]{1,7}|#x[0-9a-fA-F]{1,6});/gi,ro={class:`className`,for:`htmlFor`,allowfullscreen:`allowFullScreen`,allowtransparency:`allowTransparency`,autocomplete:`autoComplete`,autofocus:`autoFocus`,autoplay:`autoPlay`,cellpadding:`cellPadding`,cellspacing:`cellSpacing`,charset:`charSet`,classid:`classId`,colspan:`colSpan`,contenteditable:`contentEditable`,contextmenu:`contextMenu`,crossorigin:`crossOrigin`,enctype:`encType`,formaction:`formAction`,formenctype:`formEncType`,formmethod:`formMethod`,formnovalidate:`formNoValidate`,formtarget:`formTarget`,frameborder:`frameBorder`,hreflang:`hrefLang`,inputmode:`inputMode`,keyparams:`keyParams`,keytype:`keyType`,marginheight:`marginHeight`,marginwidth:`marginWidth`,maxlength:`maxLength`,mediagroup:`mediaGroup`,minlength:`minLength`,novalidate:`noValidate`,radiogroup:`radioGroup`,readonly:`readOnly`,rowspan:`rowSpan`,spellcheck:`spellCheck`,srcdoc:`srcDoc`,srclang:`srcLang`,srcset:`srcSet`,tabindex:`tabIndex`,usemap:`useMap`,viewbox:`viewBox`};function io(e){var t={};for(var n in e){var r=ro[n.toLowerCase()];if(r)t[r]=e[n];else{var i=n.indexOf(`:`);i===-1?t[n]=e[n]:t[n.slice(0,i)+n[i+1].toUpperCase()+n.slice(i+2)]=e[n]}}return t}var J=/(\n|^[-*]\s|^#|^ {2,}|^-{2,}|^>\s|^<(div|p|h[1-6]|ul|ol|li|blockquote|pre|table|thead|tbody|tr|td|th|dl|dt|dd|hr|address|article|aside|details|dialog|figure|figcaption|footer|form|header|main|menu|nav|section|summary|textarea|fieldset|legend|center|dir|hgroup|marquee|search|output|template)\b)/i;function ao(e){return e.indexOf(`&`)===-1?e:e.replace(no,(e,t)=>{var n=sa(t);if(n)return n;if(t[0]===`#`){var r=t[1]===`x`||t[1]===`X`?parseInt(t.slice(2),16):parseInt(t.slice(1),10);return r===0||r>=55296&&r<=57343||r>1114111?`�`:r<=65535?String.fromCharCode(r):String.fromCharCode(55296+(r-65536>>10),56320+(r-65536&1023))}return e})}var oo=/(javascript|vbscript|data(?!:image)):/i;function so(e){if(oo.test(e))return null;if(e.indexOf(`%`)===-1)return e;try{let t=decodeURIComponent(e).replace(/[^A-Za-z0-9/:]/g,``);if(oo.test(t))return null}catch{return null}return e}var co={},lo,uo;for(lo=[192,193,194,195,196,197,224,225,226,227,228,229,230,198],uo=0;uo<lo.length;uo++)co[lo[uo]]=`a`;for(co[231]=co[199]=`c`,co[240]=co[208]=`d`,lo=[200,201,202,203,233,232,234,235],uo=0;uo<lo.length;uo++)co[lo[uo]]=`e`;for(lo=[207,239,206,238,205,237,204,236],uo=0;uo<lo.length;uo++)co[lo[uo]]=`i`;for(co[209]=co[241]=`n`,lo=[248,216,339,338,213,245,212,244,211,243,210,242],uo=0;uo<lo.length;uo++)co[lo[uo]]=`o`;for(lo=[220,252,219,251,218,250,217,249],uo=0;uo<lo.length;uo++)co[lo[uo]]=`u`;co[376]=co[255]=co[221]=co[253]=`y`;function fo(e){for(var t=e.toLowerCase(),n=``,r=-1,i=0;i<t.length;i++){var a=t.charCodeAt(i);if(a<$a&&(Do[a]&(yo|bo))!==0)r<0&&(r=i);else if(a===B||a===G)r>=0&&(n+=t.slice(r,i),r=-1),n+=`-`;else{r>=0&&(n+=t.slice(r,i),r=-1);var o=co[a];o&&(n+=o)}}return r>=0&&(n+=t.slice(r)),n}function po(e,t,n){return e.startsWith(t,n)}var mo=new Set([`area`,`base`,`br`,`col`,`embed`,`hr`,`img`,`input`,`link`,`meta`,`param`,`source`,`track`,`wbr`,`circle`,`ellipse`,`line`,`path`,`polygon`,`polyline`,`rect`,`use`,`stop`,`animate`,`set`]);function ho(e){let t=e.toLowerCase();if(mo.has(t))return!0;let n=t.indexOf(`:`);return n===-1?!1:(t=t.slice(n+1),mo.has(t))}var go=1,_o=2,vo=4,yo=8,bo=16,xo=32,So=64,Co=1,wo=2,To=3,Eo=4,Do=(function(){var e=new Uint8Array(128),t;for(e[V]=go,e[H]=go|_o,e[Ma]=go,e[ca]=go|_o,e[B]=go,t=xa;t<=La;t++)e[t]=vo;for(t=Ca;t<=ya;t++)e[t]=vo;for(t=ua;t<=U;t++)e[t]=vo;for(t=Ha;t<=la;t++)e[t]=vo;for(t=Ja;t<=Ya;t++)e[t]=bo;for(t=Xa;t<=K;t++)e[t]=yo;for(t=Za;t<=Qa;t++)e[t]=yo;return e})();(function(){let e=new Uint8Array(128);return e[ha]=wo,e[ua]=Eo,e[ga]=e[_a]=e[la]=e[ma]=To,e[U]=e[va]=e[ya]=e[ba]=e[H]=e[B]=e[xa]=Co,e[Ta]=e[Ea]=e[Da]=Co,e})();var Oo=/[\p{P}\p{S}]/u,ko=/\p{Zs}/u,Ao=[];function jo(e){var t=e.indexOf(`\r`),n=e.indexOf(`\0`);if(t===-1&&n===-1)return e;var r=e.length;Ao.length=0;var i=0,a=0;for(a=t===-1?n:n===-1||t<n?t:n;a<r;a++){var o=e.charCodeAt(a);o===ca?(i<a&&Ao.push(e.slice(i,a)),a+1<r&&e.charCodeAt(a+1)===H&&a++,Ao.push(`
|
|
17
|
+
`),i=a+1):o===0&&(i<a&&Ao.push(e.slice(i,a)),Ao.push(`�`),i=a+1)}return i<r&&Ao.push(e.slice(i)),Ao.join(``)}function Mo(e,t,n){for(var r=e,i=t.split(`.`),a=0;a<i.length&&(r=r?.[i[a]],r!==void 0);)a++;return r||n}function No(e){for(var t=!1,n=0;n<e.length;n++){var r=e.charCodeAt(n);if(r<=B||r===za||r===pa||r===va||r===W||r===ua||r===ha||r===ba||r===da||r===U||r>=123){t=!0;break}}if(!t)return e;for(var i=``,n=0;n<e.length;n++){var r=e.charCodeAt(n);if(r===pa&&n+2<e.length){var a=e.charCodeAt(n+1),o=e.charCodeAt(n+2);if((a>=Ja&&a<=Ya||a>=Xa&&a<=wa||a>=Za&&a<=Ta)&&(o>=Ja&&o<=Ya||o>=Xa&&o<=wa||o>=Za&&o<=Ta)){i+=e[n]+e[n+1]+e[n+2],n+=2;continue}}i+=encodeURI(e[n])}return i}function Po(...e){return e.filter(Boolean).join(` `)}var Fo=new Set([`title`,`textarea`,`style`,`xmp`,`iframe`,`noembed`,`noframes`,`script`,`plaintext`]),Io=/<(\/?)(title|textarea|style|xmp|iframe|noembed|noframes|script|plaintext)(\s|>|\/)/gi;function Lo(e){return Fo.has(e.toLowerCase())}function Ro(e){return Io.lastIndex=0,Io.test(e)}function zo(e){return Io.lastIndex=0,e.replace(Io,function(e,t,n,r){return`<`+t+n+r})}var Bo=/^<([a-zA-Z][a-zA-Z0-9-]*)\s[^>]*>/,Vo=/^<[A-Z]/,Ho=[`script`,`pre`,`style`,`textarea`],Uo=new Set(Ho),Wo=/<(?:pre|script|style|textarea)\b/i,Go=/^(\s{0,3}#[#\s]|\s{0,3}[-*+]\s|\s{0,3}\d+\.\s|\s{0,3}>\s|\s{0,3}```)/m,Ko=/^<([a-z][^ >/\n\r]*) ?([^>]*?)>/im,qo=new Set([`table`,`thead`,`tbody`,`tfoot`,`tr`,`td`,`th`]),Jo=new Uint8Array(128);(function(){for(var e=[U,ga,_a,la,ma,ua,xa,va,ha,qa,Ea,Da,Ta],t=0;t<e.length;t++)Jo[e[t]]=1})();var Yo=/([a-zA-Z_][a-zA-Z0-9_-]*)=(?:"([^"]*)"|'([^']*)')/g;function Xo(e){return Uo.has(e)}function Zo(e){return Wo.test(e)}function Qo(e,t,n){for(var r=t,i=n;r<i&&(e.charCodeAt(r)===B||e.charCodeAt(r)===V);)r++;if(r>=i)return!1;e.charCodeAt(r)===Va&&r++;for(var a=0;r<i;){for(;r<i&&(e.charCodeAt(r)===B||e.charCodeAt(r)===V);)r++;if(r>=i)break;if(e.charCodeAt(r)===Va&&a>0){for(var o=r+1;o<i&&(e.charCodeAt(o)===B||e.charCodeAt(o)===V);)o++;if(o>=i)return!0}if(e.charCodeAt(r)===Ca&&r++,r>=i||e.charCodeAt(r)!==G)return!1;for(;r<i&&e.charCodeAt(r)===G;)r++;for(r<i&&e.charCodeAt(r)===Ca&&r++,a++;r<i&&(e.charCodeAt(r)===B||e.charCodeAt(r)===V);)r++;if(r<i)if(e.charCodeAt(r)===Va)r++;else return!1}return a>0}function $o(e,t){if(e.charCodeAt(t)!==va)return null;let n=t+1,r=e.length,i=!1;e.charCodeAt(n)===La&&(n++,i=!0);let a=n,o=e.charCodeAt(n);if(!(o>=Za&&o<=Qa||o>=Xa&&o<=K))return null;for(;n<r&&(e.charCodeAt(n)>=Za&&e.charCodeAt(n)<=Qa||e.charCodeAt(n)>=Xa&&e.charCodeAt(n)<=K||e.charCodeAt(n)>=Ja&&e.charCodeAt(n)<=Ya||e.charCodeAt(n)===G);)n++;let s=e.slice(a,n);if(!s)return null;let c=n;for(;n<r&&(e.charCodeAt(n)===B||e.charCodeAt(n)===V||e.charCodeAt(n)===H);)n++;let l=e.slice(c,n);if(n===c&&n<r){var u=e.charCodeAt(n);if(u!==W&&u!==La)return null}let d=n,f={},p=!1;for(;n<r;){let t=e.charCodeAt(n);if(t===W){let t=e.slice(d,n);return{tag:s,attrs:f,selfClosing:!1,end:n+1,rawAttrs:t,whitespaceBeforeAttrs:l,isClosing:i,hasSpaceBeforeSlash:p}}if(t===B||t===V||t===H){n++;continue}if(t===La&&n+1<r&&e.charCodeAt(n+1)===W){let t=e.slice(d,n);return p=n>d&&e.charCodeAt(n-1)===B,{tag:s,attrs:f,selfClosing:!0,end:n+2,rawAttrs:t,whitespaceBeforeAttrs:l,isClosing:i,hasSpaceBeforeSlash:p}}var m=n,h=e.charCodeAt(n);if(!(h>=Za&&h<=Qa||h>=Xa&&h<=K||h===_a||h===Ca))return null;for(n++;n<r;){var g=e.charCodeAt(n);if(g>=Za&&g<=Qa||g>=Xa&&g<=K||g>=Ja&&g<=Ya||g===_a||g===Ia||g===Ca||g===G)n++;else break}for(var _=e.slice(m,n);n<r&&(e.charCodeAt(n)===B||e.charCodeAt(n)===V);)n++;if(e.charCodeAt(n)!==ma){f[_]=``;continue}for(n++;n<r&&(e.charCodeAt(n)===B||e.charCodeAt(n)===V);)n++;var v=e.charCodeAt(n);if(v===za||v===Ra){n++;for(var y=n;n<r&&e.charCodeAt(n)!==v;)n++;if(n>=r)return null;if(f[_]=e.slice(y,n),n++,n<r){var b=e.charCodeAt(n);if(b!==B&&b!==V&&b!==H&&b!==W&&b!==La)return null}}else if(v===Ha){var x=1,y=n;for(n++;n<r&&x>0;){var g=e.charCodeAt(n);g===Ha?x++:g===Ua&&x--,n++}f[_]=e.slice(y,n)}else{for(var y=n;n<r;){var S=e.charCodeAt(n);if(S===B||S===V||S===W||S===H||S===za||S===Ra||S===ma||S===va||S===U)break;n++}if(n===y)return null;f[_]=e.slice(y,n)}}return null}function es(e,t,n){for(var r=0,i=e.length,a=!1,o=!1;r<i;){for(var s=e.indexOf(`
|
|
18
|
+
`,r),c=s<0?i:s,l=r,u=0;l<c&&u<4;)if(e.charCodeAt(l)===B)u++,l++;else if(e.charCodeAt(l)===V)u+=4,l++;else break;if(l>=c){a=!1,r=s<0?i:s+1;continue}if(u<4){var d=e.charCodeAt(l);if(d===U||d===la){for(var f=d,p=0,m=l;m<c&&e.charCodeAt(m)===f;)p++,m++;if(p>=3){var h=!0;if(f===U){for(var g=m;g<c;g++)if(e.charCodeAt(g)===U){h=!1;break}}if(h){a=!1;for(var _=s<0?i:s+1;_<i;){for(var v=_,y=0;v<i&&y<4;){var b=e.charCodeAt(v);if(b===B)y++,v++;else if(b===V)y+=4,v++;else break}if(y<4&&v<i&&e.charCodeAt(v)===f){for(var x=0;v<i&&e.charCodeAt(v)===f;)x++,v++;if(x>=p){for(;v<i&&(e.charCodeAt(v)===B||e.charCodeAt(v)===V);)v++;if(v>=i||e.charCodeAt(v)===H){r=v>=i?i:v+1;break}}}for(;_<i&&e.charCodeAt(_)!==H;)_++;_<i&&_++}_>=i&&(r=i,o=!0);continue}}}}for(var S=l;S<c&&e.charCodeAt(S)===W;){S++,S<c&&e.charCodeAt(S)===B&&S++;for(var C=0;S<c&&C<4;)if(e.charCodeAt(S)===B)C++,S++;else if(e.charCodeAt(S)===V)C+=4,S++;else break;if(C>=4)break;a=!1}if(!a&&u<4&&S<c&&e.charCodeAt(S)===ua&&!(S+1<i&&e.charCodeAt(S+1)===da)){var w=ts(e,S,t);if(w){r=w,a=!1;continue}}var T=e.charCodeAt(l);if(T===fa&&u<4)a=!1;else if(u<4&&(T===G||T===ga||T===_a)){for(var E=l,D=0;E<c;){var O=e.charCodeAt(E);if(O===T)D++;else if(O!==B&&O!==V)break;E++}a=!(D>=3&&E>=c)}else a=!0;r=s<0?i:s+1}return o}function ts(e,t,n){let r=e.length;if(e.charCodeAt(t)!==ua)return null;let i=t+1<r&&e.charCodeAt(t+1)===da,a=t+1;for(;a<r;){var o=e.charCodeAt(a);if(o===ba){a++;break}if(o===ua)return null;o===ha&&a+1<r&&a++,a++}if(a>r||e.charCodeAt(a-1)!==ba)return null;let s=e.slice(t+1,a-1);if(s.length>999)return null;let c=as(s);if(!c||a>=r||e.charCodeAt(a)!==Ca)return null;a++;let l=!1;for(;a<r;){let t=e.charCodeAt(a);if(t===B||t===V)a++;else if(t===H&&!l)l=!0,a++;else break}if(i){let t=e.indexOf(`
|
|
19
|
+
`,a),i=t<0?r:t;return n[c]={target:e.slice(a,i).trim(),title:void 0},t<0?r:t+1}var u;if(a<r&&e.charCodeAt(a)===va){a++;for(var d=a;a<r&&e.charCodeAt(a)!==W&&e.charCodeAt(a)!==H;)e.charCodeAt(a)===ha&&a+1<r&&a++,a++;if(a>=r||e.charCodeAt(a)!==W)return null;u=e.slice(d,a),a++;for(var f=e.indexOf(`
|
|
20
|
+
`,a),p=f<0?r:f,m=a;m<p&&(e.charCodeAt(m)===B||e.charCodeAt(m)===V);)m++;if(m<p){if(m===a)return null;var h=e.charCodeAt(m);if(h!==za&&h!==Ra&&h!==Wa)return null}}else{for(var d=a,g=0;a<r;){var o=e.charCodeAt(a);if(o===Wa)g++;else if(o===Ga){if(g===0)break;g--}else{if(o===B||o===V||o===H)break;o===ha&&a+1<r&&a++}a++}if(u=e.slice(d,a),!u)return null}for(;a<r&&(e.charCodeAt(a)===B||e.charCodeAt(a)===V);)a++;var _=e.indexOf(`
|
|
21
|
+
`,a),v=_<0?r:_,y,b=!1,x=a,S=a;if(a===v&&a<r)for(S=a+1;S<r&&(e.charCodeAt(S)===B||e.charCodeAt(S)===V);)S++;if(S<r){var C=e.charCodeAt(S);if(C===za||C===Ra||C===Wa){for(var w=C===Wa?41:C,T=S+1,E=T;T<r;){var D=e.charCodeAt(T);if(D===w){for(var O=T+1;O<r&&(e.charCodeAt(O)===B||e.charCodeAt(O)===V);)O++;(O>=r||e.charCodeAt(O)===H)&&(y=e.slice(E,T),b=!0,x=O<r?O+1:r);break}if(D===ha&&T+1<r){T+=2;continue}if(D===H&&T+1<r&&e.charCodeAt(T+1)===H)break;T++}if(!b&&S===a)return null}}if(b)return n[c]||(n[c]={target:ss(u),title:y===void 0?y:ao(ss(y))}),x;for(;a<v&&(e.charCodeAt(a)===B||e.charCodeAt(a)===V);)a++;return a<v?null:(n[c]||(n[c]={target:ss(u),title:y}),_<0?r:_+1)}var ns=new Uint8Array(Do);for(ns[qa]=go,ns[fa]|=xo,ns[W]|=xo,ns[G]|=xo|So,ns[Ba]|=xo,ns[ga]|=xo|So,ns[_a]|=xo|So,ns[U]|=xo|So,ns[la]|=xo|So,ns[va]|=xo|So,ns[ua]|=So,ns[xa]|=So,ns[Va]|=xo,rs=Ja;rs<=Ya;rs++)ns[rs]|=xo;var rs;function is(e){if(e.indexOf(`[`)<0&&e.indexOf(`]`)<0)return!1;for(var t=0;t<e.length;t++){if(e.charCodeAt(t)===ha){t++;continue}if(e.charCodeAt(t)===ua||e.charCodeAt(t)===ba)return!0}return!1}function as(e){var t=e.replace(/\s+/g,` `).trim();return t.indexOf(`ẞ`)===-1?t.toLowerCase():t.replace(/\u1E9E/g,`ss`).toLowerCase()}function os(e){return e<$a?ns[e]:e===ja?go:0}function ss(e){return e.replace(/\\([!"#$%&'()*+,\-./:;<=>?@[\\\]^_`{|}~])/g,`$1`)}function cs(e,t){var n=e.indexOf(`
|
|
22
|
+
`,t);return n<0?e.length:n}function Y(e,t){let n=cs(e,t);return n<e.length?n+1:n}function ls(e,t,n){for(;t<n;){let n=e.charCodeAt(t);if(n!==B&&n!==V)break;t++}return t}function us(e,t){let n=Y(e,t);for(;n<e.length;){let t=cs(e,n);if(hs(e,n,t))return n;n=Y(e,n)}return e.length}function ds(e,t,n,r){let i=0;for(;t+i<n&&e.charCodeAt(t+i)===r;)i++;return i}var fs=0,ps=0;function ms(e,t,n){for(fs=0,ps=0;t+ps<n;){let n=e.charCodeAt(t+ps);if(n===V)fs+=4-fs%4;else if(n===B)fs++;else break;ps++}}function hs(e,t,n){return ls(e,t,n)>=n}function gs(e,t,n,r){let i=cs(e,t);if(ms(e,t,i),fs>3)return null;let a=t+ps;if(e.charCodeAt(a)!==fa)return null;let o=ds(e,a,i,35);if(o<1||o>6||(a+=o,a<i&&e.charCodeAt(a)!==B&&e.charCodeAt(a)!==V))return null;a=ls(e,a,i);for(var s=i;s>a&&e.charCodeAt(s-1)===B;)s--;for(var c=s;s>a&&e.charCodeAt(s-1)===fa;)s--;if(s<c)if(s===a||e.charCodeAt(s-1)===B)for(;s>a&&e.charCodeAt(s-1)===B;)s--;else s=c;let l=e.slice(a,s),u=sc(l,0,l.length,n,r),d=(r?.slugify||fo)(l);return{node:{type:q.heading,level:o,children:u,id:d},end:Y(e,i)}}function _s(e,t,n){var r=e.charCodeAt(t);if(r!==ma&&r!==G)return!1;for(var i=t;i<n&&e.charCodeAt(i)===r;)i++;for(;i<n&&(e.charCodeAt(i)===B||e.charCodeAt(i)===V);)i++;return i>=n}function vs(e,t){let n=cs(e,t);if(ms(e,t,n),fs>3)return null;let r=t+ps,i=e.charCodeAt(r);if(i!==G&&i!==ga&&i!==_a)return null;let a=0;for(;r<n;){let t=e.charCodeAt(r);if(t===i)a++;else if(t!==B&&t!==V)return null;r++}return a<3?null:{node:{type:q.breakThematic},end:Y(e,n)}}function ys(e,t,n){let r=cs(e,t);if(ms(e,t,r),fs>3)return null;let i=fs,a=t+ps,o=e.charCodeAt(a);if(o!==U&&o!==la)return null;let s=ds(e,a,r,o);if(s<3)return null;a+=s;let c=ls(e,a,r),l=r;if(o===U){for(let t=c;t<r;t++)if(e.charCodeAt(t)===U)return null}for(;l>c&&(e.charCodeAt(l-1)===B||e.charCodeAt(l-1)===V);)l--;let u=e.slice(c,l),d=``,f=``,p=u.indexOf(` `);p===-1?d=u:(d=u.slice(0,p),f=u.slice(p+1).trim()),d=ss(d);var m=void 0;if(f){Yo.lastIndex=0;for(var h;(h=Yo.exec(f))!==null;)m||={},m[h[1]]=h[2]===void 0?h[3]:h[2]}let g=Y(e,r),_=g,v=e.length;for(;_<e.length;){let t=cs(e,_);if(ms(e,_,t),fs<4){let n=_+ps;var y=ds(e,n,t,o);if(y>=s&&hs(e,n+y,t)){v=Y(e,t);break}}_=Y(e,t)}var b;if(i===0)b=_>g&&e.charCodeAt(_-1)===H?e.slice(g,_-1):e.slice(g,_);else{b=``;for(var x=g;x<_;){var S=cs(e,x);ms(e,x,S);var C=Math.min(ps,i);b+=e.slice(x+C,S)+`
|
|
23
|
+
`,x=Y(e,S)}b.length>0&&b.charCodeAt(b.length-1)===H&&(b=b.slice(0,-1))}return{node:{type:q.codeBlock,lang:d||void 0,text:b,infoString:f||void 0,attrs:m},end:v}}function bs(e,t){if(ms(e,t,cs(e,t)),fs<4)return null;let n=``,r=t;for(;r<e.length;){let t=cs(e,r);if(ms(e,r,t),hs(e,r,t)){for(var i=0,a=Y(e,t);a<e.length;){var o=cs(e,a);if(hs(e,a,o)){i++,a=Y(e,o);continue}if(ms(e,a,o),fs>=4){for(var s=0;s<=i;s++)n+=`
|
|
24
|
+
`;r=a;break}break}if(r!==a)break;continue}if(fs<4)break;let f=0,p=0;var c=0;for(let n=r;n<t&&p<4;n++){if(e.charCodeAt(n)===V){var l=4-p%4;p+l>4&&(c=p+l-4),p+=l}else p++;f++}var u=``;if(c>0)for(var d=0;d<c;d++)u+=` `;u+=e.slice(r+f,t),n+=u+`
|
|
25
|
+
`,r=Y(e,t)}for(;n.length>0&&n.charCodeAt(n.length-1)===H;)n=n.slice(0,-1);for(;n.length>0&&n.charCodeAt(n.length-1)===H;)n=n.slice(0,-1);return n?{node:{type:q.codeBlock,lang:void 0,text:n,infoString:void 0,attrs:void 0},end:r}:null}function xs(e,t,n,r){if(ms(e,t,cs(e,t)),fs>3)return null;let i=t+ps;if(e.charCodeAt(i)!==W)return null;let a=``,o=t,s,c=!1,l=!1,u=!1;for(;o<e.length;){let t=cs(e,o);ms(e,o,t);let n=o+ps;if(e.charCodeAt(n)===W){let r=n+1;var d=fs+1,f=!1;if(r<t){var p=e.charCodeAt(r);p===B?(r++,d++,f=!0):p===V&&(f=!0)}for(var m=``,h=!1,g=r;g<t;g++)if(e.charCodeAt(g)===V){h=!0;break}if(h){var _=d;if(f&&r<t&&e.charCodeAt(r)===V){for(var v=4-_%4,y=0;y<v-1;y++)m+=` `;_+=v,r++}for(var b=r;b<t;b++)if(e.charCodeAt(b)===V){for(var x=4-_%4,S=0;S<x;S++)m+=` `;_+=x}else m+=e[b],_++}else m=e.slice(r,t);if(!a&&!s){let n=m.match(/^\[!([A-Za-z]+)\]\s*$/);if(n){s=n[1].toUpperCase(),o=Y(e,t);continue}}a+=m+`
|
|
26
|
+
`;var C=m.trimStart();C.startsWith("```")||C.startsWith(`~~~`)?u=!u:m.startsWith(` `)||m.startsWith(` `)?u=!0:C.length>0&&!u&&(u=!1),l=C.length>0,o=Y(e,t)}else if(a&&!hs(e,o,t)&&l){if(fs<4){var w=o+ps,T=w<t?e.charCodeAt(w):0;if(T===fa||T===W||T===U||T===la||T===va||(T===G||T===ga||T===_a)&&vs(e,o)||(T===G||T===ga||T===Ba)&&w+1<t&&(e.charCodeAt(w+1)===B||e.charCodeAt(w+1)===V))break;if(T>=Ja&&T<=Ya){for(var E=w;E<t&&e.charCodeAt(E)>=Ja&&e.charCodeAt(E)<=Ya;)E++;if(E<t&&(e.charCodeAt(E)===Ia||e.charCodeAt(E)===Ga))break}}if(u)break;a+=e.slice(o,t)+`
|
|
27
|
+
`,c=!0,o=Y(e,t)}else break}if(!a&&!s)return null;var{inBlockQuote:D,g:O}=n;n.inBlockQuote=!0,c&&(n.g=!0);let ee=lc(a||``,n,r);return n.inBlockQuote=D,n.g=O,{node:{type:q.blockQuote,children:ee,alert:s||void 0},end:o}}function Ss(e,t,n){for(var r=0,i=t;i<n;i++)e.charCodeAt(i)===V?r+=4-r%4:r++;return r}function Cs(e,t,n){if(ms(e,t,n),fs>3)return null;var r=t+ps;if(r>=n)return null;var i=e.charCodeAt(r),a=fs,o=r;if(i===G||i===ga||i===Ba){if(o=r+1,o<n&&e.charCodeAt(o)!==B&&e.charCodeAt(o)!==V&&e.charCodeAt(o)!==H)return null}else if(i>=Ja&&i<=Ya){for(var s=r;s<n&&s-r<9;){var c=e.charCodeAt(s);if(c<Ja||c>Ya)break;s++}if(s>r&&s<n){var l=e.charCodeAt(s);if(l===Ia||l===Ga){if(o=s+1,o<n&&e.charCodeAt(o)!==B&&e.charCodeAt(o)!==V&&e.charCodeAt(o)!==H)return null}else return null}else return null}else return null;var u=o,d=Ss(e,t,o),f=0,p=u,m=d;if(u>=n)return{ordered:i>=Ja&&i<=Ya,marker:i>=Ja&&i<=Ya?e[s]:e[r],start:i>=Ja&&i<=Ya?parseInt(e.slice(r,s),10):void 0,contentStart:u,contentCol:d+1,markerCol:a,isEmpty:!0};for(;p<n&&(e.charCodeAt(p)===B||e.charCodeAt(p)===V);){if(e.charCodeAt(p)===V){var h=4-m%4;m+=h}else m++;p++,f++}var g=p>=n,_=m-d;return g||_>4?(m=d+1,p=u+1,f=1):f===0&&(m=d+1,p=u,f=1),{ordered:i>=Ja&&i<=Ya,marker:i>=Ja&&i<=Ya?e[s]:e[r],start:i>=Ja&&i<=Ya?parseInt(e.slice(r,s),10):void 0,contentStart:p,contentCol:m,markerCol:a,isEmpty:g}}var ws=0;function Ts(e,t,n,r){var i=0,a=t;for(ws=0;a<n&&i<r;){var o=e.charCodeAt(a);if(o===V){var s=4-i%4;if(i+s>r){ws=i+s-r,a++,i=r;break}i+=s}else if(o===B)i++;else break;a++}return a}function Es(e,t,n,r){var i=cs(e,t),a=Cs(e,t,i);if(!a)return null;var o=[],s=t,c=a.contentCol,l=``,u=a.isEmpty,d=!1,f=!1;if(!a.isEmpty){for(var p=!1,m=a.contentStart;m<i;m++)if(e.charCodeAt(m)===V){p=!0;break}if(p){var h=``,g=Ss(e,t,a.contentStart),_=g-a.contentCol;if(_>0)for(var v=0;v<_;v++)h+=` `;for(var y=a.contentStart;y<i;y++)if(e.charCodeAt(y)===V){for(var b=4-g%4,x=0;x<b;x++)h+=` `;g+=b}else h+=e[y],g++;l=h+`
|
|
28
|
+
`}else l=e.slice(a.contentStart,i)+`
|
|
29
|
+
`}for(s=Y(e,i);s<e.length;){var S=cs(e,s);ms(e,s,S);var C=e.charCodeAt(s+ps);if(fs<c&&(C===G||C===ga||C===_a)&&fs<=3&&vs(e,s))break;var w=Cs(e,s,S);if(w&&w.ordered===a.ordered&&w.marker===a.marker&&w.markerCol<c){o.push({contentCol:c,raw:l,hasBlankAfter:d,isEmpty:u}),d&&(f=!0),c=w.contentCol,u=w.isEmpty,d=!1,l=w.isEmpty?``:e.slice(w.contentStart,S)+`
|
|
30
|
+
`,s=Y(e,S);continue}if(hs(e,s,S)){l+=`
|
|
31
|
+
`,s=Y(e,S);for(var T=!1,E=0;E<l.length;E++){var D=l.charCodeAt(E);if(D!==H&&D!==ca&&D!==B&&D!==V){T=!0;break}}if(u&&!T)if(s<e.length){var O=cs(e,s),ee=Cs(e,s,O);if(!ee||ee.ordered!==a.ordered||ee.marker!==a.marker)break;d=!0}else break;if(s<e.length){var te=cs(e,s);ms(e,s,te);var ne=e.charCodeAt(s+ps);if((ne===G||ne===ga||ne===_a)&&fs<=3&&vs(e,s))break;var k=Cs(e,s,te);if(k&&k.ordered===a.ordered&&k.marker===a.marker&&k.markerCol<c){d=!0;continue}if(!hs(e,s,te)&&fs<c)break}continue}if(fs>=c){var re=Ts(e,s,S,c);if(ws>0){for(var ie=``,ae=c,A=0;A<ws;A++)ie+=` `,ae++;for(var j=re;j<S;j++)if(e.charCodeAt(j)===V){for(var oe=4-ae%4,M=0;M<oe;M++)ie+=` `;ae+=oe}else ie+=e[j],ae++;l+=ie+`
|
|
32
|
+
`}else l+=e.slice(re,S)+`
|
|
33
|
+
`;s=Y(e,S);continue}for(var se=!1,N=0;N<l.length;N++){var P=l.charCodeAt(N);if(P!==H&&P!==ca&&P!==B&&P!==V){se=!0;break}}if(!d&&se&&!u){var F=s+ps,I=e.charCodeAt(F);if(!(I===fa||I===W||I===va||I===U||I===la||(I===G||I===ga||I===_a||I===Ba)&&(vs(e,s)!==null||Cs(e,s,S)!==null)||I>=Ja&&I<=Ya&&Cs(e,s,S)!==null)){l+=``+e.slice(F,S)+`
|
|
34
|
+
`,s=Y(e,S);continue}}break}if(o.push({contentCol:c,raw:l,hasBlankAfter:d,isEmpty:u}),o.length===0)return null;var ce=f;if(!ce)for(var le=0;le<o.length;le++){if(o[le].hasBlankAfter&&le<o.length-1){ce=!0;break}if(!o[le].isEmpty){for(var ue=o[le].raw,de=ue.length,fe=0,L=!1,pe=!1,me=!1,he=!1,ge=0,_e=0,ve=-1;fe<de;){var ye=ue.indexOf(`
|
|
35
|
+
`,fe);if(ye<0&&(ye=de),he){ms(ue,fe,ye);for(var be=ue.slice(fe+ps,ye),xe=0;xe<be.length&&be.charCodeAt(xe)===ge;)xe++;xe>=_e&&be.slice(xe).trim()===``&&(he=!1),fe=ye<de?ye+1:de;continue}if(hs(ue,fe,ye)){ve>=0?me=!0:L&&(pe=!0),fe=ye<de?ye+1:de;continue}if(ms(ue,fe,ye),ve>=0){if(fs>=ve){fe=ye<de?ye+1:de;continue}var Se=Cs(ue,fe,ye);if(Se&&Se.markerCol<ve&&Se.contentCol<=ve){fe=ye<de?ye+1:de;continue}if(Se){fe=ye<de?ye+1:de;continue}ve=-1,me&&=(pe=!0,!1)}var Ce=ue.slice(fe+ps,ye),we=Ce.charCodeAt(0);if((we===U||we===la)&&fs<=3){for(var Te=0;Te<Ce.length&&Ce.charCodeAt(Te)===we;)Te++;if(Te>=3){if(pe&&L){ce=!0;break}he=!0,ge=we,_e=Te,L=!0,fe=ye<de?ye+1:de;continue}}var Ee=fs<=3?Cs(ue,fe,ye):null;if(Ee&&L){if(pe){ce=!0;break}ve=Ee.contentCol,me=!1,fe=ye<de?ye+1:de,L=!0;continue}if(pe){ce=!0;break}L=!0,fe=ye<de?ye+1:de}if(ce)break}}for(var De=[],Oe=0;Oe<o.length;Oe++){for(var ke=o[Oe],Ae=ke.raw,je=Ae.length;je>0&&Ae.charCodeAt(je-1)===H;)je--;var Me=je<Ae.length?Ae.slice(0,je):Ae,Ne=null;if(Me.length>=3&&Me.charCodeAt(0)===ua){var Pe=Me[1];(Pe===` `||Pe===`x`||Pe===`X`)&&Me.charCodeAt(2)===ba&&(Ne={type:q.gfmTask,completed:Pe===`x`||Pe===`X`},Me=Me.slice(3))}var Fe;if(ke.isEmpty&&Me.trim()===``)Fe=[];else if(ce){var Ie=n.inList;n.inList=!0,Fe=lc(Me,n,r),n.inList=Ie}else{var Le=n.inList;if(n.inList=!0,Fe=lc(Me,n,r),n.inList=Le,Fe.length===1&&Fe[0].type===q.paragraph)Fe=Fe[0].children;else{for(var Re=[],ze=0;ze<Fe.length;ze++)if(Fe[ze].type===q.paragraph)for(var Be=Fe[ze].children,Ve=0;Ve<Be.length;Ve++)Re.push(Be[Ve]);else Re.push(Fe[ze]);Fe=Re}}Ne?De.push([Ne,{type:q.text,text:` `},...Fe]):De.push(Fe)}return{node:{type:a.ordered?q.orderedList:q.unorderedList,start:a.ordered?a.start:void 0,items:De},end:s}}var Ds=new Set(`address.article.aside.base.basefont.blockquote.body.caption.center.col.colgroup.dd.details.dialog.dir.div.dl.dt.fieldset.figcaption.figure.footer.form.frame.frameset.h1.h2.h3.h4.h5.h6.head.header.hr.html.iframe.legend.li.link.main.menu.menuitem.nav.noframes.ol.optgroup.option.p.param.search.section.summary.table.tbody.td.tfoot.th.thead.title.tr.track.ul`.split(`.`));function Os(e,t,n){let r={};for(let[o,s]of Object.entries(e)){let e=o,c=o.toLowerCase();if(c===`style`&&typeof s==`string`){let t={},n=[],i=0,a=0;for(let e=0;e<s.length;e++){let t=s.charCodeAt(e);t===Wa?i++:t===Ga?i--:t===Pa&&i===0&&(n.push(s.slice(a,e)),a=e+1)}a<s.length&&n.push(s.slice(a));let o=!1;n.forEach(e=>{let n=e.indexOf(`:`);if(n===-1)return;let r=e.slice(0,n).trim(),i=e.slice(n+1).trim();if(r&&i){if(/url\s*\(\s*(javascript|vbscript|data:(?!image\/))/i.test(i)){o=!0;return}let e=r.indexOf(`-`)===-1?r:r.replace(/-([a-z])/g,(e,t)=>t.toUpperCase());t[e]=i}}),!o&&Object.keys(t).length>0&&(r[e]=t)}else if((c===`href`||c===`src`)&&n?.sanitizer){let i=n.sanitizer(s,t,c);i!==null&&(r[e]=i)}else if(s===``)r[e]=!0;else if(s.length>=2&&s.charCodeAt(0)===Ha&&s.charCodeAt(s.length-1)===Ua){var i=s.slice(1,-1);if(i.length>0){var a=i.charCodeAt(0);if(a===ua||a===Ha)try{r[e]=JSON.parse(i);continue}catch{}}if(i===`true`){r[e]=!0;continue}if(i===`false`){r[e]=!1;continue}if(n?.evalUnserializableExpressions)try{r[e]=(0,eval)(`(`+i+`)`);continue}catch{}r[e]=i}else r[e]=s}return r}function ks(e,t,n){let r=t.length;var i=t.charCodeAt(0);i>=Xa&&i<=K&&(i+=eo);for(let o=n;o<=e.length-r;o++){var a=e.charCodeAt(o);if(a>=Xa&&a<=K&&(a+=eo),a!==i)continue;let n=!0;for(let i=1;i<r;i++){let r=e.charCodeAt(o+i),a=t.charCodeAt(i);if(r>=Xa&&r<=K&&(r+=eo),a>=Xa&&a<=K&&(a+=eo),r!==a){n=!1;break}}if(n)return o}return-1}function As(e,t,n){let r=t.length;var i=t.charCodeAt(0);i>=Xa&&i<=K&&(i+=eo);for(let o=Math.min(n,e.length-r);o>=0;o--){var a=e.charCodeAt(o);if(a>=Xa&&a<=K&&(a+=eo),a!==i)continue;let n=!0;for(let i=1;i<r;i++){let r=e.charCodeAt(o+i),a=t.charCodeAt(i);if(r>=Xa&&r<=K&&(r+=eo),a>=Xa&&a<=K&&(a+=eo),r!==a){n=!1;break}}if(n)return o}return-1}var js=-1;function Ms(e,t,n){let r=n.toLowerCase(),i=`<`+r,a=`</`+r,o=1,s=t,c=e.length;for(js=-1;s<c&&o>0;){let t=ks(e,i,s),n=ks(e,a,s);if(n===-1)return-1;if(t!==-1&&t<n){let n=$o(e,t);n?(n.tag.toLowerCase()===r&&!n.isClosing&&!n.selfClosing&&!ho(n.tag)&&o++,s=n.end):s=t+1}else{var l=n+a.length,u=l<c?e.charCodeAt(l):62;if((u===W||u===B||u===V||u===H)&&(o--,o===0)){js=n;let t=n+a.length;for(;t<c&&e.charCodeAt(t)!==W;)t++;return t+1}s=n+1}}return-1}function Ns(e,t,n,r){if(r.ignoreHTMLBlocks||r.disableParsingRawHTML)return null;var i=cs(e,t);if(ms(e,t,i),fs>3&&!n.inHTML)return null;var a=t+ps;if(e.charCodeAt(a)!==va)return null;var o=e.indexOf(`>`,a+1);if(o!==-1&&o<i){var s=e.slice(a+1,o);if(/^[a-zA-Z][a-zA-Z0-9+.-]*:/.test(s)||/^[^\s@]+@[^\s@]+$/.test(s))return null}var c=Ps(e,a);if(c>=1&&c<=5){var l=e.length;if(c===1){for(var u=e.length,d=0;d<Ho.length;d++){var f=ks(e,`</`+Ho[d]+`>`,a);f>=0&&f<u&&(u=f)}if(u<e.length){var p=e.indexOf(`>`,u);l=p>=0?Y(e,p+1):e.length}}else{var m=c===2?`-->`:c===3?`?>`:c===4?`>`:`]]>`,h=e.indexOf(m,a);h>=0&&(l=Y(e,h+m.length))}var g=e.slice(a,l);if(c>=2)return{node:{type:q.htmlComment,text:g,h:!1,raw:!0,endPos:l},end:l};var _=`div`,v=g.match(/^<\/?([a-zA-Z][a-zA-Z0-9-]*)/);v&&(_=v[1]);var y=$o(e,a),b={},x;y&&!y.isClosing&&(b=Os(y.attrs,_,r),x=y.whitespaceBeforeAttrs+y.rawAttrs);var S=[],C=ks(g,`</`+_.toLowerCase(),0),w=g,T=``;if(y&&y.isClosing)for(w=g.slice(y.end-a);w.length>0&&w.charCodeAt(w.length-1)===H;)w=w.slice(0,-1);else if(y&&!y.isClosing){var E=y.end-a;if(C!==-1)for(w=g.slice(E),w.charCodeAt(0)===H&&(w=w.slice(1));w.length>0&&w.charCodeAt(w.length-1)===H;)w=w.slice(0,-1);else for(w=g;w.length>0&&w.charCodeAt(w.length-1)===H;)w=w.slice(0,-1);C!==-1&&(T=g.slice(E,C).trim())}var D=y?y.isClosing:!1;return{node:{type:q.htmlBlock,tag:_,attrs:b,f:x,children:S,a:w,text:T,c:!0,b:D,endPos:l,e:!0},end:l}}if(c===6||c===7){var O=us(e,t),ee=O<e.length?O:e.length,te=e.slice(a,ee),ne=O<e.length?Y(e,O):e.length,k=$o(e,a);if(k){var re=k.tag,ie=re.toLowerCase();if(k.isClosing){var ae=e.slice(k.end,ee);return{node:{type:q.htmlBlock,tag:re,attrs:{},children:[],a:ae,text:ae,c:!0,b:!0,endPos:ee,e:c===6},end:ne}}if(k.selfClosing||ho(re))return{node:{type:q.htmlBlock,tag:re,attrs:Os(k.attrs,re,r),f:k.whitespaceBeforeAttrs+k.rawAttrs,children:[],a:``,text:``,c:!1,b:!1,endPos:k.end,e:c===6},end:Y(e,k.end)};var A=n.d||0,j=e.slice(a,ee),oe=-1,M=-1;if(A<10){for(var se=`</`+ie,N=k.end-a,P=1,F=N;F<j.length&&P>0;){var I=ks(j,`<`+ie,F),ce=ks(j,se,F);if(ce===-1)break;if(I!==-1&&I<ce){var le=I+ie.length+1;if(le<j.length){var ue=j.charCodeAt(le);(ue===B||ue===V||ue===H||ue===W||ue===La)&&P++}F=I+1}else{var de=ce+se.length;if(de<j.length){var fe=j.charCodeAt(de);if((fe===W||fe===B||fe===V||fe===H)&&(P--,P===0)){oe=ce;for(var L=de;L<j.length&&j.charCodeAt(L)!==W;)L++;M=L+1;break}}else if(P--,P===0){oe=ce,M=j.length;break}F=ce+1}}var pe=!1;if(oe===-1&&c===6&&!k.isClosing&&!qo.has(ie)){var me=Ms(e,k.end,ie);if(me!==-1){var he=js;if(e.substring(k.end,he).indexOf(`
|
|
36
|
+
|
|
37
|
+
`)!==-1){var ge=cs(e,me);ee=ge,ne=Y(e,ge),j=e.slice(a,ee),te=e.slice(a,ee),oe=he-a,M=me-a,pe=!0}}}}var _e=k.rawAttrs.indexOf(`
|
|
38
|
+
`)!==-1||k.whitespaceBeforeAttrs.indexOf(`
|
|
39
|
+
`)!==-1,ve=!1;oe!==-1&&(ve=j.slice(M).trim().length===0);var ye=!1,be=ee,xe=ne;if(oe!==-1){var Se=a+M,Ce=cs(e,Se-1);if(Se<Ce){for(var we=Se;we<Ce&&(e.charCodeAt(we)===B||e.charCodeAt(we)===V);)we++;if(we<Ce&&e.charCodeAt(we)===va){var Te=$o(e,we);Te&&!Te.isClosing&&(ye=!0,be=Se,xe=Se,ve=!0)}}if(!ye){var Ee=Y(e,Ce);if(Ee<ee){for(var De=Ee;De<ee&&(e.charCodeAt(De)===B||e.charCodeAt(De)===V);)De++;De<ee&&e.charCodeAt(De)===va&&$o(e,De)&&(ye=!0,be=Ce,xe=Ee,ve=!0)}}!ye&&n.inHTML&&(ye=!0,be=Ce,xe=Y(e,Ce),ve=e.slice(Se,Ce).trim().length===0)}var Oe=[],ke=``;if(oe!==-1){ke=j.slice(k.end-a,oe);var Ae=ke.trim();if(Ae){var{inline:je,inHTML:Me,d:Ne}=n;if(n.inHTML=!0,n.d=A+1,ie===`p`)n.inline=!0,Oe=sc(Ae,0,Ae.length,n,r);else{var Pe=ke.indexOf(`
|
|
40
|
+
|
|
41
|
+
`)!==-1,Fe=Go.test(Ae),Ie=Ko.test(Ae);Pe||Fe||n.inHTML&&Ie||Ie?(n.inline=!1,Oe=lc(ke,n,r)):(n.inline=!0,Oe=sc(Ae,0,Ae.length,n,r))}n.inline=je,n.inHTML=Me,n.d=Ne}}var Le=!1;if(c===6&&oe!==-1&&!n.inHTML&&!_e){var Re=ke,ze=/<[a-zA-Z][^>]*>/.test(Re),Be=/\n\n/.test(Re)||/^(\s{0,3}#[#\s]|\s{0,3}[-*+]\s|\s{0,3}\d+\.\s|\s{0,3}>\s|\s{0,3}```)/m.test(Re);ze&&!Be&&(Le=!0)}if(n.inHTML||c===7||_e||!ve||Le){var Ve;if(oe!==-1&&ye){var He=!1;if(n.inHTML&&M<j.length){for(var Ue=M;Ue<j.length&&j.charCodeAt(Ue)!==H;)Ue++;var We=j.slice(M,Ue).trim();He=We.length>1&&We.charCodeAt(0)===va&&We.charCodeAt(1)!==La}Ve=He?j.slice(k.end-a):ke}else (c===7||n.inHTML)&&oe!==-1?(Ve=j.slice(k.end-a),Ve.charCodeAt(0)===H&&(Ve=Ve.slice(1))):ye?Ve=e.slice(a,be):_e?Ve=te:(Ve=j.slice(k.end-a),Ve.charCodeAt(0)===H&&(Ve=Ve.slice(1)));return{node:{type:q.htmlBlock,tag:re,attrs:Os(k.attrs,re,r),f:k.whitespaceBeforeAttrs+k.rawAttrs,children:Oe,a:Ve,text:Ve,c:!0,b:!1,endPos:be,e:c===6},end:xe}}return{node:{type:q.htmlBlock,tag:re,attrs:Os(k.attrs,re,r),f:k.whitespaceBeforeAttrs+k.rawAttrs,children:Oe,a:pe?``:ke,text:ke,c:!1,b:!1,endPos:be,e:c===6},end:xe}}var Ge=te.match(/^<(\/?)([a-zA-Z][a-zA-Z0-9-]*)/),Ke=Ge?Ge[2]:`div`,qe=Ge?Ge[1]===`/`:!1,Je=te;if(qe){var Ye=te.indexOf(`>`);Ye!==-1&&(Je=te.slice(Ye+1))}return{node:{type:q.htmlBlock,tag:Ke,attrs:{},children:[],a:Je,text:Je,c:!0,b:qe,endPos:ee,e:c===6},end:ne}}var Xe=$o(e,a);if(!Xe)return null;var Ze=Xe.tag,Qe=Ze.toLowerCase(),$e=Ze.charCodeAt(0),et=$e>=Xa&&$e<=K;if(!et&&!Ds.has(Qe)&&!Uo.has(Qe)&&!Qe.includes(`-`))return null;if(Xe.isClosing)return{node:{type:q.htmlSelfClosing,tag:Ze,attrs:{},a:e.slice(a,Xe.end),b:!0,endPos:Xe.end},end:Xe.end};var tt=Ms(e,Xe.end,Ze),nt=[];if(tt!==-1){var rt=js,R=e.slice(Xe.end,rt),it=R.trim();if(it){var at=R.indexOf(`
|
|
42
|
+
|
|
43
|
+
`)!==-1,ot=Go.test(it),st=Ko.test(it),ct=n.inline,lt=n.inHTML,ut=n.d;n.inHTML=!0,n.d=(n.d||0)+1,at||ot||st?(n.inline=!1,nt=lc(R,n,r)):(n.inline=!0,nt=sc(it,0,it.length,n,r)),n.inline=ct,n.inHTML=lt,n.d=ut}var dt=cs(e,tt),ft=e.slice(tt,dt).trim()?tt:Y(e,tt),pt=et?e.slice(a,tt):e.slice(a,ft),mt=et?tt:ft;return{node:{type:q.htmlBlock,tag:Ze,attrs:Os(Xe.attrs,Ze,r),f:Xe.whitespaceBeforeAttrs+Xe.rawAttrs,children:nt,a:pt,text:et?R:pt,c:!0,b:!1,endPos:mt,e:!1},end:ft}}var ht=us(e,Xe.end),gt=ht<e.length?Y(e,ht):ht,_t=e.slice(Xe.end,ht);if(_t.trim()){var{inline:vt,inHTML:yt,d:bt}=n;n.inline=!1,n.inHTML=!0,n.d=(n.d||0)+1,nt=lc(_t,n,r),n.inline=vt,n.inHTML=yt,n.d=bt}var xt=e.slice(Xe.end,ht);return{node:{type:q.htmlBlock,tag:Ze,attrs:Os(Xe.attrs,Ze,r),f:Xe.whitespaceBeforeAttrs+Xe.rawAttrs,children:nt,a:xt,text:_t,c:!0,b:!1,endPos:ht,e:!1},end:gt}}function Ps(e,t){if(e.charCodeAt(t)!==va)return 0;var n=t+1,r=e.length;if(e.charCodeAt(n)===xa&&e.charCodeAt(n+1)===G&&e.charCodeAt(n+2)===G)return 2;if(e.charCodeAt(n)===Fa)return 3;if(e.charCodeAt(n)===xa){var i=e.charCodeAt(n+1);if(i>=Xa&&i<=K)return 4;if(e.slice(n+1,n+8)===`[CDATA[`)return 5}for(var a=e.charCodeAt(n)===La,o=a?n+1:n,s=o;s<r;){var c=e.charCodeAt(s);if(c>=Xa&&c<=K||c>=Za&&c<=Qa||c>=Ja&&c<=Ya||c===G)s++;else break}if(s===o)return 0;var l=e.slice(o,s);if(Uo.has(l.toLowerCase())){if(a)return 0;var u=e.charCodeAt(s);return u===B||u===V||u===W||u===H||s>=r?1:0}if(Ds.has(l.toLowerCase())){if(a){for(var d=s;d<r&&(e.charCodeAt(d)===B||e.charCodeAt(d)===V);)d++;return d<r&&e.charCodeAt(d)===W?6:0}var f=s<r?e.charCodeAt(s):-1;return f===B||f===V||f===W||f===H||f===La||f===-1?6:0}if(a){for(var p=s;p<r&&(e.charCodeAt(p)===B||e.charCodeAt(p)===V);)p++;if(p<r&&e.charCodeAt(p)===W){var m=cs(e,t);if(e.slice(p+1,m).trim()===``)return 7}}else{var h=cs(e,t),g=$o(e,t);if(g&&g.end<=h&&e.slice(g.end,h).trim()===``)return 7}return 0}function Fs(e,t,n){for(var r=0,i=e.length;r<i&&(e.charCodeAt(r)===B||e.charCodeAt(r)===V);)r++;for(;i>r&&(e.charCodeAt(i-1)===B||e.charCodeAt(i-1)===V);)i--;r<i&&e.charCodeAt(r)===Va&&r++,i>r&&e.charCodeAt(i-1)===Va&&(i-2<r||e.charCodeAt(i-2)!==ha)&&i--;for(var a=[],o=r,s=!1,c=[],l=r;l<i;){var u=e.charCodeAt(l);if(u===ha&&l+1<i){e.charCodeAt(l+1)===Va?(s||(s=!0,c=[]),c.push(e.slice(o,l)),c.push(`|`),l+=2,o=l):l+=2;continue}if(u===U){for(var d=0;l<i&&e.charCodeAt(l)===U;)d++,l++;for(var f=!1;l<i&&!f;){for(var p=0;l<i&&e.charCodeAt(l)===U;)p++,l++;p===d?f=!0:p===0&&l++}continue}if(u===Va){var m=s?(c.push(e.slice(o,l)),c.join(``)):e.slice(o,l);a.push(m.trim()),l++,o=l,s=!1,c=[];continue}l++}var h=s?(c.push(e.slice(o,i)),c.join(``)):e.slice(o,i);return a.push(h.trim()),a.map(function(e){var r=e.indexOf(`\\|`)===-1?e:e.replace(/\\\|/g,`|`);return sc(r,0,r.length,t,n)})}function Is(e,t,n,r){let i=cs(e,t);var a=e.indexOf(`|`,t);if(a<0||a>=i)return null;let o=Y(e,i);if(o>=e.length)return null;let s=cs(e,o);if(!Qo(e,o,s))return null;let c=e.slice(t,i),l=e.slice(o,s);for(var u=[],d=0,f=l.length;d<f&&(l.charCodeAt(d)===B||l.charCodeAt(d)===V);)d++;for(d<f&&l.charCodeAt(d)===Va&&d++;d<f;){for(;d<f&&(l.charCodeAt(d)===B||l.charCodeAt(d)===V);)d++;if(d>=f||l.charCodeAt(d)===Va)break;var p=l.charCodeAt(d)===Ca;for(p&&d++;d<f&&l.charCodeAt(d)===G;)d++;var m=d<f&&l.charCodeAt(d)===Ca;for(m&&d++,u.push(p&&m?`center`:m?`right`:p?`left`:null);d<f&&(l.charCodeAt(d)===B||l.charCodeAt(d)===V);)d++;d<f&&l.charCodeAt(d)===Va&&d++}let h=Fs(c,n,r);if(u.length!==h.length)return null;let g=[],_=Y(e,s);for(;_<e.length;){let t=cs(e,_),i=e.slice(_,t);if(hs(e,_,t))break;if(ms(e,_,t),fs<4){var v=e.charCodeAt(_+ps);if(v===W||v===fa||(v===G||v===ga||v===_a)&&vs(e,_))break;if(v===U||v===la){for(var y=_+ps,b=0;y<t&&e.charCodeAt(y)===v;)b++,y++;if(b>=3)break}}g.push(Fs(i,n,r)),_=Y(e,t)}if((r.streaming||r.optimizeForStreaming)&&g.length===0)return null;for(var x=h.length,S=0;S<g.length;S++)if(g[S].length<x)for(;g[S].length<x;)g[S].push([]);else g[S].length>x&&(g[S].length=x);return{node:{type:q.table,header:h,cells:g,align:u},end:_}}function Ls(e,t,n){if(ms(e,t,cs(e,t)),fs>3)return null;var r=t+ps;if(e.charCodeAt(r)!==ua)return null;if(r+1<e.length&&e.charCodeAt(r+1)===da)return Rs(e,r,n)||null;n.refs||={};var i=ts(e,r,n.refs);return i===null?null:{node:{type:q.refCollection},end:i}}function Rs(e,t,n){var r=e.length;if(e.charCodeAt(t)!==ua||t+1>=r||e.charCodeAt(t+1)!==da)return null;for(var i=t+2,a=i;i<r&&e.charCodeAt(i)!==ba;){if(e.charCodeAt(i)===H)return null;i++}if(i>=r)return null;var o=(`^`+e.slice(a,i)).toLowerCase();if(i++,i>=r||e.charCodeAt(i)!==Ca)return null;for(i++;i<r&&(e.charCodeAt(i)===B||e.charCodeAt(i)===V);)i++;if(i<r&&e.charCodeAt(i)===H)for(i++;i<r&&(e.charCodeAt(i)===B||e.charCodeAt(i)===V);)i++;var s=e.indexOf(`
|
|
44
|
+
`,i);s<0&&(s=r);for(var c=e.slice(i,s).trim(),l=s<r?s+1:r;l<r;){var u=cs(e,l);if(ms(e,l,u),fs>=2&&!hs(e,l,u))c+=`
|
|
45
|
+
`+e.slice(l,u),l=Y(e,u);else if(hs(e,l,u)){var d=Y(e,u);if(d<r&&(ms(e,d,cs(e,d)),fs>=2)){c+=`
|
|
46
|
+
`,l=Y(e,u);continue}break}else break}return n.refs[o]||(n.refs[o]={target:c,title:void 0}),{node:{type:q.footnote},end:l}}function zs(e,t,n,r){let i=t,a=0,o=0,s=-1;for(;i<e.length;){let t=s>=0?s:cs(e,i);if(s=-1,hs(e,i,t))break;if(ms(e,i,t),fs<4&&o>0&&!n.g){let n=e.charCodeAt(i+ps);if(n===ma||n===G){let r=i+ps;for(;r<t&&e.charCodeAt(r)===n;)r++;for(;r<t&&(e.charCodeAt(r)===B||e.charCodeAt(r)===V);)r++;if(r>=t){a=n===ma?1:2,i=Y(e,t);break}}}o=t;let y=Y(e,t);if(y<e.length){if(e.charCodeAt(y)===Ka){var c=cs(e,y);i=Y(e,c),o=c;continue}let t=cs(e,y);if(s=t,ms(e,y,t),fs<4){let a=e.charCodeAt(y+ps);if(a===W){i=y;break}if(a===fa&&gs(e,y,n,r)){i=y;break}if(a===U||a===la){for(var l=y+ps,u=0;l<t&&e.charCodeAt(l)===a;)u++,l++;if(u>=3){i=y;break}}if(a===va){var d=y+ps+1,f=d<t?e.charCodeAt(d):0,p=f===xa||f===Fa;if(!p&&f===La){for(var m=d+1,h=m;h<t&&(e.charCodeAt(h)>=Xa&&e.charCodeAt(h)<=K||e.charCodeAt(h)>=Za&&e.charCodeAt(h)<=Qa||e.charCodeAt(h)>=Ja&&e.charCodeAt(h)<=Ya||e.charCodeAt(h)===G);)h++;h>m&&(p=Ds.has(e.slice(m,h).toLowerCase()))}else if(!p){for(var g=d;g<t&&(e.charCodeAt(g)>=Xa&&e.charCodeAt(g)<=K||e.charCodeAt(g)>=Za&&e.charCodeAt(g)<=Qa||e.charCodeAt(g)>=Ja&&e.charCodeAt(g)<=Ya||e.charCodeAt(g)===G);)g++;if(g>d){var _=e.slice(d,g).toLowerCase();p=Ds.has(_)||Uo.has(_)}}if(p&&Ns(e,y,n,r)){i=y;break}}if(a===G||a===ga||a===Ba){let n=y+ps+1;if(n<t&&(e.charCodeAt(n)===B||e.charCodeAt(n)===V)&&ls(e,n,t)<t&&!vs(e,y)){i=y;break}}if(a>=Ja&&a<=Ya){let n=y+ps;for(;n<t&&e.charCodeAt(n)>=Ja&&e.charCodeAt(n)<=Ya;)n++;if(n<t&&(e.charCodeAt(n)===Ia||e.charCodeAt(n)===Ga)&&n-(y+ps)===1&&e.charCodeAt(y+ps)===49){var v=n+1;if(v<t&&(e.charCodeAt(v)===B||e.charCodeAt(v)===V)&&ls(e,v,t)<t){i=y;break}}}if(a===Va){let n=Y(e,t);if(n<e.length&&Qo(e,n,cs(e,n))){i=y;break}}if((a===G||a===ga||a===_a)&&vs(e,y)){if(a!==G){i=y;break}let n=0,r=y+ps;for(;r<t&&e.charCodeAt(r)===G;)n++,r++;for(;r<t&&(e.charCodeAt(r)===B||e.charCodeAt(r)===V);)r++;if(r<t){i=y;break}}}}i=Y(e,t)}for(var y=a?o:i;y>t&&(e.charCodeAt(y-1)===H||e.charCodeAt(y-1)===ca||e.charCodeAt(y-1)===B||e.charCodeAt(y-1)===V);)y--;for(var b=t;b<y&&(e.charCodeAt(b)===B||e.charCodeAt(b)===V);)b++;if(b>=y)return null;for(var x=!1,S=b;S<y;S++)if(e.charCodeAt(S)===Ka){x=!0;break}var C=x?e.slice(b,y).replace(/\u001E/g,``):e.slice(b,y);if(!C)return null;let w=Bs(C,0,C.length,n,r);if(a){let e=(r?.slugify||fo)(C);return{node:{type:q.heading,level:a,children:w,id:e},end:i}}return{node:{type:q.paragraph,children:w},end:i}}function Bs(e,t,n,r,i){var a=e.indexOf(`
|
|
47
|
+
`,t);if(a<0||a>=n)return sc(e,t,n,r,i);for(var o=``,s=t,c=t;c<n;){var l=e.charCodeAt(c);if(l===U){var u=Hs(e,c,n);if(u>c){for(var d=!1,f=c;f<u;f++)if(e.charCodeAt(f)===H){d=!0;break}d&&(o+=e.slice(s,c),o+=e.slice(c,u).replace(/\n/g,` `),s=u),c=u;continue}}if(l===va){var p=Us(e,c,n);if(p>c){c=p;continue}}if(l===H){var m=!1,h=0;if(c>t&&e.charCodeAt(c-1)===ha)m=!0,h=1;else{for(var g=0,_=c-1;_>=t&&e.charCodeAt(_)===B;)g++,_--;g>=2&&(m=!0,h=g)}if(m)o+=e.slice(s,c-h),o+=``;else{for(var v=c;v>s&&e.charCodeAt(v-1)===B;)v--;o+=e.slice(s,v)+`
|
|
48
|
+
`}for(c++;c<n&&e.charCodeAt(c)===B;)c++;s=c;continue}c++}return s<n&&(o+=e.slice(s,n)),sc(o,0,o.length,r,i)}function Vs(e,t,n){if(e.charCodeAt(t)!==U)return null;let r=ds(e,t,n,96),i=t+r;for(;i<n;){let a=e.indexOf("`",i);if(a<0||a>=n)return null;let o=ds(e,a,n,96);if(o===r){let n=e.slice(t+r,a);return n=n.replace(/\n/g,` `),n.length>0&&n[0]===` `&&n[n.length-1]===` `&&n.trim().length>0&&(n=n.slice(1,-1)),{node:{type:q.codeInline,text:n},end:a+o}}i=a+o}return null}function Hs(e,t,n){if(e.charCodeAt(t)!==U)return t;let r=ds(e,t,n,96),i=t+r;for(;i<n;){let a=e.indexOf("`",i);if(a<0||a>=n)return t;let o=ds(e,a,n,96);if(o===r)return a+o;i=a+o}return t}function Us(e,t,n){if(e.charCodeAt(t)!==va)return t;if(t+1<n&&e.charCodeAt(t+1)===La){let r=t+2;for(;r<n&&e.charCodeAt(r)!==W;)r++;return r<n?r+1:t}if(t+3<n&&e.charCodeAt(t+1)===xa&&e.charCodeAt(t+2)===G&&e.charCodeAt(t+3)===G){let n=e.indexOf(`-->`,t+4);return n>=0?n+3:t}let r=t+1,i=r;for(;r<n;){let t=e.charCodeAt(r);if(t>=Xa&&t<=K||t>=Za&&t<=Qa||t>=Ja&&t<=Ya||t===G)r++;else break}if(r===i)return t;let a=e.slice(i,r).toLowerCase(),o=!1;for(;r<n;){let i=e.charCodeAt(r);if(i===W){r++;break}if(i===La&&r+1<n&&e.charCodeAt(r+1)===W){r+=2,o=!0;break}if(i===za||i===Ra){var s=i;for(r++;r<n&&e.charCodeAt(r)!==s;)r++;r<n&&r++;continue}if(i===H)return t;r++}if(o||ho(a))return r;let c=1;for(;r<n&&c>0;)if(e.charCodeAt(r)===va)if(r+1<n&&e.charCodeAt(r+1)===La){let t=r+2,i=t;for(;i<n&&(e.charCodeAt(i)>=Xa&&e.charCodeAt(i)<=K||e.charCodeAt(i)>=Za&&e.charCodeAt(i)<=Qa);)i++;if(e.slice(t,i).toLowerCase()===a){for(;i<n&&e.charCodeAt(i)!==W;)i++;if(i<n&&i++,c--,c===0)return i}r=i}else{let t=r+1,i=t;for(;i<n&&(e.charCodeAt(i)>=Xa&&e.charCodeAt(i)<=K||e.charCodeAt(i)>=Za&&e.charCodeAt(i)<=Qa);)i++;e.slice(t,i).toLowerCase()===a&&c++,r++}else r++;return r}function Ws(e,t,n,r,i){if(e.charCodeAt(t)!==la||t+1>=n||e.charCodeAt(t+1)!==la)return null;let a=t+2;for(;a+1<n;){let o=e.charCodeAt(a);if(o===U){let t=Hs(e,a,n);if(t>a){a=t;continue}}if(o===la&&e.charCodeAt(a+1)===la){let n=e.slice(t+2,a),o=sc(n,0,n.length,r,i);return{node:{type:q.textFormatted,tag:`del`,children:o},end:a+2}}o===ha&&a+1<n&&a++,a++}return null}function Gs(e,t,n,r,i){if(e.charCodeAt(t)!==ma||t+1>=n||e.charCodeAt(t+1)!==ma)return null;let a=t+2;for(;a+1<n;){let o=e.charCodeAt(a);if(o===U){let t=Hs(e,a,n);if(t>a){a=t;continue}}if(o===ma&&e.charCodeAt(a+1)===ma&&a>t+2){let n=e.slice(t+2,a),o=sc(n,0,n.length,r,i);return{node:{type:q.textFormatted,tag:`mark`,children:o},end:a+2}}o===ha&&a+1<n&&a++,a++}return null}function Ks(e,t,n){return e<$a?!!(os(e)&vo):Oo.test(t[n])}function qs(e,t,n){return e<$a?!!(os(e)&go):ko.test(t[n])}function Js(e,t,n){var r=e.charCodeAt(t);if(r!==ga&&r!==_a)return null;var i=ds(e,t,n,r);if(i===0)return null;var a=t>0?e.charCodeAt(t-1):32,o=t+i<n?e.charCodeAt(t+i):32,s=qs(a,e,t-1),c=qs(o,e,t+i),l=t>0?Ks(a,e,t-1):!1,u=t+i<n?Ks(o,e,t+i):!1,d=!c&&(!u||s||l),f=!s&&(!l||c||u),p,m;return r===ga?(p=d,m=f):(p=d&&(!f||l),m=f&&(!d||u)),{len:i,canOpen:p,canClose:m}}function Ys(e,t,n,r){if(t.length!==0){for(var i=[],a=0;a<12;a++)i[a]=-1;for(var o=0;o<t.length;){var s=t[o];if(!s.active||!s.canClose){o++;continue}for(var c=(s.ch===ga?0:1)*6+s.len%3*2+(s.canOpen?1:0),l=i[c]===void 0?-1:i[c],u=-1,d=o-1;d>l;d--){var f=t[d];if(!(!f.active||f.ch!==s.ch||!f.canOpen)&&!((s.canOpen||f.canClose)&&(f.len+s.len)%3==0&&f.len%3!=0)){u=d;break}}if(u<0){i[c]=o-1,!s.canOpen&&(s.active=!1),o++;continue}var p=t[u],m=p.len>=2&&s.len>=2,h=m?2:1;p.len-=h,s.len-=h;var g=e[p.idx],_=e[s.idx];g.text=g.text.slice(0,g.text.length-h),_.text=_.text.slice(h);var v=p.idx+1,y=s.idx,b=e.slice(v,y),x={type:q.textFormatted,tag:m?`strong`:`em`,children:b};e.splice(v,y-v,x);for(var S=y-v-1,C=0;C<t.length;C++)t[C].idx>p.idx&&(t[C].idx-=S);for(var w=u+1;w<o;w++)t[w].active=!1;if(p.len===0&&(p.active=!1,g.text===``)){e.splice(p.idx,1);for(var T=0;T<t.length;T++)t[T].idx>p.idx?t[T].idx--:t[T].idx===p.idx&&(t[T].idx=-1)}if(s.len===0){s.active=!1;var E=s.idx;if(_.text===``){e.splice(E,1);for(var D=0;D<t.length;D++)t[D].idx>E?t[D].idx--:t[D].idx===E&&(t[D].idx=-1)}}else continue;o++}for(var O=0,ee=0;ee<e.length;ee++){var te=e[ee];if(te.type===q.text){var ne=te;if(ne.text===``)continue;if(O>0&&e[O-1].type===q.text){e[O-1].text+=ne.text;continue}}e[O++]=te}e.length=O}}function Xs(e,t,n,r,i){let a=e.charCodeAt(t)===xa,o=a?t+1:t;if(e.charCodeAt(o)!==ua)return null;var s=e.indexOf(`]`,o+1);if(s<0||s>=n)return null;for(var c=o+1,l=1;c<n&&l>0;){var u=e.charCodeAt(c);if(u===ha&&c+1<n){c+=2;continue}if(u===U){var d=Hs(e,c,n);if(d>c){c=d;continue}}if(u===va){var f=Zs(e,c,n);if(f){c=f.end;continue}var p=Us(e,c,n);if(p>c){c=p;continue}}u===ua?l++:u===ba&&l--,c++}if(l!==0)return null;var m=c-1,h=e.slice(o+1,m),g=c<n?e.charCodeAt(c):0,_=!1;if(g===Wa){var v=!0;for(c++;c<n&&(e.charCodeAt(c)===B||e.charCodeAt(c)===H);)c++;var y=``,b=c;if(c<n&&e.charCodeAt(c)===va){for(c++,b=c;b<n&&e.charCodeAt(b)!==W;){if(e.charCodeAt(b)===ha&&b+1<n){b+=2;continue}if(e.charCodeAt(b)===H){v=!1;break}b++}v&&(b>=n||e.charCodeAt(b)!==W)&&(v=!1),v&&(y=e.slice(c,b),b++)}else if(v){for(var x=0;b<n;){var S=e.charCodeAt(b);if(S===ha&&b+1<n){b+=2;continue}if(S===Wa)x++;else if(S===Ga){if(x===0)break;x--}else if(S===B||S===H)break;b++}y=e.slice(c,b)}if(v){for(c=b;c<n&&(e.charCodeAt(c)===B||e.charCodeAt(c)===H);)c++;var C;if(c<n){var w=e.charCodeAt(c);if(w===za||w===Ra||w===Wa){var T=w===Wa?41:w;c++;for(var E=c;c<n&&e.charCodeAt(c)!==T;)e.charCodeAt(c)===ha&&c+1<n&&c++,c++;c>=n?v=!1:(C=e.slice(E,c),c++)}}if(v){for(;c<n&&(e.charCodeAt(c)===B||e.charCodeAt(c)===H);)c++;(c>=n||e.charCodeAt(c)!==Ga)&&(v=!1)}}if(v){c++,y=ss(y),C!==void 0&&(C=ao(ss(C)));var D=(i?.sanitizer||so)(y,a?`img`:`a`,a?`src`:`href`)===null?null:y;if(a){var O=nc(sc(h,0,h.length,r,i));return{node:{type:q.image,target:D,alt:O,title:C},end:c}}else{var ee=r.inAnchor;r.inAnchor=!0;var te=ee?[{type:q.text,text:h}]:sc(h,0,h.length,r,i);return r.inAnchor=ee,!r.inAnchor&&tc(te)?null:{node:{type:q.link,target:D,title:C,children:te},end:c}}}else c=m+1,_=!0}var ne=``,k=c;if(!_&&g===ua){var re=c+1;k=re;for(var ie=!1;k<n&&e.charCodeAt(k)!==ba;){if(e.charCodeAt(k)===ha&&k+1<n){k+=2;continue}if(e.charCodeAt(k)===ua){ie=!0;break}k++}if(ie||k>=n)return null;var ae=e.slice(re,k);if(ae.trim())ne=as(ae);else{if(is(h))return null;ne=as(h)}k+=1}else{if(is(h))return null;ne=as(h)}var A=r.refs[ne];if(!A)return null;if(a)return{node:{type:q.image,target:A.target,alt:nc(sc(h,0,h.length,r,i)),title:A.title},end:k};var j=r.inAnchor;r.inAnchor=!0;var te=j?[{type:q.text,text:h}]:sc(h,0,h.length,r,i);return r.inAnchor=j,!r.inAnchor&&tc(te)?null:{node:{type:q.link,target:A.target,title:A.title,children:te},end:k}}function Zs(e,t,n){if(e.charCodeAt(t)!==va)return null;for(var r=t+1;r<n;){var i=e.charCodeAt(r);if(i===W)break;if(i===B||i===H||i===ca||i===va)return null;r++}if(r>=n||e.charCodeAt(r)!==W)return null;var a=e.slice(t+1,r);return a.match(/^([a-zA-Z][a-zA-Z0-9+.-]{1,31}):([^\x00-\x20]*)$/)?{node:{type:q.link,target:a,title:void 0,children:[{type:q.text,text:a}]},end:r+1}:a.indexOf(`@`)!==-1&&/^[a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/.test(a)?{node:{type:q.link,target:`mailto:`+a,title:void 0,children:[{type:q.text,text:a}]},end:r+1}:null}function Qs(e,t,n,r){if(e.charCodeAt(t)!==ua||t+1>=n||e.charCodeAt(t+1)!==da)return null;let i=t+2;for(;i<n&&e.charCodeAt(i)!==ba&&e.charCodeAt(i)!==H;)i++;if(i>=n||e.charCodeAt(i)!==ba)return null;let a=e.slice(t+2,i);return a?{node:{type:q.footnoteReference,target:`#`+fo(a),text:a},end:i+1}:null}function $s(e,t,n,r){if(r.disableBareUrls)return null;var i=``,a=!1,o=e.charCodeAt(t);if(o===Ea||o===72?t+8<=n&&e.charCodeAt(t+1)===Oa&&e.charCodeAt(t+2)===Oa&&e.charCodeAt(t+3)===ka&&(e.charCodeAt(t+4)===Aa&&e.charCodeAt(t+5)===Ca&&e.charCodeAt(t+6)===La&&e.charCodeAt(t+7)===La?i=`https://`:e.charCodeAt(t+4)===Ca&&e.charCodeAt(t+5)===La&&e.charCodeAt(t+6)===La&&(i=`http://`)):o===Ta||o===70?t+6<=n&&e.charCodeAt(t+1)===Oa&&e.charCodeAt(t+2)===ka&&e.charCodeAt(t+3)===Ca&&e.charCodeAt(t+4)===La&&e.charCodeAt(t+5)===La&&(i=`ftp://`):(o===Da||o===87)&&t+4<=n&&e.charCodeAt(t+1)===Da&&e.charCodeAt(t+2)===Da&&e.charCodeAt(t+3)===Ia&&(i=`www.`,a=!0),!i)return null;let s=t+i.length;for(;s<n;){let t=e.charCodeAt(s);if(t===B||t===H||t===V||t===ca||t===va||t===W)break;s++}for(var c=0,l=0,u=t;u<s;u++){var d=e.charCodeAt(u);d===Wa?c++:d===Ga&&l++}let f=s;for(;f>t+i.length;){let n=e.charCodeAt(f-1);if(n===Ia||n===Na||n===Ca||n===xa||n===Fa||n===Ga||n===ga||n===_a||n===la){if(n===Ga){if(c>=l)break;l--}f--}else if(n===Pa){for(var p=f-2;p>t&&(e.charCodeAt(p)>=Xa&&e.charCodeAt(p)<=K||e.charCodeAt(p)>=Za&&e.charCodeAt(p)<=Qa||e.charCodeAt(p)>=Ja&&e.charCodeAt(p)<=Ya);)p--;p>=t&&e.charCodeAt(p)===Sa?f=p:f--}else break}if(f<=t+i.length)return null;var m=t+(a?4:i.length),h=e.indexOf(`/`,m);if((h<0||h>f)&&(h=f),a&&e.indexOf(`.`,m)===-1)return null;for(var g=-1,_=-1,v=h-1;v>=m;v--)if(e.charCodeAt(v)===Ia)if(g<0)g=v;else{_=v;break}for(var v=_>=0?_+1:m;v<h;v++)if(e.charCodeAt(v)===_a)return null;var y=e.slice(t,f),b=a?`http://`+y:y;return{node:{type:q.link,target:b,title:void 0,children:[{type:q.text,text:y}]},end:f}}function ec(e,t,n,r){if(r.disableBareUrls)return null;for(var i=t,a=i;i<n;){var o=e.charCodeAt(i);if(o>=Xa&&o<=K||o>=Za&&o<=Qa||o>=Ja&&o<=Ya||o===Ia||o===xa||o===fa||o===36||o===pa||o===Sa||o===Ra||o===ga||o===Ba||o===La||o===ma||o===Fa||o===da||o===_a||o===U||o===Ha||o===Va||o===Ua||o===la||o===G)i++;else break}if(i===a||i>=n||e.charCodeAt(i)!==ya)return null;i++;for(var s=i,c=-1,l=i;i<n;){var o=e.charCodeAt(i);if(o>=Xa&&o<=K||o>=Za&&o<=Qa||o>=Ja&&o<=Ya)i++;else if((o===G||o===_a)&&i>s)i++;else if(o===Ia){if(i===s)break;var u=e.charCodeAt(i-1);if(u===G||u===_a||i-l>63)break;if(i+1<n){var d=e.charCodeAt(i+1);if(d>=Xa&&d<=K||d>=Za&&d<=Qa||d>=Ja&&d<=Ya)c=i,l=i+1,i++;else break}else break}else break}if(i-l>63||c<0)return null;var f=e.charCodeAt(i-1);if(!(f>=Xa&&f<=K||f>=Za&&f<=Qa||f>=Ja&&f<=Ya)||i<=c+1)return null;for(var p=-1,m=c-1;m>=s;m--)if(e.charCodeAt(m)===Ia){p=m;break}for(var m=p>=0?p+1:s;m<i;m++)if(e.charCodeAt(m)===_a)return null;var h=e.slice(t,i);return{node:{type:q.link,target:`mailto:`+h,title:void 0,children:[{type:q.text,text:h}]},end:i}}function tc(e){for(var t=0;t<e.length;t++)if(e[t].type===q.link||`children`in e[t]&&Array.isArray(e[t].children)&&tc(e[t].children))return!0;return!1}function nc(e){for(var t=``,n=0;n<e.length;n++){var r=e[n];r.type===q.text?t+=r.text:r.type===q.breakLine?t+=` `:r.type===q.codeInline?t+=r.text:`children`in r&&Array.isArray(r.children)?t+=nc(r.children):r.type===q.image?t+=r.alt||``:r.type===q.link&&(t+=nc(r.children))}return t}function rc(e){let t=e.includes(`&`)?ao(e):e;return{type:q.text,text:t}}function ic(e,t,n,r,i){if(e.charCodeAt(t)!==va)return null;var a=t+1;if(a>=n)return null;var o=e.charCodeAt(a);if(o===xa&&a+1<n&&e.charCodeAt(a+1)===G&&a+2<n&&e.charCodeAt(a+2)===G){var s=a+3;if(s<n&&e.charCodeAt(s)===W)return{node:{type:q.htmlComment,text:``,h:!0},end:s+1};if(s+1<n&&e.charCodeAt(s)===G&&e.charCodeAt(s+1)===W)return{node:{type:q.htmlComment,text:`-`,h:!0},end:s+2};var c=e.indexOf(`-->`,s);return c!==-1&&c<=n-3?{node:{type:q.htmlComment,text:e.slice(t+4,c),h:!1},end:c+3}:null}if(o===Fa){var l=e.indexOf(`?>`,a+1);return l!==-1&&l<n?{node:{type:q.htmlSelfClosing,tag:`?`,attrs:{},a:e.slice(t,l+2),b:!1},end:l+2}:null}if(o===xa&&a+1<n){var u=e.charCodeAt(a+1);if(u===ua&&e.slice(a+1,a+8)===`[CDATA[`){var d=e.indexOf(`]]>`,a+8);return d!==-1&&d<n?{node:{type:q.htmlSelfClosing,tag:`![CDATA[`,attrs:{},a:e.slice(t,d+3),b:!1},end:d+3}:null}if(u>=Xa&&u<=K){var f=e.indexOf(`>`,a+2);return f!==-1&&f<n?{node:{type:q.htmlSelfClosing,tag:`!`+e.slice(a+1,f),attrs:{},a:e.slice(t,f+1),b:!1},end:f+1}:null}}if(o===La){var p=a+1;if(p>=n)return null;var m=e.charCodeAt(p);if(!(m>=Xa&&m<=K||m>=Za&&m<=Qa))return null;for(p++;p<n;){var h=e.charCodeAt(p);if(h>=Xa&&h<=K||h>=Za&&h<=Qa||h>=Ja&&h<=Ya||h===G)p++;else break}for(;p<n&&(e.charCodeAt(p)===B||e.charCodeAt(p)===V||e.charCodeAt(p)===H);)p++;if(p<n&&e.charCodeAt(p)===W){var g=e.slice(a+1,p).trim();return{node:{type:q.htmlSelfClosing,tag:g,attrs:{},a:e.slice(t,p+1),b:!0},end:p+1}}return null}if(!(o>=Xa&&o<=K||o>=Za&&o<=Qa))return null;var _=$o(e,t);if(!_)return null;var v=_.tag,y=v.toLowerCase();if(_.selfClosing||ho(v))return{node:{type:q.htmlSelfClosing,tag:v,attrs:Os(_.attrs,v,i),a:e.slice(t,_.end),b:!1},end:_.end};var b=Uo.has(y),x=Ms(e.slice(0,n),_.end,v);if(x===-1)return{node:{type:q.htmlSelfClosing,tag:v,attrs:Os(_.attrs,v,i),a:e.slice(t,_.end),b:!1},end:_.end};var S=As(e,`</`+y,x),C=e.slice(_.end,S),w=[];if(b)C.trim()&&(w=[{type:q.text,text:C}]);else{var T=C.trim();if(T){var{inAnchor:E,inline:D}=r;y===`a`&&(r.inAnchor=!0),T.indexOf(`
|
|
49
|
+
|
|
50
|
+
`)!==-1||/^#{1,6}\s/.test(T)?(r.inline=!1,w=lc(T,r,i)):w=sc(T,0,T.length,r,i),r.inAnchor=E,r.inline=D}}return{node:{type:q.htmlBlock,tag:v,attrs:Os(_.attrs,v,i),f:_.rawAttrs,children:w,a:void 0,text:C,c:!1,b:!1,endPos:x,e:!1},end:x}}var ac=200,oc=0;function sc(e,t,n,r,i){if(oc++,oc>ac)return oc--,[{type:q.text,text:e.slice(t,n)}];let a=r;if(i.streaming||i.optimizeForStreaming){let r=function(e,t){for(var n=1,r=t+1;r<e.length;r++){var i=e.charCodeAt(r);if(i===ua)n++;else if(i===ba&&(n--,n===0))return r}return-1},i=e.slice(t,n),a=i;for(var o=0,s=0,c=0,l=0,u=0,d=-1,f=-1,p=-1,m=-1,h=-1,g=0;g<i.length;g++){var _=i.charCodeAt(g);_===ga?g+1<i.length&&i.charCodeAt(g+1)===ga?(o++,d=g,g++):(s++,f=g):_===_a?g+1<i.length&&i.charCodeAt(g+1)===_a?(c++,p=g,g++):(l++,m=g):_===la&&g+1<i.length&&i.charCodeAt(g+1)===la&&(u++,h=g,g++)}var v=[];u%2==1&&h>=0&&v.push([h,2]),c%2==1&&p>=0&&v.push([p,2]),l%2==1&&m>=0&&v.push([m,1]),o%2==1&&d>=0&&v.push([d,2]),s%2==1&&f>=0&&v.push([f,1]),v.sort(function(e,t){return t[0]-e[0]});for(var y=0;y<v.length;y++){var b=v[y][0],x=v[y][1];i=i.slice(0,b)+i.slice(b+x)}let M=0,se=-1;for(let e=0;e<i.length;e++)i.charCodeAt(e)===U&&(M++,se=e);if(M%2==1&&se!==-1){let e=!1,t=-1,n=0;for(;n<i.length;)i.charCodeAt(n)===U&&(e?(e=!1,t=-1):(t=n,e=!0)),n++;e&&t!==-1&&(i=i.slice(0,t))}for(var S=!0;S;){S=!1;for(var C=-1,w=-1,T=-1,E=!1,D=0;D<i.length;D++)if(i.charCodeAt(D)===ua&&(D===0||i.charCodeAt(D-1)!==ha)){var O=D>0&&i.charCodeAt(D-1)===xa,ee=O?D-1:D,te=r(i,D);if(te===-1)C=ee,E=O,w=D+1,T=i.length;else{var ne=te+1;if(ne>=i.length)C=ee,E=O,w=D+1,T=te;else if(i.charCodeAt(ne)===Wa){var k=i.indexOf(`)`,ne+1);k===-1?(C=ee,E=O,w=D+1,T=te,D=i.length):D=k}else if(i.charCodeAt(ne)===ua){var re=i.indexOf(`]`,ne+1);re===-1?(C=ee,E=O,w=D+1,T=te,D=i.length):D=re}else D=te}}if(C>=0){var ie=E?``:i.slice(w,T);i=i.slice(0,C)+ie,S=!0}}let N=i.match(/<([A-Z][A-Za-z0-9]*)(?:\s[^>]*)?>([^<]*)$/);if(N&&N.index!==void 0){var ae=N[0].length-N[2].length;if(!(ae>=2&&N[0].charCodeAt(ae-2)===La)){for(var A=!1,j=0,oe=0;oe<N.index;oe++)i.charCodeAt(oe)===U&&j++;if(A=j%2==1,!A){let e=N[1];ks(i,`</`+e,0)===-1&&(i=i.replace(/<[A-Z][A-Za-z0-9]*(?:\s[^>]*)?>([^<]*)$/,`$1`))}}}i!==a&&(e=e.slice(0,t)+i,n=t+i.length)}let M=[];var se=[];let N=t;var P=i.disableAutoLink||i.disableBareUrls||a.inAnchor?-1:e.indexOf(`@`,t);for(P>=n&&(P=-1);t<n;){let r=e.charCodeAt(t),o=null;if(r===U){if(o=Vs(e,t,n),!o){var F=ds(e,t,n,U);t+=F-1}}else if(r===ga||r===_a){var I=Js(e,t,n);if(I){if(I.canOpen||I.canClose){t>N&&M.push(rc(e.slice(N,t)));var ce=rc(e.slice(t,t+I.len));se.push({idx:M.length,ch:r,len:I.len,canOpen:I.canOpen,canClose:I.canClose,active:!0}),M.push(ce),t+=I.len,N=t;continue}t+=I.len-1}}else r===la?o=Ws(e,t,n,a,i):r===ma?o=Gs(e,t,n,a,i):r===ua?(t+1<n&&e.charCodeAt(t+1)===da&&(o=Qs(e,t,n,a)),o||=Xs(e,t,n,a,i)):r===xa&&t+1<n&&e.charCodeAt(t+1)===ua?o=Xs(e,t,n,a,i):r===va?(o=Zs(e,t,n),!o&&!i.disableParsingRawHTML&&!i.ignoreHTMLBlocks&&(o=ic(e,t,n,a,i))):(r===Ea||r===Da||r===Ta)&&!a.inAnchor&&!i.disableAutoLink&&(t===0||e.charCodeAt(t-1)!==va)&&(o=$s(e,t,n,i));if(!o&&P>=0&&P-t<=64&&!a.inAnchor&&!i.disableAutoLink&&!i.disableBareUrls&&(r>=Xa&&r<=K||r>=Za&&r<=Qa||r>=Ja&&r<=Ya)&&(o=ec(e,t,n,i),!o&&t>=P&&(P=e.indexOf(`@`,t+1),P>=n&&(P=-1))),r===qa){t>N&&M.push(rc(e.slice(N,t))),M.push({type:q.breakLine}),t++,N=t;continue}if(o)t>N&&M.push(rc(e.slice(N,t))),M.push(o.node),t=o.end,N=t;else{if(r===ha&&t+1<n&&os(e.charCodeAt(t+1))&vo){t>N&&M.push(rc(e.slice(N,t))),M.push(rc(e[t+1])),t+=2,N=t;continue}if(t++,P<0||P-t>64)for(;t<n;){var le=e.charCodeAt(t);if(le<$a&&!Jo[le])t++;else break}}}if(n>N){let t=e.slice(N,n);t&&M.push(rc(t))}return se.length>0&&Ys(M,se,r,i),oc--,M}var cc=500;function lc(e,t,n){var r=t.i||0;if(r>cc)return[{type:q.text,text:e}];if(t.i=r+1,(n.streaming||n.optimizeForStreaming)&&!t.j){var i=e.length;i>0&&e.charCodeAt(i-1)===H&&i--;for(var a=i;a>0&&e.charCodeAt(a-1)!==H;)a--;if(a>0&&e.charCodeAt(a)===Va){for(var o=!0,s=a;s<i;s++){var c=e.charCodeAt(s);if(c!==B&&c!==V&&c!==G&&c!==Ca&&c!==Va){o=!1;break}}if(o){for(var l=a-1;l>0&&e.charCodeAt(l-1)!==H;)l--;e.charCodeAt(l)===Va&&(e=e.slice(0,l).trimEnd())}}var u=e.trim(),d=u.lastIndexOf(`
|
|
51
|
+
`),f=d===-1?u:u.slice(d+1);if(f.length>0&&f.charCodeAt(0)===Va){for(var p=!1,m=!1,h=1;h<f.length;h++){var g=f.charCodeAt(h);g===Va&&(p=!0),g===G&&(m=!0)}p&&m&&(e=d===-1?``:e.slice(0,e.lastIndexOf(f)).trimEnd())}for(var _=-1,v=-1,y=-1,b=e.length-1;b>=0;b--)if(e.charCodeAt(b)===va){var x=b+1<e.length?e.charCodeAt(b+1):0;if(x>=Xa&&x<=K||x>=Za&&x<=Qa){for(var S=b+2;S<e.length;){var C=e.charCodeAt(S);if(C>=Xa&&C<=K||C>=Za&&C<=Qa||C>=Ja&&C<=Ya)S++;else break}for(var w=S;w<e.length&&e.charCodeAt(w)!==W;)w++;if(w<e.length&&e.charCodeAt(w-1)!==La){for(var T=!1,E=w+1;E<e.length;E++)if(e.charCodeAt(E)===va){T=!0;break}T||(_=b,v=S,y=w+1)}}break}if(_>=0){for(var D=0,O=0;O<_;O++)e.charCodeAt(O)===U&&D++;if(D%2==0){var ee=e.slice(_+1,v);ks(e,`</`+ee,0)===-1&&(e=e.slice(0,_)+e.slice(y))}}for(var te=e.length;te>0&&e.charCodeAt(te-1)===H;)te--;if(te>0){for(var ne=te;ne>0&&e.charCodeAt(ne-1)!==H;)ne--;for(var k=ne,re=0;k<te&&e.charCodeAt(k)===B&&re<3;)k++,re++;if(ne>0&&k<te&&_s(e,k,te)){for(var ie=ne-1,ae=ie;ae>0&&e.charCodeAt(ae-1)!==H;)ae--;hs(e,ae,ie)||(e=e.slice(0,ne).trimEnd())}}var A=e.length;if(A>0){for(var j=e.lastIndexOf(`
|
|
52
|
+
`),oe=j===-1?0:j+1,M=A,se=oe,N=0;se<M&&e.charCodeAt(se)===B&&N<3;)se++,N++;if(se<M){var P=e.charCodeAt(se),F=!1;if(P===ga||P===G||P===Ba){var I=se+1;if(I>=M||e.charCodeAt(I)===B||e.charCodeAt(I)===V){for(var ce=I;ce<M&&(e.charCodeAt(ce)===B||e.charCodeAt(ce)===V);)ce++;ce>=M&&(F=!0)}}else if(P>=Ja&&P<=Ya){for(var le=se;le<M&&e.charCodeAt(le)>=Ja&&e.charCodeAt(le)<=Ya;)le++;if(le<M&&(e.charCodeAt(le)===Ia||e.charCodeAt(le)===Ga)){var ue=le+1;if(ue>=M||e.charCodeAt(ue)===B||e.charCodeAt(ue)===V){for(var de=ue;de<M&&(e.charCodeAt(de)===B||e.charCodeAt(de)===V);)de++;de>=M&&(F=!0)}}}F&&(e=e.slice(0,oe).trimEnd())}}}if(t.inline)return sc(e,0,e.length,t,n);let fe=[],L=0,pe=e.length;if(L===0&&e.startsWith(`---`)){let t=to(e);if(t&&t.hasValidYaml){if(n.preserveFrontmatter!==!1){let n=e.slice(0,t.endPos).trimEnd();fe.push({type:q.frontmatter,text:n})}L=t.endPos}}for(;L<pe;){for(var me=e.indexOf(`
|
|
53
|
+
`,L),he=me<0?pe:me;L<pe&&hs(e,L,he);)L=he<pe?he+1:he,L<pe&&(me=e.indexOf(`
|
|
54
|
+
`,L),he=me<0?pe:me);if(L>=pe)break;e.charCodeAt(L),ms(e,L,he);let r=null;if(e.charCodeAt(L)!==Ka&&fs>=4&&!t.inHTML)r=bs(e,L);else if(e.charCodeAt(L)!==Ka){let i=L+ps,a=e.charCodeAt(i);a===fa?r=gs(e,L,t,n):a===W?r=xs(e,L,t,n):a===U||a===la?r=ys(e,L,t):a===G||a===ga||a===_a?(r=vs(e,L),!r&&(r=Es(e,L,t,n))):a===Ba||a>=Ja&&a<=Ya?r=Es(e,L,t,n):a===va?r=Ns(e,L,t,n):a===Va?r=Is(e,L,t,n):a===ua&&(r=Ls(e,L,t))}if(!r){for(var ge=!1,_e=L;_e<he;_e++)if(e.charCodeAt(_e)===Va){ge=!0;break}ge&&(r=Is(e,L,t,n))}if(r||=zs(e,L,t,n),r)r.node.type!==q.refCollection&&fe.push(r.node),L=r.end;else{var ve=e.indexOf(`
|
|
55
|
+
`,L);L=ve<0?pe:ve+1}}return t.i=r,fe}function uc(e,t,n,r){var i=$o(e,t);return i?{tagName:i.tag,tagLower:i.tag.toLowerCase(),attrs:i.rawAttrs,whitespaceBeforeAttrs:i.whitespaceBeforeAttrs,isSelfClosing:i.selfClosing,hasSpaceBeforeSlash:i.hasSpaceBeforeSlash,isClosing:i.isClosing,hasNewline:i.whitespaceBeforeAttrs.includes(`
|
|
56
|
+
`)||i.rawAttrs.includes(`
|
|
57
|
+
`),endPos:i.end}:null}function dc(e,t,n){oc=0,e=jo(e),!t.refs&&(t.refs={}),t.j=es(e,t.refs,n);let r=lc(e,t,n);return t.refs&&Object.keys(t.refs).length>0?[{type:q.refCollection,refs:t.refs},...r]:r}var fc=/^\n+/,pc;try{pc=x.createElement(`div`).$$typeof}catch{pc=Symbol.for(`react.transitional.element`)}function mc(e,t,n){return{$$typeof:pc,type:e,key:n==null?null:``+n,ref:null,props:t,_owner:null,_store:{},k:null,l:null}}var hc=typeof x.createContext<`u`?x.createContext(void 0):void 0;function gc(e,t,n,r,i,a,o,s){switch(e.type){case q.blockQuote:{let i={key:n.key};return e.alert&&(i.className=`markdown-alert-`+a(e.alert.toLowerCase(),fo),e.children.unshift({attrs:{},children:[{type:q.text,text:e.alert}],c:!0,type:q.htmlBlock,tag:`header`})),r(`blockquote`,i,t(e.children,n))}case q.breakLine:return r(`br`,{key:n.key});case q.breakThematic:return r(`hr`,{key:n.key});case q.frontmatter:return s.preserveFrontmatter?r(`pre`,{key:n.key},e.text):null;case q.codeBlock:let m=e.lang?ao(e.lang):``;return r(`pre`,{key:n.key},r(`code`,{...io(e.attrs||{}),className:m?`language-${m} lang-${m}`:``},e.text));case q.codeInline:return r(`code`,{key:n.key},e.text);case q.footnoteReference:return r(`a`,{key:n.key,href:i(e.target,`a`,`href`)||void 0},r(`sup`,{key:n.key},e.text));case q.gfmTask:return r(`input`,{checked:e.completed,key:n.key,readOnly:!0,type:`checkbox`});case q.heading:return r(`h${e.level}`,{id:e.id,key:n.key},t(e.children,n));case q.htmlBlock:{let m=e;if(s.tagfilter&&Lo(m.tag)){var c=``;if(m.attrs)for(var l in m.attrs){var u=m.attrs[l];u===!0?c+=` `+l:u!=null&&u!==!1&&(c+=` `+l+`="`+String(u)+`"`)}return r(`span`,{key:n.key},`<`+m.tag+c+`>`)}if(m.a&&m.c){let c=function(e){if((e.type===q.htmlSelfClosing||e.type===q.htmlBlock)&&e.b)return[];if(e.type===q.paragraph){let t=e.children;return t?t.flatMap(c):[]}return e.type===q.text?e.text?.trim()?[e]:[]:e.type===q.htmlBlock&&e.children?[{...e,children:e.children?.flatMap(c)}]:[e]},l=function(e){for(var t=0;t<e.length;t++)e[t].type===q.htmlBlock&&(e[t].c=!1),`children`in e[t]&&e[t].children&&l(e[t].children)},u=function(e,t){for(var n=0;n<e.length;n++){var r=e[n];if(r.type===q.paragraph&&r.children)for(var i=r.children,a=0;a<i.length;a++){var o=i[a];if(o.type===q.htmlSelfClosing&&o.b&&o.tag.toLowerCase()===t){var s=e.slice(0,n);a>0&&s.push({type:q.paragraph,children:i.slice(0,a)});var c=[];if(a+1<i.length){var l=i.slice(a+1);l=l.filter(function(e){return!(e.type===q.htmlSelfClosing&&e.b)}),l.length>0&&(c=l)}return c=c.concat(e.slice(n+1)),{found:!0,beforeClose:s,afterClose:c}}}if((r.type===q.htmlSelfClosing||r.type===q.htmlBlock)&&r.b&&r.tag.toLowerCase()===t)return{found:!0,beforeClose:e.slice(0,n),afterClose:e.slice(n+1)}}return{found:!1,beforeClose:e,afterClose:[]}},h=m.tag.toLowerCase(),g=Xo(h),_=m.children&&m.children.length>0,v=/<[a-z][^>]{0,100}>/i.test(m.a);if(g){let t=m.a.replace(RegExp(`\\s*</`+h+`>\\s*$`,`i`),``);return s.tagfilter&&(t=zo(t)),v?r(e.tag,{key:n.key,...io(e.attrs||{}),dangerouslySetInnerHTML:{__html:t}}):r(e.tag,{key:n.key,...io(e.attrs||{})},t)}let y=RegExp(`^<${m.tag}(\\s|>)`,`i`).test(m.a);if(_&&!y&&s.tagfilter&&Ro(m.a))return r(e.tag,{key:n.key,...io(e.attrs||{})},t(m.children,n));if(Zo(m.a)){let t=s.tagfilter?zo(m.a):m.a;return r(e.tag,{key:n.key,...io(e.attrs||{}),dangerouslySetInnerHTML:{__html:t}})}let b={slugify:e=>a(e,fo),sanitizer:i,tagfilter:!0},S=m.a.replace(/>\s+</g,`><`).replace(/\n+/g,` `).trim();if(RegExp(`^<${m.tag}(\\s[^>]*)?>(\\s*</${m.tag}>)?$`,`i`).test(S))return m.children&&m.children.length>0?r(e.tag,{key:n.key,...io(e.attrs||{})},t(m.children,n)):r(e.tag,{key:n.key,...io(e.attrs||{})});let C=dc(S,{inline:!1,refs:o,inHTML:!1},b);l(C);let w=m.tag.toLowerCase(),T=`</`+w+`>`,E=RegExp(`^<${m.tag}(\\s|>)`,`i`).test(S),D=S.toLowerCase().trimEnd().endsWith(T),O=E&&D;if(O&&_)return r(e.tag,{key:n.key,...io(e.attrs||{})},t(m.children,n));if(O)return t(C.flatMap(c),n);var d=u(C,w);if(d.found&&d.afterClose.length>0){var f=d.beforeClose.flatMap(c),p=d.afterClose.flatMap(c);return mc(x.Fragment,{children:[r(e.tag,{key:n.key,...io(e.attrs||{})},t(f,n)),t(p,n)]},null)}return r(e.tag,{key:n.key,...io(e.attrs||{})},t(C.flatMap(c),n))}return ho(e.tag)?r(e.tag,{key:n.key,...io(e.attrs||{})}):r(e.tag,{key:n.key,...io(e.attrs||{})},e.children?t(e.children,n):``)}case q.htmlSelfClosing:{let t=e;if(s.tagfilter&&Lo(t.tag)){var c=``;if(t.attrs)for(var l in t.attrs){var u=t.attrs[l];u===!0?c+=` `+l:u!=null&&u!==!1&&(c+=` `+l+`="`+String(u)+`"`)}return r(`span`,{key:n.key},`<`+t.tag+c+` />`)}return r(e.tag,{key:n.key,...io(e.attrs||{})})}case q.image:{let t=e.target==null?null:i(e.target,`img`,`src`);return r(`img`,{key:n.key,alt:e.alt&&e.alt.length>0?e.alt:void 0,title:e.title||void 0,src:t||void 0})}case q.link:{let i={key:n.key};return e.target!=null&&(i.href=No(e.target)),e.title&&(i.title=e.title),r(`a`,i,t(e.children,n))}case q.table:{let i=e;return r(`table`,{key:n.key},r(`thead`,null,r(`tr`,null,i.header.map(function(e,a){return r(`th`,{key:a,style:i.align[a]==null?{}:{textAlign:i.align[a]}},t(e,n))}))),i.cells.length>0&&r(`tbody`,null,i.cells.map(function(e,a){return r(`tr`,{key:a},e.map(function(e,a){return r(`td`,{key:a,style:i.align[a]==null?{}:{textAlign:i.align[a]}},t(e,n))}))})))}case q.text:return e.text;case q.textFormatted:return r(e.tag,{key:n.key},t(e.children,n));case q.orderedList:case q.unorderedList:return r(e.type===q.orderedList?`ol`:`ul`,{key:n.key,start:e.type===q.orderedList?e.start:void 0},e.items.map(function(e,i){return r(`li`,{key:i},t(e,n))}));case q.paragraph:return r(`p`,{key:n.key},t(e.children,n));case q.ref:return null;default:return null}}var _c=(e,t,n,r,i,a)=>{var o=e=>e.map(function(e){return`text`in e?e.text:``}),s=(c,l={})=>{var u=(l.renderDepth||0)+1;if(u>2500)return o(c);l.renderDepth=u;for(var d=l.key,f=[],p=!1,m=0;m<c.length;m++){l.key=m;var h=e?e(gc.bind(null,c[m],s,l,t,n,r,i,a),c[m],s,l):gc(c[m],s,l,t,n,r,i,a),g=typeof h==`string`;if(g&&p)f[f.length-1]+=h;else if(h!==null)if(Array.isArray(h))for(var _=0;_<h.length;_++)f.push(h[_]);else f.push(h);p=g}return l.key=d,l.renderDepth=u-1,f};return s},vc=(e,t)=>{let n=Mo(t,e,void 0);return n?typeof n==`function`||typeof n==`object`&&`render`in n?n:Mo(t,`${e}.component`,e):e};function yc(e,t){let n={...t||{}};n.overrides=n.overrides||{};let r=n.slugify||fo,i=n.sanitizer||so,a=n.createElement,o=n.overrides&&Object.keys(n.overrides).length>0,s=e=>bc(e,{...n,wrapper:null});function c(e,t,...r){var i=t||{};for(var c in i){var l=i[c];if(typeof l==`string`&&l.length>0&&l.charCodeAt(0)===va&&(Bo.test(l)||Vo.test(l)||uc(l,0))){var u=s(l.trim());i[c]=c===`innerHTML`&&Array.isArray(u)?u[0]:u}}var d=e;if(o){var f=Mo(n.overrides,e+`.props`,{});d=vc(e,n.overrides),i={...i,...f,className:Po(i.className,f.className)||void 0}}if(!a){var p=i.key;return p!=null&&delete i.key,r.length===1?i.children=r[0]:r.length>1&&(i.children=r),mc(d,i,p)}return a(d,i,...r)}let l={...n,slugify:e=>r(e,fo),sanitizer:i,tagfilter:n.tagfilter!==!1},u=e[0]&&e[0].type===q.refCollection?e[0].refs:{},d=_c(n.renderRule,c,i,r,u,n),f=d(e,{inline:n.forceInline,refs:u}),p=[];for(let e in u)e.charCodeAt(0)===da&&p.push({identifier:e,footnote:u[e].target});if(p.length&&f.push(c(`footer`,{key:`footer`},p.map(function(e){let t=e.identifier.charCodeAt(0)===da?e.identifier.slice(1):e.identifier,n=dc(e.footnote,{inline:!0,refs:u},l);return c(`div`,{id:r(t,fo),key:e.identifier},t+`: `,d(n,{inline:!0,refs:u}))}))),n.wrapper===null)return f;let m=n.wrapper||(n.forceInline?`span`:`div`),h;if(f.length>1||n.forceWrapper)h=f;else return f.length===1?f[0]:null;var g=n.wrapperProps?{...n.wrapperProps}:{};return g.children=h,mc(m,g,`outer`)}function bc(e=``,t={}){let n={...t||{}};n.overrides=n.overrides||{};let r=n.slugify||fo,i=n.sanitizer||so;function a(e){let t=n.forceInline||!n.forceBlock&&!J.test(e),a={...n,slugify:e=>r(e,fo),sanitizer:i,tagfilter:n.tagfilter!==!1};t||es(e,o,a);let s=e;if(!t){let e=s.length;for(;e>0&&(s[e-1]===`
|
|
58
|
+
`||s[e-1]===`\r`);)e--;s=s.slice(0,e),s=`${s.replace(fc,``)}
|
|
59
|
+
|
|
60
|
+
`}if(n.optimizeForStreaming){var c=s.lastIndexOf(`<`);c!==-1&&s.indexOf(`>`,c)===-1&&(s=s.slice(0,c)),c=e.lastIndexOf(`<`),c!==-1&&e.indexOf(`>`,c)===-1&&(e=e.slice(0,c))}return yc(dc(t?e:s,{inline:t,refs:o},a),{...a,forceInline:t})}let o={};return a(e)}var xc=({children:e,options:t,...n})=>{if(!(typeof x.useContext<`u`)){let r={...t,overrides:{...t?.overrides},wrapperProps:{...t?.wrapperProps,...n}};return bc(e??``,r)}let r=x.useContext(hc),i=x.useMemo(()=>({...r,...t,overrides:{...r?.overrides,...t?.overrides},wrapperProps:{...r?.wrapperProps,...t?.wrapperProps,...n}}),[r,t,n]),a=e??``;return x.useMemo(()=>bc(a,i),[a,i])},Sc={generalConditionsContainer:`_generalConditionsContainer_55hjg_1`,generalConditions:`_generalConditions_55hjg_1`,generalConditionsHeader:`_generalConditionsHeader_55hjg_15`,generalConditionsBody:`_generalConditionsBody_55hjg_26`,generalConditionsAccept:`_generalConditionsAccept_55hjg_35`},Cc=o((e=>{var t=Symbol.for(`react.transitional.element`),n=Symbol.for(`react.fragment`);function r(e,n,r){var i=null;if(r!==void 0&&(i=``+r),n.key!==void 0&&(i=``+n.key),`key`in n)for(var a in r={},n)a!==`key`&&(r[a]=n[a]);else r=n;return n=r.ref,{$$typeof:t,type:e,key:i,ref:n===void 0?null:n,props:r}}e.Fragment=n,e.jsx=r,e.jsxs=r})),X=o(((e,t)=>{t.exports=Cc()}))(),wc=()=>(0,X.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1rem`,height:`1rem`,fill:`currentColor`,viewBox:`0 0 256 256`,children:(0,X.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`})}),Tc=()=>(0,X.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1rem`,height:`1rem`,fill:`currentColor`,viewBox:`0 0 256 256`,children:(0,X.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`})}),Ec=`general-conditions.header`,Dc=`general-conditions.body`,Oc=`general-conditions.accept-conditions-note`,kc=()=>{let e=z(),[t,n]=(0,x.useState)(!1),r=()=>n(!t),i=e=>{e.key===`ArrowDown`||e.key===`ArrowRight`?n(!0):e.key===`ArrowUp`||e.key===`ArrowLeft`||e.key===`Escape`?n(!1):(e.key===`Enter`||e.key===`Space`||e.key===` `)&&r()},a=e(Ec),o=e(Oc);return(0,X.jsxs)(`div`,{className:R(Sc.generalConditionsContainer,`chat__generalConditions`),children:[!!a?.length&&(0,X.jsxs)(`div`,{className:Sc.generalConditions,children:[(0,X.jsxs)(`div`,{role:`button`,onClick:r,onKeyDown:i,tabIndex:0,className:R(Sc.generalConditionsHeader,`chat__generalConditions__header`),"aria-controls":`general-conditions-body`,"aria-expanded":t?`true`:`false`,"aria-pressed":t?`true`:`false`,children:[(0,X.jsx)(xc,{children:a}),t?(0,X.jsx)(Tc,{}):(0,X.jsx)(wc,{})]}),(0,X.jsx)(`div`,{className:R(Sc.generalConditionsBody,`chat__generalConditions__body`),id:`general-conditions-body`,role:`region`,tabIndex:-1,children:t&&(0,X.jsx)(xc,{children:e(Dc)||``})})]}),!!o?.length&&(0,X.jsx)(`div`,{className:R(Sc.generalConditionsAccept,`chat__generalConditions__accept`),tabIndex:0,children:(0,X.jsx)(xc,{children:e(Oc)||``})})]})},Z={messageContainer:`_messageContainer_1rxi5_1`,message:`_message_1rxi5_1`,messageBot:`_messageBot_1rxi5_14`,messageBotLast:`_messageBotLast_1rxi5_45`,avatar:`_avatar_1rxi5_45`,messageBotFirst:`_messageBotFirst_1rxi5_54`,messageBotAnimated:`_messageBotAnimated_1rxi5_67`,fadeInLeft:`_fadeInLeft_1rxi5_1`,messageGuest:`_messageGuest_1rxi5_78`,messageGuestFirst:`_messageGuestFirst_1rxi5_84`,messageGuestLast:`_messageGuestLast_1rxi5_90`,botAvatar:`_botAvatar_1rxi5_104`,agentAvatar:`_agentAvatar_1rxi5_108`,bubble:`_bubble_1rxi5_112`,bubbleContent:`_bubbleContent_1rxi5_118`,bubbleLeft:`_bubbleLeft_1rxi5_132`,leftText:`_leftText_1rxi5_143`,bubbleRight:`_bubbleRight_1rxi5_150`,rightText:`_rightText_1rxi5_160`,sourceInfoReference:`_sourceInfoReference_1rxi5_192`,sourceInfoReferenceActive:`_sourceInfoReferenceActive_1rxi5_204`},Ac=(e,t)=>{(0,x.useEffect)(()=>{let n=n=>{e.current&&!e.current.contains(n.target)&&t()};return document.addEventListener(`mousedown`,n),()=>document.removeEventListener(`mousedown`,n)},[e,t])};function jc(e,t){let n=null,r=null,i=(...i)=>{r=i,n&&clearTimeout(n),n=setTimeout(()=>{e(...r),n=null,r=null},t)};return i.flush=()=>{n&&r&&(clearTimeout(n),e(...r),n=null,r=null)},i}function Mc(e,t){let n=0,r=null;return((...i)=>{let a=Date.now(),o=a-n;o>=t?(n=a,e(...i)):(r&&clearTimeout(r),r=setTimeout(()=>{n=Date.now(),e(...i)},t-o))})}var Nc={container:`_container_131ib_1`,categoryContainer:`_categoryContainer_131ib_13`,categoryButton:`_categoryButton_131ib_20`,active:`_active_131ib_35`,commentTextarea:`_commentTextarea_131ib_44`},Pc=(e,t,n)=>{(0,x.useEffect)(()=>{if(e){let e=()=>{let e=[`button:not([disabled])`,`textarea:not([disabled])`,`[tabindex]:not([tabindex="-1"])`,`a[href]`,`input:not([disabled])`,`select:not([disabled])`].join(`,`),r=t.current?Array.from(t.current.querySelectorAll(e)):[],i=n.current?Array.from(n.current.querySelectorAll(e)):[];return[...r,...i]},r=t=>{if(t.key===`Tab`){let n=e();if(n.length>0){let e=n[0],r=n[n.length-1],i=document.activeElement;!t.shiftKey&&i===r?(t.preventDefault(),e.focus()):t.shiftKey&&i===e&&(t.preventDefault(),r.focus())}}};return document.addEventListener(`keydown`,r,!0),()=>{document.removeEventListener(`keydown`,r,!0)}}},[e,t,n])},Fc=({open:e,actionsRef:t,reaction:n,onReaction:r})=>{let i=z(),a=(0,x.useRef)(null),o=jc(e=>{r({...n,comment:e})},300);(0,x.useEffect)(()=>()=>o.flush(),[o]),Pc(e,t,a);let s=e=>{r({...n,category:n.category===e?void 0:e})},c=e=>o(e.target.value);return e?(0,X.jsxs)(`div`,{ref:a,className:Nc.container,role:`dialog`,"aria-modal":`true`,"aria-labelledby":`bad-reaction-title`,children:[(0,X.jsx)(`h2`,{id:`bad-reaction-title`,children:i(`bot-bubble.reaction.say-more`)}),(0,X.jsx)(`div`,{className:Nc.categoryContainer,role:`radiogroup`,children:[`WRONG_INFORMATION`,`MISSING_INFORMATION`,`OLD_INFORMATION`,`UNCLEAR`,`OFF_TOPIC`].map(e=>(0,X.jsx)(`button`,{className:R(Nc.categoryButton,n?.category===e&&Nc.active),onClick:()=>s(e),"aria-pressed":n?.category===e,"aria-label":i(`bot-bubble.reaction.category.${e}`),tabIndex:0,role:`radio`,children:i(`bot-bubble.reaction.category.${e}`)},e))}),(0,X.jsx)(`textarea`,{id:`comment`,name:`comment`,placeholder:i(`bot-bubble.reaction.comment`),defaultValue:n?.comment,onChange:c,className:Nc.commentTextarea,rows:3,"aria-label":i(`bot-bubble.reaction.comment`)})]}):null},Ic={botMessageActionContainer:`_botMessageActionContainer_g6hpe_1`,alwaysVisible:`_alwaysVisible_g6hpe_15`,active:`_active_g6hpe_19`,botMessageActionInnerContainer:`_botMessageActionInnerContainer_g6hpe_27`,header:`_header_g6hpe_52`,botMessageActions:`_botMessageActions_g6hpe_57`,reported:`_reported_g6hpe_68`,action:`_action_g6hpe_72`,anyReport:`_anyReport_g6hpe_120`,closeButton:`_closeButton_g6hpe_136`},Lc=({isSubmitting:e,onClick:t})=>{let n=z();return(0,X.jsx)(`button`,{className:R(Ic.action,Ic.closeButton,`tooltip--bottom-left`),"aria-label":n(`bot-bubble.reaction.close`),"data-title":n(`bot-bubble.reaction.close`),tabIndex:0,onClick:t,children:(0,X.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,fill:`currentColor`,viewBox:`0 0 256 256`,children:e?(0,X.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`}):(0,X.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`})})})},Rc=({alwaysVisible:e,senderType:t,reaction:n,botMessageRef:r,message:i,onReaction:a})=>{let o=z(),[s,c]=(0,x.useState)(!1),[l,u]=(0,x.useState)(!1),[d,f]=(0,x.useState)(!1),p=(0,x.useRef)(null),m=(0,x.useRef)(null);Ac(p,()=>{f(!1)});let h=e=>{e.key===`Escape`&&f(!1)};(0,x.useEffect)(()=>(document.addEventListener(`keydown`,h),()=>{document.removeEventListener(`keydown`,h)}),[]),(0,x.useEffect)(()=>{d&&p.current?.scrollIntoView({behavior:`smooth`,block:`nearest`,inline:`nearest`})},[d]);let g=e=>{m.current&&clearTimeout(m.current),u(!0),a(e),m.current=setTimeout(()=>{u(!1)},1e3)},_=(0,x.useCallback)(async()=>{if(r.current)try{c(!0);let e=r.current.innerHTML,t=r.current.innerText;await navigator.clipboard.write([new ClipboardItem({"text/html":new Blob([e],{type:`text/html`}),"text/plain":new Blob([t],{type:`text/plain`})})]),await new Promise(e=>setTimeout(e,1500))}finally{c(!1)}},[r]),v=()=>{f(!1),a(n?.type===`GOOD`?null:{type:`GOOD`})},y=()=>{a({...i.reaction,type:`BAD`}),f(!d)},b=e=>t=>{(t.key===`Enter`||t.key===` `)&&e()};return(0,X.jsx)(`div`,{ref:p,className:R(Ic.botMessageActionContainer,e&&Ic.alwaysVisible,d&&Ic.active),"aria-hidden":`true`,children:(0,X.jsxs)(`div`,{className:R(Ic.botMessageActionInnerContainer,e&&Ic.alwaysVisible,d&&Ic.active,n&&Ic.reported),role:`group`,"aria-label":o(`bot-bubble.actions.label`),children:[(0,X.jsxs)(`div`,{className:Ic.header,children:[(0,X.jsxs)(`div`,{className:R(Ic.botMessageActions,n&&Ic.reported),children:[t===ra.BOT&&(0,X.jsx)(`button`,{className:R(Ic.action,n?.type&&Ic.anyReport,n?.type===`GOOD`&&Ic.reported,`tooltip--top-right`),tabIndex:0,"aria-label":o(n?.type===`GOOD`?`bot-bubble.reaction.remove`:`bot-bubble.reaction.good`),"aria-pressed":n?.type===`GOOD`,"data-title":o(n?.type===`GOOD`?`bot-bubble.reaction.remove`:`bot-bubble.reaction.good`),onPointerDown:v,onKeyDown:b(v),children:(0,X.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,fill:`currentColor`,viewBox:`0 0 256 256`,children:n?.type===`GOOD`?(0,X.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`}):(0,X.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`})})}),t===ra.BOT&&(0,X.jsx)(`button`,{className:R(Ic.action,n?.type&&Ic.anyReport,n?.type===`BAD`&&Ic.reported,`tooltip--top-right`),tabIndex:0,"aria-label":o(`bot-bubble.reaction.bad`),"aria-pressed":n?.type===`BAD`,"data-title":o(`bot-bubble.reaction.bad`),onPointerDown:y,onKeyDown:b(y),children:(0,X.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,fill:`currentColor`,viewBox:`0 0 256 256`,children:n?.type===`BAD`?(0,X.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`}):(0,X.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`})})}),(0,X.jsx)(`button`,{className:R(Ic.action,`tooltip--top-right`),style:{visibility:d?`hidden`:`visible`},tabIndex:0,"aria-label":o(`bot-bubble.copy`),"data-title":o(`bot-bubble.copy`),onClick:_,children:(0,X.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,fill:`currentColor`,viewBox:`0 0 256 256`,children:s?(0,X.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`}):(0,X.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`})})})]}),d&&(0,X.jsx)(Lc,{isSubmitting:l,onClick:()=>f(!1)})]}),i.reaction&&(0,X.jsx)(Fc,{open:d,actionsRef:p,reaction:i.reaction,onReaction:g})]})})},zc=(0,x.forwardRef)(({message:e,isAnimated:t,isLastMessage:n,isFirstMessageBySender:r,isLastMessageBySender:i,children:a,onReaction:o},s)=>{let c=z(),l=(0,x.useRef)(null),u=e.sender.type===ot.BOT;return(0,X.jsxs)(`li`,{ref:s,className:R(Z.message,Z.messageBot,n&&Z.lastMessage,r&&Z.messageBotFirst,i&&Z.messageBotLast,`chat__bubbleContainer`,t&&Z.messageBotAnimated,t&&`chat__bubbleContainer--animated`,u?`chat__botBubbleContainer`:`chat__agentBubbleContainer`,r&&`chat__bubbleContainer--first`,i&&`chat__bubbleContainer--last`),role:`article`,children:[(0,X.jsx)(`img`,{className:R(Z.avatar,u?Z.botAvatar:Z.agentAvatar,`chat__avatar`,u?`chat__botAvatar`:`chat__agentAvatar`),src:`${e.sender.avatar}`,alt:u?`Bot`:`Agent`,referrerPolicy:`no-referrer`,"aria-hidden":`true`}),(0,X.jsxs)(`div`,{className:Z.messageContainer,children:[(0,X.jsx)(`div`,{ref:l,className:R(Z.bubble,Z.bubbleLeft,`chat__bubble`,u?`chat__botBubble`:`chat__agentBubble`),tabIndex:0,role:`group`,"aria-label":c(u?`bot-bubble.label`:`agent-bubble.label`),children:(0,X.jsx)(`div`,{className:R(Z.leftText),children:a})}),o&&(0,X.jsx)(Rc,{alwaysVisible:n&&i,senderType:e.sender.type,reaction:e.reaction,message:e,botMessageRef:l,onReaction:o})]})]})}),Bc={sourceList:`_sourceList_1sc0q_1`,source:`_source_1sc0q_1`,label:`_label_1sc0q_39`},Vc=e=>(0,X.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,fill:`currentColor`,viewBox:`0 0 256 256`,...e,children:(0,X.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`})}),Hc=e=>(0,X.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,fill:`currentColor`,viewBox:`0 0 256 256`,...e,children:(0,X.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`})}),Uc=e=>(0,X.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,fill:`currentColor`,viewBox:`0 0 256 256`,...e,children:(0,X.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`})}),Wc=e=>(0,X.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,fill:`currentColor`,viewBox:`0 0 256 256`,...e,children:(0,X.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`})}),Gc=({type:e,...t})=>{switch(e){case`WEBSITE`:return(0,X.jsx)(Wc,{...t});case`PDF`:return(0,X.jsx)(Uc,{...t});case`DOCX`:return(0,X.jsx)(Vc,{...t});default:return(0,X.jsx)(Hc,{...t})}},Kc=({sources:e,onLinkClick:t})=>{let n=z(),r=e=>()=>{t(e.url)},i=e=>n=>{(n.key===`Enter`||n.key===` `)&&t(e.url)};return e.length?(0,X.jsx)(`ul`,{className:Bc.sourceList,"aria-label":n(`bot-bubble.sources`),children:e.map(e=>(0,X.jsx)(`li`,{className:Bc.source,children:(0,X.jsxs)(`a`,{role:`button`,tabIndex:0,"aria-label":`${n(`bot-bubble.source.open`)}: ${e.label}`,onClick:r(e),onKeyDown:i(e),children:[(0,X.jsx)(Gc,{type:e.type,"aria-hidden":`true`}),(0,X.jsx)(`div`,{className:Bc.label,children:e.label})]})},e.url))}):null},qc={button:`_button_3ui4g_1`,buttonDefault:`_buttonDefault_3ui4g_13`,buttonPrimary:`_buttonPrimary_3ui4g_28`},Jc=({className:e,children:t,...n})=>(0,X.jsx)(`button`,{className:R(qc.button,e),type:`button`,role:`button`,...n,children:t}),Yc={title:`_title_137pi_1`,buttons:`_buttons_137pi_6`,button:`_button_137pi_6`,imageContainer:`_imageContainer_137pi_29`,image:`_image_137pi_29`,video_container:`_video_container_137pi_44`,video:`_video_137pi_44`,only:`_only_137pi_58`},Xc=({buttons:e,onButtonClick:t})=>(0,X.jsx)(`div`,{className:R(Yc.buttons,`chat__bubbleButtons`),children:e.map((e,n)=>(0,X.jsx)(Jc,{className:R(Yc.button,`chat__bubbleButton`),onClick:()=>t(e),children:e.title},n))}),Zc=`newtab#`,Qc=({markdown:e,markdownOptions:t={},onLinkClick:n})=>{let r=e=>t=>(t.preventDefault(),e&&n(e),!1),i=({title:e,href:t,children:n})=>t.indexOf(Zc)===0?(0,X.jsx)(`a`,{href:t.slice(7),title:e,target:`_blank`,rel:`noopener noreferrer`,children:n}):(0,X.jsx)(`a`,{onClick:r(t),title:e,href:t,children:n});return(0,X.jsx)(xc,{options:{...t,overrides:{a:i}},children:e})},$c=({text:e,onLinkClick:t})=>e?(0,X.jsx)(`div`,{children:(0,X.jsx)(Qc,{markdown:e,onLinkClick:t})}):null,el=({title:e})=>e?(0,X.jsx)(`h1`,{className:Yc.title,children:e}):null,tl=({title:e,text:t,buttons:n,onButtonClick:r,onLinkClick:i})=>e?.length||t?.length||n?.length?(0,X.jsxs)(`div`,{className:R(Z.bubbleContent),children:[(0,X.jsx)(el,{title:e}),(0,X.jsx)($c,{text:t,onLinkClick:i}),(0,X.jsx)(Xc,{buttons:n,onButtonClick:r})]}):null,nl=({alt:e,imageUrl:t,itemUrl:n,hasBody:r})=>t?n?n.indexOf(`youtube.com`)>-1?(0,X.jsx)(`div`,{className:Yc.video_container,children:(0,X.jsx)(`iframe`,{className:R(Yc.video,{[Yc.only]:!r}),title:`Youtube`,width:`100%`,src:n+`?rel=0`,frameBorder:`0`,allowFullScreen:!0})}):(0,X.jsx)(`a`,{href:n,target:`_blank`,rel:`noopener noreferrer`,children:(0,X.jsx)(`div`,{className:Yc.imageContainer,children:(0,X.jsx)(`img`,{className:R(Yc.image,{[Yc.only]:!r}),src:t,alt:e})})}):(0,X.jsx)(`div`,{className:Yc.imageContainer,children:(0,X.jsx)(`img`,{className:R(Yc.image,{[Yc.only]:!r}),src:t,alt:e})}):null,rl=({title:e,text:t,imageUrl:n,itemUrl:r,buttons:i,sources:a,onButtonClick:o,onLinkClick:s})=>{let c=!!e?.length||!!t?.length||!!i?.length;return(0,X.jsxs)(`div`,{className:R(Yc.detailMessage),children:[(0,X.jsx)(nl,{hasBody:c,imageUrl:n,itemUrl:r,alt:e||``}),c&&(0,X.jsx)(tl,{title:e,text:t,buttons:i,onLinkClick:s,onButtonClick:o}),(0,X.jsx)(Kc,{sources:a,onLinkClick:s})]})},il=(0,x.forwardRef)(({isFirstMessageBySender:e,isLastMessageBySender:t,children:n},r)=>{let i=z();return(0,X.jsx)(`li`,{ref:r,className:R(Z.message,Z.messageGuest,e&&Z.messageGuestFirst,t&&Z.messageGuestLast,`chat__bubbleContainer`,`chat__guestBubbleContainer`,e&&`chat__bubbleContainer--first`,t&&`chat__bubbleContainer--last`),role:`article`,children:(0,X.jsx)(`div`,{className:R(Z.bubble,Z.bubbleRight,`chat__bubble`,`chat__guestBubble`),tabIndex:0,role:`group`,"aria-label":i(`guest-bubble.label`),children:(0,X.jsx)(`div`,{className:R(Z.rightText),children:n})})})}),al=()=>(0,x.useMemo)(()=>$t(),[]),ol={markdown:`_markdown_nw7vg_1`},sl=`source-info-reference`,cl=({actionId:e,markdown:t,sources:n,onLinkClick:r})=>{let i=al(),a=ea(),o=ll(),s=ta(e=>{let t=e.chat.sourceInfos;if(t?.type===`loaded`||t?.type===`loading`)return t.chunkId}),c=t=>n=>{let r=n.key;(r===`ArrowDown`||r===`ArrowRight`||r===`Enter`||r===` `||r===`Space`)&&(n.stopPropagation(),a(Ni(i,e,t)))},l=t=>()=>{a(Ni(i,e,t))};return(0,x.useLayoutEffect)(()=>{document.querySelectorAll(`.${sl}`).forEach(e=>{let t=e.previousSibling;t&&t.nodeType===Node.TEXT_NODE&&t.textContent?.endsWith(` `)&&t.textContent?.trim().length&&e.classList.add(`${sl}--before-space`);let n=e.nextSibling;n&&n.nodeType===Node.TEXT_NODE&&n.textContent?.startsWith(` `)&&n.textContent?.trim().length&&e.classList.add(`${sl}--after-space`)})},[t]),(0,X.jsxs)(`div`,{className:Z.bubbleContent,children:[(0,X.jsx)(`div`,{className:ol.markdown,children:(0,X.jsx)(Qc,{markdown:t,onLinkClick:r,markdownOptions:{renderRule(e,t,n,r){if(t.type===q.footnoteReference){let e=t.text===s;return(0,X.jsx)(`span`,{className:R(Z.sourceInfoReference,e&&Z.sourceInfoReferenceActive,sl),children:(0,X.jsx)(`a`,{type:`button`,tabIndex:0,onClick:l(t.text),onKeyDown:c(t.text),children:o(t.text)})},r.key)}return e()}}})}),(0,X.jsx)(Kc,{sources:n,onLinkClick:r})]})},ll=()=>{let e=[];return t=>{let n=e.indexOf(t);return n>-1?n+1:(e.push(t),e.length)}},ul={text:`_text_gp0s0_1`,command:`_command_gp0s0_5`},dl=({text:e,commands:t=[]})=>{let n=t.find(t=>e.startsWith(`/${t}`)),r=n?e.slice(n.length+1):e;return(0,X.jsxs)(`div`,{children:[n&&(0,X.jsxs)(`code`,{className:ul.command,children:[`/`,n]}),r.split(`
|
|
61
|
+
`).map((e,t)=>(0,X.jsxs)(`span`,{className:ul.text,children:[e,(0,X.jsx)(`br`,{})]},t))]})},fl=({text:e,commands:t,sources:n,onLinkClick:r})=>(0,X.jsxs)(`div`,{className:Z.bubbleContent,children:[(0,X.jsx)(dl,{text:e,commands:t}),(0,X.jsx)(Kc,{sources:n,onLinkClick:r})]}),pl=(0,x.forwardRef)(({message:e,commands:t,isLastMessage:n,isFirstMessageBySender:r,isLastMessageBySender:i,onReaction:a,onButtonClick:o,onLinkClick:s},c)=>{let l=ml(e._id,e,t,o,s),u=t=>{a(e._id,t)};switch(e.sender.type){case ot.GUEST:return(0,X.jsx)(il,{ref:c,isFirstMessageBySender:r,isLastMessageBySender:i,children:l});default:return(0,X.jsx)(zc,{ref:c,message:e,isAnimated:!1,isLastMessage:n,isFirstMessageBySender:r,isLastMessageBySender:i,onReaction:u,children:l})}}),ml=(e,t,n,r,i)=>{switch(t.type){case ct.TEXT:return(0,X.jsx)(fl,{text:t.text,commands:n,sources:t.sources||[],onLinkClick:i});case ct.DETAIL:{let e=t;return(0,X.jsx)(rl,{title:e.title,text:e.text,imageUrl:e.imageUrl,itemUrl:e.itemUrl,buttons:e.buttons,sources:t.sources||[],onButtonClick:r,onLinkClick:i})}case ct.MARKDOWN:{let n=t;return(0,X.jsx)(cl,{actionId:e,markdown:n.markdown,sources:n.sources||[],onLinkClick:i})}}},hl=x.memo(pl,(e,t)=>e.message._id===t.message._id&&e.message.reaction===t.message.reaction&&e.isLastMessage===t.isLastMessage&&e.isFirstMessageBySender===t.isFirstMessageBySender&&e.isLastMessageBySender===t.isLastMessageBySender),gl={ticontainer:`_ticontainer_xg0dn_1`,tiblock:`_tiblock_xg0dn_5`,tidot:`_tidot_xg0dn_12`,mercuryTypingAnimation:`_mercuryTypingAnimation_xg0dn_1`},_l=({isTyping:e=!1})=>(0,X.jsx)(`div`,{className:gl.ticontainer,children:(0,X.jsx)(`div`,{className:gl.tiblock,children:e?(0,X.jsxs)(X.Fragment,{children:[(0,X.jsx)(`div`,{className:R(gl.tidot,`chat__typingIndicator`),"aria-hidden":`true`}),(0,X.jsx)(`div`,{className:R(gl.tidot,`chat__typingIndicator`),"aria-hidden":`true`}),(0,X.jsx)(`div`,{className:R(gl.tidot,`chat__typingIndicator`),"aria-hidden":`true`})]}):null})}),vl=Object.assign({_id:`typing-indicator`},new pt(``,new ut)),yl=({messages:e,isBotTyping:t,commands:n,onTranscriptItemReaction:r,onButtonClick:i,onLinkClick:a})=>{let o=z(),s=(0,x.useRef)(0),c=(0,x.useRef)(!0),l=(0,x.useRef)(null),u=(0,x.useRef)(null),d=(0,x.useRef)(null),f=ta(e=>e.settings.enableGeneralConditions);(0,x.useLayoutEffect)(()=>{if(e.length&&l.current&&(s.current<e.length||t)){if(u.current){let e=u.current.offsetTop;l.current.scrollTop=e}else if(d.current){let e=d.current.offsetTop;l.current.scrollTop=e}c.current&&=!1,s.current=e.length}},[e,c,t]);let p,m=e.length;return(0,X.jsxs)(`div`,{ref:l,className:R(aa.messageContainer,`chat__messageContainer`),style:{scrollBehavior:e.length&&c.current?`auto`:`smooth`},id:`MessageContainer`,"aria-label":o(`conversation.label`),children:[f&&(0,X.jsx)(kc,{}),(0,X.jsxs)(`ul`,{className:aa.messages,role:`list`,children:[e.map((o,s)=>{let c=bl(o,p),l=xl(o,s,e,t);p=o.sender.type;let u=s+1===m,f=o._id||`added-${s}`;return(0,X.jsx)(hl,{ref:u?d:null,message:o,commands:n,isLastMessage:u,isFirstMessageBySender:c,isLastMessageBySender:l,onButtonClick:i,onLinkClick:a,onReaction:r},f)}),t&&(0,X.jsx)(zc,{ref:u,message:vl,isLastMessage:!1,isAnimated:!0,isFirstMessageBySender:p!==ot.BOT,isLastMessageBySender:!0,children:(0,X.jsx)(_l,{isTyping:!0})},`last`)]})]})},bl=(e,t)=>!t||t!==e.sender.type,xl=(e,t,n,r)=>{let i=e.sender.type,a=n.length;return t+1===a?!(i===ot.BOT&&r):i!==n.at(t+1)?.sender.type},Sl=`_bottomSheet_jp8dl_1`,Cl=`_bottomSheetOpen_jp8dl_15`,wl=`_bottomSheetClose_jp8dl_20`,Tl={bottomSheet:Sl,bottomSheetOpen:Cl,"slide-in":`_slide-in_jp8dl_1`,bottomSheetClose:wl,"slide-out":`_slide-out_jp8dl_1`},El={container:`_container_xc2nx_1`},Dl=({contentUrl:e})=>{let t=ta(e=>e.connection.sessionId),[n,r]=(0,x.useState)(!1);(0,x.useEffect)(()=>{r(t=>t||!!e)},[e]);let i=(0,x.useMemo)(()=>{if(e&&t){let n=new URL(e,document.baseURI);return n.searchParams.set(`sessionId`,t),n.toString()}else return},[e,t]);return(0,X.jsx)(`div`,{className:R(El.container,Tl.bottomSheet,{[Tl.bottomSheetOpen]:!!e,[Tl.bottomSheetClose]:n&&!e}),children:i&&(0,X.jsx)(`iframe`,{title:`Drawer`,id:`form-drawer`,src:i,className:El.iframe})})},Ol={container:`_container_1634s_1`},kl=({title:e,href:t,children:n})=>(0,X.jsx)(`a`,{href:t,title:e,target:`_blank`,rel:`noopener noreferrer`,children:n}),Al=()=>{let e=z()(`powered-by`);return e&&e.length?(0,X.jsx)(`div`,{className:R(Ol.container,`chat__poweredBy`),children:(0,X.jsx)(xc,{options:{overrides:{a:kl}},children:e})}):null},jl=(e,t)=>{let n=new Map,r=0;return e.replace(/^#{1,6}\s+/gm,``).replace(/(\*\*|__)(.*?)\1/g,`$2`).replace(/(\*|_)(.*?)\1/g,`$2`).replace(/\[([^\]]+)\]\([^)]+\)/g,`$1`).replace(/\[\^([^\]]+)\]/g,(e,i)=>(n.has(i)||n.set(i,++r),`(${t} ${n.get(i)})`)).replace(/`([^`]+)`/g,`$1`).replace(/```[\s\S]*?```/g,``).replace(/^>\s+/gm,``).replace(/^(-{3,}|_{3,}|\*{3,})$/gm,``).replace(/^[\s]*[-*+]\s+/gm,``).replace(/^[\s]*\d+\.\s+/gm,``).replace(/\n{3,}/g,`
|
|
62
|
+
|
|
63
|
+
`).trim()},Ml=({messages:e,isBotTyping:t})=>{let n=(0,x.useRef)(``),r=z(),i=r(`bot-bubble.footnote`),a=e=>{switch(e.type){case`TEXT`:return e.text||``;case`MARKDOWN`:return jl(e.markdown||``,i);case`DETAIL`:return e.text||e.title||``;default:return``}},o=(()=>{if(t)return r(`chatbot.typing`)??`Chatbot is typing`;let n=[...e].reverse().find(e=>e.sender.type===ra.BOT);return n?a(n):``})();return(0,x.useEffect)(()=>{o!==n.current&&(n.current=o)},[o]),(0,X.jsx)(`div`,{role:`status`,"aria-live":`polite`,"aria-atomic":`true`,className:`sr-only`,children:o})},Nl=({className:e,children:t,...n})=>(0,X.jsx)(Jc,{className:R(qc.buttonDefault,e),type:`button`,...n,children:t}),Pl=({className:e,children:t,...n})=>(0,X.jsx)(Jc,{className:R(qc.buttonPrimary,e),...n,children:t}),Q={container:`_container_h23mk_1`,formContainer:`_formContainer_h23mk_17`,emailInput:`_emailInput_h23mk_22`,description:`_description_h23mk_52`,actions:`_actions_h23mk_57`,validationError:`_validationError_h23mk_67`,submitted:`_submitted_h23mk_74`},Fl=({visible:e,onEmailExport:t,onClose:n})=>{let r=z(),[i,a]=(0,x.useState)(void 0),[o,s]=(0,x.useState)(!1),[c,l]=(0,x.useState)(void 0),u=(0,x.useRef)(null);(0,x.useEffect)(()=>{e?(u.current?.focus(),s(!1),a(e)):i===!0&&a(!1)},[e,i]);let d=e=>{e.preventDefault(),c&&c.length>0&&(t(c),s(!0),setTimeout(n,3*1e3))},f=e=>{let t=e.target.value.trim();l(/^\w+([.-]?\w+)*@\w+([.-]?\w+)*(\.\w{2,3})+$/.test(t)?t:``)};return(0,X.jsxs)(`div`,{className:R(Q.container,Tl.bottomSheet,{[Tl.bottomSheetOpen]:i===!0,[Tl.bottomSheetClose]:i===!1}),children:[(0,X.jsx)(`h2`,{children:r(`export-transcript.email.title`)}),(0,X.jsx)(xc,{className:Q.description,children:r(`export-transcript.email.description`)||``}),(0,X.jsxs)(`form`,{onSubmit:d,className:Q.formContainer,children:[(0,X.jsxs)(`div`,{children:[(0,X.jsx)(`input`,{disabled:o,ref:u,type:`email`,placeholder:r(`export-transcript.email.placeholder`),className:Q.emailInput,onChange:f}),c?.length===0?(0,X.jsx)(`div`,{className:Q.validationError,children:r(`export-transcript.email.invalid`)}):null]}),(0,X.jsxs)(`div`,{className:Q.actions,children:[(0,X.jsx)(Nl,{onClick:n,children:r(`export-transcript.email.cancel`)}),(0,X.jsx)(Pl,{type:`submit`,disabled:o||c===void 0||c.length===0,children:r(`export-transcript.email.send`)})]})]}),o&&(0,X.jsx)(`div`,{className:Q.submitted,children:r(`export-transcript.email.success`)})]})},Il={inputContainer:`_inputContainer_fi5ao_1`},Ll={blockUserInput:`_blockUserInput_pot9c_1`,"append-animate":`_append-animate_pot9c_1`},Rl=({visible:e})=>{let t=z();return e?(0,X.jsx)(`div`,{className:R(Ll.blockUserInput,`chat__blockUserInput`),children:t(`block-user-input.title`)}):null},zl={commandsDropdown:`_commandsDropdown_fmklx_1`,commands:`_commands_fmklx_1`,command:`_command_fmklx_1`,commandActive:`_commandActive_fmklx_49`},Bl=(e,t,n,r,i)=>{(0,x.useEffect)(()=>{let a=a=>{if(e.length)switch(a.key){case`Enter`:n(e[t]);break;case`ArrowUp`:r(t=>t>0?t-1:e.length-1);break;case`ArrowDown`:r(t=>t<e.length-1?t+1:0);break;case`Escape`:i([]);break;default:break}};return document.addEventListener(`keydown`,a),()=>{document.removeEventListener(`keydown`,a)}},[e,t,n,r,i])},Vl=({text:e,commands:t,onSelectCommand:n,onVisibilityChange:r})=>{let i=(0,x.useRef)(null),a=z(),[o,s]=(0,x.useState)([]),[c,l]=(0,x.useState)(Hl(t)),[u,d]=(0,x.useState)(0),f=e=>n(`/${e}`);return Ac(i,()=>s([])),Bl(o,u,f,d,s),(0,x.useEffect)(()=>{l(Hl(t))},[t]),(0,x.useEffect)(()=>{let n=e.length||0;n===0||n>c||!e.startsWith(`/`)?s([]):s(t.filter(Ul(e))),d(0)},[t,e,c]),(0,x.useEffect)(()=>{r(!!o.length)},[o,r]),o.length?(0,X.jsx)(`div`,{ref:i,className:zl.commandsDropdown,children:(0,X.jsx)(`ul`,{id:`command-list`,className:zl.commands,role:`listbox`,children:o.map((e,t)=>(0,X.jsxs)(`li`,{className:R([zl.command,u===t&&zl.commandActive]),role:`option`,onClick:()=>f(e),onMouseOver:()=>d(t),children:[(0,X.jsxs)(`h1`,{children:[`/`,e]}),(0,X.jsx)(`p`,{children:a(`commands.${e}`)})]},e))})}):null},Hl=e=>Math.max(...e.map(e=>e.length+1)),Ul=e=>t=>{let n=`/${t}`;return n.startsWith(e)&&n.length>=e.length},Wl=`_callToActionContainer_d8izj_1`,Gl=`_callToActionTitle_d8izj_23`,Kl=`_rateOverlay_d8izj_30`,ql=`_body_d8izj_52`,Jl=`_footer_d8izj_60`,Yl=`_actions_d8izj_75`,Xl=`_bubbles_d8izj_89`,Zl=`_rateFeedbackBotBubble_d8izj_118`,Ql=`_rateFeedbackGuestBubble_d8izj_124`,$l=`_avatar_d8izj_130`,eu=`_fadeInLeft_d8izj_1`,tu=`_bubble_d8izj_89`,nu=`_appear_d8izj_1`,ru=`_botBubble_d8izj_156`,iu=`_guestBubble_d8izj_167`,au=`_rateText_d8izj_186`,ou=`_stars_d8izj_191`,su=`_starsSmall_d8izj_205`,cu=`_starsLarge_d8izj_211`,lu=`_star_d8izj_191`,uu=`_starReadonly_d8izj_225`,du=`_starIcon_d8izj_235`,fu=`_starsDescriptionContainer_d8izj_253`,pu=`_starsDescription_d8izj_253`,mu={callToActionContainer:Wl,"append-animate":`_append-animate_d8izj_1`,callToActionTitle:Gl,rateOverlay:Kl,body:ql,footer:Jl,actions:Yl,bubbles:Xl,rateFeedbackBotBubble:Zl,rateFeedbackGuestBubble:Ql,avatar:$l,fadeInLeft:eu,bubble:tu,appear:nu,botBubble:ru,guestBubble:iu,rateText:au,stars:ou,starsSmall:su,starsLarge:cu,star:lu,starReadonly:uu,starIcon:du,starsDescriptionContainer:fu,starsDescription:pu},hu=({value:e,index:t,count:n,readonly:r,onHover:i,onClick:a})=>{let o=e=>{a&&e.key===`Enter`&&a()};return(0,X.jsx)(`li`,{className:R(mu.star,{[mu.starReadonly]:r},`chat__conversationRating__star`),children:(0,X.jsx)(`div`,{role:`radio`,"aria-checked":e>t?`true`:`false`,"aria-posinset":t+1,"aria-setsize":n,tabIndex:0,onMouseOver:i,onKeyDown:o,onClick:a,children:(0,X.jsx)(`span`,{role:`img`,"aria-label":`Star`,className:R(mu.starIcon),children:(0,X.jsx)(`svg`,{viewBox:`64 64 896 896`,focusable:`false`,"data-icon":`star`,width:`1em`,height:`1em`,fill:`currentColor`,"aria-hidden":`true`,children:(0,X.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`})})})})})},gu=5,_u=({value:e,size:t,readonly:n=!1,onChange:r})=>{let[i,a]=(0,x.useState)(void 0),o=()=>{a(void 0)},s=e=>()=>{n||a(e+1)},c=t=>()=>{r&&!n&&(r(t===0&&e===1?0:t+1),a(void 0))};return(0,X.jsx)(`ul`,{tabIndex:0,role:`radiogroup`,className:R(mu.stars,{[mu.starsSmall]:t===`small`,[mu.starsLarge]:t===`large`},`chat__conversationRating__stars`,{chat__conversationRating__stars__small:t===`small`,chat__conversationRating__stars__large:t===`large`}),onMouseOut:o,children:Array(gu).fill(0).map((t,r)=>(0,X.jsx)(hu,{value:i===void 0?e:i,index:r,count:gu,readonly:n,onHover:s(r),onClick:c(r)},r))})},vu=({visible:e,onRate:t})=>{let n=z();return e?(0,X.jsxs)(`div`,{className:R(mu.callToActionContainer,`chat__conversationRating__callToAction`),children:[(0,X.jsx)(`div`,{className:R(mu.callToActionTitle,`chat__conversationRating__callToAction__title`),children:n(`conversation-rating.call-to-action.title`)}),(0,X.jsx)(_u,{value:0,size:`small`,onChange:t})]}):null},yu=({isFirstMessageBySender:e,isLastMessageBySender:t,children:n})=>(0,X.jsxs)(`div`,{className:R(Z.message,Z.messageBot,e&&Z.messageBotFirst,t&&Z.messageBotLast,`chat__bubbleContainer`,`chat__botBubbleContainer`,e&&`chat__bubbleContainer--first`,t&&`chat__bubbleContainer--last`),children:[(0,X.jsx)(`img`,{className:R(Z.avatar,Z.botAvatar),src:`bot.svg`,alt:`Bot`}),(0,X.jsx)(`div`,{className:R(Z.bubble,Z.bubbleLeft,`chat__bubble`,`chat__botBubble`),children:(0,X.jsx)(`div`,{className:R(Z.leftText,Z.bubbleContent),children:n})})]}),bu=({children:e})=>(0,X.jsx)(`div`,{className:R(Z.message,Z.messageGuest,Z.messageGuestFirst,Z.messageGuestLast,`chat__bubbleContainer`,`chat__guestBubbleContainer`,`chat__bubbleContainer--first`,`chat__bubbleContainer--last`),children:(0,X.jsx)(`div`,{className:R(Z.bubble,Z.bubbleRight,`chat__bubble`,`chat__guestBubble`),children:(0,X.jsx)(`div`,{className:R(Z.rightText,Z.bubbleContent),children:e})})}),xu=()=>{let e=z(),t=ea(),n=ta(e=>e.chat.conversationRating),[r,i]=(0,x.useState)(n.rating?.value||0),[a,o]=(0,x.useState)(void 0),[s,c]=(0,x.useState)(void 0),[l,u]=(0,x.useState)({submitted:!1,feedback:``}),d=(0,x.useRef)(null),[f,p]=(0,x.useState)(!1);(0,x.useEffect)(()=>{n.opener?(u({submitted:!1,feedback:``}),c(!0)):s===!0&&c(!1)},[n.opener,s]),(0,x.useEffect)(()=>{i(n.rating?.value||0)},[n.rating?.value,n.opener]),(0,x.useEffect)(()=>{d.current&&(d.current.value=n.rating?.feedback||``)},[n.rating?.feedback]),(0,x.useEffect)(()=>{let t=r>0?e(`conversation-rating.overlay.bot-message.rate-feedback.value-${r}`):void 0;o(t?.length?t:void 0)},[r,e]),(0,x.useEffect)(()=>{l.submitted?setTimeout(()=>p(!0),l.feedback.length?500:0):p(!1)},[l]);let m=e=>{e.preventDefault();let n=d.current?.value?.trim()||``;t(Ft(r,n)),u({submitted:!0,feedback:n})},h=()=>{n.opener===`CLOSE_CHAT`?t(Oi()):n.opener===`RESTART_CHAT`?t(Qi()):t(Mi())};return(0,X.jsx)(`div`,{className:R(mu.rateOverlay,Tl.bottomSheet,`chat__conversationRating__overlay`,{[Tl.bottomSheetOpen]:s===!0,[Tl.bottomSheetClose]:s===!1}),children:(0,X.jsxs)(`form`,{onSubmit:m,children:[(0,X.jsxs)(`div`,{className:R(mu.body,`chat__conversationRating__overlay__body`),children:[(0,X.jsx)(`div`,{}),(0,X.jsx)(`div`,{className:R(mu.bubbles),children:n.opener&&(0,X.jsxs)(X.Fragment,{children:[(0,X.jsxs)(yu,{isFirstMessageBySender:!0,isLastMessageBySender:!a,children:[(0,X.jsx)(`h2`,{children:e(`conversation-rating.overlay.title`)}),(0,X.jsxs)(`div`,{className:R(mu.starsDescriptionContainer),children:[(0,X.jsx)(_u,{value:r,size:`large`,readonly:l.submitted,onChange:i}),(0,X.jsxs)(`div`,{className:R(mu.starsDescription),children:[(0,X.jsx)(`div`,{children:e(`conversation-rating.overlay.star.very-bad`)}),(0,X.jsx)(`div`,{children:e(`conversation-rating.overlay.star.very-good`)})]})]})]}),a&&(0,X.jsx)(yu,{isFirstMessageBySender:!1,isLastMessageBySender:!f||!!l.feedback.length,children:(0,X.jsx)(`div`,{children:a})}),!!l.feedback.length&&(0,X.jsx)(bu,{children:l.feedback}),f&&(0,X.jsx)(yu,{isFirstMessageBySender:!!l.feedback.length,isLastMessageBySender:!0,children:(0,X.jsx)(`div`,{children:e(`conversation-rating.overlay.bot-message.submit-feedback`)})})]})})]}),(0,X.jsxs)(`div`,{className:R(mu.footer,`chat__conversationRating__overlay__footer`),children:[!l.submitted&&(0,X.jsx)(`input`,{ref:d,defaultValue:n.rating?.feedback||``,placeholder:e(`conversation-rating.overlay.guest-feedback.input-placeholder`)}),(0,X.jsxs)(`div`,{className:R(mu.actions,`chat__conversationRating__overlay__footer__actions`),children:[l.submitted?(0,X.jsx)(Pl,{type:`button`,disabled:!r,onClick:h,children:n.opener===`CLOSE_CHAT`?e(`conversation-rating.overlay.action.close-chat`):n.opener===`RESTART_CHAT`?e(`conversation-rating.overlay.action.restart-chat`):e(`conversation-rating.overlay.action.back-to-chat`)},`close-button`):(0,X.jsx)(Pl,{type:`submit`,disabled:!r,children:e(`conversation-rating.overlay.action.submit`)},`submit-button`),n.opener!==`CHAT`&&!l.submitted&&(0,X.jsx)(Nl,{onClick:h,children:n.opener===`CLOSE_CHAT`?e(`conversation-rating.overlay.action.close-chat`):n.opener===`RESTART_CHAT`?e(`conversation-rating.overlay.action.restart-chat`):e(`conversation-rating.overlay.action.cancel`)})]})]})]})})},Su=(0,x.memo)(({numberOfMessagesFromGuest:e})=>{let t=ea(),n=ta(e=>e.chat.conversationRating),r=e=>{t(ji(`CHAT`,e))},i=!n.rating?.value&&e>=1;return n.enabled?(0,X.jsxs)(X.Fragment,{children:[(0,X.jsx)(vu,{visible:i,onRate:r}),(0,X.jsx)(xu,{})]}):null}),Cu={inputWrapper:`_inputWrapper_18j9q_1`,withOpenCommands:`_withOpenCommands_18j9q_13`,actions:`_actions_18j9q_18`,messageInputWrapper:`_messageInputWrapper_18j9q_53`,messageInput:`_messageInput_18j9q_53`,buttons:`_buttons_18j9q_78`,button:`_button_18j9q_78`},wu={audioRecorder:`_audioRecorder_g845f_1`,audioButton:`_audioButton_g845f_6`,recorderIcon:`_recorderIcon_g845f_37`,pulse:`_pulse_g845f_1`,spinning:`_spinning_g845f_60`,spin:`_spin_g845f_60`},Tu=2048,Eu=16e3,Du=class extends x.Component{audioInput=null;volume=null;leftchannel=[];recorder=null;recordingLength=0;sampleRate=null;mediaStream=null;constructor(e){super(e),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(e){this.mediaStream=e,this.leftchannel.length=0,this.recordingLength=0,this.initRecording(e)}initRecording(e){let t=new(window.AudioContext||window.webkitAudioContext);this.sampleRate=t.sampleRate,this.volume=t.createGain(),this.audioInput=t.createMediaStreamSource(e),this.audioInput.connect(this.volume),this.recorder=t.createScriptProcessor(Tu,1,1),this.recorder.onaudioprocess=this.processRecordingInput,this.volume.connect(this.recorder),this.recorder.connect(t.destination)}processRecordingInput(e){if(this.state.recordingState===`connecting`&&this.setState({recordingState:`recording`}),this.state.recordingState!==`none`){let t=e.inputBuffer.getChannelData(0);this.leftchannel.push(new Float32Array(t)),this.recordingLength+=Tu}}handleClickSubmitAudio(){let e=Ou(ju(Au(this.leftchannel,this.recordingLength),this.sampleRate||0));this.props.onAudioRecorded(e),this.handleClickStopAudio()}handleClickStopAudio(){this.setState({recordingState:`none`}),this.audioInput?.disconnect(),this.volume?.disconnect(),this.recorder?.disconnect(),this.mediaStream&&this.mediaStream?.getAudioTracks().forEach(e=>{e.stop()})}render(){return(0,X.jsxs)(`div`,{className:wu.audioRecorder,children:[this.state.recordingState===`none`&&(0,X.jsx)(`button`,{className:R(wu.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:(0,X.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,children:[(0,X.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`}),(0,X.jsx)(`path`,{d:`M0 0h24v24H0z`,fill:`none`})]})}),this.state.recordingState===`connecting`&&(0,X.jsxs)(`svg`,{className:wu.spinning,xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,children:[(0,X.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`}),(0,X.jsx)(`path`,{d:`M0 0h24v24H0z`,fill:`none`})]}),this.state.recordingState===`recording`&&(0,X.jsxs)(`div`,{className:wu.audioRecorder,children:[(0,X.jsx)(`button`,{className:R(wu.audioButton),onClick:this.handleClickStopAudio,"aria-label":this.props.translate(`message-input.actions.stop-audio-recording.label`),tabIndex:0,children:(0,X.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,children:[(0,X.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`}),(0,X.jsx)(`path`,{d:`M0 0h24v24H0z`,fill:`none`})]})}),(0,X.jsx)(`div`,{className:wu.recorderIcon}),(0,X.jsx)(`button`,{className:R(wu.audioButton),type:`submit`,onClick:this.handleClickSubmitAudio,"aria-label":this.props.translate(`message-input.actions.submit-audio-recording.label`),tabIndex:0,autoFocus:!0,children:(0,X.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,children:[(0,X.jsx)(`path`,{d:`M0 0h24v24H0z`,fill:`none`}),(0,X.jsx)(`path`,{d:`M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z`})]})})]})]})}},Ou=e=>{let t=new ArrayBuffer(44+e.length*2),n=new DataView(t);ku(n,0,`RIFF`),n.setUint32(4,44+e.length*2,!0),ku(n,8,`WAVE`),ku(n,12,`fmt `),n.setUint32(16,16,!0),n.setUint16(20,1,!0),n.setUint16(22,1,!0),n.setUint32(24,Eu,!0),n.setUint32(28,Eu*4,!0),n.setUint16(32,4,!0),n.setUint16(34,16,!0),ku(n,36,`data`),n.setUint32(40,e.length*2,!0);let r=e.length,i=44;for(let t=0;t<r;t++)n.setInt16(i,e[t]*(32767*1),!0),i+=2;return new Blob([n],{type:`audio/wav`})},ku=(e,t,n)=>{for(let r=0;r<n.length;r++)e.setUint8(t+r,n.charCodeAt(r))},Au=(e,t)=>{let n=new Float32Array(t),r=0,i=e.length;for(let t=0;t<i;t++){let i=e[t];n.set(i,r),r+=i.length}return n},ju=(e,t)=>{if(Eu===t)return e;let n=t/Eu,r=Math.round(e.length/n),i=new Float32Array(r),a=0,o=0;for(;a<i.length;){let t=Math.round((a+1)*n),r=0,s=0;for(let n=o;n<t&&n<e.length;n++)r+=e[n],s++;i[a]=r/s,a++,o=t}return i},Mu=({onClick:e})=>{let t=z();return(0,X.jsxs)(`button`,{onClick:e,type:`button`,"aria-label":t(`message-input.actions.command.label`),children:[(0,X.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`32`,height:`32`,fill:`#000000`,viewBox:`0 0 256 256`,children:[(0,X.jsx)(`rect`,{x:`32`,y:`32`,width:`192`,height:`192`,rx:`16`,ry:`16`,fill:`none`,stroke:`currentColor`,"stroke-width":`16`}),(0,X.jsx)(`line`,{x1:`80`,y1:`176`,x2:`176`,y2:`80`,stroke:`currentColor`,"stroke-width":`16`,"stroke-linecap":`round`})]}),(0,X.jsx)(`span`,{children:t(`message-input.actions.command.label`)})]})},Nu=({disabled:e,textInput:t,commandsVisible:n,hasCommands:r,onTextInput:i,onTextInputSubmit:a,onAudioRecorded:o})=>{let s=z(),c=(0,x.useRef)(null),l=(0,x.useRef)(0),{enableSpeechSupport:u}=ta(e=>e.settings),d=e=>{e.style.height=``;let{scrollHeight:t}=e,n=Math.max(l.current,Math.min(t,150));e.style.height=`${n}px`,e.style.overflowY=t>150?`auto`:`hidden`};(0,x.useEffect)(()=>{let e=c.current;e&&(l.current===0&&(l.current=e.scrollHeight),d(e),e.focus())},[t]);let f=()=>{let e=c.current;e&&t.trim().length>=1&&a(t.trim())&&(e.value=``,e.style.height=``,e.focus())},p=e=>{e.preventDefault(),f()},m=e=>{let t=e.target.value;i(t),d(e.target)},h=e=>{e.code===`Enter`&&!e.shiftKey?(e.repeat||f(),e.preventDefault()):n&&(e.code===`ArrowUp`||e.code===`ArrowDown`)&&e.preventDefault()},g=()=>{t.startsWith(`/`)?i(``):i(`/`)};return(0,X.jsxs)(`form`,{className:R(Cu.inputWrapper,n&&Cu.withOpenCommands,`chat__textInput`),onSubmit:p,children:[(0,X.jsxs)(`div`,{className:Cu.messageInputWrapper,children:[(0,X.jsx)(`textarea`,{id:`user_input`,ref:c,className:Cu.messageInput,tabIndex:0,placeholder:s(`message-input-placeholder`),value:t,onChange:m,onKeyDown:h,"aria-label":s(`message-input-label`),"aria-controls":r?`command-list`:void 0,"aria-haspopup":r?`listbox`:void 0}),r&&(0,X.jsx)(`div`,{className:Cu.actions,children:(0,X.jsx)(Mu,{onClick:g})})]}),(0,X.jsx)(`div`,{className:R(Cu.buttons,`chat__buttons`),children:t.length||!u||navigator.mediaDevices===void 0?(0,X.jsx)(`button`,{className:R(Cu.button,`chat__button`),type:`submit`,"aria-label":s(`message-input.actions.submit.label`),"data-title":s(`message-input.actions.submit.label`),tabIndex:0,disabled:e,children:(0,X.jsx)(`svg`,{viewBox:`64 64 896 896`,focusable:`false`,width:`1em`,height:`1em`,fill:`currentColor`,"aria-hidden":`true`,children:(0,X.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`})})}):u&&navigator.mediaDevices!==void 0&&(0,X.jsx)(Du,{translate:s,onAudioRecorded:o})})]})},Pu={quickReplies:`_quickReplies_83npe_1`,quickReply:`_quickReply_83npe_9`},Fu=({quickReplies:e,onQuickReplyClick:t})=>e.length?(0,X.jsx)(`div`,{className:R(Pu.quickReplies,`chat__quickReplies`),children:e.map(e=>(0,X.jsx)(Jc,{tabIndex:0,className:R(Pu.quickReply,`chat__button`,`chat__quickReply`),onClick:()=>t(e),children:e.label},e.label))}):null,Iu=5e3,Lu=1e3,Ru=({isBotTyping:e,quickReplies:t,numberOfMessagesFromGuest:n,commands:r,onTextInput:i,onQuickReplyClick:a,onAudioRecorded:o})=>{let[s,c]=(0,x.useState)(``),[l,u]=(0,x.useState)(!1),[d,f]=(0,x.useState)(!1),p=(0,x.useRef)(0),m=(0,x.useRef)(0);return(0,x.useEffect)(()=>{if(l&&!e){let e=p.current?Date.now()-p.current:0;e>Iu?u(!1):setTimeout(()=>{u(!1)},Iu-e)}},[l,e]),(0,x.useEffect)(()=>{l&&(p.current=Date.now())},[l]),(0,X.jsxs)(`div`,{className:R(Il.inputContainer),children:[(0,X.jsx)(Fu,{quickReplies:t,onQuickReplyClick:a}),(0,X.jsx)(Rl,{visible:l}),!l&&(0,X.jsx)(Su,{numberOfMessagesFromGuest:n}),!!r?.length&&(0,X.jsx)(Vl,{text:s,commands:r,onSelectCommand:e=>{c(e+` `)},onVisibilityChange:f}),(0,X.jsx)(Nu,{textInput:s,disabled:l,commandsVisible:d,hasCommands:!!r?.length,onTextInput:c,onTextInputSubmit:t=>{let n=Date.now()-m.current<Lu;return d?!1:e||n?(u(!0),!1):(i(t),c(``),m.current=Date.now(),!0)},onAudioRecorded:o})]})},zu=Ge(e=>{let{messages:t,quickReplies:n,isBotTyping:r,drawerContentUrl:i}=e.chat;return{messages:t,quickReplies:n,isBotTyping:r,drawerContentUrl:i}},e=>({onRestartChat:()=>e(Qi()),onMessageFromUser:t=>e(gt(t)),onAudioRecorded:t=>e(At(t)),onActionFromUser:t=>e(t),onQuickReplyClick:t=>e(ht(t)),onNluEvent:t=>e(It(t)),onButtonClick:t=>e(Rt(t)),onLinkClick:t=>e(zt(t)),onTranscriptExport:t=>e(Mt(t)),onTranscriptItemReaction:(t,n)=>{e(mt.transcriptItemGuestReaction(t,n?.type||null,n?.category,n?.comment))}}))(({clientName:e,messages:t,quickReplies:n,isBotTyping:r,drawerContentUrl:i,onMessageFromUser:a,onQuickReplyClick:o,onButtonClick:s,onLinkClick:c,onAudioRecorded:l,onTranscriptExport:u,onTranscriptItemReaction:d})=>{let f=ea(),p=ta(e=>e.connection.connectionState),{enableTranscriptExportEmail:m,commands:h}=ta(e=>e.settings),{showTranscriptMailOverlay:g,conversationRating:_}=ta(e=>e.chat),v=t.filter(e=>e.sender.type===ra.GUEST).length;return(0,x.useEffect)(()=>{p===na.CONNECTED&&f(Zi(e))},[e,p,f]),(0,X.jsxs)(`div`,{className:ia.container,children:[(0,X.jsx)(Ml,{messages:t,isBotTyping:r}),(0,X.jsxs)(`div`,{className:R([ia.chatcontent,(g||_?.opener)&&ia.accessabilityHidden]),children:[(0,X.jsx)(yl,{messages:t,isBotTyping:r,commands:h,onButtonClick:s,onLinkClick:c,onTranscriptItemReaction:d}),(0,X.jsx)(Ru,{isBotTyping:r,quickReplies:r?[]:n,numberOfMessagesFromGuest:v,commands:h,onQuickReplyClick:o,onTextInput:a,onAudioRecorded:l}),(0,X.jsx)(Al,{})]}),m&&(0,X.jsx)(Fl,{visible:!!g,onEmailExport:u,onClose:()=>{f(Ai())}}),(0,X.jsx)(Dl,{contentUrl:i})]})}),Bu=()=>(0,x.useMemo)(()=>{try{return window.self!==window.top}catch{return!0}},[]),Vu=e=>t=>{let n=t.key;(n===`ArrowDown`||n===`ArrowRight`||n===`Enter`||n===` `||n===`Space`)&&(t.stopPropagation(),e())},Hu=({onClick:e})=>{let t=z();return Bu()?(0,X.jsx)(`button`,{className:`tooltip--bottom-left`,"aria-label":t(`header.close-chat`),"data-title":t(`header.close-chat`),tabIndex:0,onClick:e,onKeyDown:Vu(e),children:(0,X.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,fill:`currentColor`,viewBox:`0 0 256 256`,children:(0,X.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},Uu={header:`_header_3gvbz_1`,logoContainer:`_logoContainer_3gvbz_14`,logo:`_logo_3gvbz_14`,actions:`_actions_3gvbz_28`,active:`_active_3gvbz_43`,menuContainer:`_menuContainer_3gvbz_56`,menu:`_menu_3gvbz_56`,divider:`_divider_3gvbz_86`},Wu=({icon:e})=>{switch(e){case`arrow-counter-clockwise`:return(0,X.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,fill:`currentColor`,"aria-hidden":`true`,viewBox:`0 0 256 256`,children:(0,X.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(0,X.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,fill:`currentColor`,"aria-hidden":`true`,viewBox:`0 0 256 256`,children:(0,X.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(0,X.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,fill:`currentColor`,"aria-hidden":`true`,viewBox:`0 0 256 256`,children:(0,X.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(0,X.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,fill:`currentColor`,"aria-hidden":`true`,viewBox:`0 0 256 256`,children:(0,X.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(0,X.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,fill:`currentColor`,"aria-hidden":`true`,viewBox:`0 0 256 256`,children:(0,X.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(0,X.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,fill:`currentColor`,"aria-hidden":`true`,viewBox:`0 0 256 256`,children:(0,X.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(0,X.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,fill:`currentColor`,"aria-hidden":`true`,viewBox:`0 0 256 256`,children:(0,X.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(0,X.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,fill:`currentColor`,"aria-hidden":`true`,viewBox:`0 0 256 256`,children:(0,X.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(0,X.jsx)(`div`,{})}},Gu=(0,x.forwardRef)(({selected:e,item:t,onClick:n},r)=>{let i=z(),a=e=>{e.preventDefault(),n()};return(0,X.jsx)(`li`,{"aria-selected":e,role:`option`,className:t.withDivider?Uu.divider:void 0,children:(0,X.jsxs)(`a`,{ref:r,type:`button`,role:`button`,tabIndex:-1,onClick:a,children:[(0,X.jsx)(Wu,{icon:t.icon}),(0,X.jsx)(`span`,{children:i(`header.menu.${t.id}`)})]})})}),Ku=(e,t)=>{let n=Bu(),{menuItems:r,enableStandaloneView:i,enableTranscriptExportPdf:a,enableTranscriptExportEmail:o}=ta(e=>e.settings),s=ta(e=>e.chat.conversationRating.enabled);return(0,x.useMemo)(()=>{let c=[],l=r.filter(({visibility:t})=>e?t===`always`||t===`chat-only`:t===`always`||t===`start-screen-only`);if(e&&(c.push({id:`restart-chat`,type:`restart-chat`,icon:`arrow-counter-clockwise`,visibility:`chat-only`}),n&&i&&c.push({id:`expand-chat-window`,type:`expand-chat-window`,icon:`expand`,visibility:`always`}),t&&a&&c.push({id:`download-transcript`,type:`download-transcript`,icon:`download`,visibility:`chat-only`}),t&&o&&c.push({id:`send-transcript`,type:`send-transcript`,icon:`mail`,visibility:`chat-only`}),t&&s&&c.push({id:`rate-conversation`,type:`rate-conversation`,icon:`star`,visibility:`chat-only`}),c.length>0&&l.length)){let e=c.pop();e&&r.length&&c.push({...e,withDivider:!0})}return c.push(...l),c},[e,t,a,o,i,s,n,r])},qu=({chatStarted:e,hasGuestMessages:t})=>{let n=ea(),r=z(),{enabled:i,opener:a}=ta(e=>e.chat.conversationRating),[o,s]=(0,x.useState)(!1),[c,l]=(0,x.useState)(-1),u=(0,x.useRef)(null),d=(0,x.useRef)(null),f=(0,x.useRef)([]),p=Ku(e,t);(0,x.useEffect)(()=>{f.current[c]?.focus()},[c]);let m=(0,x.useCallback)(()=>{n(t&&i&&!a?ji(`RESTART_CHAT`):Qi()),s(!1),l(0)},[t,i,a,n]),h=(0,x.useCallback)(e=>{switch(e.type){case`restart-chat`:m();break;case`expand-chat-window`:{let e=new URL(window.location.origin);e.pathname=window.location.pathname,e.search=window.location.search,e.hash=window.location.hash,window.open(e.href,`_blank`);break}case`download-transcript`:n(Nt());break;case`send-transcript`:n(Ai());break;case`rate-conversation`:n(ji(`MENU`));break;case`link`:n(zt(e.url));break;case`action`:n(JSON.parse(JSON.stringify(e.action)));break;default:break}s(!1)},[n,m,s]);(0,x.useEffect)(()=>{let e=e=>{if(o)switch(e.key){case`Enter`:e.preventDefault(),h(p[c]);break;case`ArrowUp`:l(e=>e>0?e-1:p.length-1);break;case`ArrowDown`:l(e=>e<p.length-1?e+1:0);break;case`Escape`:s(!1);break;case`Tab`:c>-1&&s(!1);break;default:break}};return document.addEventListener(`keydown`,e),()=>{document.removeEventListener(`keydown`,e)}},[o,c,p,l,s,h]),(0,x.useEffect)(()=>{o||l(-1)},[o,c]),Ac(d,()=>s(!1));let g=()=>{s(e=>!e)},_=()=>{setTimeout(()=>{let e=document.activeElement;d.current&&!d.current.contains(e)&&s(!1)},0)};return p.length?(0,X.jsxs)(`div`,{className:R(Uu.menuContainer),ref:d,children:[(0,X.jsx)(`button`,{ref:u,className:R(o&&Uu.active,o?`tooltip-hidden`:`tooltip--bottom-left`),"aria-label":r(`header.menu.title`),"data-title":r(`header.menu.title`),onClick:g,onBlur:_,children:(0,X.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,fill:`currentColor`,viewBox:`0 0 256 256`,children:(0,X.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`})})}),o&&(0,X.jsx)(`nav`,{className:Uu.menu,"aria-label":r(`header.menu.title`),children:(0,X.jsx)(`ul`,{tabIndex:0,children:p.map((e,t)=>(0,X.jsx)(Gu,{ref:e=>{f.current[t]=e},selected:c===t,item:e,onClick:()=>h(e)},e.id))})})]}):null},Ju=({className:e,chatStarted:t,...n})=>{let r=ea(),i=ta(e=>e.chat.conversationRating),a=ta(e=>e.chat.messages.some(e=>e.sender.type===ot.GUEST)),o=()=>{i.enabled&&!i.opener&&a?r(ji(`CLOSE_CHAT`)):r(Oi())};return(0,X.jsxs)(`div`,{className:R(Uu.header,e),...n,children:[(0,X.jsx)(`div`,{className:Uu.logoContainer,children:(0,X.jsx)(`div`,{className:Uu.logo})}),(0,X.jsxs)(`div`,{className:Uu.actions,children:[(0,X.jsx)(qu,{chatStarted:t,hasGuestMessages:a}),(0,X.jsx)(Hu,{onClick:o})]})]})},Yu={chatwindow:`_chatwindow_rkbir_1`,chatwindowWithAside:`_chatwindowWithAside_rkbir_21`},Xu=()=>{let[e,t]=(0,x.useState)(!1);return(0,x.useEffect)(()=>{let e=window.matchMedia(`(max-width: 1023px)`),n=()=>t(e.matches);return n(),e.addEventListener(`change`,n),()=>e.removeEventListener(`change`,n)},[]),e},Zu={sourceInfos:`_sourceInfos_vei0l_1`,waitForLoading:`_waitForLoading_vei0l_24`,loadingContent:`_loadingContent_vei0l_28`,sourceHeader:`_sourceHeader_vei0l_37`,sourceHeaderIcon:`_sourceHeaderIcon_vei0l_57`,sourceContent:`_sourceContent_vei0l_61`,openSourceButton:`_openSourceButton_vei0l_69`,sourceButtonLabel:`_sourceButtonLabel_vei0l_79`,closeSourceInfosButton:`_closeSourceInfosButton_vei0l_101`,loadingSourceInfos:`_loadingSourceInfos_vei0l_125`,loading:`_loading_vei0l_28`,rotate:`_rotate_vei0l_1`,loadingError:`_loadingError_vei0l_139`,highlightLoadingInfo:`_highlightLoadingInfo_vei0l_155`,highlightLoadingInfoInnerContainer:`_highlightLoadingInfoInnerContainer_vei0l_169`,highlightLoadingInfoContent:`_highlightLoadingInfoContent_vei0l_178`,highlightLoadingInfoCloseIcon:`_highlightLoadingInfoCloseIcon_vei0l_198`,highlightLoader:`_highlightLoader_vei0l_203`,highlightLoaderLoading:`_highlightLoaderLoading_vei0l_210`,loadingAnim:`_loadingAnim_vei0l_1`},Qu=({onClick:e})=>{let t=z();return(0,X.jsx)(`button`,{className:R(Zu.closeSourceInfosButton,`tooltip--bottom-left`),"aria-label":t(`source-infos.close`),"data-title":t(`source-infos.close`),tabIndex:0,onClick:e,children:(0,X.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,fill:`currentColor`,viewBox:`0 0 256 256`,children:(0,X.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`})})})},$u=(0,x.forwardRef)(({sourceInfos:e,onClose:t,...n},r)=>(0,X.jsxs)(`div`,{className:Zu.sourceHeader,...n,ref:r,children:[(0,X.jsx)(`div`,{children:e?(0,X.jsx)(`p`,{id:`source-info-title`,children:e.title}):(0,X.jsx)(`p`,{children:`\xA0`})}),(0,X.jsx)(Qu,{onClick:t})]})),ed=({loading:e})=>(0,X.jsx)(`div`,{className:Zu.highlightLoader,children:e&&(0,X.jsx)(`div`,{className:Zu.highlightLoaderLoading})}),{entries:td,setPrototypeOf:nd,isFrozen:rd,getPrototypeOf:id,getOwnPropertyDescriptor:ad}=Object,{freeze:od,seal:sd,create:cd}=Object,{apply:ld,construct:ud}=typeof Reflect<`u`&&Reflect;od||=function(e){return e},sd||=function(e){return e},ld||=function(e,t){var n=[...arguments].slice(2);return e.apply(t,n)},ud||=function(e){return new e(...[...arguments].slice(1))};var dd=wd(Array.prototype.forEach),fd=wd(Array.prototype.lastIndexOf),pd=wd(Array.prototype.pop),md=wd(Array.prototype.push),hd=wd(Array.prototype.splice),gd=wd(String.prototype.toLowerCase),_d=wd(String.prototype.toString),vd=wd(String.prototype.match),$=wd(String.prototype.replace),yd=wd(String.prototype.indexOf),bd=wd(String.prototype.trim),xd=wd(Object.prototype.hasOwnProperty),Sd=wd(RegExp.prototype.test),Cd=Td(TypeError);function wd(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);var n=[...arguments].slice(1);return ld(e,t,n)}}function Td(e){return function(){return ud(e,[...arguments])}}function Ed(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:gd;nd&&nd(e,null);let r=t.length;for(;r--;){let i=t[r];if(typeof i==`string`){let e=n(i);e!==i&&(rd(t)||(t[r]=e),i=e)}e[i]=!0}return e}function Dd(e){for(let t=0;t<e.length;t++)xd(e,t)||(e[t]=null);return e}function Od(e){let t=cd(null);for(let[n,r]of td(e))xd(e,n)&&(Array.isArray(r)?t[n]=Dd(r):r&&typeof r==`object`&&r.constructor===Object?t[n]=Od(r):t[n]=r);return t}function kd(e,t){for(;e!==null;){let n=ad(e,t);if(n){if(n.get)return wd(n.get);if(typeof n.value==`function`)return wd(n.value)}e=id(e)}function n(){return null}return n}var Ad=od(`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.search.section.select.shadow.slot.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`.split(`.`)),jd=od(`svg.a.altglyph.altglyphdef.altglyphitem.animatecolor.animatemotion.animatetransform.circle.clippath.defs.desc.ellipse.enterkeyhint.exportparts.filter.font.g.glyph.glyphref.hkern.image.inputmode.line.lineargradient.marker.mask.metadata.mpath.part.path.pattern.polygon.polyline.radialgradient.rect.stop.style.switch.symbol.text.textpath.title.tref.tspan.view.vkern`.split(`.`)),Md=od([`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`]),Nd=od([`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`]),Pd=od(`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`.split(`.`)),Fd=od([`maction`,`maligngroup`,`malignmark`,`mlongdiv`,`mscarries`,`mscarry`,`msgroup`,`mstack`,`msline`,`msrow`,`semantics`,`annotation`,`annotation-xml`,`mprescripts`,`none`]),Id=od([`#text`]),Ld=od(`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.exportparts.face.for.headers.height.hidden.high.href.hreflang.id.inert.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.part.pattern.placeholder.playsinline.popover.popovertarget.popovertargetaction.poster.preload.pubdate.radiogroup.readonly.rel.required.rev.reversed.role.rows.rowspan.spellcheck.scope.selected.shape.size.sizes.slot.span.srclang.start.src.srcset.step.style.summary.tabindex.title.translate.type.usemap.valign.value.width.wrap.xmlns.slot`.split(`.`)),Rd=od(`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.mask-type.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`.split(`.`)),zd=od(`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`.split(`.`)),Bd=od([`xlink:href`,`xml:id`,`xlink:title`,`xml:space`,`xmlns:xlink`]),Vd=sd(/\{\{[\w\W]*|[\w\W]*\}\}/gm),Hd=sd(/<%[\w\W]*|[\w\W]*%>/gm),Ud=sd(/\$\{[\w\W]*/gm),Wd=sd(/^data-[\-\w.\u00B7-\uFFFF]+$/),Gd=sd(/^aria-[\-\w]+$/),Kd=sd(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),qd=sd(/^(?:\w+script|data):/i),Jd=sd(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Yd=sd(/^html$/i),Xd=sd(/^[a-z][.\w]*(-[.\w]+)+$/i),Zd=Object.freeze({__proto__:null,ARIA_ATTR:Gd,ATTR_WHITESPACE:Jd,CUSTOM_ELEMENT:Xd,DATA_ATTR:Wd,DOCTYPE_NAME:Yd,ERB_EXPR:Hd,IS_ALLOWED_URI:Kd,IS_SCRIPT_OR_DATA:qd,MUSTACHE_EXPR:Vd,TMPLIT_EXPR:Ud}),Qd={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,progressingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},$d=function(){return typeof window>`u`?null:window},ef=function(e,t){if(typeof e!=`object`||typeof e.createPolicy!=`function`)return null;let n=null,r=`data-tt-policy-suffix`;t&&t.hasAttribute(r)&&(n=t.getAttribute(r));let i=`dompurify`+(n?`#`+n:``);try{return e.createPolicy(i,{createHTML(e){return e},createScriptURL(e){return e}})}catch{return console.warn(`TrustedTypes policy `+i+` could not be created.`),null}},tf=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function nf(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:$d(),t=e=>nf(e);if(t.version=`3.3.3`,t.removed=[],!e||!e.document||e.document.nodeType!==Qd.document||!e.Element)return t.isSupported=!1,t;let{document:n}=e,r=n,i=r.currentScript,{DocumentFragment:a,HTMLTemplateElement:o,Node:s,Element:c,NodeFilter:l,NamedNodeMap:u=e.NamedNodeMap||e.MozNamedAttrMap,HTMLFormElement:d,DOMParser:f,trustedTypes:p}=e,m=c.prototype,h=kd(m,`cloneNode`),g=kd(m,`remove`),_=kd(m,`nextSibling`),v=kd(m,`childNodes`),y=kd(m,`parentNode`);if(typeof o==`function`){let e=n.createElement(`template`);e.content&&e.content.ownerDocument&&(n=e.content.ownerDocument)}let b,x=``,{implementation:S,createNodeIterator:C,createDocumentFragment:w,getElementsByTagName:T}=n,{importNode:E}=r,D=tf();t.isSupported=typeof td==`function`&&typeof y==`function`&&S&&S.createHTMLDocument!==void 0;let{MUSTACHE_EXPR:O,ERB_EXPR:ee,TMPLIT_EXPR:te,DATA_ATTR:ne,ARIA_ATTR:k,IS_SCRIPT_OR_DATA:re,ATTR_WHITESPACE:ie,CUSTOM_ELEMENT:ae}=Zd,{IS_ALLOWED_URI:A}=Zd,j=null,oe=Ed({},[...Ad,...jd,...Md,...Pd,...Id]),M=null,se=Ed({},[...Ld,...Rd,...zd,...Bd]),N=Object.seal(cd(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}})),P=null,F=null,I=Object.seal(cd(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}})),ce=!0,le=!0,ue=!1,de=!0,fe=!1,L=!0,pe=!1,me=!1,he=!1,ge=!1,_e=!1,ve=!1,ye=!0,be=!1,xe=!0,Se=!1,Ce={},we=null,Te=Ed({},[`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`]),Ee=null,De=Ed({},[`audio`,`video`,`img`,`source`,`image`,`track`]),Oe=null,ke=Ed({},[`alt`,`class`,`for`,`id`,`label`,`name`,`pattern`,`placeholder`,`role`,`summary`,`title`,`value`,`style`,`xmlns`]),Ae=`http://www.w3.org/1998/Math/MathML`,je=`http://www.w3.org/2000/svg`,Me=`http://www.w3.org/1999/xhtml`,Ne=Me,Pe=!1,Fe=null,Ie=Ed({},[Ae,je,Me],_d),Le=Ed({},[`mi`,`mo`,`mn`,`ms`,`mtext`]),Re=Ed({},[`annotation-xml`]),ze=Ed({},[`title`,`style`,`font`,`a`,`script`]),Be=null,Ve=[`application/xhtml+xml`,`text/html`],He=null,Ue=null,We=n.createElement(`form`),Ge=function(e){return e instanceof RegExp||e instanceof Function},Ke=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(Ue&&Ue===e)){if((!e||typeof e!=`object`)&&(e={}),e=Od(e),Be=Ve.indexOf(e.PARSER_MEDIA_TYPE)===-1?`text/html`:e.PARSER_MEDIA_TYPE,He=Be===`application/xhtml+xml`?_d:gd,j=xd(e,`ALLOWED_TAGS`)?Ed({},e.ALLOWED_TAGS,He):oe,M=xd(e,`ALLOWED_ATTR`)?Ed({},e.ALLOWED_ATTR,He):se,Fe=xd(e,`ALLOWED_NAMESPACES`)?Ed({},e.ALLOWED_NAMESPACES,_d):Ie,Oe=xd(e,`ADD_URI_SAFE_ATTR`)?Ed(Od(ke),e.ADD_URI_SAFE_ATTR,He):ke,Ee=xd(e,`ADD_DATA_URI_TAGS`)?Ed(Od(De),e.ADD_DATA_URI_TAGS,He):De,we=xd(e,`FORBID_CONTENTS`)?Ed({},e.FORBID_CONTENTS,He):Te,P=xd(e,`FORBID_TAGS`)?Ed({},e.FORBID_TAGS,He):Od({}),F=xd(e,`FORBID_ATTR`)?Ed({},e.FORBID_ATTR,He):Od({}),Ce=xd(e,`USE_PROFILES`)?e.USE_PROFILES:!1,ce=e.ALLOW_ARIA_ATTR!==!1,le=e.ALLOW_DATA_ATTR!==!1,ue=e.ALLOW_UNKNOWN_PROTOCOLS||!1,de=e.ALLOW_SELF_CLOSE_IN_ATTR!==!1,fe=e.SAFE_FOR_TEMPLATES||!1,L=e.SAFE_FOR_XML!==!1,pe=e.WHOLE_DOCUMENT||!1,ge=e.RETURN_DOM||!1,_e=e.RETURN_DOM_FRAGMENT||!1,ve=e.RETURN_TRUSTED_TYPE||!1,he=e.FORCE_BODY||!1,ye=e.SANITIZE_DOM!==!1,be=e.SANITIZE_NAMED_PROPS||!1,xe=e.KEEP_CONTENT!==!1,Se=e.IN_PLACE||!1,A=e.ALLOWED_URI_REGEXP||Kd,Ne=e.NAMESPACE||Me,Le=e.MATHML_TEXT_INTEGRATION_POINTS||Le,Re=e.HTML_INTEGRATION_POINTS||Re,N=e.CUSTOM_ELEMENT_HANDLING||{},e.CUSTOM_ELEMENT_HANDLING&&Ge(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(N.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&Ge(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(N.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements==`boolean`&&(N.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),fe&&(le=!1),_e&&(ge=!0),Ce&&(j=Ed({},Id),M=cd(null),Ce.html===!0&&(Ed(j,Ad),Ed(M,Ld)),Ce.svg===!0&&(Ed(j,jd),Ed(M,Rd),Ed(M,Bd)),Ce.svgFilters===!0&&(Ed(j,Md),Ed(M,Rd),Ed(M,Bd)),Ce.mathMl===!0&&(Ed(j,Pd),Ed(M,zd),Ed(M,Bd))),xd(e,`ADD_TAGS`)||(I.tagCheck=null),xd(e,`ADD_ATTR`)||(I.attributeCheck=null),e.ADD_TAGS&&(typeof e.ADD_TAGS==`function`?I.tagCheck=e.ADD_TAGS:(j===oe&&(j=Od(j)),Ed(j,e.ADD_TAGS,He))),e.ADD_ATTR&&(typeof e.ADD_ATTR==`function`?I.attributeCheck=e.ADD_ATTR:(M===se&&(M=Od(M)),Ed(M,e.ADD_ATTR,He))),e.ADD_URI_SAFE_ATTR&&Ed(Oe,e.ADD_URI_SAFE_ATTR,He),e.FORBID_CONTENTS&&(we===Te&&(we=Od(we)),Ed(we,e.FORBID_CONTENTS,He)),e.ADD_FORBID_CONTENTS&&(we===Te&&(we=Od(we)),Ed(we,e.ADD_FORBID_CONTENTS,He)),xe&&(j[`#text`]=!0),pe&&Ed(j,[`html`,`head`,`body`]),j.table&&(Ed(j,[`tbody`]),delete P.tbody),e.TRUSTED_TYPES_POLICY){if(typeof e.TRUSTED_TYPES_POLICY.createHTML!=`function`)throw Cd(`TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.`);if(typeof e.TRUSTED_TYPES_POLICY.createScriptURL!=`function`)throw Cd(`TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.`);b=e.TRUSTED_TYPES_POLICY,x=b.createHTML(``)}else b===void 0&&(b=ef(p,i)),b!==null&&typeof x==`string`&&(x=b.createHTML(``));od&&od(e),Ue=e}},qe=Ed({},[...jd,...Md,...Nd]),Je=Ed({},[...Pd,...Fd]),Ye=function(e){let t=y(e);(!t||!t.tagName)&&(t={namespaceURI:Ne,tagName:`template`});let n=gd(e.tagName),r=gd(t.tagName);return Fe[e.namespaceURI]?e.namespaceURI===je?t.namespaceURI===Me?n===`svg`:t.namespaceURI===Ae?n===`svg`&&(r===`annotation-xml`||Le[r]):!!qe[n]:e.namespaceURI===Ae?t.namespaceURI===Me?n===`math`:t.namespaceURI===je?n===`math`&&Re[r]:!!Je[n]:e.namespaceURI===Me?t.namespaceURI===je&&!Re[r]||t.namespaceURI===Ae&&!Le[r]?!1:!Je[n]&&(ze[n]||!qe[n]):!!(Be===`application/xhtml+xml`&&Fe[e.namespaceURI]):!1},Xe=function(e){md(t.removed,{element:e});try{y(e).removeChild(e)}catch{g(e)}},Ze=function(e,n){try{md(t.removed,{attribute:n.getAttributeNode(e),from:n})}catch{md(t.removed,{attribute:null,from:n})}if(n.removeAttribute(e),e===`is`)if(ge||_e)try{Xe(n)}catch{}else try{n.setAttribute(e,``)}catch{}},Qe=function(e){let t=null,r=null;if(he)e=`<remove></remove>`+e;else{let t=vd(e,/^[\r\n\t ]+/);r=t&&t[0]}Be===`application/xhtml+xml`&&Ne===Me&&(e=`<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>`+e+`</body></html>`);let i=b?b.createHTML(e):e;if(Ne===Me)try{t=new f().parseFromString(i,Be)}catch{}if(!t||!t.documentElement){t=S.createDocument(Ne,`template`,null);try{t.documentElement.innerHTML=Pe?x:i}catch{}}let a=t.body||t.documentElement;return e&&r&&a.insertBefore(n.createTextNode(r),a.childNodes[0]||null),Ne===Me?T.call(t,pe?`html`:`body`)[0]:pe?t.documentElement:a},$e=function(e){return C.call(e.ownerDocument||e,e,l.SHOW_ELEMENT|l.SHOW_COMMENT|l.SHOW_TEXT|l.SHOW_PROCESSING_INSTRUCTION|l.SHOW_CDATA_SECTION,null)},et=function(e){return e instanceof d&&(typeof e.nodeName!=`string`||typeof e.textContent!=`string`||typeof e.removeChild!=`function`||!(e.attributes instanceof u)||typeof e.removeAttribute!=`function`||typeof e.setAttribute!=`function`||typeof e.namespaceURI!=`string`||typeof e.insertBefore!=`function`||typeof e.hasChildNodes!=`function`)},tt=function(e){return typeof s==`function`&&e instanceof s};function nt(e,n,r){dd(e,e=>{e.call(t,n,r,Ue)})}let rt=function(e){let n=null;if(nt(D.beforeSanitizeElements,e,null),et(e))return Xe(e),!0;let r=He(e.nodeName);if(nt(D.uponSanitizeElement,e,{tagName:r,allowedTags:j}),L&&e.hasChildNodes()&&!tt(e.firstElementChild)&&Sd(/<[/\w!]/g,e.innerHTML)&&Sd(/<[/\w!]/g,e.textContent)||e.nodeType===Qd.progressingInstruction||L&&e.nodeType===Qd.comment&&Sd(/<[/\w]/g,e.data))return Xe(e),!0;if(!(I.tagCheck instanceof Function&&I.tagCheck(r))&&(!j[r]||P[r])){if(!P[r]&&it(r)&&(N.tagNameCheck instanceof RegExp&&Sd(N.tagNameCheck,r)||N.tagNameCheck instanceof Function&&N.tagNameCheck(r)))return!1;if(xe&&!we[r]){let t=y(e)||e.parentNode,n=v(e)||e.childNodes;if(n&&t){let r=n.length;for(let i=r-1;i>=0;--i){let r=h(n[i],!0);r.__removalCount=(e.__removalCount||0)+1,t.insertBefore(r,_(e))}}}return Xe(e),!0}return e instanceof c&&!Ye(e)||(r===`noscript`||r===`noembed`||r===`noframes`)&&Sd(/<\/no(script|embed|frames)/i,e.innerHTML)?(Xe(e),!0):(fe&&e.nodeType===Qd.text&&(n=e.textContent,dd([O,ee,te],e=>{n=$(n,e,` `)}),e.textContent!==n&&(md(t.removed,{element:e.cloneNode()}),e.textContent=n)),nt(D.afterSanitizeElements,e,null),!1)},R=function(e,t,r){if(F[t]||ye&&(t===`id`||t===`name`)&&(r in n||r in We))return!1;if(!(le&&!F[t]&&Sd(ne,t))&&!(ce&&Sd(k,t))&&!(I.attributeCheck instanceof Function&&I.attributeCheck(t,e))){if(!M[t]||F[t]){if(!(it(e)&&(N.tagNameCheck instanceof RegExp&&Sd(N.tagNameCheck,e)||N.tagNameCheck instanceof Function&&N.tagNameCheck(e))&&(N.attributeNameCheck instanceof RegExp&&Sd(N.attributeNameCheck,t)||N.attributeNameCheck instanceof Function&&N.attributeNameCheck(t,e))||t===`is`&&N.allowCustomizedBuiltInElements&&(N.tagNameCheck instanceof RegExp&&Sd(N.tagNameCheck,r)||N.tagNameCheck instanceof Function&&N.tagNameCheck(r))))return!1}else if(!Oe[t]&&!Sd(A,$(r,ie,``))&&!((t===`src`||t===`xlink:href`||t===`href`)&&e!==`script`&&yd(r,`data:`)===0&&Ee[e])&&!(ue&&!Sd(re,$(r,ie,``)))&&r)return!1}return!0},it=function(e){return e!==`annotation-xml`&&vd(e,ae)},at=function(e){nt(D.beforeSanitizeAttributes,e,null);let{attributes:n}=e;if(!n||et(e))return;let r={attrName:``,attrValue:``,keepAttr:!0,allowedAttributes:M,forceKeepAttr:void 0},i=n.length;for(;i--;){let{name:a,namespaceURI:o,value:s}=n[i],c=He(a),l=s,u=a===`value`?l:bd(l);if(r.attrName=c,r.attrValue=u,r.keepAttr=!0,r.forceKeepAttr=void 0,nt(D.uponSanitizeAttribute,e,r),u=r.attrValue,be&&(c===`id`||c===`name`)&&(Ze(a,e),u=`user-content-`+u),L&&Sd(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,u)){Ze(a,e);continue}if(c===`attributename`&&vd(u,`href`)){Ze(a,e);continue}if(r.forceKeepAttr)continue;if(!r.keepAttr){Ze(a,e);continue}if(!de&&Sd(/\/>/i,u)){Ze(a,e);continue}fe&&dd([O,ee,te],e=>{u=$(u,e,` `)});let d=He(e.nodeName);if(!R(d,c,u)){Ze(a,e);continue}if(b&&typeof p==`object`&&typeof p.getAttributeType==`function`&&!o)switch(p.getAttributeType(d,c)){case`TrustedHTML`:u=b.createHTML(u);break;case`TrustedScriptURL`:u=b.createScriptURL(u);break}if(u!==l)try{o?e.setAttributeNS(o,a,u):e.setAttribute(a,u),et(e)?Xe(e):pd(t.removed)}catch{Ze(a,e)}}nt(D.afterSanitizeAttributes,e,null)},ot=function e(t){let n=null,r=$e(t);for(nt(D.beforeSanitizeShadowDOM,t,null);n=r.nextNode();)nt(D.uponSanitizeShadowNode,n,null),rt(n),at(n),n.content instanceof a&&e(n.content);nt(D.afterSanitizeShadowDOM,t,null)};return t.sanitize=function(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=null,o=null,c=null,l=null;if(Pe=!e,Pe&&(e=`<!-->`),typeof e!=`string`&&!tt(e))if(typeof e.toString==`function`){if(e=e.toString(),typeof e!=`string`)throw Cd(`dirty is not a string, aborting`)}else throw Cd(`toString is not a function`);if(!t.isSupported)return e;if(me||Ke(n),t.removed=[],typeof e==`string`&&(Se=!1),Se){if(e.nodeName){let t=He(e.nodeName);if(!j[t]||P[t])throw Cd(`root node is forbidden and cannot be sanitized in-place`)}}else if(e instanceof s)i=Qe(`<!---->`),o=i.ownerDocument.importNode(e,!0),o.nodeType===Qd.element&&o.nodeName===`BODY`||o.nodeName===`HTML`?i=o:i.appendChild(o);else{if(!ge&&!fe&&!pe&&e.indexOf(`<`)===-1)return b&&ve?b.createHTML(e):e;if(i=Qe(e),!i)return ge?null:ve?x:``}i&&he&&Xe(i.firstChild);let u=$e(Se?e:i);for(;c=u.nextNode();)rt(c),at(c),c.content instanceof a&&ot(c.content);if(Se)return e;if(ge){if(_e)for(l=w.call(i.ownerDocument);i.firstChild;)l.appendChild(i.firstChild);else l=i;return(M.shadowroot||M.shadowrootmode)&&(l=E.call(r,l,!0)),l}let d=pe?i.outerHTML:i.innerHTML;return pe&&j[`!doctype`]&&i.ownerDocument&&i.ownerDocument.doctype&&i.ownerDocument.doctype.name&&Sd(Yd,i.ownerDocument.doctype.name)&&(d=`<!DOCTYPE `+i.ownerDocument.doctype.name+`>
|
|
64
|
+
`+d),fe&&dd([O,ee,te],e=>{d=$(d,e,` `)}),b&&ve?b.createHTML(d):d},t.setConfig=function(){Ke(arguments.length>0&&arguments[0]!==void 0?arguments[0]:{}),me=!0},t.clearConfig=function(){Ue=null,me=!1},t.isValidAttribute=function(e,t,n){return Ue||Ke({}),R(He(e),He(t),n)},t.addHook=function(e,t){typeof t==`function`&&md(D[e],t)},t.removeHook=function(e,t){if(t!==void 0){let n=fd(D[e],t);return n===-1?void 0:hd(D[e],n,1)[0]}return pd(D[e])},t.removeHooks=function(e){D[e]=[]},t.removeAllHooks=function(){D=tf()},t}var rf=nf(),af=({onClose:e})=>{let t=z();return(0,X.jsxs)(`div`,{className:Zu.highlightLoadingInfo,onClick:e,children:[(0,X.jsx)(`div`,{className:Zu.highlightLoadingInfoCloseIcon,children:(0,X.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,fill:`currentColor`,viewBox:`0 0 256 256`,children:(0,X.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`})})}),(0,X.jsxs)(`div`,{className:Zu.highlightLoadingInfoInnerContainer,children:[(0,X.jsxs)(`div`,{className:Zu.highlightLoadingInfoContent,children:[(0,X.jsx)(`h3`,{children:t(`source-infos.highlight-loading.title`)}),(0,X.jsx)(`p`,{children:t(`source-infos.highlight-loading.description`)})]}),(0,X.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,fill:`#000000`,viewBox:`0 0 256 256`,children:(0,X.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`})})]})]})},of=({title:e,href:t,children:n})=>(0,X.jsx)(`a`,{href:t,title:e,target:`_blank`,rel:`noopener noreferrer`,children:n}),sf=({className:e,children:t,...n})=>(0,X.jsx)(`a`,{className:R(qc.button,qc.buttonDefault,e),type:`button`,role:`button`,...n,children:t}),cf=e=>(0,X.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,fill:`currentColor`,viewBox:`0 0 256 256`,...e,children:(0,X.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`})}),lf=({type:e,...t})=>{switch(e){case`WEBSITE`:return(0,X.jsx)(Wc,{...t});case`PDF`:return(0,X.jsx)(Uc,{...t});case`DOCX`:return(0,X.jsx)(Vc,{...t});case`TEXT`:return(0,X.jsx)(cf,{...t});default:return(0,X.jsx)(Hc,{...t})}},uf=({url:e,knowledgeBaseType:t})=>{let n=z();return(0,X.jsx)(sf,{className:Zu.openSourceButton,href:e,target:`_blank`,children:(0,X.jsxs)(`div`,{className:Zu.sourceButtonLabel,children:[(0,X.jsx)(`div`,{className:Zu.sourceHeaderIcon,children:(0,X.jsx)(lf,{type:t})}),(0,X.jsx)(`p`,{children:n(`source-infos.open-source`)})]})})},df=({sourceInfos:{content:e,url:t,knowledgeBaseType:n,highlighted:r}})=>{let[i,a]=(0,x.useState)(!r);(0,x.useEffect)(()=>{r&&a(!1)},[r]);let o=rf.sanitize(e,{USE_PROFILES:{html:!0}}).replace(/<hr>(?!\n)/gi,`<hr>
|
|
65
|
+
`);return(0,X.jsxs)(X.Fragment,{children:[(0,X.jsxs)(`div`,{className:R(Zu.sourceContent,ol.markdown),children:[(0,X.jsx)(xc,{options:{overrides:{a:of}},children:o}),i&&(0,X.jsx)(af,{onClose:()=>a(!1)})]}),(0,X.jsx)(uf,{url:t,knowledgeBaseType:n})]})},ff=``+new URL(`undraw_fixing-bugs-D_eYxJc6.svg`,import.meta.url).href,pf=()=>{let e=z();return(0,X.jsxs)(`div`,{className:Zu.loadingError,children:[(0,X.jsx)(`h1`,{children:e(`source-infos.error.title`)}),(0,X.jsx)(`img`,{src:ff,title:e(`source-infos.error.title`)}),(0,X.jsx)(`p`,{children:e(`source-infos.error.info`)})]})},mf=()=>(0,X.jsx)(`div`,{className:Zu.loadingSourceInfos,children:(0,X.jsx)(`svg`,{className:Zu.loading,xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,fill:`currentColor`,viewBox:`0 0 256 256`,children:(0,X.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 hf({sourceInfos:e,onClose:t,threshold:n=100}){let r=(0,x.useRef)(null),[i,a]=(0,x.useState)(0),[o,s]=(0,x.useState)(!1),c=(0,x.useRef)(null),l=(0,x.useRef)(null),u=(0,x.useCallback)(e=>{c.current=e,s(!0)},[]),d=(0,x.useCallback)(e=>{if(c.current!==null&&o){let t=e-c.current;t>0&&a(t)}},[o]),f=(0,x.useCallback)(()=>{s(!1),i>n&&t(),a(0),c.current=null},[i,n,t]),p=(0,x.useCallback)(e=>{let t=e=>u(e.touches[0].clientY),n=e=>d(e.touches[0].clientY),r=()=>f(),i=e=>{e.preventDefault(),u(e.clientY),window.addEventListener(`mousemove`,a),window.addEventListener(`mouseup`,o)},a=e=>d(e.clientY),o=()=>{f(),window.removeEventListener(`mousemove`,a),window.removeEventListener(`mouseup`,o)};e.addEventListener(`touchstart`,t),e.addEventListener(`touchmove`,n),e.addEventListener(`touchend`,r),e.addEventListener(`mousedown`,i),l.current=()=>{e.removeEventListener(`touchstart`,t),e.removeEventListener(`touchmove`,n),e.removeEventListener(`touchend`,r),e.removeEventListener(`mousedown`,i),window.removeEventListener(`mousemove`,a),window.removeEventListener(`mouseup`,o)}},[u,d,f]);return(0,x.useEffect)(()=>{let e;return r.current?(l.current?.(),p(r.current)):(e=new MutationObserver(()=>{r.current&&(l.current?.(),p(r.current),e?.disconnect())}),e.observe(document.body,{childList:!0,subtree:!0})),()=>{e?.disconnect(),l.current?.()}},[p,e]),{ref:r,dragOffsetY:i,isDragging:o}}var gf=e=>{let[t,n]=(0,x.useState)(!0);return(0,x.useEffect)(()=>{let t=null;return e?.type===`loading`?(n(!0),t=setTimeout(()=>{n(!1)},300)):n(!e),()=>{t&&clearTimeout(t)}},[e]),t},_f=()=>{let e=ea(),t=ta(e=>e.chat.sourceInfos),n=Xu(),r=(0,x.useRef)(null),i=gf(t);(0,x.useEffect)(()=>{r.current&&t?.type===`loading`&&(n?r.current.showModal():(r.current.setAttribute(`open`,`true`),r.current?.focus()))},[t,n]);let a=(0,x.useCallback)(()=>{r.current&&(n?r.current.close():r.current.removeAttribute(`open`),e(Fi()))},[e,n]),{ref:o,dragOffsetY:s}=hf({onClose:a,sourceInfos:t});return t?(0,X.jsx)(`dialog`,{ref:r,className:R(Zu.sourceInfos,i?Zu.waitForLoading:t.type===`loading`?Zu.loadingContent:``),style:n&&s?{transform:`translateY(${s}px)`}:{},onClose:a,autoFocus:!0,role:`dialog`,"aria-labelledby":`source-info-title`,children:i?null:(0,X.jsxs)(X.Fragment,{children:[(0,X.jsx)($u,{ref:o,tabIndex:-1,sourceInfos:t.type===`loaded`?t:void 0,onClose:a}),t.type===`loading`?(0,X.jsx)(mf,{}):t.type===`loading-error`?(0,X.jsx)(pf,{}):(0,X.jsxs)(X.Fragment,{children:[(0,X.jsx)(ed,{loading:!t.highlighted}),(0,X.jsx)(df,{sourceInfos:t})]})]})}):null},vf={container:`_container_5axup_1`,body:`_body_5axup_7`,intro:`_intro_5axup_14`,footer:`_footer_5axup_48`,footnote:`_footnote_5axup_52`,containerWithFootnote:`_containerWithFootnote_5axup_72`,startChatButton:`_startChatButton_5axup_87`,spinner:`_spinner_5axup_102`,spin:`_spin_5axup_102`,formFields:`_formFields_5axup_106`,formField:`_formField_5axup_106`,radio:`_radio_5axup_118`,checkbox:`_checkbox_5axup_125`,input:`_input_5axup_133`,inputLabel:`_inputLabel_5axup_167`,selectWrapper:`_selectWrapper_5axup_171`,select:`_select_5axup_171`,selectLabel:`_selectLabel_5axup_217`},yf=({name:e,label:t,defaultValue:n,required:r,onChange:i})=>(0,X.jsxs)(`label`,{className:R(vf.checkbox,`chat__startScreen__checkbox`),htmlFor:e,children:[(0,X.jsx)(`input`,{type:`checkbox`,id:e,name:e,defaultChecked:n===`true`,required:r,onChange:e=>{i(e.currentTarget.checked?`true`:`false`)}}),(0,X.jsx)(`div`,{children:t})]}),bf=({type:e,name:t,label:n,defaultValue:r,placeholder:i,required:a,multiple:o,min:s,max:c,pattern:l,onChange:u})=>(0,X.jsxs)(`label`,{className:R(vf.input,`chat__startScreen__input`),htmlFor:t,children:[(0,X.jsx)(`div`,{className:R(vf.inputLabel),children:n}),(0,X.jsx)(`input`,{type:e,id:t,name:t,defaultValue:r,placeholder:i,required:a,multiple:o,min:s,max:c,pattern:l,onChange:e=>{u(e.target.value)}})]}),xf=({name:e,value:t,label:n,defaultChecked:r,required:i,onChange:a})=>{let o=`${e}-${t}`;return(0,X.jsxs)(`label`,{className:R(vf.radio,`chat__startScreen__radio`),htmlFor:o,children:[(0,X.jsx)(`input`,{id:o,type:`radio`,name:e,value:t,defaultChecked:r,required:i,onChange:e=>{a(e.target.value)}}),(0,X.jsx)(`span`,{className:R(vf.label),children:n})]})},Sf=({name:e,label:t,defaultValue:n,required:r,multiple:i,options:a,onChange:o})=>(0,X.jsxs)(`label`,{className:R(vf.select,`chat__startScreen__select`),htmlFor:e,children:[(0,X.jsx)(`div`,{className:R(vf.selectLabel),children:t}),(0,X.jsx)(`div`,{className:R(vf.selectWrapper),children:(0,X.jsx)(`select`,{id:e,name:e,defaultValue:n,required:r,multiple:i,onChange:e=>{o(e.target.value)},children:Object.entries(a||{}).map(([e,t])=>(0,X.jsx)(`option`,{value:e,selected:t===n,children:t}))})})]}),Cf=`start-screen.intro`,wf=`start-screen.start-chat`,Tf=`start-screen.waiting-for-login`,Ef=`start-screen.footnote`,Df=`start-screen.form`,Of=`${Df}.fields`,kf=()=>{let e=z(),t=ea(),n=al(),r=ta(e=>e.startScreen.loginRequestToken),i=ta(e=>e.settings.requiresUserAuthentication);(0,x.useEffect)(()=>{let e;if(r){let i=window.screenX+(window.outerWidth-600)/2,a=window.screenY+(window.outerHeight-700)/2,o=encodeURIComponent(n),s=new URL(window.location.origin);s.pathname=`/${o}/auth/login`,s.searchParams.set(`loginRequestToken`,r);let c=window.open(s.href,`Login`,`width=600,height=700,left=${i},top=${a},resizable=yes,scrollbars=yes`);e=setInterval(()=>{c?.closed&&(t(Si()),clearInterval(e))},500)}return()=>{e&&clearInterval(e)}},[n,r,t]);let[a,o]=(0,x.useState)({}),s=()=>{let e=Object.entries(a).reduce((e,[t,n])=>({...e,[t]:n.value}),{});t(i?xi({loginRequestToken:Qt(),formValues:e}):vi({formValues:e}))},c=e(Cf),l=e(r?Tf:wf),u=e(Ef),d=(0,x.useMemo)(()=>e(Of)?.split(`;`).map(e=>e.trim())??[],[e(Of)]);(0,x.useEffect)(()=>{d.length&&Object.keys(a).length===0&&o(d.reduce((t,n)=>({...t,[n]:jf(n,e)}),{}))},[e,d,a]);let f=e=>{e.preventDefault(),s()},p=e=>t=>{o(n=>({...n,[e]:{...n[e],value:t}}))};return(0,X.jsxs)(`form`,{onSubmit:f,className:R(vf.container,u&&vf.containerWithFootnote,`chat__startScreen`),children:[(0,X.jsxs)(`div`,{className:R(vf.body,`chat__startScreen__body`),children:[c&&(0,X.jsx)(`div`,{className:R(vf.intro,`chat__startScreen__intro`),children:(0,X.jsx)(xc,{options:{overrides:{a:Af}},children:c})}),(0,X.jsx)(`div`,{className:R(vf.formFields,`chat__startScreen__fields`),children:Object.values(a).map(({type:e,name:t,label:n,placeholder:r,defaultValue:i,options:a,required:o,multiple:s,min:c,max:l,pattern:u})=>(0,X.jsx)(`div`,{className:R(vf.formField,`chat__startScreen__field`),children:(()=>{switch(e){case`radio`:return(0,X.jsxs)(X.Fragment,{children:[(0,X.jsx)(`div`,{children:n}),Object.entries(a||{}).map(([e,n])=>(0,X.jsx)(xf,{name:t,value:e,label:n,defaultChecked:e===i,required:o,onChange:p(t)},e))]});case`checkbox`:return(0,X.jsx)(yf,{name:t,label:n,defaultValue:i,required:o,onChange:p(t)});case`select`:return(0,X.jsx)(Sf,{name:t,label:n,defaultValue:i,required:o,multiple:s,options:a,onChange:p(t)});default:return(0,X.jsx)(bf,{type:e,name:t,label:n,placeholder:r,defaultValue:i,required:o,multiple:s,min:c,max:l,pattern:u,onChange:p(t)})}})()},t))})]}),(0,X.jsxs)(`div`,{className:R(vf.footer,`chat__startScreen__footer`),children:[(0,X.jsxs)(Pl,{type:`submit`,className:vf.startChatButton,disabled:!!r,children:[!!r&&(0,X.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,fill:`currentColor`,viewBox:`0 0 256 256`,className:vf.spinner,children:(0,X.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`})}),(0,X.jsx)(`div`,{children:l})]}),u&&(0,X.jsx)(`div`,{className:vf.footnote,children:(0,X.jsx)(xc,{options:{overrides:{a:Af}},children:u})})]})]})},Af=({title:e,href:t,children:n})=>(0,X.jsx)(`a`,{href:t,title:e,target:`_blank`,rel:`noopener noreferrer`,children:n}),jf=(e,t)=>{let n=t(`${Df}.${e}.type`)||`text`,r=t(`${Df}.${e}.required`)===`true`,i=t(`${Df}.${e}.multiple`)===`true`,a=t(`${Df}.${e}.placeholder`),o=t(`${Df}.${e}.label`)||``,s=t(`${Df}.${e}.defaultValue`),c=t(`${Df}.${e}.min`),l=t(`${Df}.${e}.max`),u=t(`${Df}.${e}.pattern`),d=Nf(t(`${Df}.${e}.options`));return{name:e,label:o,placeholder:a,value:Mf(n,s,d)||``,defaultValue:s,options:d,type:n,required:r,multiple:i,min:c,max:l,pattern:u}},Mf=(e,t,n)=>t||e===`select`&&Object.keys(n)[0]||``,Nf=(e=``)=>e.split(`;`).map(e=>e.trim()).reduce((e,t)=>{let[n,r]=t.split(`:`).map(e=>e.trim());return{...e,[n]:r}},{}),Pf=()=>{let e=ta(e=>e.intl.locale);(0,x.useEffect)(()=>{window.document.documentElement.lang=e},[e])},Ff={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`},If=({clientName:e})=>{Pf();let t=ea(),n=ta(e=>e.intl.messages),r=z(),i=ta(e=>e.settings.enableStartScreen),a=ta(e=>e.startScreen.startScreenStatus),o=ta(e=>e.connection.queryString),s=ta(e=>e.settings.allowedEmbedOrigins),c=(0,x.useMemo)(()=>new URLSearchParams(o||`?`).get(`cssClassName`),[o]);(0,x.useEffect)(()=>{let n=new URLSearchParams(o||``);t(Gi(e,Object.fromEntries(n.entries())))},[e,o,t]),(0,x.useEffect)(()=>{let e=e=>{if(!e.data?.type||!Object.values(Ff).includes(e.data.type))return;let n=e.origin===window.location.origin,r=e.source===window.parent,i=s===void 0||s.includes(e.origin);if(!(n||r&&i)){console.warn(`Rejected postMessage from untrusted origin:`,e.origin);return}switch(e.data.type){case Ff.TRIGGER_ACTION:t(e.data.action);break;case Ff.TRIGGER_STORY:t(It(e.data.story));break;case Ff.ON_CHAT_WINDOW_OPEN:t({type:`webclient.chatwindow.opened`});break;case Ff.ON_CHAT_WINDOW_CLOSE:t({type:`webclient.chatwindow.closed`});break;case Ff.CHAT_MESSAGE_FROM_GUEST:t(gt(e.data.text));break;case Ff.RESTART_CHAT:t(Qi());break}};return window.addEventListener(`message`,e,!1),()=>window.removeEventListener(`message`,e)},[s,t]),(0,x.useEffect)(()=>{let e=r(`page.title`);e&&document&&(document.title=e)},[n,r]);let l=i===void 0,u=i===!1||a===`HIDDEN`;return(0,X.jsx)(`div`,{className:R(Yu.chatwindow,u&&Yu.chatwindowWithAside,`chat__chatwindow`,c),children:l?null:u?(0,X.jsxs)(X.Fragment,{children:[(0,X.jsx)(`header`,{children:(0,X.jsx)(Ju,{chatStarted:!0})}),(0,X.jsx)(`main`,{children:(0,X.jsx)(zu,{clientName:e})}),(0,X.jsx)(`aside`,{children:(0,X.jsx)(_f,{})})]}):(0,X.jsxs)(X.Fragment,{children:[(0,X.jsx)(`header`,{children:(0,X.jsx)(Ju,{chatStarted:!1})}),(0,X.jsx)(`main`,{children:(0,X.jsx)(kf,{})})]})})},Lf=()=>{let e=al(),t=Xu();return(0,X.jsx)(`div`,{className:R([it.app,t?`chat__small`:`chat__large`]),children:(0,X.jsx)(If,{clientName:e})})},Rf={"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`,"message-input.actions.command.label":`Aktion ausführen`,"guest-bubble.label":`Ihre Nachricht`,"bot-bubble.label":`Nachricht des Chatbots`,"bot-bubble.actions.label":`Nachricht-Aktionen`,"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`,"bot-bubble.footnote":`Fussnote`,"agent-bubble.label":`Nachricht des Live-Agenten`,"conversation.label":`Chat Verlauf`,"chatbot.typing":`Chatbot schreibt`,"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:
|
|
66
|
+
|
|
67
|
+
- Der Chatverlauf wird im EU-Raum gespeichert und kann nur von autorisierten Personen eingesehen werden.
|
|
68
|
+
- Geben Sie im Chatfenster keine persönlichen Daten ein (Passwörter, Geburtsdatum usw.).`,"general-conditions.accept-conditions-note":`Mit der Verwendung des Chats erklären Sie sich mit den Nutzungsbedingungen einverstanden.`,"block-user-input.title":`Bitte auf die Antwort des Chatbots warten.`,"conversation-rating.call-to-action.title":`Bewerten Sie diesen Chat`,"conversation-rating.overlay.title":`Wie zufrieden sind Sie mit diesem Chat?`,"conversation-rating.overlay.guest-feedback.input-placeholder":`Feedback bitte hier eingeben (optional)`,"conversation-rating.overlay.star.very-bad":`Sehr schlecht`,"conversation-rating.overlay.star.very-good":`Sehr gut`,"conversation-rating.overlay.bot-message.rate-feedback.value-1":`Oh, das tönt nicht gut. Bitte geben Sie mir doch ein schriftliches Feedback, damit ich dazulernen kann.`,"conversation-rating.overlay.bot-message.rate-feedback.value-2":`Oh, das tönt nicht gut. Bitte geben Sie mir doch ein schriftliches Feedback, damit ich dazulernen kann.`,"conversation-rating.overlay.bot-message.rate-feedback.value-3":`Durchschnitt ist nicht mein Ziel, was kann ich noch verbessern?`,"conversation-rating.overlay.bot-message.rate-feedback.value-4":`Knapp daneben ist auch vorbei. Was kann ich noch verbessern, um das nächste Mal alle Sterne zu erreichen?`,"conversation-rating.overlay.bot-message.rate-feedback.value-5":`Perfekt! Dann hoffe ich, dass ich Sie wieder einmal so gut beraten kann.`,"conversation-rating.overlay.bot-message.submit-feedback":`Vielen Dank für die Rückmeldung. Ich bin bestrebt, mich ständig zu verbessern.`,"conversation-rating.overlay.action.submit":`Bewertung senden`,"conversation-rating.overlay.action.back-to-chat":`Zurück zum Chat`,"conversation-rating.overlay.action.close-chat":`Chat minimieren`,"conversation-rating.overlay.action.restart-chat":`Chat neu starten`,"conversation-rating.overlay.action.cancel":`Abbrechen`,"start-screen.intro":``,"start-screen.start-chat":`Chat starten`,"start-screen.waiting-for-login":`Warte auf Login ...`,"header.close-chat":`Chat minimieren`,"header.menu.title":`Menü`,"header.menu.restart-chat":`Chat neu starten`,"header.menu.expand-chat-window":`Fenster maximieren`,"header.menu.download-transcript":`Chatverlauf herunterladen`,"header.menu.send-transcript":`Chatverlauf versenden`,"header.menu.export-transcript":`Chatverlauf exportieren`,"header.menu.rate-conversation":`Chat bewerten`,"source-infos.close":`Schliessen`,"source-infos.open-source":`Quelle öffnen`,"source-infos.error.title":`Fehler`,"source-infos.error.info":`Oops! Etwas ist schiefgelaufen. Bitte versuche es erneut oder kontaktiere den Support, falls das Problem weiterhin besteht.`,"source-infos.highlight-loading.title":`Relevante Inhalte werden markiert...`,"source-infos.highlight-loading.description":`Einen Moment – die Quelle wird analysiert.`,"commands.show-more.action":`Weitere ...`,"commands.show-more.tooltip":`Weitere Befehle anzeigen`,"commands.show-less.action":`Weniger ...`,"commands.show-less.tooltip":`Weniger Befehle anzeigen`},zf={"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`,"message-input.actions.command.label":`Perform action`,"bot-bubble.label":`Message from the chatbot`,"bot-bubble.actions.label":`Message actions`,"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`,"bot-bubble.footnote":`Footnote`,"agent-bubble.label":`Message from the live agent`,"conversation.label":`Chat history`,"chatbot.typing":`Chatbot is typing`,"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:
|
|
69
|
+
|
|
70
|
+
- The chat history is stored in the EU area and can only be viewed by authorized personnel.
|
|
71
|
+
- 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.restart-chat":`Restart 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`};function Bf(e,t=``,n=`.`){let r={};for(let i in e)if(Object.prototype.hasOwnProperty.call(e,i)){let a=e[i],o=t?`${t}${n}${i}`:i;typeof a==`object`&&a&&!Array.isArray(a)?Object.assign(r,Bf(a,o,n)):r[o]=String(a)}return r}var Vf={"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`,"message-input.actions.command.label":`Exécuter l'action`,"guest-bubble.label":`Votre message`,"bot-bubble.label":`Message du chatbot`,"bot-bubble.actions.label":`Actions du message`,"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`,"bot-bubble.footnote":`Note de bas de page`,"agent-bubble.label":`Message de l'agent en direct`,"conversation.label":`Historique du chat`,"chatbot.typing":`Le chatbot écrit`,"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:
|
|
72
|
+
|
|
73
|
+
- L'historique du chat est stocké dans l'espace UE et ne peut être consulté que par les personnes autorisées.
|
|
74
|
+
- Ne saisissez aucune information personnelle dans la fenêtre de chat (mots de passe, date de naissance, etc.).`,"general-conditions.accept-conditions-note":`En utilisant le chat, vous acceptez les conditions d'utilisation.`,"block-user-input.title":`Veuillez attendre la réponse du chatbot.`,"conversation-rating.call-to-action.title":`Notez ce chat`,"conversation-rating.overlay.title":`Dans quelle mesure êtes-vous satisfait de ce chat ?`,"conversation-rating.overlay.guest-feedback.input-placeholder":`Veuillez saisir vos commentaires ici (facultatif)`,"conversation-rating.overlay.star.very-bad":`Très mauvais`,"conversation-rating.overlay.star.very-good":`Très bien`,"conversation-rating.overlay.bot-message.rate-feedback.value-1":`Oh, ça ne sonne pas bien. Merci de me donner un feedback pour que je puisse en apprendre davantage.`,"conversation-rating.overlay.bot-message.rate-feedback.value-2":`Oh, ça ne sonne pas bien. Merci de me donner un feedback pour que je puisse en apprendre davantage.`,"conversation-rating.overlay.bot-message.rate-feedback.value-3":`La moyenne n'est pas mon objectif, que puis-je encore améliorer ?`,"conversation-rating.overlay.bot-message.rate-feedback.value-4":`Le rater de peu, c'est le rater aussi. Que puis-je encore améliorer pour obtenir toutes les étoiles la prochaine fois ?`,"conversation-rating.overlay.bot-message.rate-feedback.value-5":`Parfait ! Alors j'espère pouvoir vous conseiller aussi bien une fois de plus.`,"conversation-rating.overlay.bot-message.submit-feedback":`Merci beaucoup pour votre feed-back. Je m'efforce de m'améliorer en permanence.`,"conversation-rating.overlay.action.submit":`Envoyer`,"conversation-rating.overlay.action.back-to-chat":`Fermer`,"conversation-rating.overlay.action.close-chat":`Minimiser le chat`,"conversation-rating.overlay.action.restart-chat":`Redémarrer le chat`,"conversation-rating.overlay.action.cancel":`Annuler`,"start-screen.intro":``,"start-screen.start-chat":`Démarrer le chat`,"start-screen.waiting-for-login":`En attente de connexion ...`,"header.close-chat":`Minimiser le chat`,"header.menu.title":`Menu`,"header.menu.restart-chat":`Redémarrer le chat`,"header.menu.expand-chat-window":`Agrandir la fenêtre`,"header.menu.download-transcript":`Télécharger l'historique du chat`,"header.menu.send-transcript":`Envoyer l'historique du chat`,"header.menu.export-transcript":`Exporter l'historique du chat`,"header.menu.rate-conversation":`Évaluer le chat`,"source-infos.close":`Fermer`,"source-infos.open-source":`Ouvrir source`,"source-infos.error.title":`Erreur`,"source-infos.error.info":`Oups ! Quelque chose s'est mal passé. Merci de réessayer ou de contacter le support si le problème persiste.`,"source-infos.highlight-loading.title":`Contenus pertinents en surbrillance...`,"source-infos.highlight-loading.description":`Un instant - la source est analysée`,"commands.show-more.action":`Plus`,"commands.show-more.tooltip":`Afficher plus de commandes`,"commands.show-less.action":`Moins`,"commands.show-less.tooltip":`Afficher moins de commandes`},Hf={"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`,"message-input.actions.command.label":`Esegui azione`,"guest-bubble.label":`Il tuo messaggio`,"bot-bubble.label":`Messaggio del chatbot`,"bot-bubble.actions.label":`Azioni del messaggio`,"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`,"bot-bubble.footnote":`Nota a piè di pagina`,"agent-bubble.label":`Messaggio dell'agente dal vivo`,"conversation.label":`Cronologia chat`,"chatbot.typing":`Il chatbot sta scrivendo`,"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:
|
|
75
|
+
|
|
76
|
+
- La cronologia delle chat è memorizzata nell'area UE e può essere visualizzata solo da persone autorizzate.
|
|
77
|
+
- Non inserire dati personali nella finestra di chat (password, data di nascita, ecc.).`,"general-conditions.accept-conditions-note":`Utilizzando la chat si accettano le condizioni d'uso.`,"block-user-input.title":`Attendere la risposta del chatbot.`,"conversation-rating.call-to-action.title":`Valuta questa chat`,"conversation-rating.overlay.title":`Quanto sei soddisfatto di questa chat?`,"conversation-rating.overlay.guest-feedback.input-placeholder":`Inserisci qui il tuo feedback (opzionale)`,"conversation-rating.overlay.star.very-bad":`Molto male`,"conversation-rating.overlay.star.very-good":`Molto buono`,"conversation-rating.overlay.bot-message.rate-feedback.value-1":`Oh, non suona bene. Vi prego di darmi un feedback in modo che possa imparare di più.`,"conversation-rating.overlay.bot-message.rate-feedback.value-2":`Oh, non suona bene. Vi prego di darmi un feedback in modo che possa imparare di più.`,"conversation-rating.overlay.bot-message.rate-feedback.value-3":`La media non è il mio obiettivo, cosa posso ancora migliorare?`,"conversation-rating.overlay.bot-message.rate-feedback.value-4":`Anche l'assenza è finita. Cosa posso migliorare per ottenere tutte le stelle la prossima volta?`,"conversation-rating.overlay.bot-message.rate-feedback.value-5":`Perfetto! Allora spero di potervi consigliare ancora una volta bene.`,"conversation-rating.overlay.bot-message.submit-feedback":`Grazie mille per il feedback. Mi impegno costantemente per migliorare.`,"conversation-rating.overlay.action.submit":`Invia`,"conversation-rating.overlay.action.back-to-chat":`Chiudere`,"conversation-rating.overlay.action.close-chat":`Minimizzare la chat`,"conversation-rating.overlay.action.restart-chat":`Riavviare la chat`,"conversation-rating.overlay.action.cancel":`Annulla`,"start-screen.intro":``,"start-screen.start-chat":`Avviare la chat`,"start-screen.waiting-for-login":`In attesa di login ...`,"header.close-chat":`Minimizzare la chat`,"header.menu.title":`Menu`,"header.menu.restart-chat":`Riavviare la chat`,"header.menu.expand-chat-window":`Espandere la finestra`,"header.menu.download-transcript":`Scaricare la trascrizione`,"header.menu.send-transcript":`Inviare la trascrizione`,"header.menu.export-transcript":`Esportare la trascrizione`,"header.menu.rate-conversation":`Valutare la conversazione`,"source-infos.close":`Chiudere`,"source-infos.open-source":`Fonte aperta`,"source-infos.error.title":`Errore`,"source-infos.error.info":`Ops! Qualcosa è andato storto. Riprovare o contattare l'assistenza se il problema persiste.`,"source-infos.highlight-loading.title":`Il contenuto rilevante è evidenziato...`,"source-infos.highlight-loading.description":`Un momento - la fonte è in fase di analisi`,"commands.show-more.action":`Di più`,"commands.show-more.tooltip":`Mostra più comandi`,"commands.show-less.action":`Meno`,"commands.show-less.tooltip":`Mostra meno comandi`},Uf=[`de`,`en`,`fr`,`it`],Wf={locale:`de`,messages:Rf},Gf=(e,t)=>{if(Uf.includes(e)){let n=Kf(e),r=Bf(t);return{...n,...r}}return t},Kf=e=>{switch(e.toString()){case`en`:return zf;case`fr`:return Vf;case`it`:return Hf;default:return Rf}},qf=(e=Jf,t)=>{switch(t.type){case Li:return Object.assign({},e,{connectionState:na.CONNECTING});case Ri:return Object.assign({},e,{connectionState:na.CONNECTED});case zi:return Object.assign({},e,{connectionState:na.DISCONNECTED});case Bi:return Object.assign({},e,{connectionState:na.RECONNECTED});case Vi:return Object.assign({},e,{sessionId:t.sessionId});case Hi:return Object.assign({},e,{sessionId:t.payload.sessionId,userId:t.payload.userId});case Ui:return Object.assign({},e,{sessionId:void 0});default:return e}},Jf={connectionState:na.DISCONNECTED,sessionId:void 0,userId:void 0,queryString:window.location.search},Yf=(e=ep,t)=>{switch(t.type){case wi:return ep;case Hi:return Zf({type:`webclient.chat.started`}),e;case Ui:return Zf({type:`webclient.chat.ended`}),e;case at.TYPING_ON:return Object.assign({},e,{isBotTyping:!0});case at.TYPING_OFF:return Object.assign({},e,{isBotTyping:!1});case at.MESSAGE_FROM_GUEST:case at.MESSAGE_WITHOUT_ANALYSIS_FROM_GUEST:return Xf(e,t.message,t.meta);case at.MESSAGE_TO_GUEST:{Zf(t);let n=Object.assign({},t.message,{_id:t.meta.actionId}),r=e.messages.filter(e=>e._id===t.meta.actionId).length>0;return Object.assign({},e,{isBotTyping:!1,messages:r?e.messages:e.messages.concat([n]),quickReplies:n.quickReplies?n.quickReplies:[]})}case vt:{let n=t.messages,r=n.length?n[n.length-1]:void 0;return Object.assign({},e,{isBotTyping:!1,messages:n,quickReplies:r?.quickReplies||[]})}case _t:return Zf(t.message),e;case at.EVENT_TO_GUEST:return Zf(t.event),e;case at.DRAWER_OPEN:return Object.assign({},e,{drawerContentUrl:t.payload.parameters.contentUrl});case at.DRAWER_CLOSE:return Object.assign({},e,{drawerContentUrl:void 0});case at.GUEST_LOCALE_CHANGED:return Object.assign({},e,{locale:t.payload.locale});case Et:return Zf(t),e;case Dt:return Zf(t),{...e,conversationRating:{...e.conversationRating,opener:void 0}};case bt:{let n=new pt(t.transcription,new dt);return Xf(e,Object.assign({},n,{_id:Qt()}))}case at.TRANSCRIPT_ITEM_GUEST_REACTION:{let n=e.messages.map(e=>e._id===t.payload.actionId?Object.assign({},e,t.payload.reaction?{reaction:{type:t.payload.reaction,category:t.payload.category,comment:t.payload.comment}}:{reaction:void 0}):e);return Object.assign({},e,{messages:n})}case xt:{let n={enabled:!0,rating:t.payload.rating};return Object.assign({},e,{conversationRating:n})}case at.CONVERSATION_RATING_FROM_GUEST:{let n={...e.conversationRating,rating:t.payload};return Object.assign({},e,{conversationRating:n})}case Ei:{let n={...e.conversationRating,opener:t.payload.opener,...t.payload.defaultRating?{rating:{value:t.payload.defaultRating,feedback:e.conversationRating.rating?.feedback||``}}:{}};return Object.assign({},e,{conversationRating:n})}case Di:{let t={...e.conversationRating,opener:void 0};return Object.assign({},e,{conversationRating:t})}case wt:return{...e,sourceInfos:{type:`loading`,chunkId:t.payload.chunkId}};case Ct:{let{highlighted:n}=t.payload;return e.sourceInfos?.type===`loaded`&&n?{...e,sourceInfos:{...e.sourceInfos,highlighted:!0}}:{...e,sourceInfos:{type:`loading-error`}}}case St:{let n=e.sourceInfos?.type,{chunkId:r,knowledgeBaseType:i,title:a,content:o,highlighted:s,url:c}=t.payload,l=e.sourceInfos?.type===`loading`||e.sourceInfos?.type===`loaded`?e.sourceInfos?.chunkId:void 0;return l&&l!==r?e:n===`loading`||n===`loaded`&&s?{...e,sourceInfos:{type:`loaded`,chunkId:r,knowledgeBaseType:i,title:a,content:o,highlighted:s,url:c}}:e}case Tt:return{...e,sourceInfos:void 0};case Ti:return{...e,showTranscriptMailOverlay:!e.showTranscriptMailOverlay,conversationRating:{...e.conversationRating,opener:void 0}};default:return e}},Xf=(e,t,n)=>{let r=e.messages[e.messages.length-1],i=r?.text===t.text,a=!!n?.actionId,o=r&&!r._id&&r.sender.type===t.sender.type;if(a&&o){let r=Object.assign({},t,{_id:n.actionId}),i=[...e.messages];return i[i.length-1]=r,Object.assign({},e,{messages:i,quickReplies:[]})}return r&&r.sender.type===t.sender.type&&i?e:Object.assign({},e,{messages:e.messages.concat([t]),quickReplies:[]})},Zf=e=>{if($f()){let t=Qf();window.top?.postMessage(e,t)}else e.type===`webclient.change.url`&&window.open(e.url)},Qf=()=>{try{return document.referrer?new URL(document.referrer).origin:`*`}catch{return`*`}},$f=()=>typeof window<`u`&&window.self!==window.top,ep={messages:[],quickReplies:[],isBotTyping:!1,showTranscriptMailOverlay:!1,conversationRating:{enabled:!1}},tp=ni({name:`intl`,initialState:Wf,reducers:{updateIntl:(e,t)=>{e.locale=t.payload.language,e.messages=t.payload.messages}}}),{updateIntl:np}=tp.actions,rp=tp.reducer,ip=ni({name:`settings`,initialState:{version:void 0,requiresUserAuthentication:!1,enableStartScreen:void 0,enableStandaloneView:!1,enableTranscriptExportEmail:!1,enableTranscriptExportPdf:!1,enableGeneralConditions:!1,enableSpeechSupport:!1,commands:[],menuItems:[],allowedEmbedOrigins:void 0},reducers:{setSettings(e,t){e.version&&e.version!==t.payload.version?(console.log(`version changed, reloading chat window`),window.location.reload()):(e.version=t.payload.version,e.requiresUserAuthentication=t.payload.requiresUserAuthentication,e.enableStartScreen=t.payload.enableStartScreen,e.enableStandaloneView=t.payload.enableStandaloneView,e.enableTranscriptExportEmail=t.payload.enableTranscriptExportEmail,e.enableTranscriptExportPdf=t.payload.enableTranscriptExportPdf,e.enableGeneralConditions=t.payload.enableGeneralConditions,e.enableSpeechSupport=t.payload.enableSpeechSupport,e.commands=t.payload.commands,e.menuItems=t.payload.menuItems||[],e.allowedEmbedOrigins=t.payload.allowedEmbedOrigins)}}}),{setSettings:ap}=ip.actions,op=ip.reducer,sp=ln({settings:op,chat:Yf,startScreen:Ci,connection:qf,intl:rp}),cp=`bubble-chat`,lp=`state-last-saved-at`,up=`state`,dp=e=>{try{if(!mp()||pp(hp(e,lp)))return;{let t=hp(e,up);if(t===null)return;let n=JSON.parse(t),r=n.connection?.queryString;if(r!==void 0&&!vp(r,window.location.search)){console.log(`Ignoring persisted state due to different query string`);return}else return n}}catch(e){console.error(e);return}},fp=(e,t)=>{try{gp(e,up,JSON.stringify(t)),gp(e,lp,new Date().toISOString())}catch(e){console.error(e)}},pp=e=>{if(e===null)return!1;let t=new Date(e);return t.setHours(t.getHours()+12),new Date>t},mp=()=>typeof localStorage<`u`,hp=(e,t)=>{let n=_p(e,t);return localStorage.getItem(n)},gp=(e,t,n)=>{let r=_p(e,t);return localStorage.setItem(r,n)},_p=(e,t)=>`${cp}-${e}-${t}`,vp=(e,t)=>{let n=new URLSearchParams(e),r=new URLSearchParams(t);n.delete(`referrer`),r.delete(`referrer`);let i=Array.from(n.entries()).sort(),a=Array.from(r.entries()).sort();return i.length===a.length?i.every(([e,t],n)=>{let[r,i]=a[n];return e===r&&t===i}):!1},yp=Object.create(null);yp.open=`0`,yp.close=`1`,yp.ping=`2`,yp.pong=`3`,yp.message=`4`,yp.upgrade=`5`,yp.noop=`6`;var bp=Object.create(null);Object.keys(yp).forEach(e=>{bp[yp[e]]=e});var xp={type:`error`,data:`parser error`},Sp=typeof Blob==`function`||typeof Blob<`u`&&Object.prototype.toString.call(Blob)===`[object BlobConstructor]`,Cp=typeof ArrayBuffer==`function`,wp=e=>typeof ArrayBuffer.isView==`function`?ArrayBuffer.isView(e):e&&e.buffer instanceof ArrayBuffer,Tp=({type:e,data:t},n,r)=>Sp&&t instanceof Blob?n?r(t):Ep(t,r):Cp&&(t instanceof ArrayBuffer||wp(t))?n?r(t):Ep(new Blob([t]),r):r(yp[e]+(t||``)),Ep=(e,t)=>{let n=new FileReader;return n.onload=function(){let e=n.result.split(`,`)[1];t(`b`+(e||``))},n.readAsDataURL(e)};function Dp(e){return e instanceof Uint8Array?e:e instanceof ArrayBuffer?new Uint8Array(e):new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}var Op;function kp(e,t){if(Sp&&e.data instanceof Blob)return e.data.arrayBuffer().then(Dp).then(t);if(Cp&&(e.data instanceof ArrayBuffer||wp(e.data)))return t(Dp(e.data));Tp(e,!1,e=>{Op||=new TextEncoder,t(Op.encode(e))})}var Ap=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/`,jp=typeof Uint8Array>`u`?[]:new Uint8Array(256);for(let e=0;e<64;e++)jp[Ap.charCodeAt(e)]=e;var Mp=e=>{let t=e.length*.75,n=e.length,r,i=0,a,o,s,c;e[e.length-1]===`=`&&(t--,e[e.length-2]===`=`&&t--);let l=new ArrayBuffer(t),u=new Uint8Array(l);for(r=0;r<n;r+=4)a=jp[e.charCodeAt(r)],o=jp[e.charCodeAt(r+1)],s=jp[e.charCodeAt(r+2)],c=jp[e.charCodeAt(r+3)],u[i++]=a<<2|o>>4,u[i++]=(o&15)<<4|s>>2,u[i++]=(s&3)<<6|c&63;return l},Np=typeof ArrayBuffer==`function`,Pp=(e,t)=>{if(typeof e!=`string`)return{type:`message`,data:Ip(e,t)};let n=e.charAt(0);return n===`b`?{type:`message`,data:Fp(e.substring(1),t)}:bp[n]?e.length>1?{type:bp[n],data:e.substring(1)}:{type:bp[n]}:xp},Fp=(e,t)=>Np?Ip(Mp(e),t):{base64:!0,data:e},Ip=(e,t)=>{switch(t){case`blob`:return e instanceof Blob?e:new Blob([e]);default:return e instanceof ArrayBuffer?e:e.buffer}},Lp=``,Rp=(e,t)=>{let n=e.length,r=Array(n),i=0;e.forEach((e,a)=>{Tp(e,!1,e=>{r[a]=e,++i===n&&t(r.join(Lp))})})},zp=(e,t)=>{let n=e.split(Lp),r=[];for(let e=0;e<n.length;e++){let i=Pp(n[e],t);if(r.push(i),i.type===`error`)break}return r};function Bp(){return new TransformStream({transform(e,t){kp(e,n=>{let r=n.length,i;if(r<126)i=new Uint8Array(1),new DataView(i.buffer).setUint8(0,r);else if(r<65536){i=new Uint8Array(3);let e=new DataView(i.buffer);e.setUint8(0,126),e.setUint16(1,r)}else{i=new Uint8Array(9);let e=new DataView(i.buffer);e.setUint8(0,127),e.setBigUint64(1,BigInt(r))}e.data&&typeof e.data!=`string`&&(i[0]|=128),t.enqueue(i),t.enqueue(n)})}})}var Vp;function Hp(e){return e.reduce((e,t)=>e+t.length,0)}function Up(e,t){if(e[0].length===t)return e.shift();let n=new Uint8Array(t),r=0;for(let i=0;i<t;i++)n[i]=e[0][r++],r===e[0].length&&(e.shift(),r=0);return e.length&&r<e[0].length&&(e[0]=e[0].slice(r)),n}function Wp(e,t){Vp||=new TextDecoder;let n=[],r=0,i=-1,a=!1;return new TransformStream({transform(o,s){for(n.push(o);;){if(r===0){if(Hp(n)<1)break;let e=Up(n,1);a=(e[0]&128)==128,i=e[0]&127,r=i<126?3:i===126?1:2}else if(r===1){if(Hp(n)<2)break;let e=Up(n,2);i=new DataView(e.buffer,e.byteOffset,e.length).getUint16(0),r=3}else if(r===2){if(Hp(n)<8)break;let e=Up(n,8),t=new DataView(e.buffer,e.byteOffset,e.length),a=t.getUint32(0);if(a>2**21-1){s.enqueue(xp);break}i=a*2**32+t.getUint32(4),r=3}else{if(Hp(n)<i)break;let e=Up(n,i);s.enqueue(Pp(a?e:Vp.decode(e),t)),r=0}if(i===0||i>e){s.enqueue(xp);break}}}})}function Gp(e){if(e)return Kp(e)}function Kp(e){for(var t in Gp.prototype)e[t]=Gp.prototype[t];return e}Gp.prototype.on=Gp.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks[`$`+e]=this._callbacks[`$`+e]||[]).push(t),this},Gp.prototype.once=function(e,t){function n(){this.off(e,n),t.apply(this,arguments)}return n.fn=t,this.on(e,n),this},Gp.prototype.off=Gp.prototype.removeListener=Gp.prototype.removeAllListeners=Gp.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var n=this._callbacks[`$`+e];if(!n)return this;if(arguments.length==1)return delete this._callbacks[`$`+e],this;for(var r,i=0;i<n.length;i++)if(r=n[i],r===t||r.fn===t){n.splice(i,1);break}return n.length===0&&delete this._callbacks[`$`+e],this},Gp.prototype.emit=function(e){this._callbacks=this._callbacks||{};for(var t=Array(arguments.length-1),n=this._callbacks[`$`+e],r=1;r<arguments.length;r++)t[r-1]=arguments[r];if(n){n=n.slice(0);for(var r=0,i=n.length;r<i;++r)n[r].apply(this,t)}return this},Gp.prototype.emitReserved=Gp.prototype.emit,Gp.prototype.listeners=function(e){return this._callbacks=this._callbacks||{},this._callbacks[`$`+e]||[]},Gp.prototype.hasListeners=function(e){return!!this.listeners(e).length};var qp=typeof Promise==`function`&&typeof Promise.resolve==`function`?e=>Promise.resolve().then(e):(e,t)=>t(e,0),Jp=typeof self<`u`?self:typeof window<`u`?window:Function(`return this`)(),Yp=`arraybuffer`;function Xp(e,...t){return t.reduce((t,n)=>(e.hasOwnProperty(n)&&(t[n]=e[n]),t),{})}var Zp=Jp.setTimeout,Qp=Jp.clearTimeout;function $p(e,t){t.useNativeTimers?(e.setTimeoutFn=Zp.bind(Jp),e.clearTimeoutFn=Qp.bind(Jp)):(e.setTimeoutFn=Jp.setTimeout.bind(Jp),e.clearTimeoutFn=Jp.clearTimeout.bind(Jp))}var em=1.33;function tm(e){return typeof e==`string`?nm(e):Math.ceil((e.byteLength||e.size)*em)}function nm(e){let t=0,n=0;for(let r=0,i=e.length;r<i;r++)t=e.charCodeAt(r),t<128?n+=1:t<2048?n+=2:t<55296||t>=57344?n+=3:(r++,n+=4);return n}function rm(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)}function im(e){let t=``;for(let n in e)e.hasOwnProperty(n)&&(t.length&&(t+=`&`),t+=encodeURIComponent(n)+`=`+encodeURIComponent(e[n]));return t}function am(e){let t={},n=e.split(`&`);for(let e=0,r=n.length;e<r;e++){let r=n[e].split(`=`);t[decodeURIComponent(r[0])]=decodeURIComponent(r[1])}return t}var om=class extends Error{constructor(e,t,n){super(e),this.description=t,this.context=n,this.type=`TransportError`}},sm=class extends Gp{constructor(e){super(),this.writable=!1,$p(this,e),this.opts=e,this.query=e.query,this.socket=e.socket,this.supportsBinary=!e.forceBase64}onError(e,t,n){return super.emitReserved(`error`,new om(e,t,n)),this}open(){return this.readyState=`opening`,this.doOpen(),this}close(){return(this.readyState===`opening`||this.readyState===`open`)&&(this.doClose(),this.onClose()),this}send(e){this.readyState===`open`&&this.write(e)}onOpen(){this.readyState=`open`,this.writable=!0,super.emitReserved(`open`)}onData(e){let t=Pp(e,this.socket.binaryType);this.onPacket(t)}onPacket(e){super.emitReserved(`packet`,e)}onClose(e){this.readyState=`closed`,super.emitReserved(`close`,e)}pause(e){}createUri(e,t={}){return e+`://`+this._hostname()+this._port()+this.opts.path+this._query(t)}_hostname(){let e=this.opts.hostname;return e.indexOf(`:`)===-1?e:`[`+e+`]`}_port(){return this.opts.port&&(this.opts.secure&&Number(this.opts.port)!==443||!this.opts.secure&&Number(this.opts.port)!==80)?`:`+this.opts.port:``}_query(e){let t=im(e);return t.length?`?`+t:``}},cm=class extends sm{constructor(){super(...arguments),this._polling=!1}get name(){return`polling`}doOpen(){this._poll()}pause(e){this.readyState=`pausing`;let t=()=>{this.readyState=`paused`,e()};if(this._polling||!this.writable){let e=0;this._polling&&(e++,this.once(`pollComplete`,function(){--e||t()})),this.writable||(e++,this.once(`drain`,function(){--e||t()}))}else t()}_poll(){this._polling=!0,this.doPoll(),this.emitReserved(`poll`)}onData(e){zp(e,this.socket.binaryType).forEach(e=>{if(this.readyState===`opening`&&e.type===`open`&&this.onOpen(),e.type===`close`)return this.onClose({description:`transport closed by the server`}),!1;this.onPacket(e)}),this.readyState!==`closed`&&(this._polling=!1,this.emitReserved(`pollComplete`),this.readyState===`open`&&this._poll())}doClose(){let e=()=>{this.write([{type:`close`}])};this.readyState===`open`?e():this.once(`open`,e)}write(e){this.writable=!1,Rp(e,e=>{this.doWrite(e,()=>{this.writable=!0,this.emitReserved(`drain`)})})}uri(){let e=this.opts.secure?`https`:`http`,t=this.query||{};return!1!==this.opts.timestampRequests&&(t[this.opts.timestampParam]=rm()),!this.supportsBinary&&!t.sid&&(t.b64=1),this.createUri(e,t)}},lm=!1;try{lm=typeof XMLHttpRequest<`u`&&`withCredentials`in new XMLHttpRequest}catch{}var um=lm;function dm(){}var fm=class extends cm{constructor(e){if(super(e),typeof location<`u`){let t=location.protocol===`https:`,n=location.port;n||=t?`443`:`80`,this.xd=typeof location<`u`&&e.hostname!==location.hostname||n!==e.port}}doWrite(e,t){let n=this.request({method:`POST`,data:e});n.on(`success`,t),n.on(`error`,(e,t)=>{this.onError(`xhr post error`,e,t)})}doPoll(){let e=this.request();e.on(`data`,this.onData.bind(this)),e.on(`error`,(e,t)=>{this.onError(`xhr poll error`,e,t)}),this.pollXhr=e}},pm=class e extends Gp{constructor(e,t,n){super(),this.createRequest=e,$p(this,n),this._opts=n,this._method=n.method||`GET`,this._uri=t,this._data=n.data===void 0?null:n.data,this._create()}_create(){var t;let n=Xp(this._opts,`agent`,`pfx`,`key`,`passphrase`,`cert`,`ca`,`ciphers`,`rejectUnauthorized`,`autoUnref`);n.xdomain=!!this._opts.xd;let r=this._xhr=this.createRequest(n);try{r.open(this._method,this._uri,!0);try{if(this._opts.extraHeaders){r.setDisableHeaderCheck&&r.setDisableHeaderCheck(!0);for(let e in this._opts.extraHeaders)this._opts.extraHeaders.hasOwnProperty(e)&&r.setRequestHeader(e,this._opts.extraHeaders[e])}}catch{}if(this._method===`POST`)try{r.setRequestHeader(`Content-type`,`text/plain;charset=UTF-8`)}catch{}try{r.setRequestHeader(`Accept`,`*/*`)}catch{}(t=this._opts.cookieJar)==null||t.addCookies(r),`withCredentials`in r&&(r.withCredentials=this._opts.withCredentials),this._opts.requestTimeout&&(r.timeout=this._opts.requestTimeout),r.onreadystatechange=()=>{var e;r.readyState===3&&((e=this._opts.cookieJar)==null||e.parseCookies(r.getResponseHeader(`set-cookie`))),r.readyState===4&&(r.status===200||r.status===1223?this._onLoad():this.setTimeoutFn(()=>{this._onError(typeof r.status==`number`?r.status:0)},0))},r.send(this._data)}catch(e){this.setTimeoutFn(()=>{this._onError(e)},0);return}typeof document<`u`&&(this._index=e.requestsCount++,e.requests[this._index]=this)}_onError(e){this.emitReserved(`error`,e,this._xhr),this._cleanup(!0)}_cleanup(t){if(!(this._xhr===void 0||this._xhr===null)){if(this._xhr.onreadystatechange=dm,t)try{this._xhr.abort()}catch{}typeof document<`u`&&delete e.requests[this._index],this._xhr=null}}_onLoad(){let e=this._xhr.responseText;e!==null&&(this.emitReserved(`data`,e),this.emitReserved(`success`),this._cleanup())}abort(){this._cleanup()}};if(pm.requestsCount=0,pm.requests={},typeof document<`u`){if(typeof attachEvent==`function`)attachEvent(`onunload`,mm);else if(typeof addEventListener==`function`){let e=`onpagehide`in Jp?`pagehide`:`unload`;addEventListener(e,mm,!1)}}function mm(){for(let e in pm.requests)pm.requests.hasOwnProperty(e)&&pm.requests[e].abort()}var hm=(function(){let e=_m({xdomain:!1});return e&&e.responseType!==null})(),gm=class extends fm{constructor(e){super(e);let t=e&&e.forceBase64;this.supportsBinary=hm&&!t}request(e={}){return Object.assign(e,{xd:this.xd},this.opts),new pm(_m,this.uri(),e)}};function _m(e){let t=e.xdomain;try{if(typeof XMLHttpRequest<`u`&&(!t||um))return new XMLHttpRequest}catch{}if(!t)try{return new Jp[[`Active`,`Object`].join(`X`)](`Microsoft.XMLHTTP`)}catch{}}var vm=typeof navigator<`u`&&typeof navigator.product==`string`&&navigator.product.toLowerCase()===`reactnative`,ym=class extends sm{get name(){return`websocket`}doOpen(){let e=this.uri(),t=this.opts.protocols,n=vm?{}:Xp(this.opts,`agent`,`perMessageDeflate`,`pfx`,`key`,`passphrase`,`cert`,`ca`,`ciphers`,`rejectUnauthorized`,`localAddress`,`protocolVersion`,`origin`,`maxPayload`,`family`,`checkServerIdentity`);this.opts.extraHeaders&&(n.headers=this.opts.extraHeaders);try{this.ws=this.createSocket(e,t,n)}catch(e){return this.emitReserved(`error`,e)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=e=>this.onClose({description:`websocket connection closed`,context:e}),this.ws.onmessage=e=>this.onData(e.data),this.ws.onerror=e=>this.onError(`websocket error`,e)}write(e){this.writable=!1;for(let t=0;t<e.length;t++){let n=e[t],r=t===e.length-1;Tp(n,this.supportsBinary,e=>{try{this.doWrite(n,e)}catch{}r&&qp(()=>{this.writable=!0,this.emitReserved(`drain`)},this.setTimeoutFn)})}}doClose(){this.ws!==void 0&&(this.ws.onerror=()=>{},this.ws.close(),this.ws=null)}uri(){let e=this.opts.secure?`wss`:`ws`,t=this.query||{};return this.opts.timestampRequests&&(t[this.opts.timestampParam]=rm()),this.supportsBinary||(t.b64=1),this.createUri(e,t)}},bm=Jp.WebSocket||Jp.MozWebSocket,xm={websocket:class extends ym{createSocket(e,t,n){return vm?new bm(e,t,n):t?new bm(e,t):new bm(e)}doWrite(e,t){this.ws.send(t)}},webtransport:class extends sm{get name(){return`webtransport`}doOpen(){try{this._transport=new WebTransport(this.createUri(`https`),this.opts.transportOptions[this.name])}catch(e){return this.emitReserved(`error`,e)}this._transport.closed.then(()=>{this.onClose()}).catch(e=>{this.onError(`webtransport error`,e)}),this._transport.ready.then(()=>{this._transport.createBidirectionalStream().then(e=>{let t=Wp(2**53-1,this.socket.binaryType),n=e.readable.pipeThrough(t).getReader(),r=Bp();r.readable.pipeTo(e.writable),this._writer=r.writable.getWriter();let i=()=>{n.read().then(({done:e,value:t})=>{e||(this.onPacket(t),i())}).catch(e=>{})};i();let a={type:`open`};this.query.sid&&(a.data=`{"sid":"${this.query.sid}"}`),this._writer.write(a).then(()=>this.onOpen())})})}write(e){this.writable=!1;for(let t=0;t<e.length;t++){let n=e[t],r=t===e.length-1;this._writer.write(n).then(()=>{r&&qp(()=>{this.writable=!0,this.emitReserved(`drain`)},this.setTimeoutFn)})}}doClose(){var e;(e=this._transport)==null||e.close()}},polling:gm},Sm=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,Cm=[`source`,`protocol`,`authority`,`userInfo`,`user`,`password`,`host`,`port`,`relative`,`path`,`directory`,`file`,`query`,`anchor`];function wm(e){if(e.length>8e3)throw`URI too long`;let t=e,n=e.indexOf(`[`),r=e.indexOf(`]`);n!=-1&&r!=-1&&(e=e.substring(0,n)+e.substring(n,r).replace(/:/g,`;`)+e.substring(r,e.length));let i=Sm.exec(e||``),a={},o=14;for(;o--;)a[Cm[o]]=i[o]||``;return n!=-1&&r!=-1&&(a.source=t,a.host=a.host.substring(1,a.host.length-1).replace(/;/g,`:`),a.authority=a.authority.replace(`[`,``).replace(`]`,``).replace(/;/g,`:`),a.ipv6uri=!0),a.pathNames=Tm(a,a.path),a.queryKey=Em(a,a.query),a}function Tm(e,t){let n=t.replace(/\/{2,9}/g,`/`).split(`/`);return(t.slice(0,1)==`/`||t.length===0)&&n.splice(0,1),t.slice(-1)==`/`&&n.splice(n.length-1,1),n}function Em(e,t){let n={};return t.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(e,t,r){t&&(n[t]=r)}),n}var Dm=typeof addEventListener==`function`&&typeof removeEventListener==`function`,Om=[];Dm&&addEventListener(`offline`,()=>{Om.forEach(e=>e())},!1);var km=class e extends Gp{constructor(e,t){if(super(),this.binaryType=Yp,this.writeBuffer=[],this._prevBufferLen=0,this._pingInterval=-1,this._pingTimeout=-1,this._maxPayload=-1,this._pingTimeoutTime=1/0,e&&typeof e==`object`&&(t=e,e=null),e){let n=wm(e);t.hostname=n.host,t.secure=n.protocol===`https`||n.protocol===`wss`,t.port=n.port,n.query&&(t.query=n.query)}else t.host&&(t.hostname=wm(t.host).host);$p(this,t),this.secure=t.secure==null?typeof location<`u`&&location.protocol===`https:`:t.secure,t.hostname&&!t.port&&(t.port=this.secure?`443`:`80`),this.hostname=t.hostname||(typeof location<`u`?location.hostname:`localhost`),this.port=t.port||(typeof location<`u`&&location.port?location.port:this.secure?`443`:`80`),this.transports=[],this._transportsByName={},t.transports.forEach(e=>{let t=e.prototype.name;this.transports.push(t),this._transportsByName[t]=e}),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},t),this.opts.path=this.opts.path.replace(/\/$/,``)+(this.opts.addTrailingSlash?`/`:``),typeof this.opts.query==`string`&&(this.opts.query=am(this.opts.query)),Dm&&(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`})},Om.push(this._offlineEventListener))),this.opts.withCredentials&&(this._cookieJar=void 0),this._open()}createTransport(e){let t=Object.assign({},this.opts.query);t.EIO=4,t.transport=e,this.id&&(t.sid=this.id);let n=Object.assign({},this.opts,{query:t,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[e]);return new this._transportsByName[e](n)}_open(){if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved(`error`,`No transports available`)},0);return}let t=this.opts.rememberUpgrade&&e.priorWebsocketSuccess&&this.transports.indexOf(`websocket`)!==-1?`websocket`:this.transports[0];this.readyState=`opening`;let n=this.createTransport(t);n.open(),this.setTransport(n)}setTransport(e){this.transport&&this.transport.removeAllListeners(),this.transport=e,e.on(`drain`,this._onDrain.bind(this)).on(`packet`,this._onPacket.bind(this)).on(`error`,this._onError.bind(this)).on(`close`,e=>this._onClose(`transport close`,e))}onOpen(){this.readyState=`open`,e.priorWebsocketSuccess=this.transport.name===`websocket`,this.emitReserved(`open`),this.flush()}_onPacket(e){if(this.readyState===`opening`||this.readyState===`open`||this.readyState===`closing`)switch(this.emitReserved(`packet`,e),this.emitReserved(`heartbeat`),e.type){case`open`:this.onHandshake(JSON.parse(e.data));break;case`ping`:this._sendPacket(`pong`),this.emitReserved(`ping`),this.emitReserved(`pong`),this._resetPingTimeout();break;case`error`:let t=Error(`server error`);t.code=e.data,this._onError(t);break;case`message`:this.emitReserved(`data`,e.data),this.emitReserved(`message`,e.data);break}}onHandshake(e){this.emitReserved(`handshake`,e),this.id=e.sid,this.transport.query.sid=e.sid,this._pingInterval=e.pingInterval,this._pingTimeout=e.pingTimeout,this._maxPayload=e.maxPayload,this.onOpen(),this.readyState!==`closed`&&this._resetPingTimeout()}_resetPingTimeout(){this.clearTimeoutFn(this._pingTimeoutTimer);let e=this._pingInterval+this._pingTimeout;this._pingTimeoutTime=Date.now()+e,this._pingTimeoutTimer=this.setTimeoutFn(()=>{this._onClose(`ping timeout`)},e),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){let e=this._getWritablePackets();this.transport.send(e),this._prevBufferLen=e.length,this.emitReserved(`flush`)}}_getWritablePackets(){if(!(this._maxPayload&&this.transport.name===`polling`&&this.writeBuffer.length>1))return this.writeBuffer;let e=1;for(let t=0;t<this.writeBuffer.length;t++){let n=this.writeBuffer[t].data;if(n&&(e+=tm(n)),t>0&&e>this._maxPayload)return this.writeBuffer.slice(0,t);e+=2}return this.writeBuffer}_hasPingExpired(){if(!this._pingTimeoutTime)return!0;let e=Date.now()>this._pingTimeoutTime;return e&&(this._pingTimeoutTime=0,qp(()=>{this._onClose(`ping timeout`)},this.setTimeoutFn)),e}write(e,t,n){return this._sendPacket(`message`,e,t,n),this}send(e,t,n){return this._sendPacket(`message`,e,t,n),this}_sendPacket(e,t,n,r){if(typeof t==`function`&&(r=t,t=void 0),typeof n==`function`&&(r=n,n=null),this.readyState===`closing`||this.readyState===`closed`)return;n||={},n.compress=!1!==n.compress;let i={type:e,data:t,options:n};this.emitReserved(`packetCreate`,i),this.writeBuffer.push(i),r&&this.once(`flush`,r),this.flush()}close(){let e=()=>{this._onClose(`forced close`),this.transport.close()},t=()=>{this.off(`upgrade`,t),this.off(`upgradeError`,t),e()},n=()=>{this.once(`upgrade`,t),this.once(`upgradeError`,t)};return(this.readyState===`opening`||this.readyState===`open`)&&(this.readyState=`closing`,this.writeBuffer.length?this.once(`drain`,()=>{this.upgrading?n():e()}):this.upgrading?n():e()),this}_onError(t){if(e.priorWebsocketSuccess=!1,this.opts.tryAllTransports&&this.transports.length>1&&this.readyState===`opening`)return this.transports.shift(),this._open();this.emitReserved(`error`,t),this._onClose(`transport error`,t)}_onClose(e,t){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(),Dm&&(this._beforeunloadEventListener&&removeEventListener(`beforeunload`,this._beforeunloadEventListener,!1),this._offlineEventListener)){let e=Om.indexOf(this._offlineEventListener);e!==-1&&Om.splice(e,1)}this.readyState=`closed`,this.id=null,this.emitReserved(`close`,e,t),this.writeBuffer=[],this._prevBufferLen=0}}};km.protocol=4;var Am=class extends km{constructor(){super(...arguments),this._upgrades=[]}onOpen(){if(super.onOpen(),this.readyState===`open`&&this.opts.upgrade)for(let e=0;e<this._upgrades.length;e++)this._probe(this._upgrades[e])}_probe(e){let t=this.createTransport(e),n=!1;km.priorWebsocketSuccess=!1;let r=()=>{n||(t.send([{type:`ping`,data:`probe`}]),t.once(`packet`,e=>{if(!n)if(e.type===`pong`&&e.data===`probe`){if(this.upgrading=!0,this.emitReserved(`upgrading`,t),!t)return;km.priorWebsocketSuccess=t.name===`websocket`,this.transport.pause(()=>{n||this.readyState!==`closed`&&(l(),this.setTransport(t),t.send([{type:`upgrade`}]),this.emitReserved(`upgrade`,t),t=null,this.upgrading=!1,this.flush())})}else{let e=Error(`probe error`);e.transport=t.name,this.emitReserved(`upgradeError`,e)}}))};function i(){n||(n=!0,l(),t.close(),t=null)}let a=e=>{let n=Error(`probe error: `+e);n.transport=t.name,i(),this.emitReserved(`upgradeError`,n)};function o(){a(`transport closed`)}function s(){a(`socket closed`)}function c(e){t&&e.name!==t.name&&i()}let l=()=>{t.removeListener(`open`,r),t.removeListener(`error`,a),t.removeListener(`close`,o),this.off(`close`,s),this.off(`upgrading`,c)};t.once(`open`,r),t.once(`error`,a),t.once(`close`,o),this.once(`close`,s),this.once(`upgrading`,c),this._upgrades.indexOf(`webtransport`)!==-1&&e!==`webtransport`?this.setTimeoutFn(()=>{n||t.open()},200):t.open()}onHandshake(e){this._upgrades=this._filterUpgrades(e.upgrades),super.onHandshake(e)}_filterUpgrades(e){let t=[];for(let n=0;n<e.length;n++)~this.transports.indexOf(e[n])&&t.push(e[n]);return t}},jm=class extends Am{constructor(e,t={}){let n=typeof e==`object`?e:t;(!n.transports||n.transports&&typeof n.transports[0]==`string`)&&(n.transports=(n.transports||[`polling`,`websocket`,`webtransport`]).map(e=>xm[e]).filter(e=>!!e)),super(e,n)}};jm.protocol;function Mm(e,t=``,n){let r=e;n||=typeof location<`u`&&location,e??=n.protocol+`//`+n.host,typeof e==`string`&&(e.charAt(0)===`/`&&(e=e.charAt(1)===`/`?n.protocol+e:n.host+e),/^(https?|wss?):\/\//.test(e)||(e=n===void 0?`https://`+e:n.protocol+`//`+e),r=wm(e)),r.port||(/^(http|ws)$/.test(r.protocol)?r.port=`80`:/^(http|ws)s$/.test(r.protocol)&&(r.port=`443`)),r.path=r.path||`/`;let i=r.host.indexOf(`:`)===-1?r.host:`[`+r.host+`]`;return r.id=r.protocol+`://`+i+`:`+r.port+t,r.href=r.protocol+`://`+i+(n&&n.port===r.port?``:`:`+r.port),r}var Nm=typeof ArrayBuffer==`function`,Pm=e=>typeof ArrayBuffer.isView==`function`?ArrayBuffer.isView(e):e.buffer instanceof ArrayBuffer,Fm=Object.prototype.toString,Im=typeof Blob==`function`||typeof Blob<`u`&&Fm.call(Blob)===`[object BlobConstructor]`,Lm=typeof File==`function`||typeof File<`u`&&Fm.call(File)===`[object FileConstructor]`;function Rm(e){return Nm&&(e instanceof ArrayBuffer||Pm(e))||Im&&e instanceof Blob||Lm&&e instanceof File}function zm(e,t){if(!e||typeof e!=`object`)return!1;if(Array.isArray(e)){for(let t=0,n=e.length;t<n;t++)if(zm(e[t]))return!0;return!1}if(Rm(e))return!0;if(e.toJSON&&typeof e.toJSON==`function`&&arguments.length===1)return zm(e.toJSON(),!0);for(let t in e)if(Object.prototype.hasOwnProperty.call(e,t)&&zm(e[t]))return!0;return!1}function Bm(e){let t=[],n=e.data,r=e;return r.data=Vm(n,t),r.attachments=t.length,{packet:r,buffers:t}}function Vm(e,t){if(!e)return e;if(Rm(e)){let n={_placeholder:!0,num:t.length};return t.push(e),n}else if(Array.isArray(e)){let n=Array(e.length);for(let r=0;r<e.length;r++)n[r]=Vm(e[r],t);return n}else if(typeof e==`object`&&!(e instanceof Date)){let n={};for(let r in e)Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=Vm(e[r],t));return n}return e}function Hm(e,t){return e.data=Um(e.data,t),delete e.attachments,e}function Um(e,t){if(!e)return e;if(e&&e._placeholder===!0){if(typeof e.num==`number`&&e.num>=0&&e.num<t.length)return t[e.num];throw Error(`illegal attachments`)}else if(Array.isArray(e))for(let n=0;n<e.length;n++)e[n]=Um(e[n],t);else if(typeof e==`object`)for(let n in e)Object.prototype.hasOwnProperty.call(e,n)&&(e[n]=Um(e[n],t));return e}var Wm=s({Decoder:()=>Jm,Encoder:()=>qm,PacketType:()=>Km,isPacketValid:()=>th,protocol:()=>5}),Gm=[`connect`,`connect_error`,`disconnect`,`disconnecting`,`newListener`,`removeListener`],Km;(function(e){e[e.CONNECT=0]=`CONNECT`,e[e.DISCONNECT=1]=`DISCONNECT`,e[e.EVENT=2]=`EVENT`,e[e.ACK=3]=`ACK`,e[e.CONNECT_ERROR=4]=`CONNECT_ERROR`,e[e.BINARY_EVENT=5]=`BINARY_EVENT`,e[e.BINARY_ACK=6]=`BINARY_ACK`})(Km||={});var qm=class{constructor(e){this.replacer=e}encode(e){return(e.type===Km.EVENT||e.type===Km.ACK)&&zm(e)?this.encodeAsBinary({type:e.type===Km.EVENT?Km.BINARY_EVENT:Km.BINARY_ACK,nsp:e.nsp,data:e.data,id:e.id}):[this.encodeAsString(e)]}encodeAsString(e){let t=``+e.type;return(e.type===Km.BINARY_EVENT||e.type===Km.BINARY_ACK)&&(t+=e.attachments+`-`),e.nsp&&e.nsp!==`/`&&(t+=e.nsp+`,`),e.id!=null&&(t+=e.id),e.data!=null&&(t+=JSON.stringify(e.data,this.replacer)),t}encodeAsBinary(e){let t=Bm(e),n=this.encodeAsString(t.packet),r=t.buffers;return r.unshift(n),r}},Jm=class e extends Gp{constructor(e){super(),this.opts=Object.assign({reviver:void 0,maxAttachments:10},typeof e==`function`?{reviver:e}:e)}add(e){let t;if(typeof e==`string`){if(this.reconstructor)throw Error(`got plaintext data when reconstructing a packet`);t=this.decodeString(e);let n=t.type===Km.BINARY_EVENT;n||t.type===Km.BINARY_ACK?(t.type=n?Km.EVENT:Km.ACK,this.reconstructor=new Ym(t),t.attachments===0&&super.emitReserved(`decoded`,t)):super.emitReserved(`decoded`,t)}else if(Rm(e)||e.base64)if(this.reconstructor)t=this.reconstructor.takeBinaryData(e),t&&(this.reconstructor=null,super.emitReserved(`decoded`,t));else throw Error(`got binary data when not reconstructing a packet`);else throw Error(`Unknown type: `+e)}decodeString(t){let n=0,r={type:Number(t.charAt(0))};if(Km[r.type]===void 0)throw Error(`unknown packet type `+r.type);if(r.type===Km.BINARY_EVENT||r.type===Km.BINARY_ACK){let e=n+1;for(;t.charAt(++n)!==`-`&&n!=t.length;);let i=t.substring(e,n);if(i!=Number(i)||t.charAt(n)!==`-`)throw Error(`Illegal attachments`);let a=Number(i);if(!Zm(a)||a<0)throw Error(`Illegal attachments`);if(a>this.opts.maxAttachments)throw Error(`too many attachments`);r.attachments=a}if(t.charAt(n+1)===`/`){let e=n+1;for(;++n&&!(t.charAt(n)===`,`||n===t.length););r.nsp=t.substring(e,n)}else r.nsp=`/`;let i=t.charAt(n+1);if(i!==``&&Number(i)==i){let e=n+1;for(;++n;){let e=t.charAt(n);if(e==null||Number(e)!=e){--n;break}if(n===t.length)break}r.id=Number(t.substring(e,n+1))}if(t.charAt(++n)){let i=this.tryParse(t.substr(n));if(e.isPayloadValid(r.type,i))r.data=i;else throw Error(`invalid payload`)}return r}tryParse(e){try{return JSON.parse(e,this.opts.reviver)}catch{return!1}}static isPayloadValid(e,t){switch(e){case Km.CONNECT:return $m(t);case Km.DISCONNECT:return t===void 0;case Km.CONNECT_ERROR:return typeof t==`string`||$m(t);case Km.EVENT:case Km.BINARY_EVENT:return Array.isArray(t)&&(typeof t[0]==`number`||typeof t[0]==`string`&&Gm.indexOf(t[0])===-1);case Km.ACK:case Km.BINARY_ACK:return Array.isArray(t)}}destroy(){this.reconstructor&&=(this.reconstructor.finishedReconstruction(),null)}},Ym=class{constructor(e){this.packet=e,this.buffers=[],this.reconPack=e}takeBinaryData(e){if(this.buffers.push(e),this.buffers.length===this.reconPack.attachments){let e=Hm(this.reconPack,this.buffers);return this.finishedReconstruction(),e}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}};function Xm(e){return typeof e==`string`}var Zm=Number.isInteger||function(e){return typeof e==`number`&&isFinite(e)&&Math.floor(e)===e};function Qm(e){return e===void 0||Zm(e)}function $m(e){return Object.prototype.toString.call(e)===`[object Object]`}function eh(e,t){switch(e){case Km.CONNECT:return t===void 0||$m(t);case Km.DISCONNECT:return t===void 0;case Km.EVENT:return Array.isArray(t)&&(typeof t[0]==`number`||typeof t[0]==`string`&&Gm.indexOf(t[0])===-1);case Km.ACK:return Array.isArray(t);case Km.CONNECT_ERROR:return typeof t==`string`||$m(t);default:return!1}}function th(e){return Xm(e.nsp)&&Qm(e.id)&&eh(e.type,e.data)}function nh(e,t,n){return e.on(t,n),function(){e.off(t,n)}}var rh=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1}),ih=class extends Gp{constructor(e,t,n){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=e,this.nsp=t,n&&n.auth&&(this.auth=n.auth),this._opts=Object.assign({},n),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;let e=this.io;this.subs=[nh(e,`open`,this.onopen.bind(this)),nh(e,`packet`,this.onpacket.bind(this)),nh(e,`error`,this.onerror.bind(this)),nh(e,`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(...e){return e.unshift(`message`),this.emit.apply(this,e),this}emit(e,...t){if(rh.hasOwnProperty(e))throw Error(`"`+e.toString()+`" is a reserved event name`);if(t.unshift(e),this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this._addToQueue(t),this;let n={type:Km.EVENT,data:t};if(n.options={},n.options.compress=this.flags.compress!==!1,typeof t[t.length-1]==`function`){let e=this.ids++,r=t.pop();this._registerAckCallback(e,r),n.id=e}let r=this.io.engine?.transport?.writable,i=this.connected&&!this.io.engine?._hasPingExpired();return this.flags.volatile&&!r||(i?(this.notifyOutgoingListeners(n),this.packet(n)):this.sendBuffer.push(n)),this.flags={},this}_registerAckCallback(e,t){let n=this.flags.timeout??this._opts.ackTimeout;if(n===void 0){this.acks[e]=t;return}let r=this.io.setTimeoutFn(()=>{delete this.acks[e];for(let t=0;t<this.sendBuffer.length;t++)this.sendBuffer[t].id===e&&this.sendBuffer.splice(t,1);t.call(this,Error(`operation has timed out`))},n),i=(...e)=>{this.io.clearTimeoutFn(r),t.apply(this,e)};i.withError=!0,this.acks[e]=i}emitWithAck(e,...t){return new Promise((n,r)=>{let i=(e,t)=>e?r(e):n(t);i.withError=!0,t.push(i),this.emit(e,...t)})}_addToQueue(e){let t;typeof e[e.length-1]==`function`&&(t=e.pop());let n={id:this._queueSeq++,tryCount:0,pending:!1,args:e,flags:Object.assign({fromQueue:!0},this.flags)};e.push((e,...r)=>(this._queue[0],e===null?(this._queue.shift(),t&&t(null,...r)):n.tryCount>this._opts.retries&&(this._queue.shift(),t&&t(e)),n.pending=!1,this._drainQueue())),this._queue.push(n),this._drainQueue()}_drainQueue(e=!1){if(!this.connected||this._queue.length===0)return;let t=this._queue[0];t.pending&&!e||(t.pending=!0,t.tryCount++,this.flags=t.flags,this.emit.apply(this,t.args))}packet(e){e.nsp=this.nsp,this.io._packet(e)}onopen(){typeof this.auth==`function`?this.auth(e=>{this._sendConnectPacket(e)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(e){this.packet({type:Km.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},e):e})}onerror(e){this.connected||this.emitReserved(`connect_error`,e)}onclose(e,t){this.connected=!1,delete this.id,this.emitReserved(`disconnect`,e,t),this._clearAcks()}_clearAcks(){Object.keys(this.acks).forEach(e=>{if(!this.sendBuffer.some(t=>String(t.id)===e)){let t=this.acks[e];delete this.acks[e],t.withError&&t.call(this,Error(`socket has been disconnected`))}})}onpacket(e){if(e.nsp===this.nsp)switch(e.type){case Km.CONNECT:e.data&&e.data.sid?this.onconnect(e.data.sid,e.data.pid):this.emitReserved(`connect_error`,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 Km.EVENT:case Km.BINARY_EVENT:this.onevent(e);break;case Km.ACK:case Km.BINARY_ACK:this.onack(e);break;case Km.DISCONNECT:this.ondisconnect();break;case Km.CONNECT_ERROR:this.destroy();let t=Error(e.data.message);t.data=e.data.data,this.emitReserved(`connect_error`,t);break}}onevent(e){let t=e.data||[];e.id!=null&&t.push(this.ack(e.id)),this.connected?this.emitEvent(t):this.receiveBuffer.push(Object.freeze(t))}emitEvent(e){if(this._anyListeners&&this._anyListeners.length){let t=this._anyListeners.slice();for(let n of t)n.apply(this,e)}super.emit.apply(this,e),this._pid&&e.length&&typeof e[e.length-1]==`string`&&(this._lastOffset=e[e.length-1])}ack(e){let t=this,n=!1;return function(...r){n||(n=!0,t.packet({type:Km.ACK,id:e,data:r}))}}onack(e){let t=this.acks[e.id];typeof t==`function`&&(delete this.acks[e.id],t.withError&&e.data.unshift(null),t.apply(this,e.data))}onconnect(e,t){this.id=e,this.recovered=t&&this._pid===t,this._pid=t,this.connected=!0,this.emitBuffered(),this._drainQueue(!0),this.emitReserved(`connect`)}emitBuffered(){this.receiveBuffer.forEach(e=>this.emitEvent(e)),this.receiveBuffer=[],this.sendBuffer.forEach(e=>{this.notifyOutgoingListeners(e),this.packet(e)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose(`io server disconnect`)}destroy(){this.subs&&=(this.subs.forEach(e=>e()),void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:Km.DISCONNECT}),this.destroy(),this.connected&&this.onclose(`io client disconnect`),this}close(){return this.disconnect()}compress(e){return this.flags.compress=e,this}get volatile(){return this.flags.volatile=!0,this}timeout(e){return this.flags.timeout=e,this}onAny(e){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(e),this}prependAny(e){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(e),this}offAny(e){if(!this._anyListeners)return this;if(e){let t=this._anyListeners;for(let n=0;n<t.length;n++)if(e===t[n])return t.splice(n,1),this}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}onAnyOutgoing(e){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.push(e),this}prependAnyOutgoing(e){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.unshift(e),this}offAnyOutgoing(e){if(!this._anyOutgoingListeners)return this;if(e){let t=this._anyOutgoingListeners;for(let n=0;n<t.length;n++)if(e===t[n])return t.splice(n,1),this}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(e){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length){let t=this._anyOutgoingListeners.slice();for(let n of t)n.apply(this,e.data)}}};function ah(e){e||={},this.ms=e.min||100,this.max=e.max||1e4,this.factor=e.factor||2,this.jitter=e.jitter>0&&e.jitter<=1?e.jitter:0,this.attempts=0}ah.prototype.duration=function(){var e=this.ms*this.factor**+ this.attempts++;if(this.jitter){var t=Math.random(),n=Math.floor(t*this.jitter*e);e=Math.floor(t*10)&1?e+n:e-n}return Math.min(e,this.max)|0},ah.prototype.reset=function(){this.attempts=0},ah.prototype.setMin=function(e){this.ms=e},ah.prototype.setMax=function(e){this.max=e},ah.prototype.setJitter=function(e){this.jitter=e};var oh=class extends Gp{constructor(e,t){super(),this.nsps={},this.subs=[],e&&typeof e==`object`&&(t=e,e=void 0),t||={},t.path=t.path||`/socket.io`,this.opts=t,$p(this,t),this.reconnection(t.reconnection!==!1),this.reconnectionAttempts(t.reconnectionAttempts||1/0),this.reconnectionDelay(t.reconnectionDelay||1e3),this.reconnectionDelayMax(t.reconnectionDelayMax||5e3),this.randomizationFactor(t.randomizationFactor??.5),this.backoff=new ah({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(t.timeout==null?2e4:t.timeout),this._readyState=`closed`,this.uri=e;let n=t.parser||Wm;this.encoder=new n.Encoder,this.decoder=new n.Decoder,this._autoConnect=t.autoConnect!==!1,this._autoConnect&&this.open()}reconnection(e){return arguments.length?(this._reconnection=!!e,e||(this.skipReconnect=!0),this):this._reconnection}reconnectionAttempts(e){return e===void 0?this._reconnectionAttempts:(this._reconnectionAttempts=e,this)}reconnectionDelay(e){var t;return e===void 0?this._reconnectionDelay:(this._reconnectionDelay=e,(t=this.backoff)==null||t.setMin(e),this)}randomizationFactor(e){var t;return e===void 0?this._randomizationFactor:(this._randomizationFactor=e,(t=this.backoff)==null||t.setJitter(e),this)}reconnectionDelayMax(e){var t;return e===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=e,(t=this.backoff)==null||t.setMax(e),this)}timeout(e){return arguments.length?(this._timeout=e,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()}open(e){if(~this._readyState.indexOf(`open`))return this;this.engine=new jm(this.uri,this.opts);let t=this.engine,n=this;this._readyState=`opening`,this.skipReconnect=!1;let r=nh(t,`open`,function(){n.onopen(),e&&e()}),i=t=>{this.cleanup(),this._readyState=`closed`,this.emitReserved(`error`,t),e?e(t):this.maybeReconnectOnOpen()},a=nh(t,`error`,i);if(!1!==this._timeout){let e=this._timeout,n=this.setTimeoutFn(()=>{r(),i(Error(`timeout`)),t.close()},e);this.opts.autoUnref&&n.unref(),this.subs.push(()=>{this.clearTimeoutFn(n)})}return this.subs.push(r),this.subs.push(a),this}connect(e){return this.open(e)}onopen(){this.cleanup(),this._readyState=`open`,this.emitReserved(`open`);let e=this.engine;this.subs.push(nh(e,`ping`,this.onping.bind(this)),nh(e,`data`,this.ondata.bind(this)),nh(e,`error`,this.onerror.bind(this)),nh(e,`close`,this.onclose.bind(this)),nh(this.decoder,`decoded`,this.ondecoded.bind(this)))}onping(){this.emitReserved(`ping`)}ondata(e){try{this.decoder.add(e)}catch(e){this.onclose(`parse error`,e)}}ondecoded(e){qp(()=>{this.emitReserved(`packet`,e)},this.setTimeoutFn)}onerror(e){this.emitReserved(`error`,e)}socket(e,t){let n=this.nsps[e];return n?this._autoConnect&&!n.active&&n.connect():(n=new ih(this,e,t),this.nsps[e]=n),n}_destroy(e){let t=Object.keys(this.nsps);for(let e of t)if(this.nsps[e].active)return;this._close()}_packet(e){let t=this.encoder.encode(e);for(let n=0;n<t.length;n++)this.engine.write(t[n],e.options)}cleanup(){this.subs.forEach(e=>e()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose(`forced close`)}disconnect(){return this._close()}onclose(e,t){var n;this.cleanup(),(n=this.engine)==null||n.close(),this.backoff.reset(),this._readyState=`closed`,this.emitReserved(`close`,e,t),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;let e=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved(`reconnect_failed`),this._reconnecting=!1;else{let t=this.backoff.duration();this._reconnecting=!0;let n=this.setTimeoutFn(()=>{e.skipReconnect||(this.emitReserved(`reconnect_attempt`,e.backoff.attempts),!e.skipReconnect&&e.open(t=>{t?(e._reconnecting=!1,e.reconnect(),this.emitReserved(`reconnect_error`,t)):e.onreconnect()}))},t);this.opts.autoUnref&&n.unref(),this.subs.push(()=>{this.clearTimeoutFn(n)})}}onreconnect(){let e=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved(`reconnect`,e)}},sh={};function ch(e,t){typeof e==`object`&&(t=e,e=void 0),t||={};let n=Mm(e,t.path||`/socket.io`),r=n.source,i=n.id,a=n.path,o=sh[i]&&a in sh[i].nsps,s=t.forceNew||t[`force new connection`]||!1===t.multiplex||o,c;return s?c=new oh(r,t):(sh[i]||(sh[i]=new oh(r,t)),c=sh[i]),n.query&&!t.query&&(t.query=n.queryKey),c.socket(n.path,t)}Object.assign(ch,{Manager:oh,Socket:ih,io:ch,connect:ch});var lh=[at.MESSAGE_TO_GUEST,at.EVENT_TO_GUEST,at.TYPING_ON,at.TYPING_OFF,at.RESTART_CHAT_REQUEST,...Wi,...kt,`@@localize/SET_ACTIVE_LANGUAGE`,`@@localize/ADD_TRANSLATION_FOR_LANGUAGE`],uh=({dispatch:e,getState:t})=>n=>{let r=null;return i=>{let a=n(i);if(i.type===`CONNECT`)r?.disconnect(),e(qi()),r=ch({path:`/website-messenger/${i.clientName}/socket.io`,query:i.querystrings}),r.on(`action`,e),r.on(`connect`,()=>e(Ji())),r.on(`disconnect`,()=>e(Yi())),r.on(`reconnect`,()=>e(Xi())),r.on(`set-translations`,(t,n)=>{e(np({language:t,messages:Gf(t,n)}))}),r.on(`set-settings`,t=>{e(ap(t))}),r.on(`enable-conversation-rating`,t=>e(Pt(t))),r.on(`speech-transcription`,t=>e(jt(t))),r.on(`restore-client-state`,t=>{e(Ki(t.sessionId)),e(Lt(t.messages))}),r.on(`expand-window`,({devices:t,initial:n=!1})=>{e({type:Et,devices:t,initial:n})}),r.on(`restart-chat`,()=>{e(Qi())}),r.on(`login-success`,t=>{e(yi({loginToken:t.loginToken}))});else if(i.type===`start-screen/requestLogin`)r?.emit(`login-requested`,i.payload);else if(i.type===`START`)r?.emit(`start-chat`,i.payload);else if(i.type===`CLEAR_SESSION_ID`)r?.emit(`terminate-session`,i.payload);else if(i.type===`webclient.get.started`)r?.emit(`get-started`,JSON.stringify(i));else if(i.type===`AUDIO_MESSAGE_FROM_USER`)r?.emit(`audio-message`,i.buffer);else if(i.type===at.CONVERSATION_RATING_FROM_GUEST)r?.emit(`conversation-rating`,i.payload);else if(i.type===`webclient.transcript.pdf.download`){let{connection:{sessionId:e}}=t();if(e){let t=$t(),n=new URL(`/${encodeURIComponent(t)}/transcript-pdf/${encodeURIComponent(e)}`,window.location.origin);window.location.href=n.toString()}}else lh.indexOf(i.type)===-1&&i.meta===void 0&&r&&r.emit(`action`,JSON.stringify(i));return a}},dh=$t(),fh=Jr({middleware:e=>e().concat(uh),reducer:sp,preloadedState:{...dp(dh),intl:Wf}});fh.subscribe(Mc(()=>{let e=fh.getState();fp(dh,{connection:e.connection,startScreen:e.startScreen})},1e3)),(0,b.createRoot)(document.getElementById(`root`)).render((0,X.jsx)(qe,{store:fh,children:(0,X.jsx)(Lf,{})}));
|
|
78
|
+
//# sourceMappingURL=index-CQTbIPRX.js.map
|