@botfabrik/engine-webclient 4.113.1 → 4.115.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,77 @@
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&&te(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&&te(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,k=ee.port2;ee.port1.onmessage=D,O=function(){k.postMessage(null)}}else O=function(){_(D,0)};function te(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,te(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 k=/\/+/g;function te(e,t){return typeof e==`object`&&e&&e.key!=null?ee(``+e.key):t.toString(36)}function A(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 ne(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,ne(c(e._payload),r,i,a,o)}}if(c)return o=o(e),c=a===``?`.`+te(e,0):a,S(o)?(i=``,c!=null&&(i=c.replace(k,`$&/`)+`/`),ne(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(k,`$&/`)+`/`)+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+te(a,u),c+=ne(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+te(a,u++),c+=ne(a,r,i,s,o);else if(s===`object`){if(typeof e.then==`function`)return ne(A(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 re(e,t,n){if(e==null)return e;var r=[],i=0;return ne(e,r,``,``,function(e){return t.call(n,e,i++)}),r}function ie(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 j=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)},M={map:re,forEach:function(e,t,n){re(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return re(e,function(){t++}),t},toArray:function(e){return re(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=M,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:ie}},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,j)}catch(e){j(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`),k=Symbol.for(`react.memo_cache_sentinel`),te=Symbol.iterator;function A(e){return typeof e!=`object`||!e?null:(e=te&&e[te]||e[`@@iterator`],typeof e==`function`?e:null)}var ne=Symbol.for(`react.client.reference`);function re(e){if(e==null)return null;if(typeof e==`function`)return e.$$typeof===ne?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?re(e.type)||`Memo`:t;case O:t=e._payload,e=e._init;try{return re(e(t))}catch{}}return null}var ie=Array.isArray,j=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,M=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ae={pending:!1,data:null,method:null,action:null},N=[],oe=-1;function P(e){return{current:e}}function F(e){0>oe||(e.current=N[oe],N[oe]=null,oe--)}function I(e,t){oe++,N[oe]=e.current,e.current=t}var se=P(null),ce=P(null),le=P(null),ue=P(null);function de(e,t){switch(I(le,t),I(ce,e),I(se,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}}F(se),I(se,e)}function fe(){F(se),F(ce),F(le)}function L(e){e.memoizedState!==null&&I(ue,e);var t=se.current,n=Hd(t,e.type);t!==n&&(I(ce,e),I(se,n))}function pe(e){ce.current===e&&(F(se),F(ce)),ue.current===e&&(F(ue),Qf._currentValue=ae)}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=M.p;return e===0?(e=window.event,e===void 0?32:mp(e.type)):e}function it(e,t){var n=M.p;try{return M.p=e,t()}finally{M.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(ie(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)&&(_u(),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){_d(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<cu)throw cu=0,lu=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,se.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`:vd(`cancel`,t),vd(`close`,t);break;case`iframe`:case`object`:case`embed`:vd(`load`,t);break;case`video`:case`audio`:for(n=0;n<hd.length;n++)vd(hd[n],t);break;case`source`:vd(`error`,t);break;case`img`:case`image`:case`link`:vd(`error`,t),vd(`load`,t);break;case`details`:vd(`toggle`,t);break;case`input`:vd(`invalid`,t),Bt(t,r.value,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name,!0);break;case`select`:vd(`invalid`,t);break;case`textarea`:vd(`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&&(vd(`beforetoggle`,t),vd(`toggle`,t)),r.onScroll!=null&&vd(`scroll`,t),r.onScrollEnd!=null&&vd(`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&&(Jl===null?Jl=e:Jl.push.apply(Jl,e),Ii=null),e}function Gi(e){Ii===null?Ii=[e]:Ii.push(e)}var Ki=P(null),qi=null,Ji=null;function Yi(e,t,n){I(Ki,t._currentValue),t._currentValue=n}function Xi(e){e._currentValue=Ki.current,F(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 na(e){return ia(qi,e)}function ra(e,t){return qi===null&&ta(e),ia(e,t)}function ia(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 aa=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()})}},oa=t.unstable_scheduleCallback,sa=t.unstable_NormalPriority,ca={$$typeof:C,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function la(){return{controller:new aa,data:new Map,refCount:0}}function ua(e){e.refCount--,e.refCount===0&&oa(sa,function(){e.controller.abort()})}var da=null,fa=0,pa=0,ma=null;function ha(e,t){if(da===null){var n=da=[];fa=0,pa=ld(),ma={status:`pending`,value:void 0,then:function(e){n.push(e)}}}return fa++,t.then(ga,ga),t}function ga(){if(--fa===0&&da!==null){ma!==null&&(ma.status=`fulfilled`);var e=da;da=null,pa=0,ma=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function _a(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 va=j.S;j.S=function(e,t){Zl=Ee(),typeof t==`object`&&t&&typeof t.then==`function`&&ha(e,t),va!==null&&va(e,t)};var ya=P(null);function ba(){var e=ya.current;return e===null?Ml.pooledCache:e}function xa(e,t){t===null?I(ya,ya.current):I(ya,t.pool)}function Sa(){var e=ba();return e===null?null:{parent:ca._currentValue,pool:e}}var Ca=Error(i(460)),wa=Error(i(474)),Ta=Error(i(542)),Ea={then:function(){}};function Da(e){return e=e.status,e===`fulfilled`||e===`rejected`}function Oa(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,V(e),e;default:if(typeof t.status==`string`)t.then($t,$t);else{if(e=Ml,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,V(e),e}throw B=t,Ca}}function z(e){try{var t=e._init;return t(e._payload)}catch(e){throw typeof e==`object`&&e&&typeof e.then==`function`?(B=e,Ca):e}}var B=null;function ka(){if(B===null)throw Error(i(459));var e=B;return B=null,e}function V(e){if(e===Ca||e===Ta)throw Error(i(483))}var Aa=null,ja=0;function Ma(e){var t=ja;return ja+=1,Aa===null&&(Aa=[]),Oa(Aa,e,t)}function Na(e,t){t=t.props.ref,e.ref=t===void 0?null:t}function H(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 Pa(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&&z(i)===t.type)?(t=a(t,n.props),Na(t,n),t.return=e,t):(t=fi(n.type,n.key,n.props,null,e.mode,r),Na(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),Na(n,t),n.return=e,n;case v:return t=gi(t,e.mode,n),t.return=e,t;case O:return t=z(t),f(e,t,n)}if(ie(t)||A(t))return t=pi(t,e.mode,n,null),t.return=e,t;if(typeof t.then==`function`)return f(e,Ma(t),n);if(t.$$typeof===C)return f(e,ra(e,t),n);H(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=z(n),p(e,t,n,r)}if(ie(n)||A(n))return i===null?d(e,t,n,r,null):null;if(typeof n.then==`function`)return p(e,t,Ma(n),r);if(n.$$typeof===C)return p(e,t,ra(e,n),r);H(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=z(r),m(e,t,n,r,i)}if(ie(r)||A(r))return e=e.get(n)||null,d(t,e,r,i,null);if(typeof r.then==`function`)return m(e,t,n,Ma(r),i);if(r.$$typeof===C)return m(e,t,n,ra(t,r),i);H(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&&z(l)===r.type){n(e,r.sibling),c=a(r,o.props),Na(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),Na(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=z(o),b(e,r,o,c)}if(ie(o))return h(e,r,o,c);if(A(o)){if(l=A(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,Ma(o),c);if(o.$$typeof===C)return b(e,r,ra(e,o),c);H(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{ja=0;var i=b(e,t,n,r);return Aa=null,i}catch(t){if(t===Ca||t===Ta)throw t;var a=ci(29,t,null,e.mode);return a.lanes=r,a.return=e,a}}}var Fa=Pa(!0),Ia=Pa(!1),U=!1;function La(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Ra(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 za(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Ba(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,jl&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 Va(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 Ha(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 Ua=!1;function Wa(){if(Ua){var e=ma;if(e!==null)throw e}}function Ga(e,t,n,r){Ua=!1;var i=e.updateQueue;U=!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?(Pl&f)===f:(r&f)===f){f!==0&&f===pa&&(Ua=!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:U=!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),Hl|=o,e.lanes=o,e.memoizedState=d}}function Ka(e,t){if(typeof e!=`function`)throw Error(i(191,e));e.call(t)}function qa(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)Ka(n[e],t)}var Ja=P(null),Ya=P(0);function Xa(e,t){e=Bl,I(Ya,e),I(Ja,t),Bl=e|t.baseLanes}function Za(){I(Ya,Bl),I(Ja,Ja.current)}function Qa(){Bl=Ya.current,F(Ja),F(Ya)}var $a=P(null),eo=null;function to(e){var t=e.alternate;I(W,W.current&1),I($a,e),eo===null&&(t===null||Ja.current!==null||t.memoizedState!==null)&&(eo=e)}function no(e){I(W,W.current),I($a,e),eo===null&&(eo=e)}function ro(e){e.tag===22?(I(W,W.current),I($a,e),eo===null&&(eo=e)):io(e)}function io(){I(W,W.current),I($a,$a.current)}function ao(e){F($a),eo===e&&(eo=null),F(W)}var W=P(0);function oo(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 so=0,G=null,K=null,co=null,lo=!1,uo=!1,fo=!1,po=0,mo=0,q=null,ho=0;function J(){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 so=a,G=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,j.H=e===null||e.memoizedState===null?js:Ms,fo=!1,a=n(r,i),fo=!1,uo&&(a=yo(t,n,r,i)),vo(e),a}function vo(e){j.H=As;var t=K!==null&&K.next!==null;if(so=0,co=K=G=null,lo=!1,mo=0,q=null,t)throw Error(i(300));e===null||Ys||(e=e.dependencies,e!==null&&ea(e)&&(Ys=!0))}function yo(e,t,n,r){G=e;var a=0;do{if(uo&&(q=null),mo=0,uo=!1,25<=a)throw Error(i(301));if(a+=1,co=K=null,e.updateQueue!=null){var o=e.updateQueue;o.lastEffect=null,o.events=null,o.stores=null,o.memoCache!=null&&(o.memoCache.index=0)}j.H=Ns,o=t(n,r)}while(uo);return o}function bo(){var e=j.H,t=e.useState()[0];return t=typeof t.then==`function`?Eo(t):t,e=e.useState()[0],(K===null?null:K.memoizedState)!==e&&(G.flags|=1024),t}function Y(){var e=po!==0;return po=0,e}function xo(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function So(e){if(lo){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}lo=!1}so=0,co=K=G=null,uo=!1,mo=po=0,q=null}function Co(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return co===null?G.memoizedState=co=e:co=co.next=e,co}function wo(){if(K===null){var e=G.alternate;e=e===null?null:e.memoizedState}else e=K.next;var t=co===null?G.memoizedState:co.next;if(t!==null)co=t,K=e;else{if(e===null)throw G.alternate===null?Error(i(467)):Error(i(310));K=e,e={memoizedState:K.memoizedState,baseState:K.baseState,baseQueue:K.baseQueue,queue:K.queue,next:null},co===null?G.memoizedState=co=e:co=co.next=e}return co}function To(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Eo(e){var t=mo;return mo+=1,q===null&&(q=[]),e=Oa(q,e,t),t=G,(co===null?t.memoizedState:co.next)===null&&(t=t.alternate,j.H=t===null||t.memoizedState===null?js:Ms),e}function Do(e){if(typeof e==`object`&&e){if(typeof e.then==`function`)return Eo(e);if(e.$$typeof===C)return na(e)}throw Error(i(438,String(e)))}function Oo(e){var t=null,n=G.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var r=G.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=To(),G.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]=k;return t.index++,n}function ko(e,t){return typeof t==`function`?t(e):t}function Ao(e){return jo(wo(),K,e)}function jo(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?(so&f)===f:(Pl&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===pa&&(d=!0);else if((so&p)===p){u=u.next,p===pa&&(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,G.lanes|=p,Hl|=p;f=u.action,fo&&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,G.lanes|=f,Hl|=f;u=u.next}while(u!==null&&u!==t);if(l===null?s=o:l.next=c,!Sr(o,e.memoizedState)&&(Ys=!0,d&&(n=ma,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 Mo(e){var t=wo(),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)||(Ys=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function No(e,t,n){var r=G,a=wo(),o=Fi;if(o){if(n===void 0)throw Error(i(407));n=n()}else n=t();var s=!Sr((K||a).memoizedState,n);if(s&&(a.memoizedState=n,Ys=!0),a=a.queue,is(Io.bind(null,r,a,e),[e]),a.getSnapshot!==t||s||co!==null&&co.memoizedState.tag&1){if(r.flags|=2048,$o(9,{destroy:void 0},Fo.bind(null,r,a,n,t),null),Ml===null)throw Error(i(349));o||so&127||Po(r,t,n)}return n}function Po(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=G.updateQueue,t===null?(t=To(),G.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Fo(e,t,n,r){t.value=n,t.getSnapshot=r,Lo(t)&&Ro(e)}function Io(e,t,n){return n(function(){Lo(t)&&Ro(e)})}function Lo(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Sr(e,n)}catch{return!0}}function Ro(e){var t=ri(e,2);t!==null&&fu(t,e,2)}function zo(e){var t=Co();if(typeof e==`function`){var n=e;if(e=n(),fo){Le(!0);try{n()}finally{Le(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ko,lastRenderedState:e},t}function Bo(e,t,n,r){return e.baseState=n,jo(e,K,typeof r==`function`?r:ko)}function Vo(e,t,n,r,a){if(Os(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)}};j.T===null?o.isTransition=!1:n(!0),r(o),n=t.pending,n===null?(o.next=t.pending=o,Ho(t,o)):(o.next=n.next,t.pending=n.next=o)}}function Ho(e,t){var n=t.action,r=t.payload,i=e.state;if(t.isTransition){var a=j.T,o={};j.T=o;try{var s=n(i,r),c=j.S;c!==null&&c(o,s),Uo(e,t,s)}catch(n){Go(e,t,n)}finally{a!==null&&o.types!==null&&(a.types=o.types),j.T=a}}else try{a=n(i,r),Uo(e,t,a)}catch(n){Go(e,t,n)}}function Uo(e,t,n){typeof n==`object`&&n&&typeof n.then==`function`?n.then(function(n){Wo(e,t,n)},function(n){return Go(e,t,n)}):Wo(e,t,n)}function Wo(e,t,n){t.status=`fulfilled`,t.value=n,Ko(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,Ho(e,n)))}function Go(e,t,n){var r=e.pending;if(e.pending=null,r!==null){r=r.next;do t.status=`rejected`,t.reason=n,Ko(t),t=t.next;while(t!==r)}e.action=null}function Ko(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function qo(e,t){return t}function Jo(e,t){if(Fi){var n=Ml.formState;if(n!==null){a:{var r=G;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=Co(),n.memoizedState=n.baseState=t,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:qo,lastRenderedState:t},n.queue=r,n=Ts.bind(null,G,r),r.dispatch=n,r=zo(!1),a=Ds.bind(null,G,!1,r.queue),r=Co(),i={state:t,dispatch:null,action:e,pending:null},r.queue=i,n=Vo.bind(null,G,i,a,n),i.dispatch=n,r.memoizedState=e,[t,n,!1]}function Yo(e){return Xo(wo(),K,e)}function Xo(e,t,n){if(t=jo(e,t,qo)[0],e=Ao(ko)[0],typeof t==`object`&&t&&typeof t.then==`function`)try{var r=Eo(t)}catch(e){throw e===Ca?Ta:e}else r=t;t=wo();var i=t.queue,a=i.dispatch;return n!==t.memoizedState&&(G.flags|=2048,$o(9,{destroy:void 0},Zo.bind(null,i,n),null)),[r,a,e]}function Zo(e,t){e.action=t}function Qo(e){var t=wo(),n=K;if(n!==null)return Xo(t,n,e);wo(),t=t.memoizedState,n=wo();var r=n.queue.dispatch;return n.memoizedState=e,[t,r,!1]}function $o(e,t,n,r){return e={tag:e,create:n,deps:r,inst:t,next:null},t=G.updateQueue,t===null&&(t=To(),G.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 es(){return wo().memoizedState}function ts(e,t,n,r){var i=Co();G.flags|=e,i.memoizedState=$o(1|t,{destroy:void 0},n,r===void 0?null:r)}function ns(e,t,n,r){var i=wo();r=r===void 0?null:r;var a=i.memoizedState.inst;K!==null&&r!==null&&go(r,K.memoizedState.deps)?i.memoizedState=$o(t,a,n,r):(G.flags|=e,i.memoizedState=$o(1|t,a,n,r))}function rs(e,t){ts(8390656,8,e,t)}function is(e,t){ns(2048,8,e,t)}function as(e){G.flags|=4;var t=G.updateQueue;if(t===null)t=To(),G.updateQueue=t,t.events=[e];else{var n=t.events;n===null?t.events=[e]:n.push(e)}}function os(e){var t=wo().memoizedState;return as({ref:t,nextImpl:e}),function(){if(jl&2)throw Error(i(440));return t.impl.apply(void 0,arguments)}}function ss(e,t){return ns(4,2,e,t)}function cs(e,t){return ns(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]),ns(4,4,ls.bind(null,t,e),n)}function ds(){}function fs(e,t){var n=wo();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=wo();t=t===void 0?null:t;var r=n.memoizedState;if(t!==null&&go(t,r[1]))return r[0];if(r=e(),fo){Le(!0);try{e()}finally{Le(!1)}}return n.memoizedState=[r,t],r}function ms(e,t,n){return n===void 0||so&1073741824&&!(Pl&261930)?e.memoizedState=t:(e.memoizedState=n,e=du(),G.lanes|=e,Hl|=e,n)}function hs(e,t,n,r){return Sr(n,t)?n:Ja.current===null?!(so&42)||so&1073741824&&!(Pl&261930)?(Ys=!0,e.memoizedState=n):(e=du(),G.lanes|=e,Hl|=e,t):(e=ms(e,n,r),Sr(e,t)||(Ys=!0),e)}function gs(e,t,n,r,i){var a=M.p;M.p=a!==0&&8>a?a:8;var o=j.T,s={};j.T=s,Ds(e,!1,t,n);try{var c=i(),l=j.S;l!==null&&l(s,c),typeof c==`object`&&c&&typeof c.then==`function`?Es(e,t,_a(c,r),uu(e)):Es(e,t,r,uu(e))}catch(n){Es(e,t,{then:function(){},status:`rejected`,reason:n},uu())}finally{M.p=a,o!==null&&s.types!==null&&(o.types=s.types),j.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,ae,n===null?_s:function(){return bs(e),n(r)})}function ys(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:ae,baseState:ae,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ko,lastRenderedState:ae},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ko,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),Es(e,t.next.queue,{},uu())}function xs(){return na(Qf)}function Ss(){return wo().memoizedState}function Cs(){return wo().memoizedState}function ws(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=uu();e=za(n);var r=Ba(t,e,n);r!==null&&(fu(r,t,n),Va(r,t,n)),t={cache:la()},e.payload=t;return}t=t.return}}function X(e,t,n){var r=uu();n={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},Os(e)?ks(t,n):(n=ni(e,t,n,r),n!==null&&(fu(n,e,r),Z(n,t,r)))}function Ts(e,t,n){Es(e,t,n,uu())}function Es(e,t,n,r){var i={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(Os(e))ks(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),Ml===null&&ei(),!1}catch{}if(n=ni(e,t,i,r),n!==null)return fu(n,e,r),Z(n,t,r),!0}return!1}function Ds(e,t,n,r){if(r={lane:2,revertLane:ld(),gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null},Os(e)){if(t)throw Error(i(479))}else t=ni(e,n,r,2),t!==null&&fu(t,e,2)}function Os(e){var t=e.alternate;return e===G||t!==null&&t===G}function ks(e,t){uo=lo=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Z(e,t,n){if(n&4194048){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,et(e,n)}}var As={readContext:na,use:Do,useCallback:J,useContext:J,useEffect:J,useImperativeHandle:J,useLayoutEffect:J,useInsertionEffect:J,useMemo:J,useReducer:J,useRef:J,useState:J,useDebugValue:J,useDeferredValue:J,useTransition:J,useSyncExternalStore:J,useId:J,useHostTransitionStatus:J,useFormState:J,useActionState:J,useOptimistic:J,useMemoCache:J,useCacheRefresh:J};As.useEffectEvent=J;var js={readContext:na,use:Do,useCallback:function(e,t){return Co().memoizedState=[e,t===void 0?null:t],e},useContext:na,useEffect:rs,useImperativeHandle:function(e,t,n){n=n==null?null:n.concat([e]),ts(4194308,4,ls.bind(null,t,e),n)},useLayoutEffect:function(e,t){return ts(4194308,4,e,t)},useInsertionEffect:function(e,t){ts(4,2,e,t)},useMemo:function(e,t){var n=Co();t=t===void 0?null:t;var r=e();if(fo){Le(!0);try{e()}finally{Le(!1)}}return n.memoizedState=[r,t],r},useReducer:function(e,t,n){var r=Co();if(n!==void 0){var i=n(t);if(fo){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=X.bind(null,G,e),[r.memoizedState,e]},useRef:function(e){var t=Co();return e={current:e},t.memoizedState=e},useState:function(e){e=zo(e);var t=e.queue,n=Ts.bind(null,G,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:ds,useDeferredValue:function(e,t){return ms(Co(),e,t)},useTransition:function(){var e=zo(!1);return e=gs.bind(null,G,e.queue,!0,!1),Co().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var r=G,a=Co();if(Fi){if(n===void 0)throw Error(i(407));n=n()}else{if(n=t(),Ml===null)throw Error(i(349));Pl&127||Po(r,t,n)}a.memoizedState=n;var o={value:n,getSnapshot:t};return a.queue=o,rs(Io.bind(null,r,o,e),[e]),r.flags|=2048,$o(9,{destroy:void 0},Fo.bind(null,r,o,n,t),null),n},useId:function(){var e=Co(),t=Ml.identifierPrefix;if(Fi){var n=Di,r=Ei;n=(r&~(1<<32-Re(r)-1)).toString(32)+n,t=`_`+t+`R_`+n,n=po++,0<n&&(t+=`H`+n.toString(32)),t+=`_`}else n=ho++,t=`_`+t+`r_`+n.toString(32)+`_`;return e.memoizedState=t},useHostTransitionStatus:xs,useFormState:Jo,useActionState:Jo,useOptimistic:function(e){var t=Co();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=Ds.bind(null,G,!0,n),n.dispatch=t,[e,t]},useMemoCache:Oo,useCacheRefresh:function(){return Co().memoizedState=ws.bind(null,G)},useEffectEvent:function(e){var t=Co(),n={impl:e};return t.memoizedState=n,function(){if(jl&2)throw Error(i(440));return n.impl.apply(void 0,arguments)}}},Ms={readContext:na,use:Do,useCallback:fs,useContext:na,useEffect:is,useImperativeHandle:us,useInsertionEffect:ss,useLayoutEffect:cs,useMemo:ps,useReducer:Ao,useRef:es,useState:function(){return Ao(ko)},useDebugValue:ds,useDeferredValue:function(e,t){return hs(wo(),K.memoizedState,e,t)},useTransition:function(){var e=Ao(ko)[0],t=wo().memoizedState;return[typeof e==`boolean`?e:Eo(e),t]},useSyncExternalStore:No,useId:Ss,useHostTransitionStatus:xs,useFormState:Yo,useActionState:Yo,useOptimistic:function(e,t){return Bo(wo(),K,e,t)},useMemoCache:Oo,useCacheRefresh:Cs};Ms.useEffectEvent=os;var Ns={readContext:na,use:Do,useCallback:fs,useContext:na,useEffect:is,useImperativeHandle:us,useInsertionEffect:ss,useLayoutEffect:cs,useMemo:ps,useReducer:Mo,useRef:es,useState:function(){return Mo(ko)},useDebugValue:ds,useDeferredValue:function(e,t){var n=wo();return K===null?ms(n,e,t):hs(n,K.memoizedState,e,t)},useTransition:function(){var e=Mo(ko)[0],t=wo().memoizedState;return[typeof e==`boolean`?e:Eo(e),t]},useSyncExternalStore:No,useId:Ss,useHostTransitionStatus:xs,useFormState:Qo,useActionState:Qo,useOptimistic:function(e,t){var n=wo();return K===null?(n.baseState=e,[e,n.queue.dispatch]):Bo(n,K,e,t)},useMemoCache:Oo,useCacheRefresh:Cs};Ns.useEffectEvent=os;function Ps(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 Fs={enqueueSetState:function(e,t,n){e=e._reactInternals;var r=uu(),i=za(r);i.payload=t,n!=null&&(i.callback=n),t=Ba(e,i,r),t!==null&&(fu(t,e,r),Va(t,e,r))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=uu(),i=za(r);i.tag=1,i.payload=t,n!=null&&(i.callback=n),t=Ba(e,i,r),t!==null&&(fu(t,e,r),Va(t,e,r))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=uu(),r=za(n);r.tag=2,t!=null&&(r.callback=t),t=Ba(e,r,n),t!==null&&(fu(t,e,n),Va(t,e,n))}};function Is(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 Ls(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&&Fs.enqueueReplaceState(t,t.state,null)}function Rs(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 zs(e){Xr(e)}function Bs(e){console.error(e)}function Vs(e){Xr(e)}function Hs(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(e){setTimeout(function(){throw e})}}function Us(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 Ws(e,t,n){return n=za(n),n.tag=3,n.payload={element:null},n.callback=function(){Hs(e,t)},n}function Gs(e){return e=za(e),e.tag=3,e}function Ks(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(){Us(t,n,r)}}var o=n.stateNode;o!==null&&typeof o.componentDidCatch==`function`&&(e.callback=function(){Us(t,n,r),typeof i!=`function`&&(eu===null?eu=new Set([this]):eu.add(this));var e=r.stack;this.componentDidCatch(r.value,{componentStack:e===null?``:e})})}function qs(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=$a.current,n!==null){switch(n.tag){case 31:case 13:return eo===null?wu():n.alternate===null&&Vl===0&&(Vl=3),n.flags&=-257,n.flags|=65536,n.lanes=a,r===Ea?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([r]):t.add(r),Uu(e,r,a)),!1;case 22:return n.flags|=65536,r===Ea?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)),Uu(e,r,a)),!1}throw Error(i(435,n.tag))}return Uu(e,r,a),wu(),!1}if(Fi)return t=$a.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=Ws(e.stateNode,r,a),Ha(e,a),Vl!==4&&(Vl=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),ql===null?ql=[o]:ql.push(o),Vl!==4&&(Vl=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=Ws(n.stateNode,r,e),Ha(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`&&(eu===null||!eu.has(o))))return n.flags|=65536,a&=-a,n.lanes|=a,a=Gs(a),Ks(a,e,n,r),Ha(n,a),!1}n=n.return}while(n!==null);return!1}var Js=Error(i(461)),Ys=!1;function Xs(e,t,n,r){t.child=e===null?Ia(t,null,n,r):Fa(t,e.child,n,r)}function Zs(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=Y(),e!==null&&!Ys?(xo(e,t,i),xc(e,t,i)):(Fi&&s&&Ai(t),t.flags|=1,Xs(e,t,r,i),t.child)}function Qs(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,$s(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,!Sc(e,i)){var o=a.memoizedProps;if(n=n.compare,n=n===null?Cr:n,n(o,r)&&e.ref===t.ref)return xc(e,t,i)}return t.flags|=1,e=ui(a,r),e.ref=t.ref,e.return=t,t.child=e}function $s(e,t,n,r,i){if(e!==null){var a=e.memoizedProps;if(Cr(a,r)&&e.ref===t.ref)if(Ys=!1,t.pendingProps=r=a,Sc(e,i))e.flags&131072&&(Ys=!0);else return t.lanes=e.lanes,xc(e,t,i)}return sc(e,t,n,r,i)}function ec(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 nc(e,t,a,n,r)}if(n&536870912)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&xa(t,a===null?null:a.cachePool),a===null?Za():Xa(t,a),ro(t);else return r=t.lanes=536870912,nc(e,t,a===null?n:a.baseLanes|n,n,r)}else a===null?(e!==null&&xa(t,null),Za(),io(t)):(xa(t,a.cachePool),Xa(t,a),io(t),t.memoizedState=null);return Xs(e,t,i,n),t.child}function tc(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function nc(e,t,n,r,i){var a=ba();return a=a===null?null:{parent:ca._currentValue,pool:a},t.memoizedState={baseLanes:n,cachePool:a},e!==null&&xa(t,null),Za(),ro(t),e!==null&&$i(e,t,r,!0),t.childLanes=i,null}function rc(e,t){return t=gc({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function ic(e,t,n){return Fa(t,e.child,null,n),e=rc(t,t.pendingProps),e.flags|=2,ao(t),t.memoizedState=null,e}function ac(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=rc(t,r),t.lanes=536870912,tc(null,e);if(no(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 rc(t,r)}var o=e.memoizedState;if(o!==null){var s=o.dehydrated;if(no(t),a)if(t.flags&256)t.flags&=-257,t=ic(e,t,n);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(i(558));else if(Ys||$i(e,t,n,!1),a=(n&e.childLanes)!==0,Ys||a){if(r=Ml,r!==null&&(s=tt(r,n),s!==0&&s!==o.retryLane))throw o.retryLane=s,ri(e,s),fu(r,e,s),Js;wu(),t=ic(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=rc(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 oc(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 sc(e,t,n,r,i){return ta(t),n=_o(e,t,n,r,void 0,i),r=Y(),e!==null&&!Ys?(xo(e,t,i),xc(e,t,i)):(Fi&&r&&Ai(t),t.flags|=1,Xs(e,t,n,i),t.child)}function cc(e,t,n,r,i,a){return ta(t),t.updateQueue=null,n=yo(t,r,n,i),vo(e),r=Y(),e!==null&&!Ys?(xo(e,t,a),xc(e,t,a)):(Fi&&r&&Ai(t),t.flags|=1,Xs(e,t,n,a),t.child)}function lc(e,t,n,r,i){if(ta(t),t.stateNode===null){var a=oi,o=n.contextType;typeof o==`object`&&o&&(a=na(o)),a=new n(r,a),t.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,a.updater=Fs,t.stateNode=a,a._reactInternals=t,a=t.stateNode,a.props=r,a.state=t.memoizedState,a.refs={},La(t),o=n.contextType,a.context=typeof o==`object`&&o?na(o):oi,a.state=t.memoizedState,o=n.getDerivedStateFromProps,typeof o==`function`&&(Ps(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&&Fs.enqueueReplaceState(a,a.state,null),Ga(t,r,a,i),Wa(),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=Rs(n,s);a.props=c;var l=a.context,u=n.contextType;o=oi,typeof u==`object`&&u&&(o=na(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)&&Ls(t,a,r,o),U=!1;var f=t.memoizedState;a.state=f,Ga(t,r,a,i),Wa(),l=t.memoizedState,s||f!==l||U?(typeof d==`function`&&(Ps(t,n,d,r),l=t.memoizedState),(c=U||Is(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,Ra(e,t),o=t.memoizedProps,u=Rs(n,o),a.props=u,d=t.pendingProps,f=a.context,l=n.contextType,c=oi,typeof l==`object`&&l&&(c=na(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)&&Ls(t,a,r,c),U=!1,f=t.memoizedState,a.state=f,Ga(t,r,a,i),Wa();var p=t.memoizedState;o!==d||f!==p||U||e!==null&&e.dependencies!==null&&ea(e.dependencies)?(typeof s==`function`&&(Ps(t,n,s,r),p=t.memoizedState),(u=U||Is(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,oc(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=Fa(t,e.child,null,i),t.child=Fa(t,null,n,i)):Xs(e,t,n,i),t.memoizedState=a.state,e=t.child):e=xc(e,t,i),e}function uc(e,t,n,r){return Ui(),t.flags|=256,Xs(e,t,n,r),t.child}var dc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function fc(e){return{baseLanes:e,cachePool:Sa()}}function pc(e,t,n){return e=e===null?0:e.childLanes&~n,t&&(e|=Gl),e}function mc(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:(W.current&2)!=0),s&&(a=!0,t.flags&=-129),s=(t.flags&32)!=0,t.flags&=-33,e===null){if(Fi){if(a?to(t):io(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?(io(t),a=t.mode,c=gc({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=fc(n),r.childLanes=pc(e,s,n),t.memoizedState=dc,tc(null,r)):(to(t),hc(t,c))}var l=e.memoizedState;if(l!==null&&(c=l.dehydrated,c!==null)){if(o)t.flags&256?(to(t),t.flags&=-257,t=_c(e,t,n)):t.memoizedState===null?(io(t),c=r.fallback,a=t.mode,r=gc({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,Fa(t,e.child,null,n),r=t.child,r.memoizedState=fc(n),r.childLanes=pc(e,s,n),t.memoizedState=dc,t=tc(null,r)):(io(t),t.child=e.child,t.flags|=128,t=null);else if(to(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=_c(e,t,n)}else if(Ys||$i(e,t,n,!1),s=(n&e.childLanes)!==0,Ys||s){if(s=Ml,s!==null&&(r=tt(s,n),r!==0&&r!==l.retryLane))throw l.retryLane=r,ri(e,r),fu(s,e,r),Js;af(c)||wu(),t=_c(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=hc(t,r.children),t.flags|=4096);return t}return a?(io(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,tc(null,r),r=t.child,c=e.child.memoizedState,c===null?c=fc(n):(a=c.cachePool,a===null?a=Sa():(l=ca._currentValue,a=a.parent===l?a:{parent:l,pool:l}),c={baseLanes:c.baseLanes|n,cachePool:a}),r.memoizedState=c,r.childLanes=pc(e,s,n),t.memoizedState=dc,tc(e.child,r)):(to(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 hc(e,t){return t=gc({mode:`visible`,children:t},e.mode),t.return=e,e.child=t}function gc(e,t){return e=ci(22,e,null,t),e.lanes=0,e}function _c(e,t,n){return Fa(t,e.child,null,n),e=hc(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function vc(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Zi(e.return,t,n)}function yc(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 bc(e,t,n){var r=t.pendingProps,i=r.revealOrder,a=r.tail;r=r.children;var o=W.current,s=(o&2)!=0;if(s?(o=o&1|2,t.flags|=128):o&=1,I(W,o),Xs(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&&vc(e,n,t);else if(e.tag===19)vc(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&&oo(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),yc(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&&oo(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}yc(t,!0,n,null,a,r);break;case`together`:yc(t,!1,null,null,void 0,r);break;default:t.memoizedState=null}return t.child}function xc(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Hl|=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 Sc(e,t){return(e.lanes&t)===0?(e=e.dependencies,!!(e!==null&&ea(e))):!0}function Cc(e,t,n){switch(t.tag){case 3:de(t,t.stateNode.containerInfo),Yi(t,ca,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,no(t),null;break;case 13:var r=t.memoizedState;if(r!==null)return r.dehydrated===null?(n&t.child.childLanes)===0?(to(t),e=xc(e,t,n),e===null?null:e.sibling):mc(e,t,n):(to(t),t.flags|=128,null);to(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 bc(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),I(W,W.current),r)break;return null;case 22:return t.lanes=0,ec(e,t,n,t.pendingProps);case 24:Yi(t,ca,e.memoizedState.cache)}return xc(e,t,n)}function wc(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps)Ys=!0;else{if(!Sc(e,n)&&!(t.flags&128))return Ys=!1,Cc(e,t,n);Ys=!!(e.flags&131072)}else Ys=!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=z(t.elementType),t.type=e,typeof e==`function`)li(e)?(r=Rs(e,r),t.tag=1,t=lc(null,t,e,r,n)):(t.tag=0,t=sc(null,t,e,r,n));else{if(e!=null){var a=e.$$typeof;if(a===w){t.tag=11,t=Zs(null,t,e,r,n);break a}else if(a===D){t.tag=14,t=Qs(null,t,e,r,n);break a}}throw t=re(e)||e,Error(i(306,t,``))}}return t;case 0:return sc(e,t,t.type,t.pendingProps,n);case 1:return r=t.type,a=Rs(r,t.pendingProps),lc(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,Ra(e,t),Ga(t,r,null,n);var s=t.memoizedState;if(r=s.cache,Yi(t,ca,r),r!==o.cache&&Qi(t,[ca],n,!0),Wa(),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=uc(e,t,r,n);break a}else if(r!==a){a=vi(Error(i(424)),t),Gi(a),t=uc(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=Ia(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling}else{if(Ui(),r===a){t=xc(e,t,n);break a}Xs(e,t,r,n)}t=t.child}return t;case 26:return oc(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),Xs(e,t,t.pendingProps.children,n),oc(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),oc(e,t),Xs(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 mc(e,t,n);case 4:return de(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Fa(t,null,r,n):Xs(e,t,r,n),t.child;case 11:return Zs(e,t,t.type,t.pendingProps,n);case 7:return Xs(e,t,t.pendingProps,n),t.child;case 8:return Xs(e,t,t.pendingProps.children,n),t.child;case 12:return Xs(e,t,t.pendingProps.children,n),t.child;case 10:return r=t.pendingProps,Yi(t,t.type,r.value),Xs(e,t,r.children,n),t.child;case 9:return a=t.type._context,r=t.pendingProps.children,ta(t),a=na(a),r=r(a),t.flags|=1,Xs(e,t,r,n),t.child;case 14:return Qs(e,t,t.type,t.pendingProps,n);case 15:return $s(e,t,t.type,t.pendingProps,n);case 19:return bc(e,t,n);case 31:return ac(e,t,n);case 22:return ec(e,t,n,t.pendingProps);case 24:return ta(t),r=na(ca),e===null?(a=ba(),a===null&&(a=Ml,o=la(),a.pooledCache=o,o.refCount++,o!==null&&(a.pooledCacheLanes|=n),a=o),t.memoizedState={parent:r,cache:a},La(t),Yi(t,ca,a)):((e.lanes&n)!==0&&(Ra(e,t),Ga(t,null,null,n),Wa()),a=e.memoizedState,o=t.memoizedState,a.parent===r?(r=o.cache,Yi(t,ca,r),r!==a.cache&&Qi(t,[ca],n,!0)):(a={parent:r,cache:r},t.memoizedState=a,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=a),Yi(t,ca,r))),Xs(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(i(156,t.tag))}function Tc(e){e.flags|=4}function Ec(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(xu())e.flags|=8192;else throw B=Ea,wa}else e.flags&=-16777217}function Dc(e,t){if(t.type!==`stylesheet`||t.state.loading&4)e.flags&=-16777217;else if(e.flags|=16777216,!Wf(t))if(xu())e.flags|=8192;else throw B=Ea,wa}function Oc(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag===22?536870912:Ye(),e.lanes|=t,Kl|=t)}function kc(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(ca),fe(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(Hi(t)?Tc(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?(Tc(t),o===null?(Ac(t),Ec(t,a,null,r,n)):(Ac(t),Dc(t,o))):o?o===e.memoizedState?(Ac(t),t.flags&=-16777217):(Tc(t),Ac(t),Dc(t,o)):(e=e.memoizedProps,e!==r&&Tc(t),Ac(t),Ec(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&&Tc(t);else{if(!r){if(t.stateNode===null)throw Error(i(166));return Ac(t),null}e=se.current,Hi(t)?Bi(t,e):(e=ff(a,r,n),t.stateNode=e,Tc(t))}return Ac(t),null;case 5:if(pe(t),a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&Tc(t);else{if(!r){if(t.stateNode===null)throw Error(i(166));return Ac(t),null}if(o=se.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&&Tc(t)}}return Ac(t),Ec(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==r&&Tc(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?(ao(t),t):(ao(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?(ao(t),t):(ao(t),null)}return ao(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),Oc(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(F(W),r=t.memoizedState,r===null)return Ac(t),null;if(a=(t.flags&128)!=0,o=r.rendering,o===null)if(a)kc(r,!1);else{if(Vl!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=oo(e),o!==null){for(t.flags|=128,kc(r,!1),e=o.updateQueue,t.updateQueue=e,Oc(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)di(n,e),n=n.sibling;return I(W,W.current&1|2),Fi&&Oi(t,r.treeForkCount),t.child}e=e.sibling}r.tail!==null&&Ee()>Ql&&(t.flags|=128,a=!0,kc(r,!1),t.lanes=4194304)}else{if(!a)if(e=oo(o),e!==null){if(t.flags|=128,a=!0,e=e.updateQueue,t.updateQueue=e,Oc(t,e),kc(r,!0),r.tail===null&&r.tailMode===`hidden`&&!o.alternate&&!Fi)return Ac(t),null}else 2*Ee()-r.renderingStartTime>Ql&&n!==536870912&&(t.flags|=128,a=!0,kc(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=W.current,I(W,a?n&1|2:n&1),Fi&&Oi(t,r.treeForkCount),e);case 22:case 23:return ao(t),Qa(),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&&Oc(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&&F(ya),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),Xi(ca),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(ca),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(ao(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(ao(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 F(W),null;case 4:return fe(),null;case 10:return Xi(t.type),null;case 22:case 23:return ao(t),Qa(),e!==null&&F(ya),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Xi(ca),null;case 25:return null;default:return null}}function Nc(e,t){switch(ji(t),t.tag){case 3:Xi(ca),fe();break;case 26:case 27:case 5:pe(t);break;case 4:fe();break;case 31:t.memoizedState!==null&&ao(t);break;case 13:ao(t);break;case 19:F(W);break;case 10:Xi(t.type);break;case 22:case 23:ao(t),Qa(),e!==null&&F(ya);break;case 24:Xi(ca)}}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){Hu(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){Hu(i,c,e)}}}r=r.next}while(r!==a)}}catch(e){Hu(t,t.return,e)}}function Ic(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{qa(t,n)}catch(t){Hu(e,e.return,t)}}}function Lc(e,t,n){n.props=Rs(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(n){Hu(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){Hu(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){Hu(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){Hu(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){Hu(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){Hu(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 Q(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){Hu(e,e.return,t)}}var Kc=!1,qc=!1,Jc=!1,Yc=typeof WeakSet==`function`?WeakSet:Set,Xc=null;function Zc(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,Xc=t;Xc!==null;)if(t=Xc,e=t.child,t.subtreeFlags&1028&&e!==null)e.return=t,Xc=e;else for(;Xc!==null;){switch(t=Xc,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=Rs(n.type,a);e=r.getSnapshotBeforeUpdate(h,o),r.__reactInternalSnapshotBeforeUpdate=e}catch(e){Hu(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,Xc=e;break}Xc=t.return}}function $(e,t,n){var r=n.flags;switch(n.tag){case 0:case 11:case 15:fl(e,n),r&4&&Pc(5,n);break;case 1:if(fl(e,n),r&4)if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(e){Hu(n,n.return,e)}else{var i=Rs(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(i,t,e.__reactInternalSnapshotBeforeUpdate)}catch(e){Hu(n,n.return,e)}}r&64&&Ic(n),r&512&&Rc(n,n.return);break;case 3:if(fl(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{qa(e,t)}catch(e){Hu(n,n.return,e)}}break;case 27:t===null&&r&4&&Q(n);case 26:case 5:fl(e,n),t===null&&r&4&&Bc(n),r&512&&Rc(n,n.return);break;case 12:fl(e,n);break;case 31:fl(e,n),r&4&&rl(e,n);break;case 13:fl(e,n),r&4&&il(e,n),r&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=Ku.bind(null,n),sf(e,n))));break;case 22:if(r=n.memoizedState!==null||Kc,!r){t=t!==null&&t.memoizedState!==null||qc,i=Kc;var a=qc;Kc=r,(qc=t)&&!a?ml(e,n,(n.subtreeFlags&8772)!=0):fl(e,n),Kc=i,qc=a}break;case 30:break;default:fl(e,n)}}function Qc(e){var t=e.alternate;t!==null&&(e.alternate=null,Qc(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 $c=null,el=!1;function tl(e,t,n){for(n=n.child;n!==null;)nl(e,t,n),n=n.sibling}function nl(e,t,n){if(Ie&&typeof Ie.onCommitFiberUnmount==`function`)try{Ie.onCommitFiberUnmount(Fe,n)}catch{}switch(n.tag){case 26:qc||zc(n,t),tl(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:qc||zc(n,t);var r=$c,i=el;Zd(n.type)&&($c=n.stateNode,el=!1),tl(e,t,n),pf(n.stateNode),$c=r,el=i;break;case 5:qc||zc(n,t);case 6:if(r=$c,i=el,$c=null,tl(e,t,n),$c=r,el=i,$c!==null)if(el)try{($c.nodeType===9?$c.body:$c.nodeName===`HTML`?$c.ownerDocument.body:$c).removeChild(n.stateNode)}catch(e){Hu(n,t,e)}else try{$c.removeChild(n.stateNode)}catch(e){Hu(n,t,e)}break;case 18:$c!==null&&(el?(e=$c,Qd(e.nodeType===9?e.body:e.nodeName===`HTML`?e.ownerDocument.body:e,n.stateNode),Np(e)):Qd($c,n.stateNode));break;case 4:r=$c,i=el,$c=n.stateNode.containerInfo,el=!0,tl(e,t,n),$c=r,el=i;break;case 0:case 11:case 14:case 15:Fc(2,n,t),qc||Fc(4,n,t),tl(e,t,n);break;case 1:qc||(zc(n,t),r=n.stateNode,typeof r.componentWillUnmount==`function`&&Lc(n,t,r)),tl(e,t,n);break;case 21:tl(e,t,n);break;case 22:qc=(r=qc)||n.memoizedState!==null,tl(e,t,n),qc=r;break;default:tl(e,t,n)}}function rl(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Np(e)}catch(e){Hu(t,t.return,e)}}}function il(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){Hu(t,t.return,e)}}function al(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new Yc),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new Yc),t;default:throw Error(i(435,e.tag))}}function ol(e,t){var n=al(e);t.forEach(function(t){if(!n.has(t)){n.add(t);var r=qu.bind(null,e,t);t.then(r,r)}})}function sl(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)){$c=c.stateNode,el=!1;break a}break;case 5:$c=c.stateNode,el=!1;break a;case 3:case 4:$c=c.stateNode.containerInfo,el=!0;break a}c=c.return}if($c===null)throw Error(i(160));nl(o,s,a),$c=null,el=!1,o=a.alternate,o!==null&&(o.return=null),a.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)ll(t,e),t=t.sibling}var cl=null;function ll(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:sl(t,e),ul(e),r&4&&(Fc(3,e,e.return),Pc(3,e),Fc(5,e,e.return));break;case 1:sl(t,e),ul(e),r&512&&(qc||n===null||zc(n,n.return)),r&64&&Kc&&(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=cl;if(sl(t,e),ul(e),r&512&&(qc||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:sl(t,e),ul(e),r&512&&(qc||n===null||zc(n,n.return)),n!==null&&r&4&&Vc(e,e.memoizedProps,n.memoizedProps);break;case 5:if(sl(t,e),ul(e),r&512&&(qc||n===null||zc(n,n.return)),e.flags&32){a=e.stateNode;try{Gt(a,``)}catch(t){Hu(e,e.return,t)}}r&4&&e.stateNode!=null&&(a=e.memoizedProps,Vc(e,a,n===null?a:n.memoizedProps)),r&1024&&(Jc=!0);break;case 6:if(sl(t,e),ul(e),r&4){if(e.stateNode===null)throw Error(i(162));r=e.memoizedProps,n=e.stateNode;try{n.nodeValue=r}catch(t){Hu(e,e.return,t)}}break;case 3:if(Bf=null,a=cl,cl=gf(t.containerInfo),sl(t,e),cl=a,ul(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{Np(t.containerInfo)}catch(t){Hu(e,e.return,t)}Jc&&(Jc=!1,dl(e));break;case 4:r=cl,cl=gf(e.stateNode.containerInfo),sl(t,e),ul(e),cl=r;break;case 12:sl(t,e),ul(e);break;case 31:sl(t,e),ul(e),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,ol(e,r)));break;case 13:sl(t,e),ul(e),e.child.flags&8192&&e.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(Xl=Ee()),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,ol(e,r)));break;case 22:a=e.memoizedState!==null;var l=n!==null&&n.memoizedState!==null,u=Kc,d=qc;if(Kc=u||a,qc=d||l,sl(t,e),qc=d,Kc=u,ul(e),r&8192)a:for(t=e.stateNode,t._visibility=a?t._visibility&-2:t._visibility|1,a&&(n===null||l||Kc||qc||pl(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){Hu(l,l.return,e)}}}else if(t.tag===6){if(n===null){l=t;try{l.stateNode.nodeValue=a?``:l.memoizedProps}catch(e){Hu(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){Hu(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,ol(e,n))));break;case 19:sl(t,e),ul(e),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,ol(e,r)));break;case 30:break;case 21:break;default:sl(t,e),ul(e)}}function ul(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){Hu(e,e.return,t)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function dl(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;dl(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function fl(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)$(e,t.alternate,t),t=t.sibling}function pl(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),pl(t);break;case 1:zc(t,t.return);var n=t.stateNode;typeof n.componentWillUnmount==`function`&&Lc(t,t.return,n),pl(t);break;case 27:pf(t.stateNode);case 26:case 5:zc(t,t.return),pl(t);break;case 22:t.memoizedState===null&&pl(t);break;case 30:pl(t);break;default:pl(t)}e=e.sibling}}function ml(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:ml(i,a,n),Pc(4,a);break;case 1:if(ml(i,a,n),r=a,i=r.stateNode,typeof i.componentDidMount==`function`)try{i.componentDidMount()}catch(e){Hu(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++)Ka(c[i],s)}catch(e){Hu(r,r.return,e)}}n&&o&64&&Ic(a),Rc(a,a.return);break;case 27:Q(a);case 26:case 5:ml(i,a,n),n&&r===null&&o&4&&Bc(a),Rc(a,a.return);break;case 12:ml(i,a,n);break;case 31:ml(i,a,n),n&&o&4&&rl(i,a);break;case 13:ml(i,a,n),n&&o&4&&il(i,a);break;case 22:a.memoizedState===null&&ml(i,a,n),Rc(a,a.return);break;case 30:break;default:ml(i,a,n)}t=t.sibling}}function hl(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&&ua(n))}function gl(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&ua(e))}function _l(e,t,n,r){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)vl(e,t,n,r),t=t.sibling}function vl(e,t,n,r){var i=t.flags;switch(t.tag){case 0:case 11:case 15:_l(e,t,n,r),i&2048&&Pc(9,t);break;case 1:_l(e,t,n,r);break;case 3:_l(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&&ua(e)));break;case 12:if(i&2048){_l(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){Hu(t,t.return,e)}}else _l(e,t,n,r);break;case 31:_l(e,t,n,r);break;case 13:_l(e,t,n,r);break;case 23:break;case 22:a=t.stateNode,o=t.alternate,t.memoizedState===null?a._visibility&2?_l(e,t,n,r):(a._visibility|=2,yl(e,t,n,r,(t.subtreeFlags&10256)!=0||!1)):a._visibility&2?_l(e,t,n,r):bl(e,t),i&2048&&hl(o,t);break;case 24:_l(e,t,n,r),i&2048&&gl(t.alternate,t);break;default:_l(e,t,n,r)}}function yl(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:yl(a,o,s,c,i),Pc(8,o);break;case 23:break;case 22:var u=o.stateNode;o.memoizedState===null?(u._visibility|=2,yl(a,o,s,c,i)):u._visibility&2?yl(a,o,s,c,i):bl(a,o),i&&l&2048&&hl(o.alternate,o);break;case 24:yl(a,o,s,c,i),i&&l&2048&&gl(o.alternate,o);break;default:yl(a,o,s,c,i)}t=t.sibling}}function bl(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:bl(n,r),i&2048&&hl(r.alternate,r);break;case 24:bl(n,r),i&2048&&gl(r.alternate,r);break;default:bl(n,r)}t=t.sibling}}var xl=8192;function Sl(e,t,n){if(e.subtreeFlags&xl)for(e=e.child;e!==null;)Cl(e,t,n),e=e.sibling}function Cl(e,t,n){switch(e.tag){case 26:Sl(e,t,n),e.flags&xl&&e.memoizedState!==null&&Gf(n,cl,e.memoizedState,e.memoizedProps);break;case 5:Sl(e,t,n);break;case 3:case 4:var r=cl;cl=gf(e.stateNode.containerInfo),Sl(e,t,n),cl=r;break;case 22:e.memoizedState===null&&(r=e.alternate,r!==null&&r.memoizedState!==null?(r=xl,xl=16777216,Sl(e,t,n),xl=r):Sl(e,t,n));break;default:Sl(e,t,n)}}function wl(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 Tl(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n];Xc=r,Ol(r,e)}wl(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)El(e),e=e.sibling}function El(e){switch(e.tag){case 0:case 11:case 15:Tl(e),e.flags&2048&&Fc(9,e,e.return);break;case 3:Tl(e);break;case 12:Tl(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Dl(e)):Tl(e);break;default:Tl(e)}}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];Xc=r,Ol(r,e)}wl(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Fc(8,t,t.return),Dl(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,Dl(t));break;default:Dl(t)}e=e.sibling}}function Ol(e,t){for(;Xc!==null;){var n=Xc;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:ua(n.memoizedState.cache)}if(r=n.child,r!==null)r.return=n,Xc=r;else a:for(n=e;Xc!==null;){r=Xc;var i=r.sibling,a=r.return;if(Qc(r),r===n){Xc=null;break a}if(i!==null){i.return=a,Xc=i;break a}Xc=a}}}var kl={getCacheForType:function(e){var t=na(ca),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return na(ca).controller.signal}},Al=typeof WeakMap==`function`?WeakMap:Map,jl=0,Ml=null,Nl=null,Pl=0,Fl=0,Il=null,Ll=!1,Rl=!1,zl=!1,Bl=0,Vl=0,Hl=0,Ul=0,Wl=0,Gl=0,Kl=0,ql=null,Jl=null,Yl=!1,Xl=0,Zl=0,Ql=1/0,$l=null,eu=null,tu=0,nu=null,ru=null,iu=0,au=0,ou=null,su=null,cu=0,lu=null;function uu(){return jl&2&&Pl!==0?Pl&-Pl:j.T===null?R():ld()}function du(){if(Gl===0)if(!(Pl&536870912)||Fi){var e=Ue;Ue<<=1,!(Ue&3932160)&&(Ue=262144),Gl=e}else Gl=536870912;return e=$a.current,e!==null&&(e.flags|=32),Gl}function fu(e,t,n){(e===Ml&&(Fl===2||Fl===9)||e.cancelPendingCommit!==null)&&(yu(e,0),gu(e,Pl,Gl,!1)),Ze(e,n),(!(jl&2)||e!==Ml)&&(e===Ml&&(!(jl&2)&&(Ul|=n),Vl===4&&gu(e,Pl,Gl,!1)),td(e))}function pu(e,t,n){if(jl&6)throw Error(i(327));var r=!n&&(t&127)==0&&(t&e.expiredLanes)===0||qe(e,t),a=r?Du(e,t):Tu(e,t,!0),o=r;do{if(a===0){Rl&&!r&&gu(e,t,0,!1);break}else{if(n=e.current.alternate,o&&!hu(n)){a=Tu(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=ql;var l=c.current.memoizedState.isDehydrated;if(l&&(yu(c,s).flags|=256),s=Tu(c,s,!1),s!==2){if(zl&&!l){c.errorRecoveryDisabledLanes|=o,Ul|=o,a=4;break a}o=Jl,Jl=a,o!==null&&(Jl===null?Jl=o:Jl.push.apply(Jl,o))}a=s}if(o=!1,a!==2)continue}}if(a===1){yu(e,0),gu(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:gu(r,t,Gl,!Ll);break a;case 2:Jl=null;break;case 3:case 5:break;default:throw Error(i(329))}if((t&62914560)===t&&(a=Xl+300-Ee(),10<a)){if(gu(r,t,Gl,!Ll),Ke(r,0,!0)!==0)break a;iu=t,r.timeoutHandle=Kd(mu.bind(null,r,n,Jl,$l,Yl,t,Gl,Ul,Kl,Ll,o,`Throttled`,-0,0),a);break a}mu(r,n,Jl,$l,Yl,t,Gl,Ul,Kl,Ll,o,null,-0,0)}}break}while(1);td(e)}function mu(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},Cl(t,a,d);var m=(a&62914560)===a?Xl-Ee():(a&4194048)===a?Zl-Ee():0;if(m=qf(d,m),m!==null){iu=a,e.cancelPendingCommit=m(Pu.bind(null,e,t,a,n,r,i,o,s,c,u,d,null,f,p)),gu(e,a,o,!l);return}}Pu(e,t,a,n,r,i,o,s,c)}function hu(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 gu(e,t,n,r){t&=~Wl,t&=~Ul,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 _u(){return jl&6?!0:(nd(0,!1),!1)}function vu(){if(Nl!==null){if(Fl===0)var e=Nl.return;else e=Nl,Ji=qi=null,So(e),Aa=null,ja=0,e=Nl;for(;e!==null;)Nc(e.alternate,e),e=e.return;Nl=null}}function yu(e,t){var n=e.timeoutHandle;n!==-1&&(e.timeoutHandle=-1,qd(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),iu=0,vu(),Ml=e,Nl=n=ui(e.current,null),Pl=t,Fl=0,Il=null,Ll=!1,Rl=qe(e,t),zl=!1,Kl=Gl=Wl=Ul=Hl=Vl=0,Jl=ql=null,Yl=!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 Bl=t,ei(),n}function bu(e,t){G=null,j.H=As,t===Ca||t===Ta?(t=ka(),Fl=3):t===wa?(t=ka(),Fl=4):Fl=t===Js?8:typeof t==`object`&&t&&typeof t.then==`function`?6:1,Il=t,Nl===null&&(Vl=1,Hs(e,vi(t,e.current)))}function xu(){var e=$a.current;return e===null?!0:(Pl&4194048)===Pl?eo===null:(Pl&62914560)===Pl||Pl&536870912?e===eo:!1}function Su(){var e=j.H;return j.H=As,e===null?As:e}function Cu(){var e=j.A;return j.A=kl,e}function wu(){Vl=4,Ll||(Pl&4194048)!==Pl&&$a.current!==null||(Rl=!0),!(Hl&134217727)&&!(Ul&134217727)||Ml===null||gu(Ml,Pl,Gl,!1)}function Tu(e,t,n){var r=jl;jl|=2;var i=Su(),a=Cu();(Ml!==e||Pl!==t)&&($l=null,yu(e,t)),t=!1;var o=Vl;a:do try{if(Fl!==0&&Nl!==null){var s=Nl,c=Il;switch(Fl){case 8:vu(),o=6;break a;case 3:case 2:case 9:case 6:$a.current===null&&(t=!0);var l=Fl;if(Fl=0,Il=null,ju(e,s,c,l),n&&Rl){o=0;break a}break;default:l=Fl,Fl=0,Il=null,ju(e,s,c,l)}}Eu(),o=Vl;break}catch(t){bu(e,t)}while(1);return t&&e.shellSuspendCounter++,Ji=qi=null,jl=r,j.H=i,j.A=a,Nl===null&&(Ml=null,Pl=0,ei()),o}function Eu(){for(;Nl!==null;)ku(Nl)}function Du(e,t){var n=jl;jl|=2;var r=Su(),a=Cu();Ml!==e||Pl!==t?($l=null,Ql=Ee()+500,yu(e,t)):Rl=qe(e,t);a:do try{if(Fl!==0&&Nl!==null){t=Nl;var o=Il;b:switch(Fl){case 1:Fl=0,Il=null,ju(e,t,o,1);break;case 2:case 9:if(Da(o)){Fl=0,Il=null,Au(t);break}t=function(){Fl!==2&&Fl!==9||Ml!==e||(Fl=7),td(e)},o.then(t,t);break a;case 3:Fl=7;break a;case 4:Fl=5;break a;case 7:Da(o)?(Fl=0,Il=null,Au(t)):(Fl=0,Il=null,ju(e,t,o,7));break;case 5:var s=null;switch(Nl.tag){case 26:s=Nl.memoizedState;case 5:case 27:var c=Nl;if(s?Wf(s):c.stateNode.complete){Fl=0,Il=null;var l=c.sibling;if(l!==null)Nl=l;else{var u=c.return;u===null?Nl=null:(Nl=u,Mu(u))}break b}}Fl=0,Il=null,ju(e,t,o,5);break;case 6:Fl=0,Il=null,ju(e,t,o,6);break;case 8:vu(),Vl=6;break a;default:throw Error(i(462))}}Ou();break}catch(t){bu(e,t)}while(1);return Ji=qi=null,j.H=r,j.A=a,jl=n,Nl===null?(Ml=null,Pl=0,ei(),Vl):0}function Ou(){for(;Nl!==null&&!we();)ku(Nl)}function ku(e){var t=wc(e.alternate,e,Bl);e.memoizedProps=e.pendingProps,t===null?Mu(e):Nl=t}function Au(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=cc(n,t,t.pendingProps,t.type,void 0,Pl);break;case 11:t=cc(n,t,t.pendingProps,t.type.render,t.ref,Pl);break;case 5:So(t);default:Nc(n,t),t=Nl=di(t,Bl),t=wc(n,t,Bl)}e.memoizedProps=e.pendingProps,t===null?Mu(e):Nl=t}function ju(e,t,n,r){Ji=qi=null,So(t),Aa=null,ja=0;var i=t.return;try{if(qs(e,i,t,n,Pl)){Vl=1,Hs(e,vi(n,e.current)),Nl=null;return}}catch(t){if(i!==null)throw Nl=i,t;Vl=1,Hs(e,vi(n,e.current)),Nl=null;return}t.flags&32768?(Fi||r===1?e=!0:Rl||Pl&536870912?e=!1:(Ll=e=!0,(r===2||r===9||r===3||r===6)&&(r=$a.current,r!==null&&r.tag===13&&(r.flags|=16384))),Nu(t,e)):Mu(t)}function Mu(e){var t=e;do{if(t.flags&32768){Nu(t,Ll);return}e=t.return;var n=jc(t.alternate,t,Bl);if(n!==null){Nl=n;return}if(t=t.sibling,t!==null){Nl=t;return}Nl=t=e}while(t!==null);Vl===0&&(Vl=5)}function Nu(e,t){do{var n=Mc(e.alternate,e);if(n!==null){n.flags&=32767,Nl=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){Nl=e;return}Nl=e=n}while(e!==null);Vl=6,Nl=null}function Pu(e,t,n,r,a,o,s,c,l){e.cancelPendingCommit=null;do zu();while(tu!==0);if(jl&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===Ml&&(Nl=Ml=null,Pl=0),ru=t,nu=e,iu=n,au=o,ou=a,su=r,t.subtreeFlags&10256||t.flags&10256?(e.callbackNode=null,e.callbackPriority=0,Ju(Ae,function(){return Bu(),null})):(e.callbackNode=null,e.callbackPriority=0),r=(t.flags&13878)!=0,t.subtreeFlags&13878||r){r=j.T,j.T=null,a=M.p,M.p=2,s=jl,jl|=4;try{Zc(e,t,n)}finally{jl=s,M.p=a,j.T=r}}tu=1,Fu(),Iu(),Lu()}}function Fu(){if(tu===1){tu=0;var e=nu,t=ru,n=(t.flags&13878)!=0;if(t.subtreeFlags&13878||n){n=j.T,j.T=null;var r=M.p;M.p=2;var i=jl;jl|=4;try{ll(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{jl=i,M.p=r,j.T=n}}e.current=t,tu=2}}function Iu(){if(tu===2){tu=0;var e=nu,t=ru,n=(t.flags&8772)!=0;if(t.subtreeFlags&8772||n){n=j.T,j.T=null;var r=M.p;M.p=2;var i=jl;jl|=4;try{$(e,t.alternate,t)}finally{jl=i,M.p=r,j.T=n}}tu=3}}function Lu(){if(tu===4||tu===3){tu=0,Te();var e=nu,t=ru,n=iu,r=su;t.subtreeFlags&10256||t.flags&10256?tu=5:(tu=0,ru=nu=null,Ru(e,e.pendingLanes));var i=e.pendingLanes;if(i===0&&(eu=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=j.T,i=M.p,M.p=2,j.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{j.T=t,M.p=i}}iu&3&&zu(),td(e),i=e.pendingLanes,n&261930&&i&42?e===lu?cu++:(cu=0,lu=e):cu=0,nd(0,!1)}}function Ru(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,ua(t)))}function zu(){return Fu(),Iu(),Lu(),Bu()}function Bu(){if(tu!==5)return!1;var e=nu,t=au;au=0;var n=rt(iu),r=j.T,a=M.p;try{M.p=32>n?32:n,j.T=null,n=ou,ou=null;var o=nu,s=iu;if(tu=0,ru=nu=null,iu=0,jl&6)throw Error(i(331));var c=jl;if(jl|=4,El(o.current),vl(o,o.current,s,n),jl=c,nd(0,!1),Ie&&typeof Ie.onPostCommitFiberRoot==`function`)try{Ie.onPostCommitFiberRoot(Fe,o)}catch{}return!0}finally{M.p=a,j.T=r,Ru(e,t)}}function Vu(e,t,n){t=vi(n,t),t=Ws(e.stateNode,t,2),e=Ba(e,t,2),e!==null&&(Ze(e,2),td(e))}function Hu(e,t,n){if(e.tag===3)Vu(e,e,n);else for(;t!==null;){if(t.tag===3){Vu(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError==`function`||typeof r.componentDidCatch==`function`&&(eu===null||!eu.has(r))){e=vi(n,e),n=Gs(2),r=Ba(t,n,2),r!==null&&(Ks(n,r,t,e),Ze(r,2),td(r));break}}t=t.return}}function Uu(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new Al;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)||(zl=!0,i.add(n),e=Wu.bind(null,e,t,n),t.then(e,e))}function Wu(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,Ml===e&&(Pl&n)===n&&(Vl===4||Vl===3&&(Pl&62914560)===Pl&&300>Ee()-Xl?!(jl&2)&&yu(e,0):Wl|=n,Kl===Pl&&(Kl=0)),td(e)}function Gu(e,t){t===0&&(t=Ye()),e=ri(e,t),e!==null&&(Ze(e,t),td(e))}function Ku(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Gu(e,n)}function qu(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),Gu(e,n)}function Ju(e,t){return Se(e,t)}var Yu=null,Xu=null,Zu=!1,Qu=!1,$u=!1,ed=0;function td(e){e!==Xu&&e.next===null&&(Xu===null?Yu=Xu=e:Xu=Xu.next=e),Qu=!0,Zu||(Zu=!0,cd())}function nd(e,t){if(!$u&&Qu){$u=!0;do for(var n=!1,r=Yu;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,sd(r,a))}else a=Pl,a=Ke(r,r===Ml?a:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),!(a&3)||qe(r,a)||(n=!0,sd(r,a));r=r.next}while(n);$u=!1}}function rd(){id()}function id(){Qu=Zu=!1;var e=0;ed!==0&&Gd()&&(e=ed);for(var t=Ee(),n=null,r=Yu;r!==null;){var i=r.next,a=ad(r,t);a===0?(r.next=null,n===null?Yu=i:n.next=i,i===null&&(Xu=n)):(n=r,(e!==0||a&3)&&(Qu=!0)),r=i}tu!==0&&tu!==5||nd(e,!1),ed!==0&&(ed=0)}function ad(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=Ml,n=Pl,n=Ke(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r=e.callbackNode,n===0||e===t&&(Fl===2||Fl===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=od.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 od(e,t){if(tu!==0&&tu!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(zu()&&e.callbackNode!==n)return null;var r=Pl;return r=Ke(e,e===Ml?r:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r===0?null:(pu(e,r,t),ad(e,Ee()),e.callbackNode!=null&&e.callbackNode===n?od.bind(null,e):null)}function sd(e,t){if(zu())return null;pu(e,t,!0)}function cd(){Yd(function(){jl&6?Se(Oe,rd):id()})}function ld(){if(ed===0){var e=pa;e===0&&(e=He,He<<=1,!(He&261888)&&(He=256)),ed=e}return ed}function ud(e){return e==null||typeof e==`symbol`||typeof e==`boolean`?null:typeof e==`function`?e:Qt(``+e)}function dd(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 fd(e,t,n,r,i){if(t===`submit`&&n&&n.stateNode===i){var a=ud((i[st]||null).action),o=r.submitter;o&&(t=(t=o[st]||null)?ud(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(ed!==0){var e=o?dd(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?dd(i,o):new FormData(i),vs(n,{pending:!0,data:e,method:i.method,action:a},a,e))},currentTarget:i}]})}}for(var pd=0;pd<Jr.length;pd++){var md=Jr[pd];Yr(md.toLowerCase(),`on`+(md[0].toUpperCase()+md.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 hd=`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(` `),gd=new Set(`beforetoggle cancel close invalid load scroll scrollend toggle`.split(` `).concat(hd));function _d(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 vd(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`&&(gd.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)),fd(s,e,r,n,i)}_d(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&&vd(`scroll`,e);break;case`onScrollEnd`:r!=null&&vd(`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`:vd(`beforetoggle`,e),vd(`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&&vd(`scroll`,e);break;case`onScrollEnd`:r!=null&&vd(`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`:vd(`error`,e),vd(`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`:vd(`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 vd(`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 vd(`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`:vd(`beforetoggle`,e),vd(`toggle`,e),vd(`cancel`,e),vd(`close`,e);break;case`iframe`:case`object`:vd(`load`,e);break;case`video`:case`audio`:for(r=0;r<hd.length;r++)vd(hd[r],e);break;case`image`:vd(`error`,e),vd(`load`,e);break;case`details`:vd(`toggle`,e);break;case`embed`:case`source`:case`link`:vd(`error`,e),vd(`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=M.d;M.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=_u();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:ae,_currentValue2:ae,_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=la(),t.refCount++,e.pooledCache=t,t.refCount++,a.memoizedState={element:r,isDehydrated:n,cache:t},La(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=za(t),r.payload={element:n},a=a===void 0?null:a,a!==null&&(r.callback=a),n=Ba(e,r,t),n!==null&&(fu(n,e,t),Va(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&&fu(t,e,67108864),ip(e,67108864)}}function op(e){if(e.tag===13||e.tag===31){var t=uu();t=nt(t);var n=ri(e,t);n!==null&&fu(n,e,t),ip(e,t)}}var sp=!0;function cp(e,t,n,r){var i=j.T;j.T=null;var a=M.p;try{M.p=2,up(e,t,n,r)}finally{M.p=a,j.T=i}}function lp(e,t,n,r){var i=j.T;j.T=null;var a=M.p;try{M.p=8,up(e,t,n,r)}finally{M.p=a,j.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}td(a),!(jl&6)&&(Ql=Ee()+500,nd(0,!1))}}break;case 31:case 13:s=ri(a,2),s!==null&&fu(s,a,2),_u(),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,uu(),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),_u(),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`));M.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:j,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=zs,s=Bs,c=Vs;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`),k=Symbol.for(`react.forward_ref`),te=Symbol.for(`react.suspense`),A=Symbol.for(`react.suspense_list`),ne=Symbol.for(`react.memo`),re=Symbol.for(`react.lazy`),ie=k,j=ne;function M(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 te:case A:return e;default:switch(e&&=e.$$typeof,e){case ee:case k:case re:case ne:return e;case O:return e;default:return t}}case w:return t}}}function ae(e){return M(e)===ne}function N(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 oe(e,{initMapStateToProps:t,initMapDispatchToProps:n,initMergeProps:r,...i}){return N(t(e,i),n(e,i),r(e,i),e,i)}function P(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 F(e){return function(t){let n=e(t);function r(){return n}return r.dependsOnOwnProps=!1,r}}function I(e){return e.dependsOnOwnProps?!!e.dependsOnOwnProps:e.length!==1}function se(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=I(e);let i=r(t,n);return typeof i==`function`&&(r.mapToProps=i,r.dependsOnOwnProps=I(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`?F(t=>P(e,t)):e?typeof e==`function`?se(e,`mapDispatchToProps`):ce(e,`mapDispatchToProps`):F(e=>({dispatch:e}))}function ue(e){return e?typeof e==`function`?se(e,`mapStateToProps`):ce(e,`mapStateToProps`):F(()=>({}))}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={[ie]:we,[j]:Te};function De(e){return ae(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(()=>oe(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=`core.typing.on`,ot=`core.typing.off`,st=`core.message.from.guest`,ct=`core.message.without.analysis.from.guest`,lt=`core.message.to.guest`,ut=`core.nlu.request.event`,dt=`core.event.to.guest`,ft=`core.chat.restart.request`,pt=`core.transcript.mail.request`,mt=`core.transcript.item.guest.reaction`,ht=`core.conversation.rating.from.guest`,gt=`core.drawer.open`,_t=`core.drawer.close`,vt=`core.guest.locale.changed`,yt;(function(e){e.WEB_URL=`web_url`,e.POSTBACK=`postback`})(yt||={});var bt;(function(e){e.GOOD=`GOOD`,e.BAD=`BAD`})(bt||={});var xt=class{type;sender;sources;quickReplies;constructor(e,t,n=[],r=[]){this.type=e,this.sender=t,this.sources=n,this.quickReplies=r}addQuickReply(e,t){this.quickReplies.push({label:e,payload:t})}},St=class extends xt{text;constructor(e,t,n=[],r=[]){super(Ct.TEXT,t,n,r),this.text=e}},Ct;(function(e){e.TEXT=`TEXT`,e.DETAIL=`DETAIL`,e.MARKDOWN=`MARKDOWN`,e.VIDEO=`VIDEO`,e.IMAGE=`IMAGE`,e.FILE=`FILE`,e.AUDIO=`AUDIO`})(Ct||={});var wt=class{type;id;name;avatar;constructor(e,t,n,r){this.type=e,this.id=t,this.name=n,this.avatar=r}},Tt=class extends wt{constructor(){super(Dt.BOT,null,`Chatbot`,`bot.svg`)}},Et=class extends wt{constructor(){super(Dt.GUEST,null,`Guest`,`visitor.svg`)}},Dt;(function(e){e.GUEST=`GUEST`,e.BOT=`BOT`,e.PERSON=`PERSON`})(Dt||={});var Ot=e=>({type:st,message:new St(e,new Et)}),kt=(e,t={})=>({type:ct,message:new St(e,new Et),payload:t}),At=e=>({type:ut,event:e}),jt=(e,t,n=null,r=null)=>({type:mt,payload:{actionId:e,reaction:t,category:n,comment:r}}),Mt;(function(e){e.GENERIC=`GENERIC`,e.CUSTOM=`CUSTOM`})(Mt||={});var Nt=class{async createApiKnowledgeBase(e){throw Error(`Method not implemented.`)}async updateApiKnowledgeBase(e,t){throw Error(`Method not implemented.`)}async deleteApiKnowledgeBase(e){throw Error(`Method not implemented.`)}async upsertApiKnowledgeBase(e){throw Error(`Method not implemented.`)}async findApiKnowledgeBaseById(e){throw Error(`Method not implemented.`)}async findApiKnowledgeBaseByName(e){throw Error(`Method not implemented.`)}async findApiKnowledgeBases(){throw Error(`Method not implemented.`)}async deleteApiKnowledgeBaseByName(e){throw Error(`Method not implemented.`)}async findKnowledgeBaseEntries(e){throw Error(`Method not implemented.`)}async createKnowledgeBaseEntry(e,t){throw Error(`Method not implemented.`)}async updateKnowledgeBaseEntry(e,t,n){throw Error(`Method not implemented.`)}async deleteKnowledgeBaseEntry(e,t){throw Error(`Method not implemented.`)}async deleteObsoleteKnowledgeBaseEntries(e,t){throw Error(`Method not implemented.`)}async upsertKnowledgeBaseEntry(e,t){throw Error(`Method not implemented.`)}async retrieveKnowledgeBaseEntryConfig(e,t){throw Error(`Method not implemented.`)}async findKnowledgeBaseEntryByUriAlias(e,t){throw Error(`Method not implemented.`)}async deleteKnowledgeBaseEntriesIndexedBeforeDate(e,t){throw Error(`Method not implemented.`)}async findKnowledgeBaseEntryAttachments(e,t){throw Error(`Method not implemented.`)}async createKnowledgeBaseEntryAttachment(e,t,n){throw Error(`Method not implemented.`)}async updateKnowledgeBaseEntryAttachment(e,t,n,r){throw Error(`Method not implemented.`)}async deleteKnowledgeBaseEntryAttachment(e,t,n){throw Error(`Method not implemented.`)}async setIndexingStatus(e,t){throw Error(`Method not implemented.`)}async subscribeToReindex(e,t){throw Error(`Method not implemented.`)}isContentTypeSupported(e){throw Error(`Method not implemented.`)}registerTool(e,t){throw Error(`Method not implemented.`)}async getTools(e){throw Error(`Method not implemented.`)}createBrowserInstance(e){throw Error(`Method not implemented.`)}},Pt=class{async findAgentDefinition(e){throw Error(`Method not implemented.`)}async createAgentDefinition(e){throw Error(`Method not implemented.`)}async updateAgentDefinition(e){throw Error(`Method not implemented.`)}async deleteAgentDefinition(e){throw Error(`Method not implemented.`)}registerAgentProvider(e,t){throw Error(`Method not implemented.`)}async createAgentInstance(e){throw Error(`Method not implemented.`)}async findToolDefinition(e){throw Error(`Method not implemented.`)}async createToolDefinition(e){throw Error(`Method not implemented.`)}async updateToolDefinition(e){throw Error(`Method not implemented.`)}async deleteToolDefinition(e){throw Error(`Method not implemented.`)}async findToolImplementationDefinitionsByToolId(e){throw Error(`Method not implemented.`)}async createToolImplementationDefinition(e){throw Error(`Method not implemented.`)}async updateToolImplementationDefinition(e){throw Error(`Method not implemented.`)}async deleteToolImplementationDefinition(e){throw Error(`Method not implemented.`)}registerToolProvider(e,t){throw Error(`Method not implemented.`)}async getToolImplementationProvidersInfo(){throw Error(`Method not implemented.`)}async createToolInstance(e,t){throw Error(`Method not implemented.`)}decorateExecutableAgent(e){throw Error(`Method not implemented.`)}decorateExecutableTool(e){throw Error(`Method not implemented.`)}};new Nt,new Pt;var Ft=e=>t=>(e.payload.type!==`core.message.from.guest`&&t(kt(e.label,e.payload)),t(e.payload)),It=e=>(t,n)=>{let{quickReplies:r}=n().chat,i=r.find(t=>e.toLocaleLowerCase().indexOf(t.label.toLocaleLowerCase())>-1);return t(i?Ft({...i,label:e}):JSON.parse(JSON.stringify(Ot(e))))},Lt=`MESSAGE_TO_PARENT_PAGE`,Rt=`RESTORE_PREVIOUS_CHAT_MESSAGES`,zt=`AUDIO_MESSAGE_FROM_USER`,Bt=`RECEIVE_SPEECH_TRANSCRIPTION`,Vt=`ENABLE_CONVERSATION_RATING`,Ht=`LOAD_SOURCE_INFOS_RESPONSE`,Ut=`LOAD_SOURCE_INFOS_ERROR`,Wt=`LOAD_SOURCE_INFOS_REQUEST`,Gt=`CLOSE_SOURCE_INFOS`,Kt=`webclient.window.expand`,qt=`webclient.window.close`,Jt=`webclient.transcript.pdf.download`,Yt=[Lt,Rt,zt,Bt,Vt,Wt,Gt],Xt=e=>({type:zt,buffer:e}),Zt=e=>({type:Bt,transcription:e}),Qt=e=>({type:pt,payload:{parameters:{mailTo:e}}}),$t=()=>({type:Jt}),en=({rating:e})=>({type:Vt,payload:{rating:e}}),tn=(e,t)=>({type:ht,payload:{value:e,feedback:t}}),nn=e=>At(e),rn=e=>({type:Rt,messages:e}),an=e=>{switch(e.type){case yt.WEB_URL:return sn(e.url);case yt.POSTBACK:return e.payload;default:throw Error(`unknown button type ${e.type}`)}},on=e=>sn(e),sn=e=>({type:Lt,message:{type:`webclient.change.url`,url:e}});function cn(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 ln={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 un(e,t){function n(n,r,i){if(!(typeof document>`u`)){i=cn({},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,``,cn({},t,{expires:-1}))},withAttributes:function(e){return un(this.converter,cn({},this.attributes,e))},withConverter:function(e){return un(cn({},this.converter,e),this.attributes)}},{attributes:{value:Object.freeze(t)},converter:{value:Object.freeze(e)}})}var dn=un(ln,{path:`/`}),fn=[];for(let e=0;e<256;++e)fn.push((e+256).toString(16).slice(1));function pn(e,t=0){return(fn[e[t+0]]+fn[e[t+1]]+fn[e[t+2]]+fn[e[t+3]]+`-`+fn[e[t+4]]+fn[e[t+5]]+`-`+fn[e[t+6]]+fn[e[t+7]]+`-`+fn[e[t+8]]+fn[e[t+9]]+`-`+fn[e[t+10]]+fn[e[t+11]]+fn[e[t+12]]+fn[e[t+13]]+fn[e[t+14]]+fn[e[t+15]]).toLowerCase()}var mn,hn=new Uint8Array(16);function gn(){if(!mn){if(typeof crypto>`u`||!crypto.getRandomValues)throw Error(`crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported`);mn=crypto.getRandomValues.bind(crypto)}return mn(hn)}var _n={randomUUID:typeof crypto<`u`&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function vn(e,t,n){e||={};let r=e.random??e.rng?.()??gn();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 pn(r)}function yn(e,t,n){return _n.randomUUID&&!t&&!e?_n.randomUUID():vn(e,t,n)}var bn=()=>xn(window.location.pathname),xn=e=>{let t=e.split(`/`),n=e.endsWith(`/`);return t[t.length-(n?2:1)]};function Sn(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 Cn=typeof Symbol==`function`&&Symbol.observable||`@@observable`,wn=()=>Math.random().toString(36).substring(7).split(``).join(`.`),Tn={INIT:`@@redux/INIT${wn()}`,REPLACE:`@@redux/REPLACE${wn()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${wn()}`};function En(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 Dn(e,t,n){if(typeof e!=`function`)throw Error(Sn(2));if(typeof t==`function`&&typeof n==`function`||typeof n==`function`&&typeof arguments[3]==`function`)throw Error(Sn(0));if(typeof t==`function`&&n===void 0&&(n=t,t=void 0),n!==void 0){if(typeof n!=`function`)throw Error(Sn(1));return n(Dn)(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(Sn(3));return i}function d(e){if(typeof e!=`function`)throw Error(Sn(4));if(c)throw Error(Sn(5));let t=!0;l();let n=s++;return o.set(n,e),function(){if(t){if(c)throw Error(Sn(6));t=!1,l(),o.delete(n),a=null}}}function f(e){if(!En(e))throw Error(Sn(7));if(e.type===void 0)throw Error(Sn(8));if(typeof e.type!=`string`)throw Error(Sn(17));if(c)throw Error(Sn(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(Sn(10));r=e,f({type:Tn.REPLACE})}function m(){let e=d;return{subscribe(t){if(typeof t!=`object`||!t)throw Error(Sn(11));function n(){let e=t;e.next&&e.next(u())}return n(),{unsubscribe:e(n)}},[Cn](){return this}}}return f({type:Tn.INIT}),{dispatch:f,subscribe:d,getState:u,replaceReducer:p,[Cn]:m}}function On(e){Object.keys(e).forEach(t=>{let n=e[t];if(n(void 0,{type:Tn.INIT})===void 0)throw Error(Sn(12));if(n(void 0,{type:Tn.PROBE_UNKNOWN_ACTION()})===void 0)throw Error(Sn(13))})}function kn(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{On(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(Sn(14));o[s]=u,a||=u!==l}return a||=r.length!==Object.keys(e).length,a?o:e}}function An(...e){return e.length===0?e=>e:e.length===1?e[0]:e.reduce((e,t)=>(...n)=>e(t(...n)))}function jn(...e){return t=>(n,r)=>{let i=t(n,r),a=()=>{throw Error(Sn(15))},o={getState:i.getState,dispatch:(e,...t)=>a(e,...t)};return a=An(...e.map(e=>e(o)))(i.dispatch),{...i,dispatch:a}}}function Mn(e){return En(e)&&`type`in e&&typeof e.type==`string`}var Nn=Symbol.for(`immer-nothing`),Pn=Symbol.for(`immer-draftable`),Fn=Symbol.for(`immer-state`);function In(e,...t){throw Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var Ln=Object,Rn=Ln.getPrototypeOf,zn=`constructor`,Bn=`prototype`,Vn=`configurable`,Hn=`enumerable`,Un=`writable`,Wn=`value`,Gn=e=>!!e&&!!e[Fn];function Kn(e){return e?Yn(e)||nr(e)||!!e[Pn]||!!e[zn]?.[Pn]||rr(e)||ir(e):!1}var qn=Ln[Bn][zn].toString(),Jn=new WeakMap;function Yn(e){if(!e||!ar(e))return!1;let t=Rn(e);if(t===null||t===Ln[Bn])return!0;let n=Ln.hasOwnProperty.call(t,zn)&&t[zn];if(n===Object)return!0;if(!or(n))return!1;let r=Jn.get(n);return r===void 0&&(r=Function.toString.call(n),Jn.set(n,r)),r===qn}function Xn(e,t,n=!0){Zn(e)===0?(n?Reflect.ownKeys(e):Ln.keys(e)).forEach(n=>{t(n,e[n],e)}):e.forEach((n,r)=>t(r,n,e))}function Zn(e){let t=e[Fn];return t?t.type_:nr(e)?1:rr(e)?2:ir(e)?3:0}var Qn=(e,t,n=Zn(e))=>n===2?e.has(t):Ln[Bn].hasOwnProperty.call(e,t),$n=(e,t,n=Zn(e))=>n===2?e.get(t):e[t],er=(e,t,n,r=Zn(e))=>{r===2?e.set(t,n):r===3?e.add(n):e[t]=n};function tr(e,t){return e===t?e!==0||1/e==1/t:e!==e&&t!==t}var nr=Array.isArray,rr=e=>e instanceof Map,ir=e=>e instanceof Set,ar=e=>typeof e==`object`,or=e=>typeof e==`function`,sr=e=>typeof e==`boolean`;function cr(e){let t=+e;return Number.isInteger(t)&&String(t)===e}var lr=e=>e.copy_||e.base_,ur=e=>e.modified_?e.copy_:e.base_;function dr(e,t){if(rr(e))return new Map(e);if(ir(e))return new Set(e);if(nr(e))return Array[Bn].slice.call(e);let n=Yn(e);if(t===!0||t===`class_only`&&!n){let t=Ln.getOwnPropertyDescriptors(e);delete t[Fn];let n=Reflect.ownKeys(t);for(let r=0;r<n.length;r++){let i=n[r],a=t[i];a[Un]===!1&&(a[Un]=!0,a[Vn]=!0),(a.get||a.set)&&(t[i]={[Vn]:!0,[Un]:!0,[Hn]:a[Hn],[Wn]:e[i]})}return Ln.create(Rn(e),t)}else{let t=Rn(e);if(t!==null&&n)return{...e};let r=Ln.create(t);return Ln.assign(r,e)}}function fr(e,t=!1){return hr(e)||Gn(e)||!Kn(e)?e:(Zn(e)>1&&Ln.defineProperties(e,{set:mr,add:mr,clear:mr,delete:mr}),Ln.freeze(e),t&&Xn(e,(e,t)=>{fr(t,!0)},!1),e)}function pr(){In(2)}var mr={[Wn]:pr};function hr(e){return e===null||!ar(e)?!0:Ln.isFrozen(e)}var gr=`MapSet`,_r=`Patches`,vr=`ArrayMethods`,yr={};function br(e){let t=yr[e];return t||In(0,e),t}var xr=e=>!!yr[e],Sr,Cr=()=>Sr,wr=(e,t)=>({drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0,handledSet_:new Set,processedForPatches_:new Set,mapSetPlugin_:xr(gr)?br(gr):void 0,arrayMethodsPlugin_:xr(vr)?br(vr):void 0});function Tr(e,t){t&&(e.patchPlugin_=br(_r),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function Er(e){Dr(e),e.drafts_.forEach(kr),e.drafts_=null}function Dr(e){e===Sr&&(Sr=e.parent_)}var Or=e=>Sr=wr(Sr,e);function kr(e){let t=e[Fn];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function Ar(e,t){t.unfinalizedDrafts_=t.drafts_.length;let n=t.drafts_[0];if(e!==void 0&&e!==n){n[Fn].modified_&&(Er(t),In(4)),Kn(e)&&(e=jr(t,e));let{patchPlugin_:r}=t;r&&r.generateReplacementPatches_(n[Fn].base_,e,t)}else e=jr(t,n);return Mr(t,e,!0),Er(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e===Nn?void 0:e}function jr(e,t){if(hr(t))return t;let n=t[Fn];if(!n)return Br(t,e.handledSet_,e);if(!Pr(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);Rr(n,e)}return n.copy_}function Mr(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&fr(t,n)}function Nr(e){e.finalized_=!0,e.scope_.unfinalizedDrafts_--}var Pr=(e,t)=>e.scope_===t,Fr=[];function Ir(e,t,n,r){let i=lr(e),a=e.type_;if(r!==void 0&&$n(i,r,a)===t){er(i,r,n,a);return}if(!e.draftLocations_){let t=e.draftLocations_=new Map;Xn(i,(e,n)=>{if(Gn(n)){let r=t.get(n)||[];r.push(e),t.set(n,r)}})}let o=e.draftLocations_.get(t)??Fr;for(let e of o)er(i,e,n,a)}function Lr(e,t,n){e.callbacks_.push(function(r){let i=t;if(!i||!Pr(i,r))return;r.mapSetPlugin_?.fixSetContents(i);let a=ur(i);Ir(e,i.draft_??i,a,n),Rr(i,r)})}function Rr(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)}Nr(e)}}function zr(e,t,n){let{scope_:r}=e;if(Gn(n)){let i=n[Fn];Pr(i,r)&&i.callbacks_.push(function(){Jr(e),Ir(e,n,ur(i),t)})}else Kn(n)&&e.callbacks_.push(function(){let i=lr(e);e.type_===3?i.has(n)&&Br(n,r.handledSet_,r):$n(i,t,e.type_)===n&&r.drafts_.length>1&&(e.assigned_.get(t)??!1)===!0&&e.copy_&&Br($n(e.copy_,t,e.type_),r.handledSet_,r)})}function Br(e,t,n){return!n.immer_.autoFreeze_&&n.unfinalizedDrafts_<1||Gn(e)||t.has(e)||!Kn(e)||hr(e)?e:(t.add(e),Xn(e,(r,i)=>{if(Gn(i)){let t=i[Fn];Pr(t,n)&&(er(e,r,ur(t),e.type_),Nr(t))}else Kn(i)&&Br(i,t,n)}),e)}function Vr(e,t){let n=nr(e),r={type_:n?1:0,scope_:t?t.scope_:Cr(),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=Hr;n&&(i=[r],a=Ur);let{revoke:o,proxy:s}=Proxy.revocable(i,a);return r.draft_=s,r.revoke_=o,[s,r]}var Hr={get(e,t){if(t===Fn)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=lr(e);if(!Qn(i,t,e.type_))return Gr(e,i,t);let a=i[t];if(e.finalized_||!Kn(a)||r&&e.operationMethod&&n?.isMutatingArrayMethod(e.operationMethod)&&cr(t))return a;if(a===Wr(e.base_,t)){Jr(e);let n=e.type_===1?+t:t,r=Xr(e.scope_,a,e,n);return e.copy_[n]=r}return a},has(e,t){return t in lr(e)},ownKeys(e){return Reflect.ownKeys(lr(e))},set(e,t,n){let r=Kr(lr(e),t);if(r?.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){let r=Wr(lr(e),t),i=r?.[Fn];if(i&&i.base_===n)return e.copy_[t]=n,e.assigned_.set(t,!1),!0;if(tr(n,r)&&(n!==void 0||Qn(e.base_,t,e.type_)))return!0;Jr(e),qr(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),zr(e,t,n),!0)},deleteProperty(e,t){return Jr(e),Wr(e.base_,t)!==void 0||t in e.base_?(e.assigned_.set(t,!1),qr(e)):e.assigned_.delete(t),e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){let n=lr(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{[Un]:!0,[Vn]:e.type_!==1||t!==`length`,[Hn]:r[Hn],[Wn]:n[t]}},defineProperty(){In(11)},getPrototypeOf(e){return Rn(e.base_)},setPrototypeOf(){In(12)}},Ur={};for(let e in Hr){let t=Hr[e];Ur[e]=function(){let e=arguments;return e[0]=e[0][0],t.apply(this,e)}}Ur.deleteProperty=function(e,t){return Ur.set.call(this,e,t,void 0)},Ur.set=function(e,t,n){return Hr.set.call(this,e[0],t,n,e[0])};function Wr(e,t){let n=e[Fn];return(n?lr(n):e)[t]}function Gr(e,t,n){let r=Kr(t,n);return r?Wn in r?r[Wn]:r.get?.call(e.draft_):void 0}function Kr(e,t){if(!(t in e))return;let n=Rn(e);for(;n;){let e=Object.getOwnPropertyDescriptor(n,t);if(e)return e;n=Rn(n)}}function qr(e){e.modified_||(e.modified_=!0,e.parent_&&qr(e.parent_))}function Jr(e){e.copy_||=(e.assigned_=new Map,dr(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var Yr=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!1,this.produce=(e,t,n)=>{if(or(e)&&!or(t)){let n=t;t=e;let r=this;return function(e=n,...i){return r.produce(e,e=>t.call(this,e,...i))}}or(t)||In(6),n!==void 0&&!or(n)&&In(7);let r;if(Kn(e)){let i=Or(this),a=Xr(i,e,void 0),o=!0;try{r=t(a),o=!1}finally{o?Er(i):Dr(i)}return Tr(i,n),Ar(r,i)}else if(!e||!ar(e)){if(r=t(e),r===void 0&&(r=e),r===Nn&&(r=void 0),this.autoFreeze_&&fr(r,!0),n){let t=[],i=[];br(_r).generateReplacementPatches_(e,r,{patches_:t,inversePatches_:i}),n(t,i)}return r}else In(1,e)},this.produceWithPatches=(e,t)=>{if(or(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]},sr(e?.autoFreeze)&&this.setAutoFreeze(e.autoFreeze),sr(e?.useStrictShallowCopy)&&this.setUseStrictShallowCopy(e.useStrictShallowCopy),sr(e?.useStrictIteration)&&this.setUseStrictIteration(e.useStrictIteration)}createDraft(e){Kn(e)||In(8),Gn(e)&&(e=Zr(e));let t=Or(this),n=Xr(t,e,void 0);return n[Fn].isManual_=!0,Dr(t),n}finishDraft(e,t){let n=e&&e[Fn];(!n||!n.isManual_)&&In(9);let{scope_:r}=n;return Tr(r,t),Ar(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=br(_r).applyPatches_;return Gn(e)?r(e,t):this.produce(e,e=>r(e,t))}};function Xr(e,t,n,r){let[i,a]=rr(t)?br(gr).proxyMap_(t,n):ir(t)?br(gr).proxySet_(t,n):Vr(t,n);return(n?.scope_??Cr()).drafts_.push(i),a.callbacks_=n?.callbacks_??[],a.key_=r,n&&r!==void 0?Lr(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 Zr(e){return Gn(e)||In(10,e),Qr(e)}function Qr(e){if(!Kn(e)||hr(e))return e;let t=e[Fn],n,r=!0;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=dr(e,t.scope_.immer_.useStrictShallowCopy_),r=t.scope_.immer_.shouldUseStrictIteration()}else n=dr(e,!0);return Xn(n,(e,t)=>{er(n,e,Qr(t))},r),t&&(t.finalized_=!1),n}var $r=new Yr().produce;function ei(e){return({dispatch:t,getState:n})=>r=>i=>typeof i==`function`?i(t,n,e):r(i)}var ti=ei(),ni=ei,ri=typeof window<`u`&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]==`object`?An:An.apply(null,arguments)};typeof window<`u`&&window.__REDUX_DEVTOOLS_EXTENSION__&&window.__REDUX_DEVTOOLS_EXTENSION__;function ii(e,t){function n(...n){if(t){let r=t(...n);if(!r)throw Error(Ii(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=>Mn(t)&&t.type===e,n}var ai=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 oi(e){return Kn(e)?$r(e,()=>{}):e}function si(e,t,n){return e.has(t)?e.get(t):e.set(t,n(t)).get(t)}function ci(e){return typeof e==`boolean`}var li=()=>function(e){let{thunk:t=!0,immutableCheck:n=!0,serializableCheck:r=!0,actionCreatorCheck:i=!0}=e??{},a=new ai;return t&&(ci(t)?a.push(ti):a.push(ni(t.extraArgument))),a},ui=`RTK_autoBatch`,di=e=>t=>{setTimeout(t,e)},fi=(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:di(10):e.type===`callback`?e.queueNotification:di(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?.[ui],a=!i,a&&(o||(o=!0,c(l))),r.dispatch(e)}finally{i=!0}}})},pi=e=>function(t){let{autoBatch:n=!0}=t??{},r=new ai(e);return n&&r.push(fi(typeof n==`object`?n:void 0)),r};function mi(e){let t=li(),{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(En(n))c=kn(n);else throw Error(Ii(1));let l;l=typeof r==`function`?r(t):t();let u=An;i&&(u=ri({trace:!1,...typeof i==`object`&&i}));let d=pi(jn(...l)),f=typeof s==`function`?s(d):d(),p=u(...f);return Dn(c,o,p)}function hi(e){let t={},n=[],r,i={addCase(e,n){let r=typeof e==`string`?e:e.type;if(!r)throw Error(Ii(28));if(r in t)throw Error(Ii(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 gi(e){return typeof e==`function`}function _i(e,t){let[n,r,i]=hi(t),a;if(gi(e))a=()=>oi(e());else{let t=oi(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(Gn(e)){let r=n(e,t);return r===void 0?e:r}else if(Kn(e))return $r(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 vi=Symbol.for(`rtk-slice-createasyncthunk`);function yi(e,t){return`${e}/${t}`}function bi({creators:e}={}){let t=e?.asyncThunk?.[vi];return function(e){let{name:n,reducerPath:r=n}=e;if(!n)throw Error(Ii(11));let i=(typeof e.reducers==`function`?e.reducers(Ci()):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(Ii(12));if(n in o.sliceCaseReducersByType)throw Error(Ii(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:yi(n,r),createNotation:typeof e.reducers==`function`};Ti(a)?Di(o,a,s,t):wi(o,a,s)});function c(){let[t={},n=[],r=void 0]=typeof e.extraReducers==`function`?hi(e.extraReducers):[e.extraReducers],i={...t,...o.sliceCaseReducersByType};return _i(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=si(d,r,m)),i}function i(t=l){return si(si(u,n,()=>new WeakMap),t,()=>{let r={};for(let[i,a]of Object.entries(e.selectors??{}))r[i]=xi(a,t,()=>si(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 xi(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 Si=bi();function Ci(){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 wi({type:e,reducerName:t,createNotation:n},r,i){let a,o;if(`reducer`in r){if(n&&!Ei(r))throw Error(Ii(17));a=r.reducer,o=r.prepare}else a=r;i.addCase(e,a).exposeCaseReducer(t,a).exposeAction(t,o?ii(e,o):ii(e))}function Ti(e){return e._reducerDefinitionType===`asyncThunk`}function Ei(e){return e._reducerDefinitionType===`reducerWithPrepare`}function Di({type:e,reducerName:t},n,r,i){if(!i)throw Error(Ii(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||Oi,pending:s||Oi,rejected:c||Oi,settled:l||Oi})}function Oi(){}var ki=`listener`,Ai=`completed`,ji=`cancelled`;`${ji}`,`${Ai}`,`${ki}${ji}`,`${ki}${Ai}`;var{assign:Mi}=Object,Ni=`listenerMiddleware`,Pi=Mi(ii(`${Ni}/add`),{withTypes:()=>Pi});`${Ni}`;var Fi=Mi(ii(`${Ni}/remove`),{withTypes:()=>Fi});function Ii(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 Li=Si({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:Ri,startAuthenticatedChat:zi,showStartScreen:Bi,requestLogin:Vi,loginWindowClosed:Hi}=Li.actions,Ui=Li.reducer,Wi=`RESET_CHAT_STATE`,Gi=`TOGGLE_TRANSCRIPT_MAIL_OVERLAY`,Ki=`SHOW_CONVERSATION_RATING_OVERLAY`,qi=`HIDE_CONVERSATION_RATING_OVERLAY`,Ji=()=>({type:qt}),Yi=()=>({type:Wi}),Xi=()=>({type:Gi}),Zi=(e,t=void 0)=>({type:Ki,payload:{opener:e,defaultRating:t}}),Qi=()=>({type:qi}),$i=(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}}),ea(e,a,t,n,!1,r),ea(e,a,t,n,!0,r)}catch(e){console.error(`Error loading source infos:`,e),r({type:Ut})}},ea=(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:Ht,payload:{...e,chunkId:r,highlighted:i}})}).catch(e=>{console.error(`Error fetching source infos:`,e),a({type:Ut,payload:{highlighted:i}})})},ta=()=>({type:Gt}),na=`CONNECT`,ra=`CONNECTING`,ia=`CONNECTED`,aa=`DISCONNECTED`,oa=`RECONNECTED`,sa=`RESTORE_SESSION_ID`,ca=`START`,la=`CLEAR_SESSION_ID`,ua=[na,ra,ia,aa,oa,sa],da=(e,t)=>({type:na,clientName:e,querystrings:t}),fa=e=>({type:sa,sessionId:e}),pa=()=>({type:ra}),ma=()=>({type:ia}),ha=()=>({type:aa}),ga=()=>({type:oa}),_a=e=>(t,n)=>{let r=n().connection,{formValues:i,loginToken:a}=n().startScreen,o=r.sessionId;o===void 0&&(o=yn());let s=r.userId;s===void 0&&(s=dn.get(`bubble-chat-user-id`)||dn.get(`bubble-chat-userId`)||dn.get(`bf-webclient-userId`)||yn(),dn.set(`bubble-chat-user-id`,s,{expires:182}));let c=new URLSearchParams(n().connection.queryString||``),l=Object.fromEntries(c.entries());t({type:ca,payload:{sessionId:o,userId:s,clientName:e,loginToken:a,querystrings:{...l,...i}}})},va=()=>(e,t)=>{if(e(ya(t().connection.sessionId||``)),e(Yi()),t().settings.enableStartScreen)e(Bi());else return e(_a(bn()))},ya=e=>({type:la,payload:{sessionId:e}}),ba=$e,xa=nt,Sa=()=>{let e=xa(e=>e.intl.messages);return t=>e[t]||void 0},Ca=function(e){return e[e.CONNECTING=0]=`CONNECTING`,e[e.CONNECTED=1]=`CONNECTED`,e[e.RECONNECTED=2]=`RECONNECTED`,e[e.DISCONNECTED=3]=`DISCONNECTED`,e}({}),wa=function(e){return e.GUEST=`GUEST`,e.BOT=`BOT`,e.PERSON=`PERSON`,e}({}),Ta={container:`_container_q2uun_1`,chatcontent:`_chatcontent_q2uun_6`,accessabilityHidden:`_accessabilityHidden_q2uun_12`},Ea={messageContainer:`_messageContainer_1t640_1`,messages:`_messages_1t640_13`},Da;function Oa(e){if(!Da)if(typeof document<`u`)Da=document.createElement(`textarea`);else return;var t=`&`+e+`;`;Da.innerHTML=t;var n=Da.value;return n===t?void 0:n}var z=32,B=9,ka=13,V=10,Aa=96,ja=126,Ma=91,Na=94,H=62,Pa=35,Fa=36,Ia=37,U=45,La=61,Ra=92,za=42,Ba=95,Va=60,Ha=64,Ua=93,Wa=33,Ga=38,Ka=58,qa=70,Ja=102,Ya=104,Xa=119,Za=116,Qa=112,$a=115,eo=160,to=12,no=44,ro=59,io=63,ao=46,W=47,oo=39,so=34,G=43,K=124,co=123,lo=125,uo=40,fo=41,po=30,mo=31,q=48,ho=57,J=65,go=90,_o=97,vo=122,yo=128,bo=32,Y={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 xo(e){if(!No(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++,No(e,`---`,r))return{endPos:t,hasValidYaml:n};let a=e.indexOf(`:`,r);a!==-1&&a<i&&(n=!0)}return null}var So=/&([a-zA-Z0-9]+|#[0-9]{1,7}|#x[0-9a-fA-F]{1,6});/gi,Co={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 wo(e){var t={};for(var n in e){var r=Co[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 To=/(\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 Eo(e){return e.indexOf(`&`)===-1?e:e.replace(So,(e,t)=>{var n=Oa(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 Do=/(javascript|vbscript|data(?!:image)):/i;function Oo(e){if(Do.test(e))return null;if(e.indexOf(`%`)===-1)return e;try{let t=decodeURIComponent(e).replace(/[^A-Za-z0-9/:]/g,``);if(Do.test(t))return null}catch{return null}return e}var ko={},Ao,jo;for(Ao=[192,193,194,195,196,197,224,225,226,227,228,229,230,198],jo=0;jo<Ao.length;jo++)ko[Ao[jo]]=`a`;for(ko[231]=ko[199]=`c`,ko[240]=ko[208]=`d`,Ao=[200,201,202,203,233,232,234,235],jo=0;jo<Ao.length;jo++)ko[Ao[jo]]=`e`;for(Ao=[207,239,206,238,205,237,204,236],jo=0;jo<Ao.length;jo++)ko[Ao[jo]]=`i`;for(ko[209]=ko[241]=`n`,Ao=[248,216,339,338,213,245,212,244,211,243,210,242],jo=0;jo<Ao.length;jo++)ko[Ao[jo]]=`o`;for(Ao=[220,252,219,251,218,250,217,249],jo=0;jo<Ao.length;jo++)ko[Ao[jo]]=`u`;ko[376]=ko[255]=ko[221]=ko[253]=`y`;function Mo(e){for(var t=e.toLowerCase(),n=``,r=-1,i=0;i<t.length;i++){var a=t.charCodeAt(i);if(a<yo&&(qo[a]&(Ro|zo))!==0)r<0&&(r=i);else if(a===z||a===U)r>=0&&(n+=t.slice(r,i),r=-1),n+=`-`;else{r>=0&&(n+=t.slice(r,i),r=-1);var o=ko[a];o&&(n+=o)}}return r>=0&&(n+=t.slice(r)),n}function No(e,t,n){return e.startsWith(t,n)}var Po=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 Fo(e){let t=e.toLowerCase();if(Po.has(t))return!0;let n=t.indexOf(`:`);return n===-1?!1:(t=t.slice(n+1),Po.has(t))}var Io=1,Lo=2,Ro=4,zo=8,Bo=16,Vo=32,Ho=64,Uo=1,Wo=2,Go=3,Ko=4,qo=(function(){let e=new Uint8Array(128),t;for(e[B]=Io|Vo,e[V]=Io|Bo,e[to]=Io,e[ka]=Io|Bo,e[z]=Io|Vo,t=Wa;t<=W;t++)e[t]=Lo;for(t=Ka;t<=Ha;t++)e[t]=Lo;for(t=Ma;t<=Aa;t++)e[t]=Lo;for(t=co;t<=ja;t++)e[t]=Lo;for(t=q;t<=ho;t++)e[t]=zo;for(t=J;t<=go;t++)e[t]=Ro|Ho;for(t=_o;t<=vo;t++)e[t]=Ro;return e})();(function(){let e=new Uint8Array(128);return e[Ra]=Wo,e[Ma]=Ko,e[za]=e[Ba]=e[ja]=e[La]=Go,e[Aa]=e[Va]=e[Ha]=e[Ua]=e[V]=e[z]=e[Wa]=Uo,e[Ja]=e[Ya]=e[Xa]=Uo,e})();var Jo=[];function Yo(e){var t=e.indexOf(`\r`),n=e.indexOf(`\0`);if(t===-1&&n===-1)return e;var r=e.length;Jo.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===ka?(i<a&&Jo.push(e.slice(i,a)),a+1<r&&e.charCodeAt(a+1)===V&&a++,Jo.push(`
17
+ `),i=a+1):o===0&&(i<a&&Jo.push(e.slice(i,a)),Jo.push(`�`),i=a+1)}return i<r&&Jo.push(e.slice(i)),Jo.join(``)}function Xo(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 Zo(e){for(var t=!1,n=0;n<e.length;n++){var r=e.charCodeAt(n);if(r<=z||r===so||r===Ia||r===Va||r===H||r===Ma||r===Ra||r===Ua||r===Na||r===Aa||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===Ia&&n+2<e.length){var a=e.charCodeAt(n+1),o=e.charCodeAt(n+2);if((a>=q&&a<=ho||a>=J&&a<=qa||a>=_o&&a<=Ja)&&(o>=q&&o<=ho||o>=J&&o<=qa||o>=_o&&o<=Ja)){i+=e[n]+e[n+1]+e[n+2],n+=2;continue}}i+=encodeURI(e[n])}return i}function Qo(...e){return e.filter(Boolean).join(` `)}var $o=new Set([`title`,`textarea`,`style`,`xmp`,`iframe`,`noembed`,`noframes`,`script`,`plaintext`]),es=/<(\/?)(title|textarea|style|xmp|iframe|noembed|noframes|script|plaintext)(\s|>|\/)/gi;function ts(e){return $o.has(e.toLowerCase())}function ns(e){return es.lastIndex=0,es.test(e)}function rs(e){return es.lastIndex=0,e.replace(es,function(e,t,n,r){return`&lt;`+t+n+r})}var is=/^<([a-zA-Z][a-zA-Z0-9-]*)\s[^>]*>/,as=/^<[A-Z]/,os=[`script`,`pre`,`style`,`textarea`],ss=new Set(os),cs=/<(?:pre|script|style|textarea)\b/i,ls=new Set([`table`,`thead`,`tbody`,`tfoot`,`tr`,`td`,`th`]),us=new Uint8Array(128);(function(){for(var e=[Aa,za,Ba,ja,La,Ma,Wa,Va,Ra,mo,Ya,Xa,Ja],t=0;t<e.length;t++)us[e[t]]=1})();var ds=/([a-zA-Z_][a-zA-Z0-9_-]*)=(?:"([^"]*)"|'([^']*)')/g;function fs(e){return ss.has(e)}function ps(e){return cs.test(e)}function ms(e,t,n){for(var r=t,i=n;r<i&&(e.charCodeAt(r)===z||e.charCodeAt(r)===B);)r++;if(r>=i)return!1;e.charCodeAt(r)===K&&r++;for(var a=0;r<i;){for(;r<i&&(e.charCodeAt(r)===z||e.charCodeAt(r)===B);)r++;if(r>=i)break;if(e.charCodeAt(r)===K&&a>0){for(var o=r+1;o<i&&(e.charCodeAt(o)===z||e.charCodeAt(o)===B);)o++;if(o>=i)return!0}if(e.charCodeAt(r)===Ka&&r++,r>=i||e.charCodeAt(r)!==U)return!1;for(;r<i&&e.charCodeAt(r)===U;)r++;for(r<i&&e.charCodeAt(r)===Ka&&r++,a++;r<i&&(e.charCodeAt(r)===z||e.charCodeAt(r)===B);)r++;if(r<i)if(e.charCodeAt(r)===K)r++;else return!1}return a>0}function hs(e,t){if(e.charCodeAt(t)!==Va)return null;let n=t+1,r=e.length,i=!1;e.charCodeAt(n)===W&&(n++,i=!0);let a=n,o=e.charCodeAt(n);if(!(o>=_o&&o<=vo||o>=J&&o<=go))return null;for(;n<r&&(e.charCodeAt(n)>=_o&&e.charCodeAt(n)<=vo||e.charCodeAt(n)>=J&&e.charCodeAt(n)<=go||e.charCodeAt(n)>=q&&e.charCodeAt(n)<=ho||e.charCodeAt(n)===U);)n++;let s=e.slice(a,n);if(!s)return null;let c=n;for(;n<r&&(e.charCodeAt(n)===z||e.charCodeAt(n)===B||e.charCodeAt(n)===V);)n++;let l=e.slice(c,n);if(n===c&&n<r){var u=e.charCodeAt(n);if(u!==H&&u!==W)return null}let d=n,f={},p=!1;for(;n<r;){let t=e.charCodeAt(n);if(t===H){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===z||t===B||t===V){n++;continue}if(t===W&&n+1<r&&e.charCodeAt(n+1)===H){let t=e.slice(d,n);return p=n>d&&e.charCodeAt(n-1)===z,{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>=_o&&h<=vo||h>=J&&h<=go||h===Ba||h===Ka))return null;for(n++;n<r;){var g=e.charCodeAt(n);if(g>=_o&&g<=vo||g>=J&&g<=go||g>=q&&g<=ho||g===Ba||g===ao||g===Ka||g===U)n++;else break}for(var _=e.slice(m,n);n<r&&(e.charCodeAt(n)===z||e.charCodeAt(n)===B);)n++;if(e.charCodeAt(n)!==La){f[_]=``;continue}for(n++;n<r&&(e.charCodeAt(n)===z||e.charCodeAt(n)===B);)n++;var v=e.charCodeAt(n);if(v===so||v===oo){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!==z&&b!==B&&b!==V&&b!==H&&b!==W)return null}}else if(v===co){var x=1,y=n;for(n++;n<r&&x>0;){var g=e.charCodeAt(n);g===co?x++:g===lo&&x--,n++}f[_]=e.slice(y,n)}else{for(var y=n;n<r;){var S=e.charCodeAt(n);if(S===z||S===B||S===H||S===V||S===so||S===oo||S===La||S===Va||S===Aa)break;n++}if(n===y)return null;f[_]=e.slice(y,n)}}return null}function gs(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)===z)u++,l++;else if(e.charCodeAt(l)===B)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===Aa||d===ja){for(var f=d,p=0,m=l;m<c&&e.charCodeAt(m)===f;)p++,m++;if(p>=3){var h=!0;if(f===Aa){for(var g=m;g<c;g++)if(e.charCodeAt(g)===Aa){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===z)y++,v++;else if(b===B)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)===z||e.charCodeAt(v)===B);)v++;if(v>=i||e.charCodeAt(v)===V){r=v>=i?i:v+1;break}}}for(;_<i&&e.charCodeAt(_)!==V;)_++;_<i&&_++}_>=i&&(r=i,o=!0);continue}}}}for(var S=l;S<c&&e.charCodeAt(S)===H;){S++,S<c&&e.charCodeAt(S)===z&&S++;for(var C=0;S<c&&C<4;)if(e.charCodeAt(S)===z)C++,S++;else if(e.charCodeAt(S)===B)C+=4,S++;else break;if(C>=4)break;a=!1}if(!a&&u<4&&S<c&&e.charCodeAt(S)===Ma&&!(S+1<i&&e.charCodeAt(S+1)===Na)){var w=_s(e,S,t);if(w){r=w,a=!1;continue}}var T=e.charCodeAt(l);if(T===Pa&&u<4)a=!1;else if(u<4&&(T===U||T===za||T===Ba)){for(var E=l,D=0;E<c;){var O=e.charCodeAt(E);if(O===T)D++;else if(O!==z&&O!==B)break;E++}a=!(D>=3&&E>=c)}else a=!0;r=s<0?i:s+1}return o}function _s(e,t,n){let r=e.length;if(e.charCodeAt(t)!==Ma)return null;let i=t+1<r&&e.charCodeAt(t+1)===Na,a=t+1;for(;a<r;){var o=e.charCodeAt(a);if(o===Ua){a++;break}if(o===Ma)return null;o===Ra&&a+1<r&&a++,a++}if(a>r||e.charCodeAt(a-1)!==Ua)return null;let s=e.slice(t+1,a-1);if(s.length>999)return null;let c=Es(s);if(!c||a>=r||e.charCodeAt(a)!==Ka)return null;a++;let l=!1;for(;a<r;){let t=e.charCodeAt(a);if(t===z||t===B)a++;else if(t===V&&!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)!==H&&e.charCodeAt(a)!==V;)e.charCodeAt(a)===Ra&&a+1<r&&a++,a++;if(a>=r||e.charCodeAt(a)!==H)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)===z||e.charCodeAt(m)===B);)m++;if(m<p){if(m===a)return null;var h=e.charCodeAt(m);if(h!==so&&h!==oo&&h!==uo)return null}}else{for(var d=a,g=0;a<r;){var o=e.charCodeAt(a);if(o===uo)g++;else if(o===fo){if(g===0)break;g--}else{if(o===z||o===B||o===V)break;o===Ra&&a+1<r&&a++}a++}if(u=e.slice(d,a),!u)return null}for(;a<r&&(e.charCodeAt(a)===z||e.charCodeAt(a)===B);)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)===z||e.charCodeAt(S)===B);)S++;if(S<r){var C=e.charCodeAt(S);if(C===so||C===oo||C===uo){for(var w=C===uo?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)===z||e.charCodeAt(O)===B);)O++;(O>=r||e.charCodeAt(O)===V)&&(y=e.slice(E,T),b=!0,x=O<r?O+1:r);break}if(D===Ra&&T+1<r){T+=2;continue}if(D===V&&T+1<r&&e.charCodeAt(T+1)===V)break;T++}if(!b&&S===a)return null}}if(b)return n[c]||(n[c]={target:Os(u),title:y===void 0?y:Eo(Os(y))}),x;for(;a<v&&(e.charCodeAt(a)===z||e.charCodeAt(a)===B);)a++;return a<v?null:(n[c]||(n[c]={target:Os(u),title:y}),_<0?r:_+1)}var vs=1,ys=2,bs=4,xs=8,Ss=16,Cs=32,ws=64,X=new Uint8Array(128);X[z]=vs,X[B]=vs,X[V]=vs|ys,X[ka]=vs|ys,X[Pa]=Cs|bs,X[H]=Cs|bs,X[U]=Cs|ws|bs,X[G]=Cs|bs,X[za]=Cs|ws|bs,X[Ba]=Cs|ws|bs,X[Aa]=Cs|ws|bs,X[ja]=Cs|ws|bs,X[Va]=Cs|ws|bs,X[Ma]=ws|bs,X[Wa]=ws|bs,X[K]=Cs|bs;for(let e=q;e<=ho;e++)X[e]=Ss|Cs;for(let e=J;e<=go;e++)X[e]=xs;for(let e=_o;e<=vo;e++)X[e]=xs;X[Ra]=bs,X[Ua]=bs,X[uo]=bs,X[fo]=bs,X[Ka]=bs,X[so]=bs,X[oo]=bs,X[Ga]=bs,X[La]=bs,X[Fa]=bs,X[Ia]=bs,X[no]=bs,X[ao]=bs,X[W]=bs,X[ro]=bs,X[io]=bs,X[Ha]=bs,X[Na]=bs,X[co]=bs,X[lo]=bs;function Ts(e){if(e.indexOf(`[`)<0&&e.indexOf(`]`)<0)return!1;for(var t=0;t<e.length;t++){if(e.charCodeAt(t)===Ra){t++;continue}if(e.charCodeAt(t)===Ma||e.charCodeAt(t)===Ua)return!0}return!1}function Es(e){var t=e.replace(/\s+/g,` `).trim();return t.indexOf(`ẞ`)===-1?t.toLowerCase():t.replace(/\u1E9E/g,`ss`).toLowerCase()}function Ds(e){return e<yo?X[e]:e===eo?vs:0}function Os(e){return e.replace(/\\([!"#$%&'()*+,\-./:;<=>?@[\\\]^_`{|}~])/g,`$1`)}function ks(e,t){var n=e.indexOf(`
22
+ `,t);return n<0?e.length:n}function Z(e,t){let n=ks(e,t);return n<e.length?n+1:n}function As(e,t,n){for(;t<n;){let n=e.charCodeAt(t);if(n!==z&&n!==B)break;t++}return t}function js(e,t){let n=Z(e,t);for(;n<e.length;){let t=ks(e,n);if(Is(e,n,t))return n;n=Z(e,n)}return e.length}function Ms(e,t,n,r){let i=0;for(;t+i<n&&e.charCodeAt(t+i)===r;)i++;return i}var Ns=0,Ps=0;function Fs(e,t,n){for(Ns=0,Ps=0;t+Ps<n;){let n=e.charCodeAt(t+Ps);if(n===B)Ns+=4-Ns%4;else if(n===z)Ns++;else break;Ps++}}function Is(e,t,n){return As(e,t,n)>=n}function Ls(e,t,n,r){let i=ks(e,t);if(Fs(e,t,i),Ns>3)return null;let a=t+Ps;if(e.charCodeAt(a)!==Pa)return null;let o=Ms(e,a,i,35);if(o<1||o>6||(a+=o,a<i&&e.charCodeAt(a)!==z&&e.charCodeAt(a)!==B))return null;a=As(e,a,i);for(var s=i;s>a&&e.charCodeAt(s-1)===z;)s--;for(var c=s;s>a&&e.charCodeAt(s-1)===Pa;)s--;if(s<c)if(s===a||e.charCodeAt(s-1)===z)for(;s>a&&e.charCodeAt(s-1)===z;)s--;else s=c;let l=e.slice(a,s),u=kc(l,0,l.length,n,r),d=(r?.slugify||Mo)(l);return{node:{type:Y.heading,level:o,children:u,id:d},end:Z(e,i)}}function Rs(e,t,n){var r=e.charCodeAt(t);if(r!==La&&r!==U)return!1;for(var i=t;i<n&&e.charCodeAt(i)===r;)i++;for(;i<n&&(e.charCodeAt(i)===z||e.charCodeAt(i)===B);)i++;return i>=n}function zs(e,t){let n=ks(e,t);if(Fs(e,t,n),Ns>3)return null;let r=t+Ps,i=e.charCodeAt(r);if(i!==U&&i!==za&&i!==Ba)return null;let a=0;for(;r<n;){let t=e.charCodeAt(r);if(t===i)a++;else if(t!==z&&t!==B)return null;r++}return a<3?null:{node:{type:Y.breakThematic},end:Z(e,n)}}function Bs(e,t,n){let r=ks(e,t);if(Fs(e,t,r),Ns>3)return null;let i=Ns,a=t+Ps,o=e.charCodeAt(a);if(o!==Aa&&o!==ja)return null;let s=Ms(e,a,r,o);if(s<3)return null;a+=s;let c=As(e,a,r),l=r;if(o===Aa){for(let t=c;t<r;t++)if(e.charCodeAt(t)===Aa)return null}for(;l>c&&(e.charCodeAt(l-1)===z||e.charCodeAt(l-1)===B);)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=Os(d);var m=void 0;if(f){ds.lastIndex=0;for(var h;(h=ds.exec(f))!==null;)m||={},m[h[1]]=h[2]===void 0?h[3]:h[2]}let g=Z(e,r),_=g,v=e.length;for(;_<e.length;){let t=ks(e,_);if(Fs(e,_,t),Ns<4){let n=_+Ps;var y=Ms(e,n,t,o);if(y>=s&&Is(e,n+y,t)){v=Z(e,t);break}}_=Z(e,t)}var b;if(i===0)b=_>g&&e.charCodeAt(_-1)===V?e.slice(g,_-1):e.slice(g,_);else{b=``;for(var x=g;x<_;){var S=ks(e,x);Fs(e,x,S);var C=Math.min(Ps,i);b+=e.slice(x+C,S)+`
23
+ `,x=Z(e,S)}b.length>0&&b.charCodeAt(b.length-1)===V&&(b=b.slice(0,-1))}return{node:{type:Y.codeBlock,lang:d||void 0,text:b,infoString:f||void 0,attrs:m},end:v}}function Vs(e,t){if(Fs(e,t,ks(e,t)),Ns<4)return null;let n=``,r=t;for(;r<e.length;){let t=ks(e,r);if(Fs(e,r,t),Is(e,r,t)){for(var i=0,a=Z(e,t);a<e.length;){var o=ks(e,a);if(Is(e,a,o)){i++,a=Z(e,o);continue}if(Fs(e,a,o),Ns>=4){for(var s=0;s<=i;s++)n+=`
24
+ `;r=a;break}break}if(r!==a)break;continue}if(Ns<4)break;let f=0,p=0;var c=0;for(let n=r;n<t&&p<4;n++){if(e.charCodeAt(n)===B){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=Z(e,t)}for(;n.length>0&&n.charCodeAt(n.length-1)===V;)n=n.slice(0,-1);for(;n.length>0&&n.charCodeAt(n.length-1)===V;)n=n.slice(0,-1);return n?{node:{type:Y.codeBlock,text:n},end:r}:null}function Hs(e,t,n,r){if(Fs(e,t,ks(e,t)),Ns>3)return null;let i=t+Ps;if(e.charCodeAt(i)!==H)return null;let a=``,o=t,s,c=!1,l=!1,u=!1;for(;o<e.length;){let t=ks(e,o);Fs(e,o,t);let n=o+Ps;if(e.charCodeAt(n)===H){let r=n+1;var d=Ns+1,f=!1;if(r<t){var p=e.charCodeAt(r);p===z?(r++,d++,f=!0):p===B&&(f=!0)}for(var m=``,h=!1,g=r;g<t;g++)if(e.charCodeAt(g)===B){h=!0;break}if(h){var _=d;if(f&&r<t&&e.charCodeAt(r)===B){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)===B){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=Z(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=Z(e,t)}else if(a&&!Is(e,o,t)&&l){if(Ns<4){var w=o+Ps,T=w<t?e.charCodeAt(w):0;if(T===Pa||T===H||T===Aa||T===ja||T===Va||(T===U||T===za||T===Ba)&&zs(e,o)||(T===U||T===za||T===G)&&w+1<t&&(e.charCodeAt(w+1)===z||e.charCodeAt(w+1)===B))break;if(T>=q&&T<=ho){for(var E=w;E<t&&e.charCodeAt(E)>=q&&e.charCodeAt(E)<=ho;)E++;if(E<t&&(e.charCodeAt(E)===ao||e.charCodeAt(E)===fo))break}}if(u)break;a+=e.slice(o,t)+`
27
+ `,c=!0,o=Z(e,t)}else break}if(!a&&!s)return null;var{inBlockQuote:D,f:O}=n;n.inBlockQuote=!0,c&&(n.f=!0);let ee=jc(a||``,n,r);n.inBlockQuote=D,n.f=O;let k={type:Y.blockQuote,children:ee};return s&&(k.alert=s),{node:k,end:o}}function Us(e,t,n){for(var r=0,i=t;i<n;i++)e.charCodeAt(i)===B?r+=4-r%4:r++;return r}function Ws(e,t,n){if(Fs(e,t,n),Ns>3)return null;var r=t+Ps;if(r>=n)return null;var i=e.charCodeAt(r),a=Ns,o=r;if(i===U||i===za||i===G){if(o=r+1,o<n&&e.charCodeAt(o)!==z&&e.charCodeAt(o)!==B&&e.charCodeAt(o)!==V)return null}else if(i>=q&&i<=ho){for(var s=r;s<n&&s-r<9;){var c=e.charCodeAt(s);if(c<q||c>ho)break;s++}if(s>r&&s<n){var l=e.charCodeAt(s);if(l===ao||l===fo){if(o=s+1,o<n&&e.charCodeAt(o)!==z&&e.charCodeAt(o)!==B&&e.charCodeAt(o)!==V)return null}else return null}else return null}else return null;var u=o,d=Us(e,t,o),f=0,p=u,m=d;if(u>=n)return{ordered:i>=q&&i<=ho,marker:i>=q&&i<=ho?e[s]:e[r],start:i>=q&&i<=ho?parseInt(e.slice(r,s),10):void 0,contentStart:u,contentCol:d+1,markerCol:a,isEmpty:!0};for(;p<n&&(e.charCodeAt(p)===z||e.charCodeAt(p)===B);){if(e.charCodeAt(p)===B){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>=q&&i<=ho,marker:i>=q&&i<=ho?e[s]:e[r],start:i>=q&&i<=ho?parseInt(e.slice(r,s),10):void 0,contentStart:p,contentCol:m,markerCol:a,isEmpty:g}}var Gs=0;function Ks(e,t,n,r){var i=0,a=t;for(Gs=0;a<n&&i<r;){var o=e.charCodeAt(a);if(o===B){var s=4-i%4;if(i+s>r){Gs=i+s-r,a++,i=r;break}i+=s}else if(o===z)i++;else break;a++}return a}function qs(e,t,n,r){var i=ks(e,t),a=Ws(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)===B){p=!0;break}if(p){var h=``,g=Us(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)===B){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=Z(e,i);s<e.length;){var S=ks(e,s);Fs(e,s,S);var C=e.charCodeAt(s+Ps);if(Ns<c&&(C===U||C===za||C===Ba)&&Ns<=3&&zs(e,s))break;var w=Ws(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=Z(e,S);continue}if(Is(e,s,S)){l+=`
31
+ `,s=Z(e,S);for(var T=!1,E=0;E<l.length;E++){var D=l.charCodeAt(E);if(D!==V&&D!==ka&&D!==z&&D!==B){T=!0;break}}if(u&&!T)if(s<e.length){var O=ks(e,s),ee=Ws(e,s,O);if(!ee||ee.ordered!==a.ordered||ee.marker!==a.marker)break;d=!0}else break;if(s<e.length){var k=ks(e,s);Fs(e,s,k);var te=e.charCodeAt(s+Ps);if((te===U||te===za||te===Ba)&&Ns<=3&&zs(e,s))break;var A=Ws(e,s,k);if(A&&A.ordered===a.ordered&&A.marker===a.marker&&A.markerCol<c){d=!0;continue}if(!Is(e,s,k)&&Ns<c)break}continue}if(Ns>=c){var ne=Ks(e,s,S,c);if(Gs>0){for(var re=``,ie=c,j=0;j<Gs;j++)re+=` `,ie++;for(var M=ne;M<S;M++)if(e.charCodeAt(M)===B){for(var ae=4-ie%4,N=0;N<ae;N++)re+=` `;ie+=ae}else re+=e[M],ie++;l+=re+`
32
+ `}else l+=e.slice(ne,S)+`
33
+ `;s=Z(e,S);continue}for(var oe=!1,P=0;P<l.length;P++){var F=l.charCodeAt(P);if(F!==V&&F!==ka&&F!==z&&F!==B){oe=!0;break}}if(!d&&oe&&!u){var I=s+Ps,se=e.charCodeAt(I);if(!(se===Pa||se===H||se===Va||se===Aa||se===ja||(se===U||se===za||se===Ba||se===G)&&(zs(e,s)!==null||Ws(e,s,S)!==null)||se>=q&&se<=ho&&Ws(e,s,S)!==null)){l+=``+e.slice(I,S)+`
34
+ `,s=Z(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){Fs(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(Is(ue,fe,ye)){ve>=0?me=!0:L&&(pe=!0),fe=ye<de?ye+1:de;continue}if(Fs(ue,fe,ye),ve>=0){if(Ns>=ve){fe=ye<de?ye+1:de;continue}var Se=Ws(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===Aa||we===ja)&&Ns<=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=Ns<=3?Ws(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)===V;)je--;var Me=je<Ae.length?Ae.slice(0,je):Ae,Ne=null;if(Me.length>=3&&Me.charCodeAt(0)===Ma){var Pe=Me[1];(Pe===` `||Pe===`x`||Pe===`X`)&&Me.charCodeAt(2)===Ua&&(Ne={type:Y.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=jc(Me,n,r),n.inList=Ie}else{var Le=n.inList;if(n.inList=!0,Fe=jc(Me,n,r),n.inList=Le,Fe.length===1&&Fe[0].type===Y.paragraph)Fe=Fe[0].children;else{for(var Re=[],ze=0;ze<Fe.length;ze++)if(Fe[ze].type===Y.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:Y.text,text:` `},...Fe]):De.push(Fe)}return{node:{type:a.ordered?Y.orderedList:Y.unorderedList,start:a.ordered?a.start:void 0,items:De},end:s}}var Js=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 Ys(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===uo?i++:t===fo?i--:t===ro&&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)===co&&s.charCodeAt(s.length-1)===lo){var i=s.slice(1,-1);if(i.length>0){var a=i.charCodeAt(0);if(a===Ma||a===co)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 Xs(e,t,n){let r=t.length;var i=t.charCodeAt(0);i>=J&&i<=go&&(i+=bo);for(let o=n;o<=e.length-r;o++){var a=e.charCodeAt(o);if(a>=J&&a<=go&&(a+=bo),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>=J&&r<=go&&(r+=bo),a>=J&&a<=go&&(a+=bo),r!==a){n=!1;break}}if(n)return o}return-1}function Zs(e,t,n){let r=t.length;var i=t.charCodeAt(0);i>=J&&i<=go&&(i+=bo);for(let o=Math.min(n,e.length-r);o>=0;o--){var a=e.charCodeAt(o);if(a>=J&&a<=go&&(a+=bo),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>=J&&r<=go&&(r+=bo),a>=J&&a<=go&&(a+=bo),r!==a){n=!1;break}}if(n)return o}return-1}var Qs=-1;function $s(e,t,n){let r=n.toLowerCase(),i=`<`+r,a=`</`+r,o=1,s=t,c=e.length;for(Qs=-1;s<c&&o>0;){let t=Xs(e,i,s),n=Xs(e,a,s);if(n===-1)return-1;if(t!==-1&&t<n){let n=hs(e,t);n?(n.tag.toLowerCase()===r&&!n.isClosing&&!n.selfClosing&&!Fo(n.tag)&&o++,s=n.end):s=t+1}else{var l=n+a.length,u=l<c?e.charCodeAt(l):62;if((u===H||u===z||u===B||u===V)&&(o--,o===0)){Qs=n;let t=n+a.length;for(;t<c&&e.charCodeAt(t)!==H;)t++;return t+1}s=n+1}}return-1}function ec(e,t,n,r){if(r.ignoreHTMLBlocks||r.disableParsingRawHTML)return null;var i=ks(e,t);if(Fs(e,t,i),Ns>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=tc(e,a);if(c>=1&&c<=5){var l=e.length;if(c===1){for(var u=e.length,d=0;d<os.length;d++){var f=Xs(e,`</`+os[d]+`>`,a);f>=0&&f<u&&(u=f)}if(u<e.length){var p=e.indexOf(`>`,u);l=p>=0?Z(e,p+1):e.length}}else{var m=c===2?`-->`:c===3?`?>`:c===4?`>`:`]]>`,h=e.indexOf(m,a);h>=0&&(l=Z(e,h+m.length))}var g=e.slice(a,l);if(c>=2)return{node:{type:Y.htmlComment,text:g,raw:!0,endPos:l},end:l};var _=`div`,v=g.match(/^<\/?([a-zA-Z][a-zA-Z0-9-]*)/);v&&(_=v[1]);var y=hs(e,a),b={},x;y&&!y.isClosing&&(b=Ys(y.attrs,_,r),x=y.whitespaceBeforeAttrs+y.rawAttrs);var S=[],C=Xs(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)===V;)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)===V&&(w=w.slice(1));w.length>0&&w.charCodeAt(w.length-1)===V;)w=w.slice(0,-1);else for(w=g;w.length>0&&w.charCodeAt(w.length-1)===V;)w=w.slice(0,-1);C!==-1&&(T=g.slice(E,C).trim())}var D=y?y.isClosing:!1;return{node:{type:Y.htmlBlock,tag:_,attrs:b,e:x,children:S,a:w,text:T,c:!0,b:D,endPos:l,canInterruptParagraph:!0},end:l}}if(c===6||c===7){var O=js(e,t),ee=O<e.length?O:e.length,k=e.slice(a,ee),te=O<e.length?Z(e,O):e.length,A=hs(e,a);if(A){var ne=A.tag,re=ne.toLowerCase();if(A.isClosing){var ie=e.slice(A.end,ee);return{node:{type:Y.htmlBlock,tag:ne,attrs:{},children:[],a:ie,text:ie,c:!0,b:!0,endPos:ee,canInterruptParagraph:c===6},end:te}}if(A.selfClosing||Fo(ne))return{node:{type:Y.htmlBlock,tag:ne,attrs:Ys(A.attrs,ne,r),e:A.whitespaceBeforeAttrs+A.rawAttrs,children:[],a:``,text:``,c:!1,b:!1,endPos:A.end,canInterruptParagraph:c===6},end:Z(e,A.end)};var j=n.d||0,M=e.slice(a,ee),ae=-1,N=-1;if(j<10){for(var oe=`</`+re,P=A.end-a,F=1,I=P;I<M.length&&F>0;){var se=Xs(M,`<`+re,I),ce=Xs(M,oe,I);if(ce===-1)break;if(se!==-1&&se<ce){var le=se+re.length+1;if(le<M.length){var ue=M.charCodeAt(le);(ue===z||ue===B||ue===V||ue===H||ue===W)&&F++}I=se+1}else{var de=ce+oe.length;if(de<M.length){var fe=M.charCodeAt(de);if((fe===H||fe===z||fe===B||fe===V)&&(F--,F===0)){ae=ce;for(var L=de;L<M.length&&M.charCodeAt(L)!==H;)L++;N=L+1;break}}else if(F--,F===0){ae=ce,N=M.length;break}I=ce+1}}var pe=!1;if(ae===-1&&c===6&&!A.isClosing&&!ls.has(re)){var me=$s(e,A.end,re);if(me!==-1){var he=Qs;if(e.substring(A.end,he).indexOf(`
36
+
37
+ `)!==-1){var ge=ks(e,me);ee=ge,te=Z(e,ge),M=e.slice(a,ee),k=e.slice(a,ee),ae=he-a,N=me-a,pe=!0}}}}var _e=A.rawAttrs.indexOf(`
38
+ `)!==-1||A.whitespaceBeforeAttrs.indexOf(`
39
+ `)!==-1,ve=!1;ae!==-1&&(ve=M.slice(N).trim().length===0);var ye=!1,be=ee,xe=te;if(ae!==-1){var Se=a+N,Ce=ks(e,Se-1);if(Se<Ce){for(var we=Se;we<Ce&&(e.charCodeAt(we)===z||e.charCodeAt(we)===B);)we++;if(we<Ce&&e.charCodeAt(we)===Va){var Te=hs(e,we);Te&&!Te.isClosing&&(ye=!0,be=Se,xe=Se,ve=!0)}}if(!ye){var Ee=Z(e,Ce);if(Ee<ee){for(var De=Ee;De<ee&&(e.charCodeAt(De)===z||e.charCodeAt(De)===B);)De++;De<ee&&e.charCodeAt(De)===Va&&hs(e,De)&&(ye=!0,be=Ce,xe=Ee,ve=!0)}}!ye&&n.inHTML&&(ye=!0,be=Ce,xe=Z(e,Ce),ve=e.slice(Se,Ce).trim().length===0)}var Oe=[],ke=``;if(ae!==-1){ke=M.slice(A.end-a,ae);var Ae=ke.trim();if(Ae){var{inline:je,inHTML:Me,d:Ne}=n;if(n.inHTML=!0,n.d=j+1,re===`p`)n.inline=!0,Oe=kc(Ae,0,Ae.length,n,r);else{var Pe=ke.indexOf(`
40
+
41
+ `)!==-1,Fe=/^(\s{0,3}#[#\s]|\s{0,3}[-*+]\s|\s{0,3}\d+\.\s|\s{0,3}>\s|\s{0,3}```)/m.test(Ae),Ie=/^<([a-z][^ >/\n\r]*) ?([^>]*?)>/im.test(Ae);Pe||Fe||n.inHTML&&Ie||Ie?(n.inline=!1,Oe=jc(ke,n,r)):(n.inline=!0,Oe=kc(Ae,0,Ae.length,n,r))}n.inline=je,n.inHTML=Me,n.d=Ne}}var Le=!1;if(c===6&&ae!==-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(ae!==-1&&ye){var He=!1;if(n.inHTML&&N<M.length){for(var Ue=N;Ue<M.length&&M.charCodeAt(Ue)!==V;)Ue++;var We=M.slice(N,Ue).trim();He=We.length>1&&We.charCodeAt(0)===Va&&We.charCodeAt(1)!==W}Ve=He?M.slice(A.end-a):ke}else (c===7||n.inHTML)&&ae!==-1?(Ve=M.slice(A.end-a),Ve.charCodeAt(0)===V&&(Ve=Ve.slice(1))):ye?Ve=e.slice(a,be):_e?Ve=k:(Ve=M.slice(A.end-a),Ve.charCodeAt(0)===V&&(Ve=Ve.slice(1)));return{node:{type:Y.htmlBlock,tag:ne,attrs:Ys(A.attrs,ne,r),e:A.whitespaceBeforeAttrs+A.rawAttrs,children:Oe,a:Ve,text:Ve,c:!0,b:!1,endPos:be,canInterruptParagraph:c===6},end:xe}}return{node:{type:Y.htmlBlock,tag:ne,attrs:Ys(A.attrs,ne,r),e:A.whitespaceBeforeAttrs+A.rawAttrs,children:Oe,a:pe?``:ke,text:ke,c:!1,b:!1,endPos:be,canInterruptParagraph:c===6},end:xe}}var Ge=k.match(/^<(\/?)([a-zA-Z][a-zA-Z0-9-]*)/),Ke=Ge?Ge[2]:`div`,qe=Ge?Ge[1]===`/`:!1,Je=k;if(qe){var Ye=k.indexOf(`>`);Ye!==-1&&(Je=k.slice(Ye+1))}return{node:{type:Y.htmlBlock,tag:Ke,attrs:{},children:[],a:Je,text:Je,c:!0,b:qe,endPos:ee,canInterruptParagraph:c===6},end:te}}var Xe=hs(e,a);if(!Xe)return null;var Ze=Xe.tag,Qe=Ze.toLowerCase(),$e=Ze.charCodeAt(0),et=$e>=J&&$e<=go;if(!et&&!Js.has(Qe)&&!ss.has(Qe)&&!Qe.includes(`-`))return null;if(Xe.isClosing)return{node:{type:Y.htmlSelfClosing,tag:Ze,attrs:{},endPos:Xe.end,b:!0,a:e.slice(a,Xe.end)},end:Xe.end};var tt=$s(e,Xe.end,Ze),nt=[];if(tt!==-1){var rt=Qs,R=e.slice(Xe.end,rt),it=R.trim();if(it){var at=R.indexOf(`
42
+
43
+ `)!==-1,ot=/^(\s{0,3}#[#\s]|\s{0,3}[-*+]\s|\s{0,3}\d+\.\s|\s{0,3}>\s|\s{0,3}```)/m.test(it),st=/^<([a-z][^ >/\n\r]*) ?([^>]*?)>/im.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=jc(R,n,r)):(n.inline=!0,nt=kc(it,0,it.length,n,r)),n.inline=ct,n.inHTML=lt,n.d=ut}var dt=ks(e,tt),ft=e.slice(tt,dt).trim()?tt:Z(e,tt),pt=et?e.slice(a,tt):e.slice(a,ft),mt=et?tt:ft;return{node:{type:Y.htmlBlock,tag:Ze,attrs:Ys(Xe.attrs,Ze,r),e:Xe.whitespaceBeforeAttrs+Xe.rawAttrs,children:nt,a:pt,text:et?R:pt,c:!0,b:!1,endPos:mt,canInterruptParagraph:!1},end:ft}}var ht=js(e,Xe.end),gt=ht<e.length?Z(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=jc(_t,n,r),n.inline=vt,n.inHTML=yt,n.d=bt}var xt=e.slice(Xe.end,ht);return{node:{type:Y.htmlBlock,tag:Ze,attrs:Ys(Xe.attrs,Ze,r),e:Xe.whitespaceBeforeAttrs+Xe.rawAttrs,children:nt,a:xt,text:_t,c:!0,b:!1,endPos:ht,canInterruptParagraph:!1},end:gt}}function tc(e,t){if(e.charCodeAt(t)!==Va)return 0;var n=t+1,r=e.length;if(e.charCodeAt(n)===Wa&&e.charCodeAt(n+1)===U&&e.charCodeAt(n+2)===U)return 2;if(e.charCodeAt(n)===io)return 3;if(e.charCodeAt(n)===Wa){var i=e.charCodeAt(n+1);if(i>=J&&i<=go)return 4;if(e.slice(n+1,n+8)===`[CDATA[`)return 5}for(var a=e.charCodeAt(n)===W,o=a?n+1:n,s=o;s<r;){var c=e.charCodeAt(s);if(c>=J&&c<=go||c>=_o&&c<=vo||c>=q&&c<=ho||c===U)s++;else break}if(s===o)return 0;var l=e.slice(o,s);if(ss.has(l.toLowerCase())){if(a)return 0;var u=e.charCodeAt(s);return u===z||u===B||u===H||u===V||s>=r?1:0}if(Js.has(l.toLowerCase())){if(a){for(var d=s;d<r&&(e.charCodeAt(d)===z||e.charCodeAt(d)===B);)d++;return d<r&&e.charCodeAt(d)===H?6:0}var f=s<r?e.charCodeAt(s):-1;return f===z||f===B||f===H||f===V||f===W||f===-1?6:0}if(a){for(var p=s;p<r&&(e.charCodeAt(p)===z||e.charCodeAt(p)===B);)p++;if(p<r&&e.charCodeAt(p)===H){var m=ks(e,t);if(e.slice(p+1,m).trim()===``)return 7}}else{var h=ks(e,t),g=hs(e,t);if(g&&g.end<=h&&e.slice(g.end,h).trim()===``)return 7}return 0}function nc(e,t,n){for(var r=0,i=e.length;r<i&&(e.charCodeAt(r)===z||e.charCodeAt(r)===B);)r++;for(;i>r&&(e.charCodeAt(i-1)===z||e.charCodeAt(i-1)===B);)i--;r<i&&e.charCodeAt(r)===K&&r++,i>r&&e.charCodeAt(i-1)===K&&(i-2<r||e.charCodeAt(i-2)!==Ra)&&i--;for(var a=[],o=r,s=!1,c=[],l=r;l<i;){var u=e.charCodeAt(l);if(u===Ra&&l+1<i){e.charCodeAt(l+1)===K?(s||(s=!0,c=[]),c.push(e.slice(o,l)),c.push(`|`),l+=2,o=l):l+=2;continue}if(u===Aa){for(var d=0;l<i&&e.charCodeAt(l)===Aa;)d++,l++;for(var f=!1;l<i&&!f;){for(var p=0;l<i&&e.charCodeAt(l)===Aa;)p++,l++;p===d?f=!0:p===0&&l++}continue}if(u===K){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 kc(r,0,r.length,t,n)})}function rc(e,t,n,r){let i=ks(e,t);var a=e.indexOf(`|`,t);if(a<0||a>=i)return null;let o=Z(e,i);if(o>=e.length)return null;let s=ks(e,o);if(!ms(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)===z||l.charCodeAt(d)===B);)d++;for(d<f&&l.charCodeAt(d)===K&&d++;d<f;){for(;d<f&&(l.charCodeAt(d)===z||l.charCodeAt(d)===B);)d++;if(d>=f||l.charCodeAt(d)===K)break;var p=l.charCodeAt(d)===Ka;for(p&&d++;d<f&&l.charCodeAt(d)===U;)d++;var m=d<f&&l.charCodeAt(d)===Ka;for(m&&d++,u.push(p&&m?`center`:m?`right`:p?`left`:null);d<f&&(l.charCodeAt(d)===z||l.charCodeAt(d)===B);)d++;d<f&&l.charCodeAt(d)===K&&d++}let h=nc(c,n,r);if(u.length!==h.length)return null;let g=[],_=Z(e,s);for(;_<e.length;){let t=ks(e,_),i=e.slice(_,t);if(Is(e,_,t))break;if(Fs(e,_,t),Ns<4){var v=e.charCodeAt(_+Ps);if(v===H||v===Pa||(v===U||v===za||v===Ba)&&zs(e,_))break;if(v===Aa||v===ja){for(var y=_+Ps,b=0;y<t&&e.charCodeAt(y)===v;)b++,y++;if(b>=3)break}}g.push(nc(i,n,r)),_=Z(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:Y.table,header:h,cells:g,align:u},end:_}}function ic(e,t,n){if(Fs(e,t,ks(e,t)),Ns>3)return null;var r=t+Ps;if(e.charCodeAt(r)!==Ma)return null;if(r+1<e.length&&e.charCodeAt(r+1)===Na)return ac(e,r,n)||null;n.refs||={};var i=_s(e,r,n.refs);return i===null?null:{node:{type:Y.refCollection},end:i}}function ac(e,t,n){var r=e.length;if(e.charCodeAt(t)!==Ma||t+1>=r||e.charCodeAt(t+1)!==Na)return null;for(var i=t+2,a=i;i<r&&e.charCodeAt(i)!==Ua;){if(e.charCodeAt(i)===V)return null;i++}if(i>=r)return null;var o=(`^`+e.slice(a,i)).toLowerCase();if(i++,i>=r||e.charCodeAt(i)!==Ka)return null;for(i++;i<r&&(e.charCodeAt(i)===z||e.charCodeAt(i)===B);)i++;if(i<r&&e.charCodeAt(i)===V)for(i++;i<r&&(e.charCodeAt(i)===z||e.charCodeAt(i)===B);)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=ks(e,l);if(Fs(e,l,u),Ns>=2&&!Is(e,l,u))c+=`
45
+ `+e.slice(l,u),l=Z(e,u);else if(Is(e,l,u)){var d=Z(e,u);if(d<r&&(Fs(e,d,ks(e,d)),Ns>=2)){c+=`
46
+ `,l=Z(e,u);continue}break}else break}return n.refs[o]||(n.refs[o]={target:c,title:void 0}),{node:{type:Y.footnote},end:l}}function oc(e,t,n,r){let i=t,a=0,o=0,s=-1;for(;i<e.length;){let t=s>=0?s:ks(e,i);if(s=-1,Is(e,i,t))break;if(Fs(e,i,t),Ns<4&&o>0&&!n.f){let n=e.charCodeAt(i+Ps);if(n===La||n===U){let r=i+Ps;for(;r<t&&e.charCodeAt(r)===n;)r++;for(;r<t&&(e.charCodeAt(r)===z||e.charCodeAt(r)===B);)r++;if(r>=t){a=n===La?1:2,i=Z(e,t);break}}}o=t;let y=Z(e,t);if(y<e.length){if(e.charCodeAt(y)===po){var c=ks(e,y);i=Z(e,c),o=c;continue}let t=ks(e,y);if(s=t,Fs(e,y,t),Ns<4){let a=e.charCodeAt(y+Ps);if(a===H){i=y;break}if(a===Pa&&Ls(e,y,n,r)){i=y;break}if(a===Aa||a===ja){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===Wa||f===io;if(!p&&f===W){for(var m=d+1,h=m;h<t&&(e.charCodeAt(h)>=J&&e.charCodeAt(h)<=go||e.charCodeAt(h)>=_o&&e.charCodeAt(h)<=vo||e.charCodeAt(h)>=q&&e.charCodeAt(h)<=ho||e.charCodeAt(h)===U);)h++;h>m&&(p=Js.has(e.slice(m,h).toLowerCase()))}else if(!p){for(var g=d;g<t&&(e.charCodeAt(g)>=J&&e.charCodeAt(g)<=go||e.charCodeAt(g)>=_o&&e.charCodeAt(g)<=vo||e.charCodeAt(g)>=q&&e.charCodeAt(g)<=ho||e.charCodeAt(g)===U);)g++;if(g>d){var _=e.slice(d,g).toLowerCase();p=Js.has(_)||ss.has(_)}}if(p&&ec(e,y,n,r)){i=y;break}}if(a===U||a===za||a===G){let n=y+Ps+1;if(n<t&&(e.charCodeAt(n)===z||e.charCodeAt(n)===B)&&As(e,n,t)<t&&!zs(e,y)){i=y;break}}if(a>=q&&a<=ho){let n=y+Ps;for(;n<t&&e.charCodeAt(n)>=q&&e.charCodeAt(n)<=ho;)n++;if(n<t&&(e.charCodeAt(n)===ao||e.charCodeAt(n)===fo)&&n-(y+Ps)===1&&e.charCodeAt(y+Ps)===49){var v=n+1;if(v<t&&(e.charCodeAt(v)===z||e.charCodeAt(v)===B)&&As(e,v,t)<t){i=y;break}}}if(a===K){let n=Z(e,t);if(n<e.length&&ms(e,n,ks(e,n))){i=y;break}}if((a===U||a===za||a===Ba)&&zs(e,y)){if(a!==U){i=y;break}let n=0,r=y+Ps;for(;r<t&&e.charCodeAt(r)===U;)n++,r++;for(;r<t&&(e.charCodeAt(r)===z||e.charCodeAt(r)===B);)r++;if(r<t){i=y;break}}}}i=Z(e,t)}for(var y=a?o:i;y>t&&(e.charCodeAt(y-1)===V||e.charCodeAt(y-1)===ka||e.charCodeAt(y-1)===z||e.charCodeAt(y-1)===B);)y--;for(var b=t;b<y&&(e.charCodeAt(b)===z||e.charCodeAt(b)===B);)b++;if(b>=y)return null;for(var x=!1,S=b;S<y;S++)if(e.charCodeAt(S)===po){x=!0;break}var C=x?e.slice(b,y).replace(/\u001E/g,``):e.slice(b,y);if(!C)return null;let w=sc(C,0,C.length,n,r);if(a){let e=(r?.slugify||Mo)(C);return{node:{type:Y.heading,level:a,children:w,id:e},end:i}}return{node:{type:Y.paragraph,children:w},end:i}}function sc(e,t,n,r,i){var a=e.indexOf(`
47
+ `,t);if(a<0||a>=n)return kc(e,t,n,r,i);for(var o=``,s=t,c=t;c<n;){var l=e.charCodeAt(c);if(l===Aa){var u=lc(e,c,n);if(u>c){for(var d=!1,f=c;f<u;f++)if(e.charCodeAt(f)===V){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=uc(e,c,n);if(p>c){c=p;continue}}if(l===V){var m=!1,h=0;if(c>t&&e.charCodeAt(c-1)===Ra)m=!0,h=1;else{for(var g=0,_=c-1;_>=t&&e.charCodeAt(_)===z;)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)===z;)v--;o+=e.slice(s,v)+`
48
+ `}for(c++;c<n&&e.charCodeAt(c)===z;)c++;s=c;continue}c++}return s<n&&(o+=e.slice(s,n)),kc(o,0,o.length,r,i)}function cc(e,t,n){if(e.charCodeAt(t)!==Aa)return null;let r=Ms(e,t,n,96),i=t+r;for(;i<n;){let a=e.indexOf("`",i);if(a<0||a>=n)return null;let o=Ms(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:Y.codeInline,text:n},end:a+o}}i=a+o}return null}function lc(e,t,n){if(e.charCodeAt(t)!==Aa)return t;let r=Ms(e,t,n,96),i=t+r;for(;i<n;){let a=e.indexOf("`",i);if(a<0||a>=n)return t;let o=Ms(e,a,n,96);if(o===r)return a+o;i=a+o}return t}function uc(e,t,n){if(e.charCodeAt(t)!==Va)return t;if(t+1<n&&e.charCodeAt(t+1)===W){let r=t+2;for(;r<n&&e.charCodeAt(r)!==H;)r++;return r<n?r+1:t}if(t+3<n&&e.charCodeAt(t+1)===Wa&&e.charCodeAt(t+2)===U&&e.charCodeAt(t+3)===U){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>=J&&t<=go||t>=_o&&t<=vo||t>=q&&t<=ho||t===U)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===H){r++;break}if(i===W&&r+1<n&&e.charCodeAt(r+1)===H){r+=2,o=!0;break}if(i===so||i===oo){var s=i;for(r++;r<n&&e.charCodeAt(r)!==s;)r++;r<n&&r++;continue}if(i===V)return t;r++}if(o||Fo(a))return r;let c=1;for(;r<n&&c>0;)if(e.charCodeAt(r)===Va)if(r+1<n&&e.charCodeAt(r+1)===W){let t=r+2,i=t;for(;i<n&&(e.charCodeAt(i)>=J&&e.charCodeAt(i)<=go||e.charCodeAt(i)>=_o&&e.charCodeAt(i)<=vo);)i++;if(e.slice(t,i).toLowerCase()===a){for(;i<n&&e.charCodeAt(i)!==H;)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)>=J&&e.charCodeAt(i)<=go||e.charCodeAt(i)>=_o&&e.charCodeAt(i)<=vo);)i++;e.slice(t,i).toLowerCase()===a&&c++,r++}else r++;return r}function dc(e,t,n,r,i){if(e.charCodeAt(t)!==ja||t+1>=n||e.charCodeAt(t+1)!==ja)return null;let a=t+2;for(;a+1<n;){let o=e.charCodeAt(a);if(o===Aa){let t=lc(e,a,n);if(t>a){a=t;continue}}if(o===ja&&e.charCodeAt(a+1)===ja){let n=e.slice(t+2,a),o=kc(n,0,n.length,r,i);return{node:{type:Y.textFormatted,tag:`del`,children:o},end:a+2}}o===Ra&&a+1<n&&a++,a++}return null}function fc(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===Aa){let t=lc(e,a,n);if(t>a){a=t;continue}}if(o===La&&e.charCodeAt(a+1)===La&&a>t+2){let n=e.slice(t+2,a),o=kc(n,0,n.length,r,i);return{node:{type:Y.textFormatted,tag:`mark`,children:o},end:a+2}}o===Ra&&a+1<n&&a++,a++}return null}var pc=/[\p{P}\p{S}]/u;function mc(e,t,n){return e<yo?!!(Ds(e)&bs):pc.test(t[n])}function hc(e,t,n){return e<yo?!!(Ds(e)&vs):/\p{Zs}/u.test(t[n])}function gc(e,t,n){var r=e.charCodeAt(t);if(r!==za&&r!==Ba)return null;var i=Ms(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=hc(a,e,t-1),c=hc(o,e,t+i),l=t>0?mc(a,e,t-1):!1,u=t+i<n?mc(o,e,t+i):!1,d=!c&&(!u||s||l),f=!s&&(!l||c||u),p,m;return r===za?(p=d,m=f):(p=d&&(!f||l),m=f&&(!d||u)),{len:i,canOpen:p,canClose:m}}function _c(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===za?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:Y.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 k=e[ee];if(k.type===Y.text){var te=k;if(te.text===``)continue;if(O>0&&e[O-1].type===Y.text){e[O-1].text+=te.text;continue}}e[O++]=k}e.length=O}}function vc(e,t,n,r,i){let a=e.charCodeAt(t)===Wa,o=a?t+1:t;if(e.charCodeAt(o)!==Ma)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===Ra&&c+1<n){c+=2;continue}if(u===Aa){var d=lc(e,c,n);if(d>c){c=d;continue}}if(u===Va){var f=yc(e,c,n);if(f){c=f.end;continue}var p=uc(e,c,n);if(p>c){c=p;continue}}u===Ma?l++:u===Ua&&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===uo){var v=!0;for(c++;c<n&&(e.charCodeAt(c)===z||e.charCodeAt(c)===V);)c++;var y=``,b=c;if(c<n&&e.charCodeAt(c)===Va){for(c++,b=c;b<n&&e.charCodeAt(b)!==H;){if(e.charCodeAt(b)===Ra&&b+1<n){b+=2;continue}if(e.charCodeAt(b)===V){v=!1;break}b++}v&&(b>=n||e.charCodeAt(b)!==H)&&(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===Ra&&b+1<n){b+=2;continue}if(S===uo)x++;else if(S===fo){if(x===0)break;x--}else if(S===z||S===V)break;b++}y=e.slice(c,b)}if(v){for(c=b;c<n&&(e.charCodeAt(c)===z||e.charCodeAt(c)===V);)c++;var C;if(c<n){var w=e.charCodeAt(c);if(w===so||w===oo||w===uo){var T=w===uo?41:w;c++;for(var E=c;c<n&&e.charCodeAt(c)!==T;)e.charCodeAt(c)===Ra&&c+1<n&&c++,c++;c>=n?v=!1:(C=e.slice(E,c),c++)}}if(v){for(;c<n&&(e.charCodeAt(c)===z||e.charCodeAt(c)===V);)c++;(c>=n||e.charCodeAt(c)!==fo)&&(v=!1)}}if(v){c++,y=Os(y),C!==void 0&&(C=Eo(Os(C)));var D=(i?.sanitizer||Oo)(y,a?`img`:`a`,a?`src`:`href`)===null?null:y;if(a){var O=wc(kc(h,0,h.length,r,i));return{node:{type:Y.image,target:D,alt:O,title:C},end:c}}else{var ee=r.inAnchor;r.inAnchor=!0;var k=ee?[{type:Y.text,text:h}]:kc(h,0,h.length,r,i);return r.inAnchor=ee,!r.inAnchor&&Cc(k)?null:{node:{type:Y.link,target:D,title:C,children:k},end:c}}}else c=m+1,_=!0}var te=``,A=c;if(!_&&g===Ma){var ne=c+1;A=ne;for(var re=!1;A<n&&e.charCodeAt(A)!==Ua;){if(e.charCodeAt(A)===Ra&&A+1<n){A+=2;continue}if(e.charCodeAt(A)===Ma){re=!0;break}A++}if(re||A>=n)return null;var ie=e.slice(ne,A);if(ie.trim())te=Es(ie);else{if(Ts(h))return null;te=Es(h)}A+=1}else{if(Ts(h))return null;te=Es(h)}var j=r.refs[te];if(!j)return null;if(a)return{node:{type:Y.image,target:j.target,alt:wc(kc(h,0,h.length,r,i)),title:j.title},end:A};var M=r.inAnchor;r.inAnchor=!0;var k=M?[{type:Y.text,text:h}]:kc(h,0,h.length,r,i);return r.inAnchor=M,!r.inAnchor&&Cc(k)?null:{node:{type:Y.link,target:j.target,title:j.title,children:k},end:A}}function yc(e,t,n){if(e.charCodeAt(t)!==Va)return null;for(var r=t+1;r<n;){var i=e.charCodeAt(r);if(i===H)break;if(i===z||i===V||i===ka||i===Va)return null;r++}if(r>=n||e.charCodeAt(r)!==H)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:Y.link,target:a,children:[{type:Y.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:Y.link,target:`mailto:`+a,children:[{type:Y.text,text:a}]},end:r+1}:null}function bc(e,t,n,r){if(e.charCodeAt(t)!==Ma||t+1>=n||e.charCodeAt(t+1)!==Na)return null;let i=t+2;for(;i<n&&e.charCodeAt(i)!==Ua&&e.charCodeAt(i)!==V;)i++;if(i>=n||e.charCodeAt(i)!==Ua)return null;let a=e.slice(t+2,i);return a?{node:{type:Y.footnoteReference,target:`#`+Mo(a),text:a},end:i+1}:null}function xc(e,t,n,r){if(r.disableBareUrls)return null;var i=``,a=!1,o=e.charCodeAt(t);if(o===Ya||o===72?t+8<=n&&e.charCodeAt(t+1)===Za&&e.charCodeAt(t+2)===Za&&e.charCodeAt(t+3)===Qa&&(e.charCodeAt(t+4)===$a&&e.charCodeAt(t+5)===Ka&&e.charCodeAt(t+6)===W&&e.charCodeAt(t+7)===W?i=`https://`:e.charCodeAt(t+4)===Ka&&e.charCodeAt(t+5)===W&&e.charCodeAt(t+6)===W&&(i=`http://`)):o===Ja||o===70?t+6<=n&&e.charCodeAt(t+1)===Za&&e.charCodeAt(t+2)===Qa&&e.charCodeAt(t+3)===Ka&&e.charCodeAt(t+4)===W&&e.charCodeAt(t+5)===W&&(i=`ftp://`):(o===Xa||o===87)&&t+4<=n&&e.charCodeAt(t+1)===Xa&&e.charCodeAt(t+2)===Xa&&e.charCodeAt(t+3)===ao&&(i=`www.`,a=!0),!i)return null;let s=t+i.length;for(;s<n;){let t=e.charCodeAt(s);if(t===z||t===V||t===B||t===ka||t===Va||t===H)break;s++}for(var c=0,l=0,u=t;u<s;u++){var d=e.charCodeAt(u);d===uo?c++:d===fo&&l++}let f=s;for(;f>t+i.length;){let n=e.charCodeAt(f-1);if(n===ao||n===no||n===Ka||n===Wa||n===io||n===fo){if(n===fo){if(c>=l)break;l--}f--}else if(n===ro){for(var p=f-2;p>t&&(e.charCodeAt(p)>=J&&e.charCodeAt(p)<=go||e.charCodeAt(p)>=_o&&e.charCodeAt(p)<=vo||e.charCodeAt(p)>=q&&e.charCodeAt(p)<=ho);)p--;p>=t&&e.charCodeAt(p)===Ga?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)===ao)if(g<0)g=v;else{_=v;break}for(var v=_>=0?_+1:m;v<h;v++)if(e.charCodeAt(v)===Ba)return null;var y=e.slice(t,f),b=a?`http://`+y:y;return{node:{type:Y.link,target:b,children:[{type:Y.text,text:y}]},end:f}}function Sc(e,t,n,r){if(r.disableBareUrls)return null;for(var i=t,a=i;i<n;){var o=e.charCodeAt(i);if(o>=J&&o<=go||o>=_o&&o<=vo||o>=q&&o<=ho||o===ao||o===Wa||o===Pa||o===36||o===Ia||o===Ga||o===oo||o===za||o===G||o===W||o===La||o===io||o===Na||o===Ba||o===Aa||o===co||o===K||o===lo||o===ja||o===U)i++;else break}if(i===a||i>=n||e.charCodeAt(i)!==Ha)return null;i++;for(var s=i,c=-1,l=i;i<n;){var o=e.charCodeAt(i);if(o>=J&&o<=go||o>=_o&&o<=vo||o>=q&&o<=ho)i++;else if((o===U||o===Ba)&&i>s)i++;else if(o===ao){if(i===s)break;var u=e.charCodeAt(i-1);if(u===U||u===Ba||i-l>63)break;if(i+1<n){var d=e.charCodeAt(i+1);if(d>=J&&d<=go||d>=_o&&d<=vo||d>=q&&d<=ho)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>=J&&f<=go||f>=_o&&f<=vo||f>=q&&f<=ho)||i<=c+1)return null;for(var p=-1,m=c-1;m>=s;m--)if(e.charCodeAt(m)===ao){p=m;break}for(var m=p>=0?p+1:s;m<i;m++)if(e.charCodeAt(m)===Ba)return null;var h=e.slice(t,i);return{node:{type:Y.link,target:`mailto:`+h,children:[{type:Y.text,text:h}]},end:i}}function Cc(e){for(var t=0;t<e.length;t++)if(e[t].type===Y.link||`children`in e[t]&&Array.isArray(e[t].children)&&Cc(e[t].children))return!0;return!1}function wc(e){for(var t=``,n=0;n<e.length;n++){var r=e[n];r.type===Y.text?t+=r.text:r.type===Y.breakLine?t+=` `:r.type===Y.codeInline?t+=r.text:`children`in r&&Array.isArray(r.children)?t+=wc(r.children):r.type===Y.image?t+=r.alt||``:r.type===Y.link&&(t+=wc(r.children))}return t}function Tc(e){let t=e.includes(`&`)?Eo(e):e;return{type:Y.text,text:t}}function Ec(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===Wa&&a+1<n&&e.charCodeAt(a+1)===U&&a+2<n&&e.charCodeAt(a+2)===U){var s=a+3;if(s<n&&e.charCodeAt(s)===H)return{node:{type:Y.htmlComment,text:``,endsWithGreaterThan:!0},end:s+1};if(s+1<n&&e.charCodeAt(s)===U&&e.charCodeAt(s+1)===H)return{node:{type:Y.htmlComment,text:`-`,endsWithGreaterThan:!0},end:s+2};var c=e.indexOf(`-->`,s);return c!==-1&&c<=n-3?{node:{type:Y.htmlComment,text:e.slice(t+4,c)},end:c+3}:null}if(o===io){var l=e.indexOf(`?>`,a+1);return l!==-1&&l<n?{node:{type:Y.htmlSelfClosing,tag:`?`,attrs:{},a:e.slice(t,l+2)},end:l+2}:null}if(o===Wa&&a+1<n){var u=e.charCodeAt(a+1);if(u===Ma&&e.slice(a+1,a+8)===`[CDATA[`){var d=e.indexOf(`]]>`,a+8);return d!==-1&&d<n?{node:{type:Y.htmlSelfClosing,tag:`![CDATA[`,attrs:{},a:e.slice(t,d+3)},end:d+3}:null}if(u>=J&&u<=go){var f=e.indexOf(`>`,a+2);return f!==-1&&f<n?{node:{type:Y.htmlSelfClosing,tag:`!`+e.slice(a+1,f),attrs:{},a:e.slice(t,f+1)},end:f+1}:null}}if(o===W){var p=a+1;if(p>=n)return null;var m=e.charCodeAt(p);if(!(m>=J&&m<=go||m>=_o&&m<=vo))return null;for(p++;p<n;){var h=e.charCodeAt(p);if(h>=J&&h<=go||h>=_o&&h<=vo||h>=q&&h<=ho||h===U)p++;else break}for(;p<n&&(e.charCodeAt(p)===z||e.charCodeAt(p)===B||e.charCodeAt(p)===V);)p++;if(p<n&&e.charCodeAt(p)===H){var g=e.slice(a+1,p).trim();return{node:{type:Y.htmlSelfClosing,tag:g,attrs:{},a:e.slice(t,p+1),b:!0},end:p+1}}return null}if(!(o>=J&&o<=go||o>=_o&&o<=vo))return null;var _=hs(e,t);if(!_)return null;var v=_.tag,y=v.toLowerCase();if(_.selfClosing||Fo(v))return{node:{type:Y.htmlSelfClosing,tag:v,attrs:Ys(_.attrs,v,i),a:e.slice(t,_.end)},end:_.end};var b=ss.has(y),x=$s(e.slice(0,n),_.end,v);if(x===-1)return{node:{type:Y.htmlSelfClosing,tag:v,attrs:Ys(_.attrs,v,i),a:e.slice(t,_.end)},end:_.end};var S=Zs(e,`</`+y,x),C=e.slice(_.end,S),w=[];if(b)C.trim()&&(w=[{type:Y.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=jc(T,r,i)):w=kc(T,0,T.length,r,i),r.inAnchor=E,r.inline=D}}return{node:{type:Y.htmlBlock,tag:v,attrs:Ys(_.attrs,v,i),e:_.rawAttrs,children:w,text:C,c:!1},end:x}}var Dc=200,Oc=0;function kc(e,t,n,r,i){if(Oc++,Oc>Dc)return Oc--,[{type:Y.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===Ma)n++;else if(i===Ua&&(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);_===za?g+1<i.length&&i.charCodeAt(g+1)===za?(o++,d=g,g++):(s++,f=g):_===Ba?g+1<i.length&&i.charCodeAt(g+1)===Ba?(c++,p=g,g++):(l++,m=g):_===ja&&g+1<i.length&&i.charCodeAt(g+1)===ja&&(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 ae=0,N=-1;for(let e=0;e<i.length;e++)i.charCodeAt(e)===Aa&&(ae++,N=e);if(ae%2==1&&N!==-1){let e=!1,t=-1,n=0;for(;n<i.length;)i.charCodeAt(n)===Aa&&(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)===Ma&&(D===0||i.charCodeAt(D-1)!==Ra)){var O=D>0&&i.charCodeAt(D-1)===Wa,ee=O?D-1:D,k=r(i,D);if(k===-1)C=ee,E=O,w=D+1,T=i.length;else{var te=k+1;if(te>=i.length)C=ee,E=O,w=D+1,T=k;else if(i.charCodeAt(te)===uo){var A=i.indexOf(`)`,te+1);A===-1?(C=ee,E=O,w=D+1,T=k,D=i.length):D=A}else if(i.charCodeAt(te)===Ma){var ne=i.indexOf(`]`,te+1);ne===-1?(C=ee,E=O,w=D+1,T=k,D=i.length):D=ne}else D=k}}if(C>=0){var re=E?``:i.slice(w,T);i=i.slice(0,C)+re,S=!0}}let oe=i.match(/<([A-Z][A-Za-z0-9]*)(?:\s[^>]*)?>([^<]*)$/);if(oe&&oe.index!==void 0){for(var ie=!1,j=0,M=0;M<oe.index;M++)i.charCodeAt(M)===Aa&&j++;if(ie=j%2==1,!ie){let e=oe[1];Xs(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 ae=[];var N=[];let oe=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===Aa){if(o=cc(e,t,n),!o){var F=Ms(e,t,n,Aa);t+=F-1}}else if(r===za||r===Ba){var I=gc(e,t,n);if(I){if(I.canOpen||I.canClose){t>oe&&ae.push(Tc(e.slice(oe,t)));var se=Tc(e.slice(t,t+I.len));N.push({idx:ae.length,ch:r,len:I.len,canOpen:I.canOpen,canClose:I.canClose,active:!0}),ae.push(se),t+=I.len,oe=t;continue}t+=I.len-1}}else r===ja?o=dc(e,t,n,a,i):r===La?o=fc(e,t,n,a,i):r===Ma?(t+1<n&&e.charCodeAt(t+1)===Na&&(o=bc(e,t,n,a)),o||=vc(e,t,n,a,i)):r===Wa&&t+1<n&&e.charCodeAt(t+1)===Ma?o=vc(e,t,n,a,i):r===Va?(o=yc(e,t,n),!o&&!i.disableParsingRawHTML&&!i.ignoreHTMLBlocks&&(o=Ec(e,t,n,a,i))):(r===Ya||r===Xa||r===Ja)&&!a.inAnchor&&!i.disableAutoLink&&(t===0||e.charCodeAt(t-1)!==Va)&&(o=xc(e,t,n,i));if(!o&&P>=0&&P-t<=64&&!a.inAnchor&&!i.disableAutoLink&&!i.disableBareUrls&&(r>=J&&r<=go||r>=_o&&r<=vo||r>=q&&r<=ho)&&(o=Sc(e,t,n,i),!o&&t>=P&&(P=e.indexOf(`@`,t+1),P>=n&&(P=-1))),r===mo){t>oe&&ae.push(Tc(e.slice(oe,t))),ae.push({type:Y.breakLine}),t++,oe=t;continue}if(o)t>oe&&ae.push(Tc(e.slice(oe,t))),ae.push(o.node),t=o.end,oe=t;else{if(r===Ra&&t+1<n&&Ds(e.charCodeAt(t+1))&bs){t>oe&&ae.push(Tc(e.slice(oe,t))),ae.push(Tc(e[t+1])),t+=2,oe=t;continue}if(t++,P<0||P-t>64)for(;t<n;){var ce=e.charCodeAt(t);if(ce<yo&&!us[ce])t++;else break}}}if(n>oe){let t=e.slice(oe,n);(i.streaming||i.optimizeForStreaming)&&(t=t.replace(/\*\*([^*]+)$/,`$1`),t.match(/\*[^*]+$/)&&(t=t.replace(/\*([^*]+)$/,`$1`)),t=t.replace(/__([^_]+)$/,`$1`),t.match(/_[^_]+$/)&&(t=t.replace(/_([^_]+)$/,`$1`)),t=t.replace(/~~([^~]+)$/,`$1`),t=t.replace(/\[([^\]]+)$/,`$1`),t=t.replace(/\[([^\]]+)\]\([^)]*$/,`$1`)),t&&ae.push(Tc(t))}return N.length>0&&_c(ae,N,r,i),Oc--,ae}var Ac=500;function jc(e,t,n){var r=t.g||0;if(r>Ac)return[{type:Y.text,text:e}];if(t.g=r+1,(n.streaming||n.optimizeForStreaming)&&!t.h){var i=e.length;i>0&&e.charCodeAt(i-1)===V&&i--;for(var a=i;a>0&&e.charCodeAt(a-1)!==V;)a--;if(a>0&&e.charCodeAt(a)===K){for(var o=!0,s=a;s<i;s++){var c=e.charCodeAt(s);if(c!==z&&c!==B&&c!==U&&c!==Ka&&c!==K){o=!1;break}}if(o){for(var l=a-1;l>0&&e.charCodeAt(l-1)!==V;)l--;e.charCodeAt(l)===K&&(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)===K){for(var p=!1,m=!1,h=1;h<f.length;h++){var g=f.charCodeAt(h);g===K&&(p=!0),g===U&&(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>=J&&x<=go||x>=_o&&x<=vo){for(var S=b+2;S<e.length;){var C=e.charCodeAt(S);if(C>=J&&C<=go||C>=_o&&C<=vo||C>=q&&C<=ho)S++;else break}for(var w=S;w<e.length&&e.charCodeAt(w)!==H;)w++;if(w<e.length){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)===Aa&&D++;if(D%2==0){var ee=e.slice(_+1,v);Xs(e,`</`+ee,0)===-1&&(e=e.slice(0,_)+e.slice(y))}}for(var k=e.length;k>0&&e.charCodeAt(k-1)===V;)k--;if(k>0){for(var te=k;te>0&&e.charCodeAt(te-1)!==V;)te--;for(var A=te,ne=0;A<k&&e.charCodeAt(A)===z&&ne<3;)A++,ne++;if(te>0&&A<k&&Rs(e,A,k)){for(var re=te-1,ie=re;ie>0&&e.charCodeAt(ie-1)!==V;)ie--;Is(e,ie,re)||(e=e.slice(0,te).trimEnd())}}var j=e.length;if(j>0){for(var M=e.lastIndexOf(`
52
+ `),ae=M===-1?0:M+1,N=j,oe=ae,P=0;oe<N&&e.charCodeAt(oe)===z&&P<3;)oe++,P++;if(oe<N){var F=e.charCodeAt(oe),I=!1;if(F===za||F===U||F===G){var se=oe+1;if(se>=N||e.charCodeAt(se)===z||e.charCodeAt(se)===B){for(var ce=se;ce<N&&(e.charCodeAt(ce)===z||e.charCodeAt(ce)===B);)ce++;ce>=N&&(I=!0)}}else if(F>=q&&F<=ho){for(var le=oe;le<N&&e.charCodeAt(le)>=q&&e.charCodeAt(le)<=ho;)le++;if(le<N&&(e.charCodeAt(le)===ao||e.charCodeAt(le)===fo)){var ue=le+1;if(ue>=N||e.charCodeAt(ue)===z||e.charCodeAt(ue)===B){for(var de=ue;de<N&&(e.charCodeAt(de)===z||e.charCodeAt(de)===B);)de++;de>=N&&(I=!0)}}}I&&(e=e.slice(0,ae).trimEnd())}}}if(t.inline)return kc(e,0,e.length,t,n);let fe=[],L=0,pe=e.length;if(L===0&&e.startsWith(`---`)){let t=xo(e);if(t&&t.hasValidYaml){if(n.preserveFrontmatter!==!1){let n=e.slice(0,t.endPos).trimEnd();fe.push({type:Y.frontmatter,text:n})}L=t.endPos}}for(;L<pe;){for(var me=e.indexOf(`
53
+ `,L),he=me<0?pe:me;L<pe&&Is(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),Fs(e,L,he);let r=null;if(e.charCodeAt(L)!==po&&Ns>=4&&!t.inHTML)r=Vs(e,L);else if(e.charCodeAt(L)!==po){let i=L+Ps,a=e.charCodeAt(i);a===Pa?r=Ls(e,L,t,n):a===H?r=Hs(e,L,t,n):a===Aa||a===ja?r=Bs(e,L,t):a===U||a===za||a===Ba?(r=zs(e,L),!r&&(r=qs(e,L,t,n))):a===G||a>=q&&a<=ho?r=qs(e,L,t,n):a===Va?r=ec(e,L,t,n):a===K?r=rc(e,L,t,n):a===Ma&&(r=ic(e,L,t))}if(!r){for(var ge=!1,_e=L;_e<he;_e++)if(e.charCodeAt(_e)===K){ge=!0;break}ge&&(r=rc(e,L,t,n))}if(r||=oc(e,L,t,n),r)r.node.type!==Y.refCollection&&fe.push(r.node),L=r.end;else{var ve=e.indexOf(`
55
+ `,L);L=ve<0?pe:ve+1}}return t.g=r,fe}function Mc(e,t,n,r){var i=hs(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 Nc(e,t,n){Oc=0,e=Yo(e),!t.refs&&(t.refs={}),t.h=gs(e,t.refs,n);let r=jc(e,t,n);return t.refs&&Object.keys(t.refs).length>0?[{type:Y.refCollection,refs:t.refs},...r]:r}var Pc=/^\n+/,Fc;try{Fc=x.createElement(`div`).$$typeof}catch{Fc=Symbol.for(`react.transitional.element`)}function Ic(e,t,n){return{$$typeof:Fc,type:e,key:n==null?null:``+n,ref:null,props:t,i:null}}var Lc=typeof x.createContext<`u`?x.createContext(void 0):void 0;function Rc(e,t,n,r,i,a,o,s){switch(e.type){case Y.blockQuote:{let i={key:n.key};return e.alert&&(i.className=`markdown-alert-`+a(e.alert.toLowerCase(),Mo),e.children.unshift({attrs:{},children:[{type:Y.text,text:e.alert}],c:!0,type:Y.htmlBlock,tag:`header`})),r(`blockquote`,i,t(e.children,n))}case Y.breakLine:return r(`br`,{key:n.key});case Y.breakThematic:return r(`hr`,{key:n.key});case Y.frontmatter:return s.preserveFrontmatter?r(`pre`,{key:n.key},e.text):null;case Y.codeBlock:let m=e.lang?Eo(e.lang):``;return r(`pre`,{key:n.key},r(`code`,{...wo(e.attrs||{}),className:m?`language-${m} lang-${m}`:``},e.text));case Y.codeInline:return r(`code`,{key:n.key},e.text);case Y.footnoteReference:return r(`a`,{key:n.key,href:i(e.target,`a`,`href`)||void 0},r(`sup`,{key:n.key},e.text));case Y.gfmTask:return r(`input`,{checked:e.completed,key:n.key,readOnly:!0,type:`checkbox`});case Y.heading:return r(`h${e.level}`,{id:e.id,key:n.key},t(e.children,n));case Y.htmlBlock:{let m=e;if(s.tagfilter&&ts(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===Y.htmlSelfClosing||e.type===Y.htmlBlock)&&e.b)return[];if(e.type===Y.paragraph){let t=e.children;return t?t.flatMap(c):[]}return e.type===Y.text?e.text?.trim()?[e]:[]:e.type===Y.htmlBlock&&e.children?[{...e,children:e.children?.flatMap(c)}]:[e]},l=function(e){for(var t=0;t<e.length;t++)e[t].type===Y.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===Y.paragraph&&r.children)for(var i=r.children,a=0;a<i.length;a++){var o=i[a];if(o.type===Y.htmlSelfClosing&&o.b&&o.tag.toLowerCase()===t){var s=e.slice(0,n);a>0&&s.push({type:Y.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===Y.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===Y.htmlSelfClosing||r.type===Y.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=fs(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=rs(t)),v?r(e.tag,{key:n.key,...wo(e.attrs||{}),dangerouslySetInnerHTML:{__html:t}}):r(e.tag,{key:n.key,...wo(e.attrs||{})},t)}let y=RegExp(`^<${m.tag}(\\s|>)`,`i`).test(m.a);if(_&&!y&&s.tagfilter&&ns(m.a))return r(e.tag,{key:n.key,...wo(e.attrs||{})},t(m.children,n));if(ps(m.a)){let t=s.tagfilter?rs(m.a):m.a;return r(e.tag,{key:n.key,...wo(e.attrs||{}),dangerouslySetInnerHTML:{__html:t}})}let b={slugify:e=>a(e,Mo),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,...wo(e.attrs||{})},t(m.children,n)):r(e.tag,{key:n.key,...wo(e.attrs||{})});let C=Nc(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,...wo(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 Ic(x.Fragment,{children:[r(e.tag,{key:n.key,...wo(e.attrs||{})},t(f,n)),t(p,n)]},null)}return r(e.tag,{key:n.key,...wo(e.attrs||{})},t(C.flatMap(c),n))}return Fo(e.tag)?r(e.tag,{key:n.key,...wo(e.attrs||{})}):r(e.tag,{key:n.key,...wo(e.attrs||{})},e.children?t(e.children,n):``)}case Y.htmlSelfClosing:{let t=e;if(s.tagfilter&&ts(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,...wo(e.attrs||{})})}case Y.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 Y.link:{let i={key:n.key};return e.target!=null&&(i.href=Zo(e.target)),e.title&&(i.title=e.title),r(`a`,i,t(e.children,n))}case Y.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))}))),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 Y.text:return e.text;case Y.textFormatted:return r(e.tag,{key:n.key},t(e.children,n));case Y.orderedList:case Y.unorderedList:return r(e.type===Y.orderedList?`ol`:`ul`,{key:n.key,start:e.type===Y.orderedList?e.start:void 0},e.items.map(function(e,i){return r(`li`,{key:i},t(e,n))}));case Y.paragraph:return r(`p`,{key:n.key},t(e.children,n));case Y.ref:return null;default:return null}}var zc=(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(Rc.bind(null,c[m],s,l,t,n,r,i,a),c[m],s,l):Rc(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},Bc=(e,t)=>{let n=Xo(t,e,void 0);return n?typeof n==`function`||typeof n==`object`&&`render`in n?n:Xo(t,`${e}.component`,e):e};function Vc(e,t){let n={...t||{}};n.overrides=n.overrides||{};let r=n.slugify||Mo,i=n.sanitizer||Oo,a=n.createElement,o=n.overrides&&Object.keys(n.overrides).length>0,s=e=>Hc(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&&(is.test(l)||as.test(l)||Mc(l,0))){var u=s(l.trim());i[c]=c===`innerHTML`&&Array.isArray(u)?u[0]:u}}var d=e;if(o){var f=Xo(n.overrides,e+`.props`,{});d=Bc(e,n.overrides),i={...i,...f,className:Qo(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),Ic(d,i,p)}return a(d,i,...r)}let l={...n,slugify:e=>r(e,Mo),sanitizer:i,tagfilter:n.tagfilter!==!1},u=e[0]&&e[0].type===Y.refCollection?e[0].refs:{},d=zc(n.renderRule,c,i,r,u,n),f=d(e,{inline:n.forceInline,refs:u}),p=[];for(let e in u)e.charCodeAt(0)===Na&&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)===Na?e.identifier.slice(1):e.identifier,n=Nc(e.footnote,{inline:!0,refs:u},l);return c(`div`,{id:r(t,Mo),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,Ic(m,g,`outer`)}function Hc(e=``,t={}){let n={...t||{}};n.overrides=n.overrides||{};let r=n.slugify||Mo,i=n.sanitizer||Oo;function a(e){let t=n.forceInline||!n.forceBlock&&!To.test(e),a={...n,slugify:e=>r(e,Mo),sanitizer:i,tagfilter:n.tagfilter!==!1};t||gs(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(Pc,``)}
59
+
60
+ `}if(n.optimizeForStreaming){let e=s.lastIndexOf(`<`);e!==-1&&s.slice(e).indexOf(`>`)===-1&&(s=s.slice(0,e))}return Vc(Nc(t?e:s,{inline:t,refs:o},a),{...a,forceInline:t})}let o={};return a(e)}var Uc=({children:e,options:t,...n})=>{if(!(typeof x.useContext<`u`)){let r={...t,overrides:{...t?.overrides},wrapperProps:{...t?.wrapperProps,...n}};return Hc(e??``,r)}let r=x.useContext(Lc),i=x.useMemo(()=>({...r,...t,overrides:{...r?.overrides,...t?.overrides},wrapperProps:{...r?.wrapperProps,...t?.wrapperProps,...n}}),[r,t,n]),a=e??``;return x.useMemo(()=>Hc(a,i),[a,i])},Wc={generalConditionsContainer:`_generalConditionsContainer_55hjg_1`,generalConditions:`_generalConditions_55hjg_1`,generalConditionsHeader:`_generalConditionsHeader_55hjg_15`,generalConditionsBody:`_generalConditionsBody_55hjg_26`,generalConditionsAccept:`_generalConditionsAccept_55hjg_35`},Gc=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})),Q=o(((e,t)=>{t.exports=Gc()}))(),Kc=()=>(0,Q.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1rem`,height:`1rem`,fill:`currentColor`,viewBox:`0 0 256 256`,children:(0,Q.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`})}),qc=()=>(0,Q.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1rem`,height:`1rem`,fill:`currentColor`,viewBox:`0 0 256 256`,children:(0,Q.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`})}),Jc=`general-conditions.header`,Yc=`general-conditions.body`,Xc=`general-conditions.accept-conditions-note`,Zc=()=>{let e=Sa(),[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(Jc),o=e(Xc);return(0,Q.jsxs)(`div`,{className:R(Wc.generalConditionsContainer,`chat__generalConditions`),children:[!!a?.length&&(0,Q.jsxs)(`div`,{className:Wc.generalConditions,children:[(0,Q.jsxs)(`div`,{role:`button`,onClick:r,onKeyDown:i,tabIndex:0,className:R(Wc.generalConditionsHeader,`chat__generalConditions__header`),"aria-controls":`general-conditions-body`,"aria-expanded":t?`true`:`false`,"aria-pressed":t?`true`:`false`,children:[(0,Q.jsx)(Uc,{children:a}),t?(0,Q.jsx)(qc,{}):(0,Q.jsx)(Kc,{})]}),(0,Q.jsx)(`div`,{className:R(Wc.generalConditionsBody,`chat__generalConditions__body`),id:`general-conditions-body`,role:`region`,tabIndex:-1,children:t&&(0,Q.jsx)(Uc,{children:e(Yc)||``})})]}),!!o?.length&&(0,Q.jsx)(`div`,{className:R(Wc.generalConditionsAccept,`chat__generalConditions__accept`),tabIndex:0,children:(0,Q.jsx)(Uc,{children:e(Xc)||``})})]})},$={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`},Qc=(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 $c(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 el(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 tl={container:`_container_131ib_1`,categoryContainer:`_categoryContainer_131ib_13`,categoryButton:`_categoryButton_131ib_20`,active:`_active_131ib_35`,commentTextarea:`_commentTextarea_131ib_44`},nl=(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])},rl=({open:e,actionsRef:t,reaction:n,onReaction:r})=>{let i=Sa(),a=(0,x.useRef)(null),o=$c(e=>{r({...n,comment:e})},300);(0,x.useEffect)(()=>()=>o.flush(),[o]),nl(e,t,a);let s=e=>{r({...n,category:n.category===e?void 0:e})},c=e=>o(e.target.value);return e?(0,Q.jsxs)(`div`,{ref:a,className:tl.container,role:`dialog`,"aria-modal":`true`,"aria-labelledby":`bad-reaction-title`,children:[(0,Q.jsx)(`h2`,{id:`bad-reaction-title`,children:i(`bot-bubble.reaction.say-more`)}),(0,Q.jsx)(`div`,{className:tl.categoryContainer,role:`radiogroup`,children:[`WRONG_INFORMATION`,`MISSING_INFORMATION`,`OLD_INFORMATION`,`UNCLEAR`,`OFF_TOPIC`].map(e=>(0,Q.jsx)(`button`,{className:R(tl.categoryButton,n?.category===e&&tl.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,Q.jsx)(`textarea`,{id:`comment`,name:`comment`,placeholder:i(`bot-bubble.reaction.comment`),defaultValue:n?.comment,onChange:c,className:tl.commentTextarea,rows:3,"aria-label":i(`bot-bubble.reaction.comment`)})]}):null},il={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`},al=({isSubmitting:e,onClick:t})=>{let n=Sa();return(0,Q.jsx)(`button`,{className:R(il.action,il.closeButton,`tooltip--bottom-left`),"aria-label":n(`bot-bubble.reaction.close`),"data-title":n(`bot-bubble.reaction.close`),tabIndex:0,onClick:t,children:(0,Q.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,fill:`currentColor`,viewBox:`0 0 256 256`,children:e?(0,Q.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,Q.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`})})})},ol=({alwaysVisible:e,senderType:t,reaction:n,botMessageRef:r,message:i,onReaction:a})=>{let o=Sa(),[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);Qc(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,Q.jsx)(`div`,{ref:p,className:R(il.botMessageActionContainer,e&&il.alwaysVisible,d&&il.active),"aria-hidden":`true`,children:(0,Q.jsxs)(`div`,{className:R(il.botMessageActionInnerContainer,e&&il.alwaysVisible,d&&il.active,n&&il.reported),role:`group`,"aria-label":o(`bot-bubble.actions.label`),children:[(0,Q.jsxs)(`div`,{className:il.header,children:[(0,Q.jsxs)(`div`,{className:R(il.botMessageActions,n&&il.reported),children:[t===wa.BOT&&(0,Q.jsx)(`button`,{className:R(il.action,n?.type&&il.anyReport,n?.type===`GOOD`&&il.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,Q.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,Q.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,Q.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===wa.BOT&&(0,Q.jsx)(`button`,{className:R(il.action,n?.type&&il.anyReport,n?.type===`BAD`&&il.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,Q.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,Q.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,Q.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,Q.jsx)(`button`,{className:R(il.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,Q.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,fill:`currentColor`,viewBox:`0 0 256 256`,children:s?(0,Q.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,Q.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,Q.jsx)(al,{isSubmitting:l,onClick:()=>f(!1)})]}),i.reaction&&(0,Q.jsx)(rl,{open:d,actionsRef:p,reaction:i.reaction,onReaction:g})]})})},sl=(0,x.forwardRef)(({message:e,isAnimated:t,isLastMessage:n,isFirstMessageBySender:r,isLastMessageBySender:i,children:a,onReaction:o},s)=>{let c=Sa(),l=(0,x.useRef)(null),u=e.sender.type===Dt.BOT;return(0,Q.jsxs)(`li`,{ref:s,className:R($.message,$.messageBot,n&&$.lastMessage,r&&$.messageBotFirst,i&&$.messageBotLast,`chat__bubbleContainer`,t&&$.messageBotAnimated,t&&`chat__bubbleContainer--animated`,u?`chat__botBubbleContainer`:`chat__agentBubbleContainer`,r&&`chat__bubbleContainer--first`,i&&`chat__bubbleContainer--last`),role:`article`,children:[(0,Q.jsx)(`img`,{className:R($.avatar,u?$.botAvatar:$.agentAvatar,`chat__avatar`,u?`chat__botAvatar`:`chat__agentAvatar`),src:`${e.sender.avatar}`,alt:u?`Bot`:`Agent`,referrerPolicy:`no-referrer`,"aria-hidden":`true`}),(0,Q.jsxs)(`div`,{className:$.messageContainer,children:[(0,Q.jsx)(`div`,{ref:l,className:R($.bubble,$.bubbleLeft,`chat__bubble`,u?`chat__botBubble`:`chat__agentBubble`),tabIndex:0,role:`group`,"aria-label":c(u?`bot-bubble.label`:`agent-bubble.label`),children:(0,Q.jsx)(`div`,{className:R($.leftText),children:a})}),o&&(0,Q.jsx)(ol,{alwaysVisible:n&&i,senderType:e.sender.type,reaction:e.reaction,message:e,botMessageRef:l,onReaction:o})]})]})}),cl={sourceList:`_sourceList_1sc0q_1`,source:`_source_1sc0q_1`,label:`_label_1sc0q_39`},ll=e=>(0,Q.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,fill:`currentColor`,viewBox:`0 0 256 256`,...e,children:(0,Q.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`})}),ul=e=>(0,Q.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,fill:`currentColor`,viewBox:`0 0 256 256`,...e,children:(0,Q.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`})}),dl=e=>(0,Q.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,fill:`currentColor`,viewBox:`0 0 256 256`,...e,children:(0,Q.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`})}),fl=e=>(0,Q.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,fill:`currentColor`,viewBox:`0 0 256 256`,...e,children:(0,Q.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`})}),pl=({type:e,...t})=>{switch(e){case`WEBSITE`:return(0,Q.jsx)(fl,{...t});case`PDF`:return(0,Q.jsx)(dl,{...t});case`DOCX`:return(0,Q.jsx)(ll,{...t});default:return(0,Q.jsx)(ul,{...t})}},ml=({sources:e,onLinkClick:t})=>{let n=Sa(),r=e=>()=>{t(e.url)},i=e=>n=>{(n.key===`Enter`||n.key===` `)&&t(e.url)};return e.length?(0,Q.jsx)(`ul`,{className:cl.sourceList,"aria-label":n(`bot-bubble.sources`),children:e.map(e=>(0,Q.jsx)(`li`,{className:cl.source,children:(0,Q.jsxs)(`a`,{role:`button`,tabIndex:0,"aria-label":`${n(`bot-bubble.source.open`)}: ${e.label}`,onClick:r(e),onKeyDown:i(e),children:[(0,Q.jsx)(pl,{type:e.type,"aria-hidden":`true`}),(0,Q.jsx)(`div`,{className:cl.label,children:e.label})]})},e.url))}):null},hl={button:`_button_3ui4g_1`,buttonDefault:`_buttonDefault_3ui4g_13`,buttonPrimary:`_buttonPrimary_3ui4g_28`},gl=({className:e,children:t,...n})=>(0,Q.jsx)(`button`,{className:R(hl.button,e),type:`button`,role:`button`,...n,children:t}),_l={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`},vl=({buttons:e,onButtonClick:t})=>(0,Q.jsx)(`div`,{className:R(_l.buttons,`chat__bubbleButtons`),children:e.map((e,n)=>(0,Q.jsx)(gl,{className:R(_l.button,`chat__bubbleButton`),onClick:()=>t(e),children:e.title},n))}),yl=`newtab#`,bl=({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(yl)===0?(0,Q.jsx)(`a`,{href:t.slice(7),title:e,target:`_blank`,rel:`noopener noreferrer`,children:n}):(0,Q.jsx)(`a`,{onClick:r(t),title:e,href:t,children:n});return(0,Q.jsx)(Uc,{options:{...t,overrides:{a:i}},children:e})},xl=({text:e,onLinkClick:t})=>e?(0,Q.jsx)(`div`,{children:(0,Q.jsx)(bl,{markdown:e,onLinkClick:t})}):null,Sl=({title:e})=>e?(0,Q.jsx)(`h1`,{className:_l.title,children:e}):null,Cl=({title:e,text:t,buttons:n,onButtonClick:r,onLinkClick:i})=>e?.length||t?.length||n?.length?(0,Q.jsxs)(`div`,{className:R($.bubbleContent),children:[(0,Q.jsx)(Sl,{title:e}),(0,Q.jsx)(xl,{text:t,onLinkClick:i}),(0,Q.jsx)(vl,{buttons:n,onButtonClick:r})]}):null,wl=({alt:e,imageUrl:t,itemUrl:n,hasBody:r})=>t?n?n.indexOf(`youtube.com`)>-1?(0,Q.jsx)(`div`,{className:_l.video_container,children:(0,Q.jsx)(`iframe`,{className:R(_l.video,{[_l.only]:!r}),title:`Youtube`,width:`100%`,src:n+`?rel=0`,frameBorder:`0`,allowFullScreen:!0})}):(0,Q.jsx)(`a`,{href:n,target:`_blank`,rel:`noopener noreferrer`,children:(0,Q.jsx)(`div`,{className:_l.imageContainer,children:(0,Q.jsx)(`img`,{className:R(_l.image,{[_l.only]:!r}),src:t,alt:e})})}):(0,Q.jsx)(`div`,{className:_l.imageContainer,children:(0,Q.jsx)(`img`,{className:R(_l.image,{[_l.only]:!r}),src:t,alt:e})}):null,Tl=({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,Q.jsxs)(`div`,{className:R(_l.detailMessage),children:[(0,Q.jsx)(wl,{hasBody:c,imageUrl:n,itemUrl:r,alt:e||``}),c&&(0,Q.jsx)(Cl,{title:e,text:t,buttons:i,onLinkClick:s,onButtonClick:o}),(0,Q.jsx)(ml,{sources:a,onLinkClick:s})]})},El=(0,x.forwardRef)(({isFirstMessageBySender:e,isLastMessageBySender:t,children:n},r)=>{let i=Sa();return(0,Q.jsx)(`li`,{ref:r,className:R($.message,$.messageGuest,e&&$.messageGuestFirst,t&&$.messageGuestLast,`chat__bubbleContainer`,`chat__guestBubbleContainer`,e&&`chat__bubbleContainer--first`,t&&`chat__bubbleContainer--last`),role:`article`,children:(0,Q.jsx)(`div`,{className:R($.bubble,$.bubbleRight,`chat__bubble`,`chat__guestBubble`),tabIndex:0,role:`group`,"aria-label":i(`guest-bubble.label`),children:(0,Q.jsx)(`div`,{className:R($.rightText),children:n})})})}),Dl=()=>(0,x.useMemo)(()=>bn(),[]),Ol={markdown:`_markdown_nw7vg_1`},kl=`source-info-reference`,Al=({actionId:e,markdown:t,sources:n,onLinkClick:r})=>{let i=Dl(),a=ba(),o=jl(),s=xa(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($i(i,e,t)))},l=t=>()=>{a($i(i,e,t))};return(0,x.useLayoutEffect)(()=>{document.querySelectorAll(`.${kl}`).forEach(e=>{let t=e.previousSibling;t&&t.nodeType===Node.TEXT_NODE&&t.textContent?.endsWith(` `)&&t.textContent?.trim().length&&e.classList.add(`${kl}--before-space`);let n=e.nextSibling;n&&n.nodeType===Node.TEXT_NODE&&n.textContent?.startsWith(` `)&&n.textContent?.trim().length&&e.classList.add(`${kl}--after-space`)})},[t]),(0,Q.jsxs)(`div`,{className:$.bubbleContent,children:[(0,Q.jsx)(`div`,{className:Ol.markdown,children:(0,Q.jsx)(bl,{markdown:t,onLinkClick:r,markdownOptions:{renderRule(e,t,n,r){if(t.type===Y.footnoteReference){let e=t.text===s;return(0,Q.jsx)(`span`,{className:R($.sourceInfoReference,e&&$.sourceInfoReferenceActive,kl),children:(0,Q.jsx)(`a`,{type:`button`,tabIndex:0,onClick:l(t.text),onKeyDown:c(t.text),children:o(t.text)})},r.key)}return e()}}})}),(0,Q.jsx)(ml,{sources:n,onLinkClick:r})]})},jl=()=>{let e=[];return t=>{let n=e.indexOf(t);return n>-1?n+1:(e.push(t),e.length)}},Ml={text:`_text_gp0s0_1`,command:`_command_gp0s0_5`},Nl=({text:e,commands:t=[]})=>{let n=t.find(t=>e.startsWith(`/${t}`)),r=n?e.slice(n.length+1):e;return(0,Q.jsxs)(`div`,{children:[n&&(0,Q.jsxs)(`code`,{className:Ml.command,children:[`/`,n]}),r.split(`
61
+ `).map((e,t)=>(0,Q.jsxs)(`span`,{className:Ml.text,children:[e,(0,Q.jsx)(`br`,{})]},t))]})},Pl=({text:e,commands:t,sources:n,onLinkClick:r})=>(0,Q.jsxs)(`div`,{className:$.bubbleContent,children:[(0,Q.jsx)(Nl,{text:e,commands:t}),(0,Q.jsx)(ml,{sources:n,onLinkClick:r})]}),Fl=(0,x.forwardRef)(({message:e,commands:t,isLastMessage:n,isFirstMessageBySender:r,isLastMessageBySender:i,onReaction:a,onButtonClick:o,onLinkClick:s},c)=>{let l=Il(e._id,e,t,o,s),u=t=>{a(e._id,t)};switch(e.sender.type){case Dt.GUEST:return(0,Q.jsx)(El,{ref:c,isFirstMessageBySender:r,isLastMessageBySender:i,children:l});default:return(0,Q.jsx)(sl,{ref:c,message:e,isAnimated:!1,isLastMessage:n,isFirstMessageBySender:r,isLastMessageBySender:i,onReaction:u,children:l})}}),Il=(e,t,n,r,i)=>{switch(t.type){case Ct.TEXT:return(0,Q.jsx)(Pl,{text:t.text,commands:n,sources:t.sources||[],onLinkClick:i});case Ct.DETAIL:{let e=t;return(0,Q.jsx)(Tl,{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,Q.jsx)(Al,{actionId:e,markdown:n.markdown,sources:n.sources||[],onLinkClick:i})}}},Ll=x.memo(Fl,(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),Rl={ticontainer:`_ticontainer_xg0dn_1`,tiblock:`_tiblock_xg0dn_5`,tidot:`_tidot_xg0dn_12`,mercuryTypingAnimation:`_mercuryTypingAnimation_xg0dn_1`},zl=({isTyping:e=!1})=>(0,Q.jsx)(`div`,{className:Rl.ticontainer,children:(0,Q.jsx)(`div`,{className:Rl.tiblock,children:e?(0,Q.jsxs)(Q.Fragment,{children:[(0,Q.jsx)(`div`,{className:R(Rl.tidot,`chat__typingIndicator`),"aria-hidden":`true`}),(0,Q.jsx)(`div`,{className:R(Rl.tidot,`chat__typingIndicator`),"aria-hidden":`true`}),(0,Q.jsx)(`div`,{className:R(Rl.tidot,`chat__typingIndicator`),"aria-hidden":`true`})]}):null})}),Bl=Object.assign({_id:`typing-indicator`},new St(``,new Tt)),Vl=({messages:e,isBotTyping:t,commands:n,onTranscriptItemReaction:r,onButtonClick:i,onLinkClick:a})=>{let o=Sa(),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=xa(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,Q.jsxs)(`div`,{ref:l,className:R(Ea.messageContainer,`chat__messageContainer`),style:{scrollBehavior:e.length&&c.current?`auto`:`smooth`},id:`MessageContainer`,"aria-label":o(`conversation.label`),children:[f&&(0,Q.jsx)(Zc,{}),(0,Q.jsxs)(`ul`,{className:Ea.messages,role:`list`,children:[e.map((o,s)=>{let c=Hl(o,p),l=Ul(o,s,e,t);p=o.sender.type;let u=s+1===m,f=o._id||`added-${s}`;return(0,Q.jsx)(Ll,{ref:u?d:null,message:o,commands:n,isLastMessage:u,isFirstMessageBySender:c,isLastMessageBySender:l,onButtonClick:i,onLinkClick:a,onReaction:r},f)}),t&&(0,Q.jsx)(sl,{ref:u,message:Bl,isLastMessage:!1,isAnimated:!0,isFirstMessageBySender:p!==Dt.BOT,isLastMessageBySender:!0,children:(0,Q.jsx)(zl,{isTyping:!0})},`last`)]})]})},Hl=(e,t)=>!t||t!==e.sender.type,Ul=(e,t,n,r)=>{let i=e.sender.type,a=n.length;return t+1===a?!(i===Dt.BOT&&r):i!==n.at(t+1)?.sender.type},Wl=`_bottomSheet_jp8dl_1`,Gl=`_bottomSheetOpen_jp8dl_15`,Kl=`_bottomSheetClose_jp8dl_20`,ql={bottomSheet:Wl,bottomSheetOpen:Gl,"slide-in":`_slide-in_jp8dl_1`,bottomSheetClose:Kl,"slide-out":`_slide-out_jp8dl_1`},Jl={container:`_container_xc2nx_1`},Yl=({contentUrl:e})=>{let t=xa(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,Q.jsx)(`div`,{className:R(Jl.container,ql.bottomSheet,{[ql.bottomSheetOpen]:!!e,[ql.bottomSheetClose]:n&&!e}),children:i&&(0,Q.jsx)(`iframe`,{title:`Drawer`,id:`form-drawer`,src:i,className:Jl.iframe})})},Xl={container:`_container_1634s_1`},Zl=({title:e,href:t,children:n})=>(0,Q.jsx)(`a`,{href:t,title:e,target:`_blank`,rel:`noopener noreferrer`,children:n}),Ql=()=>{let e=Sa()(`powered-by`);return e&&e.length?(0,Q.jsx)(`div`,{className:R(Xl.container,`chat__poweredBy`),children:(0,Q.jsx)(Uc,{options:{overrides:{a:Zl}},children:e})}):null},$l=(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()},eu=({messages:e,isBotTyping:t})=>{let n=(0,x.useRef)(``),r=Sa(),i=r(`bot-bubble.footnote`),a=e=>{switch(e.type){case`TEXT`:return e.text||``;case`MARKDOWN`:return $l(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===wa.BOT);return n?a(n):``})();return(0,x.useEffect)(()=>{o!==n.current&&(n.current=o)},[o]),(0,Q.jsx)(`div`,{role:`status`,"aria-live":`polite`,"aria-atomic":`true`,className:`sr-only`,children:o})},tu=({className:e,children:t,...n})=>(0,Q.jsx)(gl,{className:R(hl.buttonDefault,e),type:`button`,...n,children:t}),nu=({className:e,children:t,...n})=>(0,Q.jsx)(gl,{className:R(hl.buttonPrimary,e),...n,children:t}),ru={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`},iu=({visible:e,onEmailExport:t,onClose:n})=>{let r=Sa(),[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,Q.jsxs)(`div`,{className:R(ru.container,ql.bottomSheet,{[ql.bottomSheetOpen]:i===!0,[ql.bottomSheetClose]:i===!1}),children:[(0,Q.jsx)(`h2`,{children:r(`export-transcript.email.title`)}),(0,Q.jsx)(Uc,{className:ru.description,children:r(`export-transcript.email.description`)||``}),(0,Q.jsxs)(`form`,{onSubmit:d,className:ru.formContainer,children:[(0,Q.jsxs)(`div`,{children:[(0,Q.jsx)(`input`,{disabled:o,ref:u,type:`email`,placeholder:r(`export-transcript.email.placeholder`),className:ru.emailInput,onChange:f}),c?.length===0?(0,Q.jsx)(`div`,{className:ru.validationError,children:r(`export-transcript.email.invalid`)}):null]}),(0,Q.jsxs)(`div`,{className:ru.actions,children:[(0,Q.jsx)(tu,{onClick:n,children:r(`export-transcript.email.cancel`)}),(0,Q.jsx)(nu,{type:`submit`,disabled:o||c===void 0||c.length===0,children:r(`export-transcript.email.send`)})]})]}),o&&(0,Q.jsx)(`div`,{className:ru.submitted,children:r(`export-transcript.email.success`)})]})},au={inputContainer:`_inputContainer_fi5ao_1`},ou={blockUserInput:`_blockUserInput_pot9c_1`,"append-animate":`_append-animate_pot9c_1`},su=({visible:e})=>{let t=Sa();return e?(0,Q.jsx)(`div`,{className:R(ou.blockUserInput,`chat__blockUserInput`),children:t(`block-user-input.title`)}):null},cu={commandsDropdown:`_commandsDropdown_fmklx_1`,commands:`_commands_fmklx_1`,command:`_command_fmklx_1`,commandActive:`_commandActive_fmklx_49`},lu=(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])},uu=({text:e,commands:t,onSelectCommand:n,onVisibilityChange:r})=>{let i=(0,x.useRef)(null),a=Sa(),[o,s]=(0,x.useState)([]),[c,l]=(0,x.useState)(du(t)),[u,d]=(0,x.useState)(0),f=e=>n(`/${e}`);return Qc(i,()=>s([])),lu(o,u,f,d,s),(0,x.useEffect)(()=>{l(du(t))},[t]),(0,x.useEffect)(()=>{let n=e.length||0;n===0||n>c||!e.startsWith(`/`)?s([]):s(t.filter(fu(e))),d(0)},[t,e,c]),(0,x.useEffect)(()=>{r(!!o.length)},[o,r]),o.length?(0,Q.jsx)(`div`,{ref:i,className:cu.commandsDropdown,children:(0,Q.jsx)(`ul`,{id:`command-list`,className:cu.commands,role:`listbox`,children:o.map((e,t)=>(0,Q.jsxs)(`li`,{className:R([cu.command,u===t&&cu.commandActive]),role:`option`,onClick:()=>f(e),onMouseOver:()=>d(t),children:[(0,Q.jsxs)(`h1`,{children:[`/`,e]}),(0,Q.jsx)(`p`,{children:a(`commands.${e}`)})]},e))})}):null},du=e=>Math.max(...e.map(e=>e.length+1)),fu=e=>t=>{let n=`/${t}`;return n.startsWith(e)&&n.length>=e.length},pu=`_callToActionContainer_d8izj_1`,mu=`_callToActionTitle_d8izj_23`,hu=`_rateOverlay_d8izj_30`,gu=`_body_d8izj_52`,_u=`_footer_d8izj_60`,vu=`_actions_d8izj_75`,yu=`_bubbles_d8izj_89`,bu=`_rateFeedbackBotBubble_d8izj_118`,xu=`_rateFeedbackGuestBubble_d8izj_124`,Su=`_avatar_d8izj_130`,Cu=`_fadeInLeft_d8izj_1`,wu=`_bubble_d8izj_89`,Tu=`_appear_d8izj_1`,Eu=`_botBubble_d8izj_156`,Du=`_guestBubble_d8izj_167`,Ou=`_rateText_d8izj_186`,ku=`_stars_d8izj_191`,Au=`_starsSmall_d8izj_205`,ju=`_starsLarge_d8izj_211`,Mu=`_star_d8izj_191`,Nu=`_starReadonly_d8izj_225`,Pu=`_starIcon_d8izj_235`,Fu=`_starsDescriptionContainer_d8izj_253`,Iu=`_starsDescription_d8izj_253`,Lu={callToActionContainer:pu,"append-animate":`_append-animate_d8izj_1`,callToActionTitle:mu,rateOverlay:hu,body:gu,footer:_u,actions:vu,bubbles:yu,rateFeedbackBotBubble:bu,rateFeedbackGuestBubble:xu,avatar:Su,fadeInLeft:Cu,bubble:wu,appear:Tu,botBubble:Eu,guestBubble:Du,rateText:Ou,stars:ku,starsSmall:Au,starsLarge:ju,star:Mu,starReadonly:Nu,starIcon:Pu,starsDescriptionContainer:Fu,starsDescription:Iu},Ru=({value:e,index:t,count:n,readonly:r,onHover:i,onClick:a})=>{let o=e=>{a&&e.key===`Enter`&&a()};return(0,Q.jsx)(`li`,{className:R(Lu.star,{[Lu.starReadonly]:r},`chat__conversationRating__star`),children:(0,Q.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,Q.jsx)(`span`,{role:`img`,"aria-label":`Star`,className:R(Lu.starIcon),children:(0,Q.jsx)(`svg`,{viewBox:`64 64 896 896`,focusable:`false`,"data-icon":`star`,width:`1em`,height:`1em`,fill:`currentColor`,"aria-hidden":`true`,children:(0,Q.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`})})})})})},zu=5,Bu=({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,Q.jsx)(`ul`,{tabIndex:0,role:`radiogroup`,className:R(Lu.stars,{[Lu.starsSmall]:t===`small`,[Lu.starsLarge]:t===`large`},`chat__conversationRating__stars`,{chat__conversationRating__stars__small:t===`small`,chat__conversationRating__stars__large:t===`large`}),onMouseOut:o,children:Array(zu).fill(0).map((t,r)=>(0,Q.jsx)(Ru,{value:i===void 0?e:i,index:r,count:zu,readonly:n,onHover:s(r),onClick:c(r)},r))})},Vu=({visible:e,onRate:t})=>{let n=Sa();return e?(0,Q.jsxs)(`div`,{className:R(Lu.callToActionContainer,`chat__conversationRating__callToAction`),children:[(0,Q.jsx)(`div`,{className:R(Lu.callToActionTitle,`chat__conversationRating__callToAction__title`),children:n(`conversation-rating.call-to-action.title`)}),(0,Q.jsx)(Bu,{value:0,size:`small`,onChange:t})]}):null},Hu=({isFirstMessageBySender:e,isLastMessageBySender:t,children:n})=>(0,Q.jsxs)(`div`,{className:R($.message,$.messageBot,e&&$.messageBotFirst,t&&$.messageBotLast,`chat__bubbleContainer`,`chat__botBubbleContainer`,e&&`chat__bubbleContainer--first`,t&&`chat__bubbleContainer--last`),children:[(0,Q.jsx)(`img`,{className:R($.avatar,$.botAvatar),src:`bot.svg`,alt:`Bot`}),(0,Q.jsx)(`div`,{className:R($.bubble,$.bubbleLeft,`chat__bubble`,`chat__botBubble`),children:(0,Q.jsx)(`div`,{className:R($.leftText,$.bubbleContent),children:n})})]}),Uu=({children:e})=>(0,Q.jsx)(`div`,{className:R($.message,$.messageGuest,$.messageGuestFirst,$.messageGuestLast,`chat__bubbleContainer`,`chat__guestBubbleContainer`,`chat__bubbleContainer--first`,`chat__bubbleContainer--last`),children:(0,Q.jsx)(`div`,{className:R($.bubble,$.bubbleRight,`chat__bubble`,`chat__guestBubble`),children:(0,Q.jsx)(`div`,{className:R($.rightText,$.bubbleContent),children:e})})}),Wu=()=>{let e=Sa(),t=ba(),n=xa(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(tn(r,n)),u({submitted:!0,feedback:n})},h=()=>{n.opener===`CLOSE_CHAT`?t(Ji()):n.opener===`RESTART_CHAT`?t(va()):t(Qi())};return(0,Q.jsx)(`div`,{className:R(Lu.rateOverlay,ql.bottomSheet,`chat__conversationRating__overlay`,{[ql.bottomSheetOpen]:s===!0,[ql.bottomSheetClose]:s===!1}),children:(0,Q.jsxs)(`form`,{onSubmit:m,children:[(0,Q.jsxs)(`div`,{className:R(Lu.body,`chat__conversationRating__overlay__body`),children:[(0,Q.jsx)(`div`,{}),(0,Q.jsx)(`div`,{className:R(Lu.bubbles),children:n.opener&&(0,Q.jsxs)(Q.Fragment,{children:[(0,Q.jsxs)(Hu,{isFirstMessageBySender:!0,isLastMessageBySender:!a,children:[(0,Q.jsx)(`h2`,{children:e(`conversation-rating.overlay.title`)}),(0,Q.jsxs)(`div`,{className:R(Lu.starsDescriptionContainer),children:[(0,Q.jsx)(Bu,{value:r,size:`large`,readonly:l.submitted,onChange:i}),(0,Q.jsxs)(`div`,{className:R(Lu.starsDescription),children:[(0,Q.jsx)(`div`,{children:e(`conversation-rating.overlay.star.very-bad`)}),(0,Q.jsx)(`div`,{children:e(`conversation-rating.overlay.star.very-good`)})]})]})]}),a&&(0,Q.jsx)(Hu,{isFirstMessageBySender:!1,isLastMessageBySender:!f||!!l.feedback.length,children:(0,Q.jsx)(`div`,{children:a})}),!!l.feedback.length&&(0,Q.jsx)(Uu,{children:l.feedback}),f&&(0,Q.jsx)(Hu,{isFirstMessageBySender:!!l.feedback.length,isLastMessageBySender:!0,children:(0,Q.jsx)(`div`,{children:e(`conversation-rating.overlay.bot-message.submit-feedback`)})})]})})]}),(0,Q.jsxs)(`div`,{className:R(Lu.footer,`chat__conversationRating__overlay__footer`),children:[!l.submitted&&(0,Q.jsx)(`input`,{ref:d,defaultValue:n.rating?.feedback||``,placeholder:e(`conversation-rating.overlay.guest-feedback.input-placeholder`)}),(0,Q.jsxs)(`div`,{className:R(Lu.actions,`chat__conversationRating__overlay__footer__actions`),children:[l.submitted?(0,Q.jsx)(nu,{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,Q.jsx)(nu,{type:`submit`,disabled:!r,children:e(`conversation-rating.overlay.action.submit`)},`submit-button`),n.opener!==`CHAT`&&!l.submitted&&(0,Q.jsx)(tu,{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`)})]})]})]})})},Gu=(0,x.memo)(({numberOfMessagesFromGuest:e})=>{let t=ba(),n=xa(e=>e.chat.conversationRating),r=e=>{t(Zi(`CHAT`,e))},i=!n.rating?.value&&e>=1;return n.enabled?(0,Q.jsxs)(Q.Fragment,{children:[(0,Q.jsx)(Vu,{visible:i,onRate:r}),(0,Q.jsx)(Wu,{})]}):null}),Ku={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`},qu={audioRecorder:`_audioRecorder_g845f_1`,audioButton:`_audioButton_g845f_6`,recorderIcon:`_recorderIcon_g845f_37`,pulse:`_pulse_g845f_1`,spinning:`_spinning_g845f_60`,spin:`_spin_g845f_60`},Ju=2048,Yu=16e3,Xu=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(Ju,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+=Ju}}handleClickSubmitAudio(){let e=Zu(ed($u(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,Q.jsxs)(`div`,{className:qu.audioRecorder,children:[this.state.recordingState===`none`&&(0,Q.jsx)(`button`,{className:R(qu.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,Q.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,children:[(0,Q.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,Q.jsx)(`path`,{d:`M0 0h24v24H0z`,fill:`none`})]})}),this.state.recordingState===`connecting`&&(0,Q.jsxs)(`svg`,{className:qu.spinning,xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,children:[(0,Q.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,Q.jsx)(`path`,{d:`M0 0h24v24H0z`,fill:`none`})]}),this.state.recordingState===`recording`&&(0,Q.jsxs)(`div`,{className:qu.audioRecorder,children:[(0,Q.jsx)(`button`,{className:R(qu.audioButton),onClick:this.handleClickStopAudio,"aria-label":this.props.translate(`message-input.actions.stop-audio-recording.label`),tabIndex:0,children:(0,Q.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,children:[(0,Q.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,Q.jsx)(`path`,{d:`M0 0h24v24H0z`,fill:`none`})]})}),(0,Q.jsx)(`div`,{className:qu.recorderIcon}),(0,Q.jsx)(`button`,{className:R(qu.audioButton),type:`submit`,onClick:this.handleClickSubmitAudio,"aria-label":this.props.translate(`message-input.actions.submit-audio-recording.label`),tabIndex:0,autoFocus:!0,children:(0,Q.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,children:[(0,Q.jsx)(`path`,{d:`M0 0h24v24H0z`,fill:`none`}),(0,Q.jsx)(`path`,{d:`M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z`})]})})]})]})}},Zu=e=>{let t=new ArrayBuffer(44+e.length*2),n=new DataView(t);Qu(n,0,`RIFF`),n.setUint32(4,44+e.length*2,!0),Qu(n,8,`WAVE`),Qu(n,12,`fmt `),n.setUint32(16,16,!0),n.setUint16(20,1,!0),n.setUint16(22,1,!0),n.setUint32(24,Yu,!0),n.setUint32(28,Yu*4,!0),n.setUint16(32,4,!0),n.setUint16(34,16,!0),Qu(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`})},Qu=(e,t,n)=>{for(let r=0;r<n.length;r++)e.setUint8(t+r,n.charCodeAt(r))},$u=(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},ed=(e,t)=>{if(Yu===t)return e;let n=t/Yu,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},td=({onClick:e})=>{let t=Sa();return(0,Q.jsxs)(`button`,{onClick:e,type:`button`,"aria-label":t(`message-input.actions.command.label`),children:[(0,Q.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`32`,height:`32`,fill:`#000000`,viewBox:`0 0 256 256`,children:[(0,Q.jsx)(`rect`,{x:`32`,y:`32`,width:`192`,height:`192`,rx:`16`,ry:`16`,fill:`none`,stroke:`currentColor`,"stroke-width":`16`}),(0,Q.jsx)(`line`,{x1:`80`,y1:`176`,x2:`176`,y2:`80`,stroke:`currentColor`,"stroke-width":`16`,"stroke-linecap":`round`})]}),(0,Q.jsx)(`span`,{children:t(`message-input.actions.command.label`)})]})},nd=({disabled:e,textInput:t,commandsVisible:n,hasCommands:r,onTextInput:i,onTextInputSubmit:a,onAudioRecorded:o})=>{let s=Sa(),c=(0,x.useRef)(null),l=(0,x.useRef)(0),{enableSpeechSupport:u}=xa(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,Q.jsxs)(`form`,{className:R(Ku.inputWrapper,n&&Ku.withOpenCommands,`chat__textInput`),onSubmit:p,children:[(0,Q.jsxs)(`div`,{className:Ku.messageInputWrapper,children:[(0,Q.jsx)(`textarea`,{id:`user_input`,ref:c,className:Ku.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,Q.jsx)(`div`,{className:Ku.actions,children:(0,Q.jsx)(td,{onClick:g})})]}),(0,Q.jsx)(`div`,{className:R(Ku.buttons,`chat__buttons`),children:t.length||!u||navigator.mediaDevices===void 0?(0,Q.jsx)(`button`,{className:R(Ku.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,Q.jsx)(`svg`,{viewBox:`64 64 896 896`,focusable:`false`,width:`1em`,height:`1em`,fill:`currentColor`,"aria-hidden":`true`,children:(0,Q.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,Q.jsx)(Xu,{translate:s,onAudioRecorded:o})})]})},rd={quickReplies:`_quickReplies_83npe_1`,quickReply:`_quickReply_83npe_9`},id=({quickReplies:e,onQuickReplyClick:t})=>e.length?(0,Q.jsx)(`div`,{className:R(rd.quickReplies,`chat__quickReplies`),children:e.map(e=>(0,Q.jsx)(gl,{tabIndex:0,className:R(rd.quickReply,`chat__button`,`chat__quickReply`),onClick:()=>t(e),children:e.label},e.label))}):null,ad=5e3,od=1e3,sd=({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>ad?u(!1):setTimeout(()=>{u(!1)},ad-e)}},[l,e]),(0,x.useEffect)(()=>{l&&(p.current=Date.now())},[l]),(0,Q.jsxs)(`div`,{className:R(au.inputContainer),children:[(0,Q.jsx)(id,{quickReplies:t,onQuickReplyClick:a}),(0,Q.jsx)(su,{visible:l}),!l&&(0,Q.jsx)(Gu,{numberOfMessagesFromGuest:n}),!!r?.length&&(0,Q.jsx)(uu,{text:s,commands:r,onSelectCommand:e=>{c(e+` `)},onVisibilityChange:f}),(0,Q.jsx)(nd,{textInput:s,disabled:l,commandsVisible:d,hasCommands:!!r?.length,onTextInput:c,onTextInputSubmit:t=>{let n=Date.now()-m.current<od;return d?!1:e||n?(u(!0),!1):(i(t),c(``),m.current=Date.now(),!0)},onAudioRecorded:o})]})},cd=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(va()),onMessageFromUser:t=>e(It(t)),onAudioRecorded:t=>e(Xt(t)),onActionFromUser:t=>e(t),onQuickReplyClick:t=>e(Ft(t)),onNluEvent:t=>e(nn(t)),onButtonClick:t=>e(an(t)),onLinkClick:t=>e(on(t)),onTranscriptExport:t=>e(Qt(t)),onTranscriptItemReaction:(t,n)=>{e(jt(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=ba(),p=xa(e=>e.connection.connectionState),{enableTranscriptExportEmail:m,commands:h}=xa(e=>e.settings),{showTranscriptMailOverlay:g,conversationRating:_}=xa(e=>e.chat),v=t.filter(e=>e.sender.type===wa.GUEST).length;return(0,x.useEffect)(()=>{p===Ca.CONNECTED&&f(_a(e))},[e,p,f]),(0,Q.jsxs)(`div`,{className:Ta.container,children:[(0,Q.jsx)(eu,{messages:t,isBotTyping:r}),(0,Q.jsxs)(`div`,{className:R([Ta.chatcontent,(g||_?.opener)&&Ta.accessabilityHidden]),children:[(0,Q.jsx)(Vl,{messages:t,isBotTyping:r,commands:h,onButtonClick:s,onLinkClick:c,onTranscriptItemReaction:d}),(0,Q.jsx)(sd,{isBotTyping:r,quickReplies:r?[]:n,numberOfMessagesFromGuest:v,commands:h,onQuickReplyClick:o,onTextInput:a,onAudioRecorded:l}),(0,Q.jsx)(Ql,{})]}),m&&(0,Q.jsx)(iu,{visible:!!g,onEmailExport:u,onClose:()=>{f(Xi())}}),(0,Q.jsx)(Yl,{contentUrl:i})]})}),ld=()=>(0,x.useMemo)(()=>{try{return window.self!==window.top}catch{return!0}},[]),ud=e=>t=>{let n=t.key;(n===`ArrowDown`||n===`ArrowRight`||n===`Enter`||n===` `||n===`Space`)&&(t.stopPropagation(),e())},dd=({onClick:e})=>{let t=Sa();return ld()?(0,Q.jsx)(`button`,{className:`tooltip--bottom-left`,"aria-label":t(`header.close-chat`),"data-title":t(`header.close-chat`),tabIndex:0,onClick:e,onKeyDown:ud(e),children:(0,Q.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,fill:`currentColor`,viewBox:`0 0 256 256`,children:(0,Q.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},fd={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`},pd=({icon:e})=>{switch(e){case`arrow-counter-clockwise`:return(0,Q.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,Q.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,Q.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,Q.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,Q.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,Q.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,Q.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,Q.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,Q.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,Q.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,Q.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,Q.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,Q.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,Q.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,Q.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,Q.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,Q.jsx)(`div`,{})}},md=(0,x.forwardRef)(({selected:e,item:t,onClick:n},r)=>{let i=Sa(),a=e=>{e.preventDefault(),n()};return(0,Q.jsx)(`li`,{"aria-selected":e,role:`option`,className:t.withDivider?fd.divider:void 0,children:(0,Q.jsxs)(`a`,{ref:r,type:`button`,role:`button`,tabIndex:-1,onClick:a,children:[(0,Q.jsx)(pd,{icon:t.icon}),(0,Q.jsx)(`span`,{children:i(`header.menu.${t.id}`)})]})})}),hd=(e,t)=>{let n=ld(),{menuItems:r,enableStandaloneView:i,enableTranscriptExportPdf:a,enableTranscriptExportEmail:o}=xa(e=>e.settings),s=xa(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])},gd=({chatStarted:e,hasGuestMessages:t})=>{let n=ba(),r=Sa(),{enabled:i,opener:a}=xa(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=hd(e,t);(0,x.useEffect)(()=>{f.current[c]?.focus()},[c]);let m=(0,x.useCallback)(()=>{n(t&&i&&!a?Zi(`RESTART_CHAT`):va()),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($t());break;case`send-transcript`:n(Xi());break;case`rate-conversation`:n(Zi(`MENU`));break;case`link`:n(on(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]),Qc(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,Q.jsxs)(`div`,{className:R(fd.menuContainer),ref:d,children:[(0,Q.jsx)(`button`,{ref:u,className:R(o&&fd.active,o?`tooltip-hidden`:`tooltip--bottom-left`),"aria-label":r(`header.menu.title`),"data-title":r(`header.menu.title`),onClick:g,onBlur:_,children:(0,Q.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,fill:`currentColor`,viewBox:`0 0 256 256`,children:(0,Q.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,Q.jsx)(`nav`,{className:fd.menu,"aria-label":r(`header.menu.title`),children:(0,Q.jsx)(`ul`,{tabIndex:0,children:p.map((e,t)=>(0,Q.jsx)(md,{ref:e=>{f.current[t]=e},selected:c===t,item:e,onClick:()=>h(e)},e.id))})})]}):null},_d=({className:e,chatStarted:t,...n})=>{let r=ba(),i=xa(e=>e.chat.conversationRating),a=xa(e=>e.chat.messages.some(e=>e.sender.type===Dt.GUEST)),o=()=>{i.enabled&&!i.opener&&a?r(Zi(`CLOSE_CHAT`)):r(Ji())};return(0,Q.jsxs)(`div`,{className:R(fd.header,e),...n,children:[(0,Q.jsx)(`div`,{className:fd.logoContainer,children:(0,Q.jsx)(`div`,{className:fd.logo})}),(0,Q.jsxs)(`div`,{className:fd.actions,children:[(0,Q.jsx)(gd,{chatStarted:t,hasGuestMessages:a}),(0,Q.jsx)(dd,{onClick:o})]})]})},vd={chatwindow:`_chatwindow_rkbir_1`,chatwindowWithAside:`_chatwindowWithAside_rkbir_21`},yd=()=>{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},bd={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`},xd=({onClick:e})=>{let t=Sa();return(0,Q.jsx)(`button`,{className:R(bd.closeSourceInfosButton,`tooltip--bottom-left`),"aria-label":t(`source-infos.close`),"data-title":t(`source-infos.close`),tabIndex:0,onClick:e,children:(0,Q.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,fill:`currentColor`,viewBox:`0 0 256 256`,children:(0,Q.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`})})})},Sd=(0,x.forwardRef)(({sourceInfos:e,onClose:t,...n},r)=>(0,Q.jsxs)(`div`,{className:bd.sourceHeader,...n,ref:r,children:[(0,Q.jsx)(`div`,{children:e?(0,Q.jsx)(`p`,{id:`source-info-title`,children:e.title}):(0,Q.jsx)(`p`,{children:`\xA0`})}),(0,Q.jsx)(xd,{onClick:t})]})),Cd=({loading:e})=>(0,Q.jsx)(`div`,{className:bd.highlightLoader,children:e&&(0,Q.jsx)(`div`,{className:bd.highlightLoaderLoading})}),{entries:wd,setPrototypeOf:Td,isFrozen:Ed,getPrototypeOf:Dd,getOwnPropertyDescriptor:Od}=Object,{freeze:kd,seal:Ad,create:jd}=Object,{apply:Md,construct:Nd}=typeof Reflect<`u`&&Reflect;kd||=function(e){return e},Ad||=function(e){return e},Md||=function(e,t){var n=[...arguments].slice(2);return e.apply(t,n)},Nd||=function(e){return new e(...[...arguments].slice(1))};var Pd=Jd(Array.prototype.forEach),Fd=Jd(Array.prototype.lastIndexOf),Id=Jd(Array.prototype.pop),Ld=Jd(Array.prototype.push),Rd=Jd(Array.prototype.splice),zd=Jd(String.prototype.toLowerCase),Bd=Jd(String.prototype.toString),Vd=Jd(String.prototype.match),Hd=Jd(String.prototype.replace),Ud=Jd(String.prototype.indexOf),Wd=Jd(String.prototype.trim),Gd=Jd(Object.prototype.hasOwnProperty),Kd=Jd(RegExp.prototype.test),qd=Yd(TypeError);function Jd(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);var n=[...arguments].slice(1);return Md(e,t,n)}}function Yd(e){return function(){return Nd(e,[...arguments])}}function Xd(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:zd;Td&&Td(e,null);let r=t.length;for(;r--;){let i=t[r];if(typeof i==`string`){let e=n(i);e!==i&&(Ed(t)||(t[r]=e),i=e)}e[i]=!0}return e}function Zd(e){for(let t=0;t<e.length;t++)Gd(e,t)||(e[t]=null);return e}function Qd(e){let t=jd(null);for(let[n,r]of wd(e))Gd(e,n)&&(Array.isArray(r)?t[n]=Zd(r):r&&typeof r==`object`&&r.constructor===Object?t[n]=Qd(r):t[n]=r);return t}function $d(e,t){for(;e!==null;){let n=Od(e,t);if(n){if(n.get)return Jd(n.get);if(typeof n.value==`function`)return Jd(n.value)}e=Dd(e)}function n(){return null}return n}var ef=kd(`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(`.`)),tf=kd(`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(`.`)),nf=kd([`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`]),rf=kd([`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`]),af=kd(`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(`.`)),of=kd([`maction`,`maligngroup`,`malignmark`,`mlongdiv`,`mscarries`,`mscarry`,`msgroup`,`mstack`,`msline`,`msrow`,`semantics`,`annotation`,`annotation-xml`,`mprescripts`,`none`]),sf=kd([`#text`]),cf=kd(`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(`.`)),lf=kd(`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(`.`)),uf=kd(`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(`.`)),df=kd([`xlink:href`,`xml:id`,`xlink:title`,`xml:space`,`xmlns:xlink`]),ff=Ad(/\{\{[\w\W]*|[\w\W]*\}\}/gm),pf=Ad(/<%[\w\W]*|[\w\W]*%>/gm),mf=Ad(/\$\{[\w\W]*/gm),hf=Ad(/^data-[\-\w.\u00B7-\uFFFF]+$/),gf=Ad(/^aria-[\-\w]+$/),_f=Ad(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),vf=Ad(/^(?:\w+script|data):/i),yf=Ad(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),bf=Ad(/^html$/i),xf=Ad(/^[a-z][.\w]*(-[.\w]+)+$/i),Sf=Object.freeze({__proto__:null,ARIA_ATTR:gf,ATTR_WHITESPACE:yf,CUSTOM_ELEMENT:xf,DATA_ATTR:hf,DOCTYPE_NAME:bf,ERB_EXPR:pf,IS_ALLOWED_URI:_f,IS_SCRIPT_OR_DATA:vf,MUSTACHE_EXPR:ff,TMPLIT_EXPR:mf}),Cf={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,progressingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},wf=function(){return typeof window>`u`?null:window},Tf=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}},Ef=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function Df(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:wf(),t=e=>Df(e);if(t.version=`3.3.3`,t.removed=[],!e||!e.document||e.document.nodeType!==Cf.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=$d(m,`cloneNode`),g=$d(m,`remove`),_=$d(m,`nextSibling`),v=$d(m,`childNodes`),y=$d(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=Ef();t.isSupported=typeof wd==`function`&&typeof y==`function`&&S&&S.createHTMLDocument!==void 0;let{MUSTACHE_EXPR:O,ERB_EXPR:ee,TMPLIT_EXPR:k,DATA_ATTR:te,ARIA_ATTR:A,IS_SCRIPT_OR_DATA:ne,ATTR_WHITESPACE:re,CUSTOM_ELEMENT:ie}=Sf,{IS_ALLOWED_URI:j}=Sf,M=null,ae=Xd({},[...ef,...tf,...nf,...af,...sf]),N=null,oe=Xd({},[...cf,...lf,...uf,...df]),P=Object.seal(jd(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}})),F=null,I=null,se=Object.seal(jd(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=Xd({},[`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=Xd({},[`audio`,`video`,`img`,`source`,`image`,`track`]),Oe=null,ke=Xd({},[`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=Xd({},[Ae,je,Me],Bd),Le=Xd({},[`mi`,`mo`,`mn`,`ms`,`mtext`]),Re=Xd({},[`annotation-xml`]),ze=Xd({},[`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=Qd(e),Be=Ve.indexOf(e.PARSER_MEDIA_TYPE)===-1?`text/html`:e.PARSER_MEDIA_TYPE,He=Be===`application/xhtml+xml`?Bd:zd,M=Gd(e,`ALLOWED_TAGS`)?Xd({},e.ALLOWED_TAGS,He):ae,N=Gd(e,`ALLOWED_ATTR`)?Xd({},e.ALLOWED_ATTR,He):oe,Fe=Gd(e,`ALLOWED_NAMESPACES`)?Xd({},e.ALLOWED_NAMESPACES,Bd):Ie,Oe=Gd(e,`ADD_URI_SAFE_ATTR`)?Xd(Qd(ke),e.ADD_URI_SAFE_ATTR,He):ke,Ee=Gd(e,`ADD_DATA_URI_TAGS`)?Xd(Qd(De),e.ADD_DATA_URI_TAGS,He):De,we=Gd(e,`FORBID_CONTENTS`)?Xd({},e.FORBID_CONTENTS,He):Te,F=Gd(e,`FORBID_TAGS`)?Xd({},e.FORBID_TAGS,He):Qd({}),I=Gd(e,`FORBID_ATTR`)?Xd({},e.FORBID_ATTR,He):Qd({}),Ce=Gd(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,j=e.ALLOWED_URI_REGEXP||_f,Ne=e.NAMESPACE||Me,Le=e.MATHML_TEXT_INTEGRATION_POINTS||Le,Re=e.HTML_INTEGRATION_POINTS||Re,P=e.CUSTOM_ELEMENT_HANDLING||{},e.CUSTOM_ELEMENT_HANDLING&&Ge(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(P.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&Ge(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(P.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements==`boolean`&&(P.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),fe&&(le=!1),_e&&(ge=!0),Ce&&(M=Xd({},sf),N=jd(null),Ce.html===!0&&(Xd(M,ef),Xd(N,cf)),Ce.svg===!0&&(Xd(M,tf),Xd(N,lf),Xd(N,df)),Ce.svgFilters===!0&&(Xd(M,nf),Xd(N,lf),Xd(N,df)),Ce.mathMl===!0&&(Xd(M,af),Xd(N,uf),Xd(N,df))),Gd(e,`ADD_TAGS`)||(se.tagCheck=null),Gd(e,`ADD_ATTR`)||(se.attributeCheck=null),e.ADD_TAGS&&(typeof e.ADD_TAGS==`function`?se.tagCheck=e.ADD_TAGS:(M===ae&&(M=Qd(M)),Xd(M,e.ADD_TAGS,He))),e.ADD_ATTR&&(typeof e.ADD_ATTR==`function`?se.attributeCheck=e.ADD_ATTR:(N===oe&&(N=Qd(N)),Xd(N,e.ADD_ATTR,He))),e.ADD_URI_SAFE_ATTR&&Xd(Oe,e.ADD_URI_SAFE_ATTR,He),e.FORBID_CONTENTS&&(we===Te&&(we=Qd(we)),Xd(we,e.FORBID_CONTENTS,He)),e.ADD_FORBID_CONTENTS&&(we===Te&&(we=Qd(we)),Xd(we,e.ADD_FORBID_CONTENTS,He)),xe&&(M[`#text`]=!0),pe&&Xd(M,[`html`,`head`,`body`]),M.table&&(Xd(M,[`tbody`]),delete F.tbody),e.TRUSTED_TYPES_POLICY){if(typeof e.TRUSTED_TYPES_POLICY.createHTML!=`function`)throw qd(`TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.`);if(typeof e.TRUSTED_TYPES_POLICY.createScriptURL!=`function`)throw qd(`TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.`);b=e.TRUSTED_TYPES_POLICY,x=b.createHTML(``)}else b===void 0&&(b=Tf(p,i)),b!==null&&typeof x==`string`&&(x=b.createHTML(``));kd&&kd(e),Ue=e}},qe=Xd({},[...tf,...nf,...rf]),Je=Xd({},[...af,...of]),Ye=function(e){let t=y(e);(!t||!t.tagName)&&(t={namespaceURI:Ne,tagName:`template`});let n=zd(e.tagName),r=zd(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){Ld(t.removed,{element:e});try{y(e).removeChild(e)}catch{g(e)}},Ze=function(e,n){try{Ld(t.removed,{attribute:n.getAttributeNode(e),from:n})}catch{Ld(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){Pd(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:M}),L&&e.hasChildNodes()&&!tt(e.firstElementChild)&&Kd(/<[/\w!]/g,e.innerHTML)&&Kd(/<[/\w!]/g,e.textContent)||e.nodeType===Cf.progressingInstruction||L&&e.nodeType===Cf.comment&&Kd(/<[/\w]/g,e.data))return Xe(e),!0;if(!(se.tagCheck instanceof Function&&se.tagCheck(r))&&(!M[r]||F[r])){if(!F[r]&&it(r)&&(P.tagNameCheck instanceof RegExp&&Kd(P.tagNameCheck,r)||P.tagNameCheck instanceof Function&&P.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`)&&Kd(/<\/no(script|embed|frames)/i,e.innerHTML)?(Xe(e),!0):(fe&&e.nodeType===Cf.text&&(n=e.textContent,Pd([O,ee,k],e=>{n=Hd(n,e,` `)}),e.textContent!==n&&(Ld(t.removed,{element:e.cloneNode()}),e.textContent=n)),nt(D.afterSanitizeElements,e,null),!1)},R=function(e,t,r){if(I[t]||ye&&(t===`id`||t===`name`)&&(r in n||r in We))return!1;if(!(le&&!I[t]&&Kd(te,t))&&!(ce&&Kd(A,t))&&!(se.attributeCheck instanceof Function&&se.attributeCheck(t,e))){if(!N[t]||I[t]){if(!(it(e)&&(P.tagNameCheck instanceof RegExp&&Kd(P.tagNameCheck,e)||P.tagNameCheck instanceof Function&&P.tagNameCheck(e))&&(P.attributeNameCheck instanceof RegExp&&Kd(P.attributeNameCheck,t)||P.attributeNameCheck instanceof Function&&P.attributeNameCheck(t,e))||t===`is`&&P.allowCustomizedBuiltInElements&&(P.tagNameCheck instanceof RegExp&&Kd(P.tagNameCheck,r)||P.tagNameCheck instanceof Function&&P.tagNameCheck(r))))return!1}else if(!Oe[t]&&!Kd(j,Hd(r,re,``))&&!((t===`src`||t===`xlink:href`||t===`href`)&&e!==`script`&&Ud(r,`data:`)===0&&Ee[e])&&!(ue&&!Kd(ne,Hd(r,re,``)))&&r)return!1}return!0},it=function(e){return e!==`annotation-xml`&&Vd(e,ie)},at=function(e){nt(D.beforeSanitizeAttributes,e,null);let{attributes:n}=e;if(!n||et(e))return;let r={attrName:``,attrValue:``,keepAttr:!0,allowedAttributes:N,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:Wd(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&&Kd(/((--!?|])>)|<\/(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&&Kd(/\/>/i,u)){Ze(a,e);continue}fe&&Pd([O,ee,k],e=>{u=Hd(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):Id(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 qd(`dirty is not a string, aborting`)}else throw qd(`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(!M[t]||F[t])throw qd(`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===Cf.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(N.shadowroot||N.shadowrootmode)&&(l=E.call(r,l,!0)),l}let d=pe?i.outerHTML:i.innerHTML;return pe&&M[`!doctype`]&&i.ownerDocument&&i.ownerDocument.doctype&&i.ownerDocument.doctype.name&&Kd(bf,i.ownerDocument.doctype.name)&&(d=`<!DOCTYPE `+i.ownerDocument.doctype.name+`>
64
+ `+d),fe&&Pd([O,ee,k],e=>{d=Hd(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`&&Ld(D[e],t)},t.removeHook=function(e,t){if(t!==void 0){let n=Fd(D[e],t);return n===-1?void 0:Rd(D[e],n,1)[0]}return Id(D[e])},t.removeHooks=function(e){D[e]=[]},t.removeAllHooks=function(){D=Ef()},t}var Of=Df(),kf=({onClose:e})=>{let t=Sa();return(0,Q.jsxs)(`div`,{className:bd.highlightLoadingInfo,onClick:e,children:[(0,Q.jsx)(`div`,{className:bd.highlightLoadingInfoCloseIcon,children:(0,Q.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,fill:`currentColor`,viewBox:`0 0 256 256`,children:(0,Q.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,Q.jsxs)(`div`,{className:bd.highlightLoadingInfoInnerContainer,children:[(0,Q.jsxs)(`div`,{className:bd.highlightLoadingInfoContent,children:[(0,Q.jsx)(`h3`,{children:t(`source-infos.highlight-loading.title`)}),(0,Q.jsx)(`p`,{children:t(`source-infos.highlight-loading.description`)})]}),(0,Q.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,fill:`#000000`,viewBox:`0 0 256 256`,children:(0,Q.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`})})]})]})},Af=({title:e,href:t,children:n})=>(0,Q.jsx)(`a`,{href:t,title:e,target:`_blank`,rel:`noopener noreferrer`,children:n}),jf=({className:e,children:t,...n})=>(0,Q.jsx)(`a`,{className:R(hl.button,hl.buttonDefault,e),type:`button`,role:`button`,...n,children:t}),Mf=e=>(0,Q.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,fill:`currentColor`,viewBox:`0 0 256 256`,...e,children:(0,Q.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`})}),Nf=({type:e,...t})=>{switch(e){case`WEBSITE`:return(0,Q.jsx)(fl,{...t});case`PDF`:return(0,Q.jsx)(dl,{...t});case`DOCX`:return(0,Q.jsx)(ll,{...t});case`TEXT`:return(0,Q.jsx)(Mf,{...t});default:return(0,Q.jsx)(ul,{...t})}},Pf=({url:e,knowledgeBaseType:t})=>{let n=Sa();return(0,Q.jsx)(jf,{className:bd.openSourceButton,href:e,target:`_blank`,children:(0,Q.jsxs)(`div`,{className:bd.sourceButtonLabel,children:[(0,Q.jsx)(`div`,{className:bd.sourceHeaderIcon,children:(0,Q.jsx)(Nf,{type:t})}),(0,Q.jsx)(`p`,{children:n(`source-infos.open-source`)})]})})},Ff=({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=Of.sanitize(e,{USE_PROFILES:{html:!0}});return(0,Q.jsxs)(Q.Fragment,{children:[(0,Q.jsxs)(`div`,{className:R(bd.sourceContent,Ol.markdown),children:[(0,Q.jsx)(Uc,{options:{overrides:{a:Af}},children:o}),i&&(0,Q.jsx)(kf,{onClose:()=>a(!1)})]}),(0,Q.jsx)(Pf,{url:t,knowledgeBaseType:n})]})},If=``+new URL(`undraw_fixing-bugs-D_eYxJc6.svg`,import.meta.url).href,Lf=()=>{let e=Sa();return(0,Q.jsxs)(`div`,{className:bd.loadingError,children:[(0,Q.jsx)(`h1`,{children:e(`source-infos.error.title`)}),(0,Q.jsx)(`img`,{src:If,title:e(`source-infos.error.title`)}),(0,Q.jsx)(`p`,{children:e(`source-infos.error.info`)})]})},Rf=()=>(0,Q.jsx)(`div`,{className:bd.loadingSourceInfos,children:(0,Q.jsx)(`svg`,{className:bd.loading,xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,fill:`currentColor`,viewBox:`0 0 256 256`,children:(0,Q.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 zf({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 Bf=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},Vf=()=>{let e=ba(),t=xa(e=>e.chat.sourceInfos),n=yd(),r=(0,x.useRef)(null),i=Bf(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(ta()))},[e,n]),{ref:o,dragOffsetY:s}=zf({onClose:a,sourceInfos:t});return t?(0,Q.jsx)(`dialog`,{ref:r,className:R(bd.sourceInfos,i?bd.waitForLoading:t.type===`loading`?bd.loadingContent:``),style:n&&s?{transform:`translateY(${s}px)`}:{},onClose:a,autoFocus:!0,role:`dialog`,"aria-labelledby":`source-info-title`,children:i?null:(0,Q.jsxs)(Q.Fragment,{children:[(0,Q.jsx)(Sd,{ref:o,tabIndex:-1,sourceInfos:t.type===`loaded`?t:void 0,onClose:a}),t.type===`loading`?(0,Q.jsx)(Rf,{}):t.type===`loading-error`?(0,Q.jsx)(Lf,{}):(0,Q.jsxs)(Q.Fragment,{children:[(0,Q.jsx)(Cd,{loading:!t.highlighted}),(0,Q.jsx)(Ff,{sourceInfos:t})]})]})}):null},Hf={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`},Uf=({name:e,label:t,defaultValue:n,required:r,onChange:i})=>(0,Q.jsxs)(`label`,{className:R(Hf.checkbox,`chat__startScreen__checkbox`),htmlFor:e,children:[(0,Q.jsx)(`input`,{type:`checkbox`,id:e,name:e,defaultChecked:n===`true`,required:r,onChange:e=>{i(e.currentTarget.checked?`true`:`false`)}}),(0,Q.jsx)(`div`,{children:t})]}),Wf=({type:e,name:t,label:n,defaultValue:r,placeholder:i,required:a,multiple:o,min:s,max:c,pattern:l,onChange:u})=>(0,Q.jsxs)(`label`,{className:R(Hf.input,`chat__startScreen__input`),htmlFor:t,children:[(0,Q.jsx)(`div`,{className:R(Hf.inputLabel),children:n}),(0,Q.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)}})]}),Gf=({name:e,value:t,label:n,defaultChecked:r,required:i,onChange:a})=>{let o=`${e}-${t}`;return(0,Q.jsxs)(`label`,{className:R(Hf.radio,`chat__startScreen__radio`),htmlFor:o,children:[(0,Q.jsx)(`input`,{id:o,type:`radio`,name:e,value:t,defaultChecked:r,required:i,onChange:e=>{a(e.target.value)}}),(0,Q.jsx)(`span`,{className:R(Hf.label),children:n})]})},Kf=({name:e,label:t,defaultValue:n,required:r,multiple:i,options:a,onChange:o})=>(0,Q.jsxs)(`label`,{className:R(Hf.select,`chat__startScreen__select`),htmlFor:e,children:[(0,Q.jsx)(`div`,{className:R(Hf.selectLabel),children:t}),(0,Q.jsx)(`div`,{className:R(Hf.selectWrapper),children:(0,Q.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,Q.jsx)(`option`,{value:e,selected:t===n,children:t}))})})]}),qf=`start-screen.intro`,Jf=`start-screen.start-chat`,Yf=`start-screen.waiting-for-login`,Xf=`start-screen.footnote`,Zf=`start-screen.form`,Qf=`${Zf}.fields`,$f=()=>{let e=Sa(),t=ba(),n=Dl(),r=xa(e=>e.startScreen.loginRequestToken),i=xa(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(Hi()),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?Vi({loginRequestToken:yn(),formValues:e}):Ri({formValues:e}))},c=e(qf),l=e(r?Yf:Jf),u=e(Xf),d=(0,x.useMemo)(()=>e(Qf)?.split(`;`).map(e=>e.trim())??[],[e(Qf)]);(0,x.useEffect)(()=>{d.length&&Object.keys(a).length===0&&o(d.reduce((t,n)=>({...t,[n]:tp(n,e)}),{}))},[e,d,a]);let f=e=>{e.preventDefault(),s()},p=e=>t=>{o(n=>({...n,[e]:{...n[e],value:t}}))};return(0,Q.jsxs)(`form`,{onSubmit:f,className:R(Hf.container,u&&Hf.containerWithFootnote,`chat__startScreen`),children:[(0,Q.jsxs)(`div`,{className:R(Hf.body,`chat__startScreen__body`),children:[c&&(0,Q.jsx)(`div`,{className:R(Hf.intro,`chat__startScreen__intro`),children:(0,Q.jsx)(Uc,{options:{overrides:{a:ep}},children:c})}),(0,Q.jsx)(`div`,{className:R(Hf.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,Q.jsx)(`div`,{className:R(Hf.formField,`chat__startScreen__field`),children:(()=>{switch(e){case`radio`:return(0,Q.jsxs)(Q.Fragment,{children:[(0,Q.jsx)(`div`,{children:n}),Object.entries(a||{}).map(([e,n])=>(0,Q.jsx)(Gf,{name:t,value:e,label:n,defaultChecked:e===i,required:o,onChange:p(t)},e))]});case`checkbox`:return(0,Q.jsx)(Uf,{name:t,label:n,defaultValue:i,required:o,onChange:p(t)});case`select`:return(0,Q.jsx)(Kf,{name:t,label:n,defaultValue:i,required:o,multiple:s,options:a,onChange:p(t)});default:return(0,Q.jsx)(Wf,{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,Q.jsxs)(`div`,{className:R(Hf.footer,`chat__startScreen__footer`),children:[(0,Q.jsxs)(nu,{type:`submit`,className:Hf.startChatButton,disabled:!!r,children:[!!r&&(0,Q.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,fill:`currentColor`,viewBox:`0 0 256 256`,className:Hf.spinner,children:(0,Q.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,Q.jsx)(`div`,{children:l})]}),u&&(0,Q.jsx)(`div`,{className:Hf.footnote,children:(0,Q.jsx)(Uc,{options:{overrides:{a:ep}},children:u})})]})]})},ep=({title:e,href:t,children:n})=>(0,Q.jsx)(`a`,{href:t,title:e,target:`_blank`,rel:`noopener noreferrer`,children:n}),tp=(e,t)=>{let n=t(`${Zf}.${e}.type`)||`text`,r=t(`${Zf}.${e}.required`)===`true`,i=t(`${Zf}.${e}.multiple`)===`true`,a=t(`${Zf}.${e}.placeholder`),o=t(`${Zf}.${e}.label`)||``,s=t(`${Zf}.${e}.defaultValue`),c=t(`${Zf}.${e}.min`),l=t(`${Zf}.${e}.max`),u=t(`${Zf}.${e}.pattern`),d=rp(t(`${Zf}.${e}.options`));return{name:e,label:o,placeholder:a,value:np(n,s,d)||``,defaultValue:s,options:d,type:n,required:r,multiple:i,min:c,max:l,pattern:u}},np=(e,t,n)=>t||e===`select`&&Object.keys(n)[0]||``,rp=(e=``)=>e.split(`;`).map(e=>e.trim()).reduce((e,t)=>{let[n,r]=t.split(`:`).map(e=>e.trim());return{...e,[n]:r}},{}),ip=()=>{let e=xa(e=>e.intl.locale);(0,x.useEffect)(()=>{window.document.documentElement.lang=e},[e])},ap={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`},op=({clientName:e})=>{ip();let t=ba(),n=xa(e=>e.intl.messages),r=Sa(),i=xa(e=>e.settings.enableStartScreen),a=xa(e=>e.startScreen.startScreenStatus),o=xa(e=>e.connection.queryString),s=xa(e=>e.settings.allowedEmbedOrigins),c=(0,x.useMemo)(()=>new URLSearchParams(o||`?`).get(`cssClassName`),[o]);(0,x.useEffect)(()=>{let n=new URLSearchParams(o||``);t(da(e,Object.fromEntries(n.entries())))},[e,o,t]),(0,x.useEffect)(()=>{let e=e=>{if(!e.data?.type||!Object.values(ap).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 ap.TRIGGER_ACTION:t(e.data.action);break;case ap.TRIGGER_STORY:t(nn(e.data.story));break;case ap.ON_CHAT_WINDOW_OPEN:t({type:`webclient.chatwindow.opened`});break;case ap.ON_CHAT_WINDOW_CLOSE:t({type:`webclient.chatwindow.closed`});break;case ap.CHAT_MESSAGE_FROM_GUEST:t(It(e.data.text));break;case ap.RESTART_CHAT:t(va());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,Q.jsx)(`div`,{className:R(vd.chatwindow,u&&vd.chatwindowWithAside,`chat__chatwindow`,c),children:l?null:u?(0,Q.jsxs)(Q.Fragment,{children:[(0,Q.jsx)(`header`,{children:(0,Q.jsx)(_d,{chatStarted:!0})}),(0,Q.jsx)(`main`,{children:(0,Q.jsx)(cd,{clientName:e})}),(0,Q.jsx)(`aside`,{children:(0,Q.jsx)(Vf,{})})]}):(0,Q.jsxs)(Q.Fragment,{children:[(0,Q.jsx)(`header`,{children:(0,Q.jsx)(_d,{chatStarted:!1})}),(0,Q.jsx)(`main`,{children:(0,Q.jsx)($f,{})})]})})},sp=()=>{let e=Dl(),t=yd();return(0,Q.jsx)(`div`,{className:R([it.app,t?`chat__small`:`chat__large`]),children:(0,Q.jsx)(op,{clientName:e})})},cp={"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:
65
+
66
+ - Der Chatverlauf wird im EU-Raum gespeichert und kann nur von autorisierten Personen eingesehen werden.
67
+ - 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`},lp={"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:
68
+
69
+ - The chat history is stored in the EU area and can only be viewed by authorized personnel.
70
+ - 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 up(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,up(a,o,n)):r[o]=String(a)}return r}var dp={"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:
71
+
72
+ - L'historique du chat est stocké dans l'espace UE et ne peut être consulté que par les personnes autorisées.
73
+ - 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`},fp={"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:
74
+
75
+ - La cronologia delle chat è memorizzata nell'area UE e può essere visualizzata solo da persone autorizzate.
76
+ - 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`},pp=[`de`,`en`,`fr`,`it`],mp={locale:`de`,messages:cp},hp=(e,t)=>{if(pp.includes(e)){let n=gp(e),r=up(t);return{...n,...r}}return t},gp=e=>{switch(e.toString()){case`en`:return lp;case`fr`:return dp;case`it`:return fp;default:return cp}},_p=(e=vp,t)=>{switch(t.type){case ra:return Object.assign({},e,{connectionState:Ca.CONNECTING});case ia:return Object.assign({},e,{connectionState:Ca.CONNECTED});case aa:return Object.assign({},e,{connectionState:Ca.DISCONNECTED});case oa:return Object.assign({},e,{connectionState:Ca.RECONNECTED});case sa:return Object.assign({},e,{sessionId:t.sessionId});case ca:return Object.assign({},e,{sessionId:t.payload.sessionId,userId:t.payload.userId});case la:return Object.assign({},e,{sessionId:void 0});default:return e}},vp={connectionState:Ca.DISCONNECTED,sessionId:void 0,userId:void 0,queryString:window.location.search},yp=(e=wp,t)=>{switch(t.type){case Wi:return wp;case ca:return xp({type:`webclient.chat.started`}),e;case la:return xp({type:`webclient.chat.ended`}),e;case at:return Object.assign({},e,{isBotTyping:!0});case ot:return Object.assign({},e,{isBotTyping:!1});case st:case ct:return bp(e,t.message,t.meta);case lt:{xp(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 Rt:{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 Lt:return xp(t.message),e;case dt:return xp(t.event),e;case gt:return Object.assign({},e,{drawerContentUrl:t.payload.parameters.contentUrl});case _t:return Object.assign({},e,{drawerContentUrl:void 0});case vt:return Object.assign({},e,{locale:t.payload.locale});case Kt:return xp(t),e;case qt:return xp(t),{...e,conversationRating:{...e.conversationRating,opener:void 0}};case Bt:{let n=new St(t.transcription,new Et);return bp(e,Object.assign({},n,{_id:yn()}))}case mt:{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 Vt:{let n={enabled:!0,rating:t.payload.rating};return Object.assign({},e,{conversationRating:n})}case ht:{let n={...e.conversationRating,rating:t.payload};return Object.assign({},e,{conversationRating:n})}case Ki:{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 qi:{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 Ut:{let{highlighted:n}=t.payload;return e.sourceInfos?.type===`loaded`&&n?{...e,sourceInfos:{...e.sourceInfos,highlighted:!0}}:{...e,sourceInfos:{type:`loading-error`}}}case Ht:{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 Gt:return{...e,sourceInfos:void 0};case Gi:return{...e,showTranscriptMailOverlay:!e.showTranscriptMailOverlay,conversationRating:{...e.conversationRating,opener:void 0}};default:return e}},bp=(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:[]})},xp=e=>{if(Cp()){let t=Sp();window.top?.postMessage(e,t)}else e.type===`webclient.change.url`&&window.open(e.url)},Sp=()=>{try{return document.referrer?new URL(document.referrer).origin:`*`}catch{return`*`}},Cp=()=>typeof window<`u`&&window.self!==window.top,wp={messages:[],quickReplies:[],isBotTyping:!1,showTranscriptMailOverlay:!1,conversationRating:{enabled:!1}},Tp=Si({name:`intl`,initialState:mp,reducers:{updateIntl:(e,t)=>{e.locale=t.payload.language,e.messages=t.payload.messages}}}),{updateIntl:Ep}=Tp.actions,Dp=Tp.reducer,Op=Si({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:kp}=Op.actions,Ap=Op.reducer,jp=kn({settings:Ap,chat:yp,startScreen:Ui,connection:_p,intl:Dp}),Mp=`bubble-chat`,Np=`state-last-saved-at`,Pp=`state`,Fp=e=>{try{if(!Rp()||Lp(zp(e,Np)))return;{let t=zp(e,Pp);if(t===null)return;let n=JSON.parse(t),r=n.connection?.queryString;if(r!==void 0&&!Hp(r,window.location.search)){console.log(`Ignoring persisted state due to different query string`);return}else return n}}catch(e){console.error(e);return}},Ip=(e,t)=>{try{Bp(e,Pp,JSON.stringify(t)),Bp(e,Np,new Date().toISOString())}catch(e){console.error(e)}},Lp=e=>{if(e===null)return!1;let t=new Date(e);return t.setHours(t.getHours()+12),new Date>t},Rp=()=>typeof localStorage<`u`,zp=(e,t)=>{let n=Vp(e,t);return localStorage.getItem(n)},Bp=(e,t,n)=>{let r=Vp(e,t);return localStorage.setItem(r,n)},Vp=(e,t)=>`${Mp}-${e}-${t}`,Hp=(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},Up=Object.create(null);Up.open=`0`,Up.close=`1`,Up.ping=`2`,Up.pong=`3`,Up.message=`4`,Up.upgrade=`5`,Up.noop=`6`;var Wp=Object.create(null);Object.keys(Up).forEach(e=>{Wp[Up[e]]=e});var Gp={type:`error`,data:`parser error`},Kp=typeof Blob==`function`||typeof Blob<`u`&&Object.prototype.toString.call(Blob)===`[object BlobConstructor]`,qp=typeof ArrayBuffer==`function`,Jp=e=>typeof ArrayBuffer.isView==`function`?ArrayBuffer.isView(e):e&&e.buffer instanceof ArrayBuffer,Yp=({type:e,data:t},n,r)=>Kp&&t instanceof Blob?n?r(t):Xp(t,r):qp&&(t instanceof ArrayBuffer||Jp(t))?n?r(t):Xp(new Blob([t]),r):r(Up[e]+(t||``)),Xp=(e,t)=>{let n=new FileReader;return n.onload=function(){let e=n.result.split(`,`)[1];t(`b`+(e||``))},n.readAsDataURL(e)};function Zp(e){return e instanceof Uint8Array?e:e instanceof ArrayBuffer?new Uint8Array(e):new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}var Qp;function $p(e,t){if(Kp&&e.data instanceof Blob)return e.data.arrayBuffer().then(Zp).then(t);if(qp&&(e.data instanceof ArrayBuffer||Jp(e.data)))return t(Zp(e.data));Yp(e,!1,e=>{Qp||=new TextEncoder,t(Qp.encode(e))})}var em=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/`,tm=typeof Uint8Array>`u`?[]:new Uint8Array(256);for(let e=0;e<64;e++)tm[em.charCodeAt(e)]=e;var nm=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=tm[e.charCodeAt(r)],o=tm[e.charCodeAt(r+1)],s=tm[e.charCodeAt(r+2)],c=tm[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},rm=typeof ArrayBuffer==`function`,im=(e,t)=>{if(typeof e!=`string`)return{type:`message`,data:om(e,t)};let n=e.charAt(0);return n===`b`?{type:`message`,data:am(e.substring(1),t)}:Wp[n]?e.length>1?{type:Wp[n],data:e.substring(1)}:{type:Wp[n]}:Gp},am=(e,t)=>rm?om(nm(e),t):{base64:!0,data:e},om=(e,t)=>{switch(t){case`blob`:return e instanceof Blob?e:new Blob([e]);default:return e instanceof ArrayBuffer?e:e.buffer}},sm=``,cm=(e,t)=>{let n=e.length,r=Array(n),i=0;e.forEach((e,a)=>{Yp(e,!1,e=>{r[a]=e,++i===n&&t(r.join(sm))})})},lm=(e,t)=>{let n=e.split(sm),r=[];for(let e=0;e<n.length;e++){let i=im(n[e],t);if(r.push(i),i.type===`error`)break}return r};function um(){return new TransformStream({transform(e,t){$p(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 dm;function fm(e){return e.reduce((e,t)=>e+t.length,0)}function pm(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 mm(e,t){dm||=new TextDecoder;let n=[],r=0,i=-1,a=!1;return new TransformStream({transform(o,s){for(n.push(o);;){if(r===0){if(fm(n)<1)break;let e=pm(n,1);a=(e[0]&128)==128,i=e[0]&127,r=i<126?3:i===126?1:2}else if(r===1){if(fm(n)<2)break;let e=pm(n,2);i=new DataView(e.buffer,e.byteOffset,e.length).getUint16(0),r=3}else if(r===2){if(fm(n)<8)break;let e=pm(n,8),t=new DataView(e.buffer,e.byteOffset,e.length),a=t.getUint32(0);if(a>2**21-1){s.enqueue(Gp);break}i=a*2**32+t.getUint32(4),r=3}else{if(fm(n)<i)break;let e=pm(n,i);s.enqueue(im(a?e:dm.decode(e),t)),r=0}if(i===0||i>e){s.enqueue(Gp);break}}}})}function hm(e){if(e)return gm(e)}function gm(e){for(var t in hm.prototype)e[t]=hm.prototype[t];return e}hm.prototype.on=hm.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks[`$`+e]=this._callbacks[`$`+e]||[]).push(t),this},hm.prototype.once=function(e,t){function n(){this.off(e,n),t.apply(this,arguments)}return n.fn=t,this.on(e,n),this},hm.prototype.off=hm.prototype.removeListener=hm.prototype.removeAllListeners=hm.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},hm.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},hm.prototype.emitReserved=hm.prototype.emit,hm.prototype.listeners=function(e){return this._callbacks=this._callbacks||{},this._callbacks[`$`+e]||[]},hm.prototype.hasListeners=function(e){return!!this.listeners(e).length};var _m=typeof Promise==`function`&&typeof Promise.resolve==`function`?e=>Promise.resolve().then(e):(e,t)=>t(e,0),vm=typeof self<`u`?self:typeof window<`u`?window:Function(`return this`)(),ym=`arraybuffer`;function bm(e,...t){return t.reduce((t,n)=>(e.hasOwnProperty(n)&&(t[n]=e[n]),t),{})}var xm=vm.setTimeout,Sm=vm.clearTimeout;function Cm(e,t){t.useNativeTimers?(e.setTimeoutFn=xm.bind(vm),e.clearTimeoutFn=Sm.bind(vm)):(e.setTimeoutFn=vm.setTimeout.bind(vm),e.clearTimeoutFn=vm.clearTimeout.bind(vm))}var wm=1.33;function Tm(e){return typeof e==`string`?Em(e):Math.ceil((e.byteLength||e.size)*wm)}function Em(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 Dm(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)}function Om(e){let t=``;for(let n in e)e.hasOwnProperty(n)&&(t.length&&(t+=`&`),t+=encodeURIComponent(n)+`=`+encodeURIComponent(e[n]));return t}function km(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 Am=class extends Error{constructor(e,t,n){super(e),this.description=t,this.context=n,this.type=`TransportError`}},jm=class extends hm{constructor(e){super(),this.writable=!1,Cm(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 Am(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=im(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=Om(e);return t.length?`?`+t:``}},Mm=class extends jm{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){lm(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,cm(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]=Dm()),!this.supportsBinary&&!t.sid&&(t.b64=1),this.createUri(e,t)}},Nm=!1;try{Nm=typeof XMLHttpRequest<`u`&&`withCredentials`in new XMLHttpRequest}catch{}var Pm=Nm;function Fm(){}var Im=class extends Mm{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}},Lm=class e extends hm{constructor(e,t,n){super(),this.createRequest=e,Cm(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=bm(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=Fm,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(Lm.requestsCount=0,Lm.requests={},typeof document<`u`){if(typeof attachEvent==`function`)attachEvent(`onunload`,Rm);else if(typeof addEventListener==`function`){let e=`onpagehide`in vm?`pagehide`:`unload`;addEventListener(e,Rm,!1)}}function Rm(){for(let e in Lm.requests)Lm.requests.hasOwnProperty(e)&&Lm.requests[e].abort()}var zm=(function(){let e=Vm({xdomain:!1});return e&&e.responseType!==null})(),Bm=class extends Im{constructor(e){super(e);let t=e&&e.forceBase64;this.supportsBinary=zm&&!t}request(e={}){return Object.assign(e,{xd:this.xd},this.opts),new Lm(Vm,this.uri(),e)}};function Vm(e){let t=e.xdomain;try{if(typeof XMLHttpRequest<`u`&&(!t||Pm))return new XMLHttpRequest}catch{}if(!t)try{return new vm[[`Active`,`Object`].join(`X`)](`Microsoft.XMLHTTP`)}catch{}}var Hm=typeof navigator<`u`&&typeof navigator.product==`string`&&navigator.product.toLowerCase()===`reactnative`,Um=class extends jm{get name(){return`websocket`}doOpen(){let e=this.uri(),t=this.opts.protocols,n=Hm?{}:bm(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;Yp(n,this.supportsBinary,e=>{try{this.doWrite(n,e)}catch{}r&&_m(()=>{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]=Dm()),this.supportsBinary||(t.b64=1),this.createUri(e,t)}},Wm=vm.WebSocket||vm.MozWebSocket,Gm={websocket:class extends Um{createSocket(e,t,n){return Hm?new Wm(e,t,n):t?new Wm(e,t):new Wm(e)}doWrite(e,t){this.ws.send(t)}},webtransport:class extends jm{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=mm(2**53-1,this.socket.binaryType),n=e.readable.pipeThrough(t).getReader(),r=um();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&&_m(()=>{this.writable=!0,this.emitReserved(`drain`)},this.setTimeoutFn)})}}doClose(){var e;(e=this._transport)==null||e.close()}},polling:Bm},Km=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,qm=[`source`,`protocol`,`authority`,`userInfo`,`user`,`password`,`host`,`port`,`relative`,`path`,`directory`,`file`,`query`,`anchor`];function Jm(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=Km.exec(e||``),a={},o=14;for(;o--;)a[qm[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=Ym(a,a.path),a.queryKey=Xm(a,a.query),a}function Ym(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 Xm(e,t){let n={};return t.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(e,t,r){t&&(n[t]=r)}),n}var Zm=typeof addEventListener==`function`&&typeof removeEventListener==`function`,Qm=[];Zm&&addEventListener(`offline`,()=>{Qm.forEach(e=>e())},!1);var $m=class e extends hm{constructor(e,t){if(super(),this.binaryType=ym,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=Jm(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=Jm(t.host).host);Cm(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=km(this.opts.query)),Zm&&(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`})},Qm.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,_m(()=>{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(),Zm&&(this._beforeunloadEventListener&&removeEventListener(`beforeunload`,this._beforeunloadEventListener,!1),this._offlineEventListener)){let e=Qm.indexOf(this._offlineEventListener);e!==-1&&Qm.splice(e,1)}this.readyState=`closed`,this.id=null,this.emitReserved(`close`,e,t),this.writeBuffer=[],this._prevBufferLen=0}}};$m.protocol=4;var eh=class extends $m{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;$m.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;$m.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}},th=class extends eh{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=>Gm[e]).filter(e=>!!e)),super(e,n)}};th.protocol;function nh(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=Jm(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 rh=typeof ArrayBuffer==`function`,ih=e=>typeof ArrayBuffer.isView==`function`?ArrayBuffer.isView(e):e.buffer instanceof ArrayBuffer,ah=Object.prototype.toString,oh=typeof Blob==`function`||typeof Blob<`u`&&ah.call(Blob)===`[object BlobConstructor]`,sh=typeof File==`function`||typeof File<`u`&&ah.call(File)===`[object FileConstructor]`;function ch(e){return rh&&(e instanceof ArrayBuffer||ih(e))||oh&&e instanceof Blob||sh&&e instanceof File}function lh(e,t){if(!e||typeof e!=`object`)return!1;if(Array.isArray(e)){for(let t=0,n=e.length;t<n;t++)if(lh(e[t]))return!0;return!1}if(ch(e))return!0;if(e.toJSON&&typeof e.toJSON==`function`&&arguments.length===1)return lh(e.toJSON(),!0);for(let t in e)if(Object.prototype.hasOwnProperty.call(e,t)&&lh(e[t]))return!0;return!1}function uh(e){let t=[],n=e.data,r=e;return r.data=dh(n,t),r.attachments=t.length,{packet:r,buffers:t}}function dh(e,t){if(!e)return e;if(ch(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]=dh(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]=dh(e[r],t));return n}return e}function fh(e,t){return e.data=ph(e.data,t),delete e.attachments,e}function ph(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]=ph(e[n],t);else if(typeof e==`object`)for(let n in e)Object.prototype.hasOwnProperty.call(e,n)&&(e[n]=ph(e[n],t));return e}var mh=s({Decoder:()=>vh,Encoder:()=>_h,PacketType:()=>gh,isPacketValid:()=>Th,protocol:()=>5}),hh=[`connect`,`connect_error`,`disconnect`,`disconnecting`,`newListener`,`removeListener`],gh;(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`})(gh||={});var _h=class{constructor(e){this.replacer=e}encode(e){return(e.type===gh.EVENT||e.type===gh.ACK)&&lh(e)?this.encodeAsBinary({type:e.type===gh.EVENT?gh.BINARY_EVENT:gh.BINARY_ACK,nsp:e.nsp,data:e.data,id:e.id}):[this.encodeAsString(e)]}encodeAsString(e){let t=``+e.type;return(e.type===gh.BINARY_EVENT||e.type===gh.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=uh(e),n=this.encodeAsString(t.packet),r=t.buffers;return r.unshift(n),r}},vh=class e extends hm{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===gh.BINARY_EVENT;n||t.type===gh.BINARY_ACK?(t.type=n?gh.EVENT:gh.ACK,this.reconstructor=new yh(t),t.attachments===0&&super.emitReserved(`decoded`,t)):super.emitReserved(`decoded`,t)}else if(ch(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(gh[r.type]===void 0)throw Error(`unknown packet type `+r.type);if(r.type===gh.BINARY_EVENT||r.type===gh.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(!xh(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 gh.CONNECT:return Ch(t);case gh.DISCONNECT:return t===void 0;case gh.CONNECT_ERROR:return typeof t==`string`||Ch(t);case gh.EVENT:case gh.BINARY_EVENT:return Array.isArray(t)&&(typeof t[0]==`number`||typeof t[0]==`string`&&hh.indexOf(t[0])===-1);case gh.ACK:case gh.BINARY_ACK:return Array.isArray(t)}}destroy(){this.reconstructor&&=(this.reconstructor.finishedReconstruction(),null)}},yh=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=fh(this.reconPack,this.buffers);return this.finishedReconstruction(),e}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}};function bh(e){return typeof e==`string`}var xh=Number.isInteger||function(e){return typeof e==`number`&&isFinite(e)&&Math.floor(e)===e};function Sh(e){return e===void 0||xh(e)}function Ch(e){return Object.prototype.toString.call(e)===`[object Object]`}function wh(e,t){switch(e){case gh.CONNECT:return t===void 0||Ch(t);case gh.DISCONNECT:return t===void 0;case gh.EVENT:return Array.isArray(t)&&(typeof t[0]==`number`||typeof t[0]==`string`&&hh.indexOf(t[0])===-1);case gh.ACK:return Array.isArray(t);case gh.CONNECT_ERROR:return typeof t==`string`||Ch(t);default:return!1}}function Th(e){return bh(e.nsp)&&Sh(e.id)&&wh(e.type,e.data)}function Eh(e,t,n){return e.on(t,n),function(){e.off(t,n)}}var Dh=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1}),Oh=class extends hm{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=[Eh(e,`open`,this.onopen.bind(this)),Eh(e,`packet`,this.onpacket.bind(this)),Eh(e,`error`,this.onerror.bind(this)),Eh(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(Dh.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:gh.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:gh.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 gh.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 gh.EVENT:case gh.BINARY_EVENT:this.onevent(e);break;case gh.ACK:case gh.BINARY_ACK:this.onack(e);break;case gh.DISCONNECT:this.ondisconnect();break;case gh.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:gh.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:gh.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 kh(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}kh.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},kh.prototype.reset=function(){this.attempts=0},kh.prototype.setMin=function(e){this.ms=e},kh.prototype.setMax=function(e){this.max=e},kh.prototype.setJitter=function(e){this.jitter=e};var Ah=class extends hm{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,Cm(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 kh({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||mh;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 th(this.uri,this.opts);let t=this.engine,n=this;this._readyState=`opening`,this.skipReconnect=!1;let r=Eh(t,`open`,function(){n.onopen(),e&&e()}),i=t=>{this.cleanup(),this._readyState=`closed`,this.emitReserved(`error`,t),e?e(t):this.maybeReconnectOnOpen()},a=Eh(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(Eh(e,`ping`,this.onping.bind(this)),Eh(e,`data`,this.ondata.bind(this)),Eh(e,`error`,this.onerror.bind(this)),Eh(e,`close`,this.onclose.bind(this)),Eh(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){_m(()=>{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 Oh(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)}},jh={};function Mh(e,t){typeof e==`object`&&(t=e,e=void 0),t||={};let n=nh(e,t.path||`/socket.io`),r=n.source,i=n.id,a=n.path,o=jh[i]&&a in jh[i].nsps,s=t.forceNew||t[`force new connection`]||!1===t.multiplex||o,c;return s?c=new Ah(r,t):(jh[i]||(jh[i]=new Ah(r,t)),c=jh[i]),n.query&&!t.query&&(t.query=n.queryKey),c.socket(n.path,t)}Object.assign(Mh,{Manager:Ah,Socket:Oh,io:Mh,connect:Mh});var Nh=[lt,dt,at,ot,ft,...ua,...Yt,`@@localize/SET_ACTIVE_LANGUAGE`,`@@localize/ADD_TRANSLATION_FOR_LANGUAGE`],Ph=({dispatch:e,getState:t})=>n=>{let r=null;return i=>{let a=n(i);if(i.type===`CONNECT`)r?.disconnect(),e(pa()),r=Mh({path:`/website-messenger/${i.clientName}/socket.io`,query:i.querystrings}),r.on(`action`,e),r.on(`connect`,()=>e(ma())),r.on(`disconnect`,()=>e(ha())),r.on(`reconnect`,()=>e(ga())),r.on(`set-translations`,(t,n)=>{e(Ep({language:t,messages:hp(t,n)}))}),r.on(`set-settings`,t=>{e(kp(t))}),r.on(`enable-conversation-rating`,t=>e(en(t))),r.on(`speech-transcription`,t=>e(Zt(t))),r.on(`restore-client-state`,t=>{e(fa(t.sessionId)),e(rn(t.messages))}),r.on(`expand-window`,({devices:t,initial:n=!1})=>{e({type:Kt,devices:t,initial:n})}),r.on(`restart-chat`,()=>{e(va())}),r.on(`login-success`,t=>{e(zi({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===`core.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=bn(),n=new URL(`/${encodeURIComponent(t)}/transcript-pdf/${encodeURIComponent(e)}`,window.location.origin);window.location.href=n.toString()}}else Nh.indexOf(i.type)===-1&&i.meta===void 0&&r&&r.emit(`action`,JSON.stringify(i));return a}},Fh=bn(),Ih=mi({middleware:e=>e().concat(Ph),reducer:jp,preloadedState:{...Fp(Fh),intl:mp}});Ih.subscribe(el(()=>{let e=Ih.getState();Ip(Fh,{connection:e.connection,startScreen:e.startScreen})},1e3)),(0,b.createRoot)(document.getElementById(`root`)).render((0,Q.jsx)(qe,{store:Ih,children:(0,Q.jsx)(sp,{})}));
77
+ //# sourceMappingURL=index-NBFbfbl3.js.map