@botfabrik/engine-webclient 4.104.12 → 4.104.15

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,62 +1,62 @@
1
- (function(){const l=document.createElement("link").relList;if(l&&l.supports&&l.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const f of o)if(f.type==="childList")for(const d of f.addedNodes)d.tagName==="LINK"&&d.rel==="modulepreload"&&r(d)}).observe(document,{childList:!0,subtree:!0});function i(o){const f={};return o.integrity&&(f.integrity=o.integrity),o.referrerPolicy&&(f.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?f.credentials="include":o.crossOrigin==="anonymous"?f.credentials="omit":f.credentials="same-origin",f}function r(o){if(o.ep)return;o.ep=!0;const f=i(o);fetch(o.href,f)}})();function G2(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var yd={exports:{}},as={};var h1;function Z2(){if(h1)return as;h1=1;var t=Symbol.for("react.transitional.element"),l=Symbol.for("react.fragment");function i(r,o,f){var d=null;if(f!==void 0&&(d=""+f),o.key!==void 0&&(d=""+o.key),"key"in o){f={};for(var g in o)g!=="key"&&(f[g]=o[g])}else f=o;return o=f.ref,{$$typeof:t,type:r,key:d,ref:o!==void 0?o:null,props:f}}return as.Fragment=l,as.jsx=i,as.jsxs=i,as}var p1;function F2(){return p1||(p1=1,yd.exports=Z2()),yd.exports}var b=F2(),_d={exports:{}},ls={},Sd={exports:{}},Ed={};var g1;function Y2(){return g1||(g1=1,(function(t){function l(j,le){var G=j.length;j.push(le);e:for(;0<G;){var be=G-1>>>1,ge=j[be];if(0<o(ge,le))j[be]=le,j[G]=ge,G=be;else break e}}function i(j){return j.length===0?null:j[0]}function r(j){if(j.length===0)return null;var le=j[0],G=j.pop();if(G!==le){j[0]=G;e:for(var be=0,ge=j.length,O=ge>>>1;be<O;){var J=2*(be+1)-1,ee=j[J],oe=J+1,ne=j[oe];if(0>o(ee,G))oe<ge&&0>o(ne,ee)?(j[be]=ne,j[oe]=G,be=oe):(j[be]=ee,j[J]=G,be=J);else if(oe<ge&&0>o(ne,G))j[be]=ne,j[oe]=G,be=oe;else break e}}return le}function o(j,le){var G=j.sortIndex-le.sortIndex;return G!==0?G:j.id-le.id}if(t.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var f=performance;t.unstable_now=function(){return f.now()}}else{var d=Date,g=d.now();t.unstable_now=function(){return d.now()-g}}var h=[],p=[],v=1,S=null,y=3,T=!1,A=!1,_=!1,w=!1,x=typeof setTimeout=="function"?setTimeout:null,C=typeof clearTimeout=="function"?clearTimeout:null,D=typeof setImmediate<"u"?setImmediate:null;function k(j){for(var le=i(p);le!==null;){if(le.callback===null)r(p);else if(le.startTime<=j)r(p),le.sortIndex=le.expirationTime,l(h,le);else break;le=i(p)}}function U(j){if(_=!1,k(j),!A)if(i(h)!==null)A=!0,H||(H=!0,P());else{var le=i(p);le!==null&&de(U,le.startTime-j)}}var H=!1,L=-1,Y=5,X=-1;function W(){return w?!0:!(t.unstable_now()-X<Y)}function K(){if(w=!1,H){var j=t.unstable_now();X=j;var le=!0;try{e:{A=!1,_&&(_=!1,C(L),L=-1),T=!0;var G=y;try{t:{for(k(j),S=i(h);S!==null&&!(S.expirationTime>j&&W());){var be=S.callback;if(typeof be=="function"){S.callback=null,y=S.priorityLevel;var ge=be(S.expirationTime<=j);if(j=t.unstable_now(),typeof ge=="function"){S.callback=ge,k(j),le=!0;break t}S===i(h)&&r(h),k(j)}else r(h);S=i(h)}if(S!==null)le=!0;else{var O=i(p);O!==null&&de(U,O.startTime-j),le=!1}}break e}finally{S=null,y=G,T=!1}le=void 0}}finally{le?P():H=!1}}}var P;if(typeof D=="function")P=function(){D(K)};else if(typeof MessageChannel<"u"){var fe=new MessageChannel,he=fe.port2;fe.port1.onmessage=K,P=function(){he.postMessage(null)}}else P=function(){x(K,0)};function de(j,le){L=x(function(){j(t.unstable_now())},le)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(j){j.callback=null},t.unstable_forceFrameRate=function(j){0>j||125<j?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):Y=0<j?Math.floor(1e3/j):5},t.unstable_getCurrentPriorityLevel=function(){return y},t.unstable_next=function(j){switch(y){case 1:case 2:case 3:var le=3;break;default:le=y}var G=y;y=le;try{return j()}finally{y=G}},t.unstable_requestPaint=function(){w=!0},t.unstable_runWithPriority=function(j,le){switch(j){case 1:case 2:case 3:case 4:case 5:break;default:j=3}var G=y;y=j;try{return le()}finally{y=G}},t.unstable_scheduleCallback=function(j,le,G){var be=t.unstable_now();switch(typeof G=="object"&&G!==null?(G=G.delay,G=typeof G=="number"&&0<G?be+G:be):G=be,j){case 1:var ge=-1;break;case 2:ge=250;break;case 5:ge=1073741823;break;case 4:ge=1e4;break;default:ge=5e3}return ge=G+ge,j={id:v++,callback:le,priorityLevel:j,startTime:G,expirationTime:ge,sortIndex:-1},G>be?(j.sortIndex=G,l(p,j),i(h)===null&&j===i(p)&&(_?(C(L),L=-1):_=!0,de(U,G-be))):(j.sortIndex=ge,l(h,j),A||T||(A=!0,H||(H=!0,P()))),j},t.unstable_shouldYield=W,t.unstable_wrapCallback=function(j){var le=y;return function(){var G=y;y=le;try{return j.apply(this,arguments)}finally{y=G}}}})(Ed)),Ed}var m1;function K2(){return m1||(m1=1,Sd.exports=Y2()),Sd.exports}var wd={exports:{}},Me={};var v1;function J2(){if(v1)return Me;v1=1;var t=Symbol.for("react.transitional.element"),l=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),f=Symbol.for("react.consumer"),d=Symbol.for("react.context"),g=Symbol.for("react.forward_ref"),h=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),S=Symbol.for("react.activity"),y=Symbol.iterator;function T(O){return O===null||typeof O!="object"?null:(O=y&&O[y]||O["@@iterator"],typeof O=="function"?O:null)}var A={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},_=Object.assign,w={};function x(O,J,ee){this.props=O,this.context=J,this.refs=w,this.updater=ee||A}x.prototype.isReactComponent={},x.prototype.setState=function(O,J){if(typeof O!="object"&&typeof O!="function"&&O!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,O,J,"setState")},x.prototype.forceUpdate=function(O){this.updater.enqueueForceUpdate(this,O,"forceUpdate")};function C(){}C.prototype=x.prototype;function D(O,J,ee){this.props=O,this.context=J,this.refs=w,this.updater=ee||A}var k=D.prototype=new C;k.constructor=D,_(k,x.prototype),k.isPureReactComponent=!0;var U=Array.isArray;function H(){}var L={H:null,A:null,T:null,S:null},Y=Object.prototype.hasOwnProperty;function X(O,J,ee){var oe=ee.ref;return{$$typeof:t,type:O,key:J,ref:oe!==void 0?oe:null,props:ee}}function W(O,J){return X(O.type,J,O.props)}function K(O){return typeof O=="object"&&O!==null&&O.$$typeof===t}function P(O){var J={"=":"=0",":":"=2"};return"$"+O.replace(/[=:]/g,function(ee){return J[ee]})}var fe=/\/+/g;function he(O,J){return typeof O=="object"&&O!==null&&O.key!=null?P(""+O.key):J.toString(36)}function de(O){switch(O.status){case"fulfilled":return O.value;case"rejected":throw O.reason;default:switch(typeof O.status=="string"?O.then(H,H):(O.status="pending",O.then(function(J){O.status==="pending"&&(O.status="fulfilled",O.value=J)},function(J){O.status==="pending"&&(O.status="rejected",O.reason=J)})),O.status){case"fulfilled":return O.value;case"rejected":throw O.reason}}throw O}function j(O,J,ee,oe,ne){var ce=typeof O;(ce==="undefined"||ce==="boolean")&&(O=null);var me=!1;if(O===null)me=!0;else switch(ce){case"bigint":case"string":case"number":me=!0;break;case"object":switch(O.$$typeof){case t:case l:me=!0;break;case v:return me=O._init,j(me(O._payload),J,ee,oe,ne)}}if(me)return ne=ne(O),me=oe===""?"."+he(O,0):oe,U(ne)?(ee="",me!=null&&(ee=me.replace(fe,"$&/")+"/"),j(ne,J,ee,"",function(Be){return Be})):ne!=null&&(K(ne)&&(ne=W(ne,ee+(ne.key==null||O&&O.key===ne.key?"":(""+ne.key).replace(fe,"$&/")+"/")+me)),J.push(ne)),1;me=0;var Se=oe===""?".":oe+":";if(U(O))for(var we=0;we<O.length;we++)oe=O[we],ce=Se+he(oe,we),me+=j(oe,J,ee,ce,ne);else if(we=T(O),typeof we=="function")for(O=we.call(O),we=0;!(oe=O.next()).done;)oe=oe.value,ce=Se+he(oe,we++),me+=j(oe,J,ee,ce,ne);else if(ce==="object"){if(typeof O.then=="function")return j(de(O),J,ee,oe,ne);throw J=String(O),Error("Objects are not valid as a React child (found: "+(J==="[object Object]"?"object with keys {"+Object.keys(O).join(", ")+"}":J)+"). If you meant to render a collection of children, use an array instead.")}return me}function le(O,J,ee){if(O==null)return O;var oe=[],ne=0;return j(O,oe,"","",function(ce){return J.call(ee,ce,ne++)}),oe}function G(O){if(O._status===-1){var J=O._result;J=J(),J.then(function(ee){(O._status===0||O._status===-1)&&(O._status=1,O._result=ee)},function(ee){(O._status===0||O._status===-1)&&(O._status=2,O._result=ee)}),O._status===-1&&(O._status=0,O._result=J)}if(O._status===1)return O._result.default;throw O._result}var be=typeof reportError=="function"?reportError:function(O){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var J=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof O=="object"&&O!==null&&typeof O.message=="string"?String(O.message):String(O),error:O});if(!window.dispatchEvent(J))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",O);return}console.error(O)},ge={map:le,forEach:function(O,J,ee){le(O,function(){J.apply(this,arguments)},ee)},count:function(O){var J=0;return le(O,function(){J++}),J},toArray:function(O){return le(O,function(J){return J})||[]},only:function(O){if(!K(O))throw Error("React.Children.only expected to receive a single React element child.");return O}};return Me.Activity=S,Me.Children=ge,Me.Component=x,Me.Fragment=i,Me.Profiler=o,Me.PureComponent=D,Me.StrictMode=r,Me.Suspense=h,Me.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=L,Me.__COMPILER_RUNTIME={__proto__:null,c:function(O){return L.H.useMemoCache(O)}},Me.cache=function(O){return function(){return O.apply(null,arguments)}},Me.cacheSignal=function(){return null},Me.cloneElement=function(O,J,ee){if(O==null)throw Error("The argument must be a React element, but you passed "+O+".");var oe=_({},O.props),ne=O.key;if(J!=null)for(ce in J.key!==void 0&&(ne=""+J.key),J)!Y.call(J,ce)||ce==="key"||ce==="__self"||ce==="__source"||ce==="ref"&&J.ref===void 0||(oe[ce]=J[ce]);var ce=arguments.length-2;if(ce===1)oe.children=ee;else if(1<ce){for(var me=Array(ce),Se=0;Se<ce;Se++)me[Se]=arguments[Se+2];oe.children=me}return X(O.type,ne,oe)},Me.createContext=function(O){return O={$$typeof:d,_currentValue:O,_currentValue2:O,_threadCount:0,Provider:null,Consumer:null},O.Provider=O,O.Consumer={$$typeof:f,_context:O},O},Me.createElement=function(O,J,ee){var oe,ne={},ce=null;if(J!=null)for(oe in J.key!==void 0&&(ce=""+J.key),J)Y.call(J,oe)&&oe!=="key"&&oe!=="__self"&&oe!=="__source"&&(ne[oe]=J[oe]);var me=arguments.length-2;if(me===1)ne.children=ee;else if(1<me){for(var Se=Array(me),we=0;we<me;we++)Se[we]=arguments[we+2];ne.children=Se}if(O&&O.defaultProps)for(oe in me=O.defaultProps,me)ne[oe]===void 0&&(ne[oe]=me[oe]);return X(O,ce,ne)},Me.createRef=function(){return{current:null}},Me.forwardRef=function(O){return{$$typeof:g,render:O}},Me.isValidElement=K,Me.lazy=function(O){return{$$typeof:v,_payload:{_status:-1,_result:O},_init:G}},Me.memo=function(O,J){return{$$typeof:p,type:O,compare:J===void 0?null:J}},Me.startTransition=function(O){var J=L.T,ee={};L.T=ee;try{var oe=O(),ne=L.S;ne!==null&&ne(ee,oe),typeof oe=="object"&&oe!==null&&typeof oe.then=="function"&&oe.then(H,be)}catch(ce){be(ce)}finally{J!==null&&ee.types!==null&&(J.types=ee.types),L.T=J}},Me.unstable_useCacheRefresh=function(){return L.H.useCacheRefresh()},Me.use=function(O){return L.H.use(O)},Me.useActionState=function(O,J,ee){return L.H.useActionState(O,J,ee)},Me.useCallback=function(O,J){return L.H.useCallback(O,J)},Me.useContext=function(O){return L.H.useContext(O)},Me.useDebugValue=function(){},Me.useDeferredValue=function(O,J){return L.H.useDeferredValue(O,J)},Me.useEffect=function(O,J){return L.H.useEffect(O,J)},Me.useEffectEvent=function(O){return L.H.useEffectEvent(O)},Me.useId=function(){return L.H.useId()},Me.useImperativeHandle=function(O,J,ee){return L.H.useImperativeHandle(O,J,ee)},Me.useInsertionEffect=function(O,J){return L.H.useInsertionEffect(O,J)},Me.useLayoutEffect=function(O,J){return L.H.useLayoutEffect(O,J)},Me.useMemo=function(O,J){return L.H.useMemo(O,J)},Me.useOptimistic=function(O,J){return L.H.useOptimistic(O,J)},Me.useReducer=function(O,J,ee){return L.H.useReducer(O,J,ee)},Me.useRef=function(O){return L.H.useRef(O)},Me.useState=function(O){return L.H.useState(O)},Me.useSyncExternalStore=function(O,J,ee){return L.H.useSyncExternalStore(O,J,ee)},Me.useTransition=function(){return L.H.useTransition()},Me.version="19.2.1",Me}var b1;function Ku(){return b1||(b1=1,wd.exports=J2()),wd.exports}var Td={exports:{}},Ln={};var y1;function P2(){if(y1)return Ln;y1=1;var t=Ku();function l(h){var p="https://react.dev/errors/"+h;if(1<arguments.length){p+="?args[]="+encodeURIComponent(arguments[1]);for(var v=2;v<arguments.length;v++)p+="&args[]="+encodeURIComponent(arguments[v])}return"Minified React error #"+h+"; visit "+p+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function i(){}var r={d:{f:i,r:function(){throw Error(l(522))},D:i,C:i,L:i,m:i,X:i,S:i,M:i},p:0,findDOMNode:null},o=Symbol.for("react.portal");function f(h,p,v){var S=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:o,key:S==null?null:""+S,children:h,containerInfo:p,implementation:v}}var d=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function g(h,p){if(h==="font")return"";if(typeof p=="string")return p==="use-credentials"?p:""}return Ln.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,Ln.createPortal=function(h,p){var v=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!p||p.nodeType!==1&&p.nodeType!==9&&p.nodeType!==11)throw Error(l(299));return f(h,p,null,v)},Ln.flushSync=function(h){var p=d.T,v=r.p;try{if(d.T=null,r.p=2,h)return h()}finally{d.T=p,r.p=v,r.d.f()}},Ln.preconnect=function(h,p){typeof h=="string"&&(p?(p=p.crossOrigin,p=typeof p=="string"?p==="use-credentials"?p:"":void 0):p=null,r.d.C(h,p))},Ln.prefetchDNS=function(h){typeof h=="string"&&r.d.D(h)},Ln.preinit=function(h,p){if(typeof h=="string"&&p&&typeof p.as=="string"){var v=p.as,S=g(v,p.crossOrigin),y=typeof p.integrity=="string"?p.integrity:void 0,T=typeof p.fetchPriority=="string"?p.fetchPriority:void 0;v==="style"?r.d.S(h,typeof p.precedence=="string"?p.precedence:void 0,{crossOrigin:S,integrity:y,fetchPriority:T}):v==="script"&&r.d.X(h,{crossOrigin:S,integrity:y,fetchPriority:T,nonce:typeof p.nonce=="string"?p.nonce:void 0})}},Ln.preinitModule=function(h,p){if(typeof h=="string")if(typeof p=="object"&&p!==null){if(p.as==null||p.as==="script"){var v=g(p.as,p.crossOrigin);r.d.M(h,{crossOrigin:v,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0})}}else p==null&&r.d.M(h)},Ln.preload=function(h,p){if(typeof h=="string"&&typeof p=="object"&&p!==null&&typeof p.as=="string"){var v=p.as,S=g(v,p.crossOrigin);r.d.L(h,v,{crossOrigin:S,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0,type:typeof p.type=="string"?p.type:void 0,fetchPriority:typeof p.fetchPriority=="string"?p.fetchPriority:void 0,referrerPolicy:typeof p.referrerPolicy=="string"?p.referrerPolicy:void 0,imageSrcSet:typeof p.imageSrcSet=="string"?p.imageSrcSet:void 0,imageSizes:typeof p.imageSizes=="string"?p.imageSizes:void 0,media:typeof p.media=="string"?p.media:void 0})}},Ln.preloadModule=function(h,p){if(typeof h=="string")if(p){var v=g(p.as,p.crossOrigin);r.d.m(h,{as:typeof p.as=="string"&&p.as!=="script"?p.as:void 0,crossOrigin:v,integrity:typeof p.integrity=="string"?p.integrity:void 0})}else r.d.m(h)},Ln.requestFormReset=function(h){r.d.r(h)},Ln.unstable_batchedUpdates=function(h,p){return h(p)},Ln.useFormState=function(h,p,v){return d.H.useFormState(h,p,v)},Ln.useFormStatus=function(){return d.H.useHostTransitionStatus()},Ln.version="19.2.1",Ln}var _1;function W2(){if(_1)return Td.exports;_1=1;function t(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(l){console.error(l)}}return t(),Td.exports=P2(),Td.exports}var S1;function $2(){if(S1)return ls;S1=1;var t=K2(),l=Ku(),i=W2();function r(e){var n="https://react.dev/errors/"+e;if(1<arguments.length){n+="?args[]="+encodeURIComponent(arguments[1]);for(var a=2;a<arguments.length;a++)n+="&args[]="+encodeURIComponent(arguments[a])}return"Minified React error #"+e+"; visit "+n+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function o(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function f(e){var n=e,a=e;if(e.alternate)for(;n.return;)n=n.return;else{e=n;do n=e,(n.flags&4098)!==0&&(a=n.return),e=n.return;while(e)}return n.tag===3?a:null}function d(e){if(e.tag===13){var n=e.memoizedState;if(n===null&&(e=e.alternate,e!==null&&(n=e.memoizedState)),n!==null)return n.dehydrated}return null}function g(e){if(e.tag===31){var n=e.memoizedState;if(n===null&&(e=e.alternate,e!==null&&(n=e.memoizedState)),n!==null)return n.dehydrated}return null}function h(e){if(f(e)!==e)throw Error(r(188))}function p(e){var n=e.alternate;if(!n){if(n=f(e),n===null)throw Error(r(188));return n!==e?null:e}for(var a=e,s=n;;){var u=a.return;if(u===null)break;var c=u.alternate;if(c===null){if(s=u.return,s!==null){a=s;continue}break}if(u.child===c.child){for(c=u.child;c;){if(c===a)return h(u),e;if(c===s)return h(u),n;c=c.sibling}throw Error(r(188))}if(a.return!==s.return)a=u,s=c;else{for(var m=!1,E=u.child;E;){if(E===a){m=!0,a=u,s=c;break}if(E===s){m=!0,s=u,a=c;break}E=E.sibling}if(!m){for(E=c.child;E;){if(E===a){m=!0,a=c,s=u;break}if(E===s){m=!0,s=c,a=u;break}E=E.sibling}if(!m)throw Error(r(189))}}if(a.alternate!==s)throw Error(r(190))}if(a.tag!==3)throw Error(r(188));return a.stateNode.current===a?e:n}function v(e){var n=e.tag;if(n===5||n===26||n===27||n===6)return e;for(e=e.child;e!==null;){if(n=v(e),n!==null)return n;e=e.sibling}return null}var S=Object.assign,y=Symbol.for("react.element"),T=Symbol.for("react.transitional.element"),A=Symbol.for("react.portal"),_=Symbol.for("react.fragment"),w=Symbol.for("react.strict_mode"),x=Symbol.for("react.profiler"),C=Symbol.for("react.consumer"),D=Symbol.for("react.context"),k=Symbol.for("react.forward_ref"),U=Symbol.for("react.suspense"),H=Symbol.for("react.suspense_list"),L=Symbol.for("react.memo"),Y=Symbol.for("react.lazy"),X=Symbol.for("react.activity"),W=Symbol.for("react.memo_cache_sentinel"),K=Symbol.iterator;function P(e){return e===null||typeof e!="object"?null:(e=K&&e[K]||e["@@iterator"],typeof e=="function"?e:null)}var fe=Symbol.for("react.client.reference");function he(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===fe?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case _:return"Fragment";case x:return"Profiler";case w:return"StrictMode";case U:return"Suspense";case H:return"SuspenseList";case X:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case A:return"Portal";case D:return e.displayName||"Context";case C:return(e._context.displayName||"Context")+".Consumer";case k:var n=e.render;return e=e.displayName,e||(e=n.displayName||n.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case L:return n=e.displayName||null,n!==null?n:he(e.type)||"Memo";case Y:n=e._payload,e=e._init;try{return he(e(n))}catch{}}return null}var de=Array.isArray,j=l.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,le=i.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,G={pending:!1,data:null,method:null,action:null},be=[],ge=-1;function O(e){return{current:e}}function J(e){0>ge||(e.current=be[ge],be[ge]=null,ge--)}function ee(e,n){ge++,be[ge]=e.current,e.current=n}var oe=O(null),ne=O(null),ce=O(null),me=O(null);function Se(e,n){switch(ee(ce,n),ee(ne,e),ee(oe,null),n.nodeType){case 9:case 11:e=(e=n.documentElement)&&(e=e.namespaceURI)?j0(e):0;break;default:if(e=n.tagName,n=n.namespaceURI)n=j0(n),e=B0(n,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}J(oe),ee(oe,e)}function we(){J(oe),J(ne),J(ce)}function Be(e){e.memoizedState!==null&&ee(me,e);var n=oe.current,a=B0(n,e.type);n!==a&&(ee(ne,e),ee(oe,a))}function St(e){ne.current===e&&(J(oe),J(ne)),me.current===e&&(J(me),qr._currentValue=G)}var Ae,mt;function Tt(e){if(Ae===void 0)try{throw Error()}catch(a){var n=a.stack.trim().match(/\n( *(at )?)/);Ae=n&&n[1]||"",mt=-1<a.stack.indexOf(`
1
+ (function(){const l=document.createElement("link").relList;if(l&&l.supports&&l.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const f of o)if(f.type==="childList")for(const d of f.addedNodes)d.tagName==="LINK"&&d.rel==="modulepreload"&&r(d)}).observe(document,{childList:!0,subtree:!0});function i(o){const f={};return o.integrity&&(f.integrity=o.integrity),o.referrerPolicy&&(f.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?f.credentials="include":o.crossOrigin==="anonymous"?f.credentials="omit":f.credentials="same-origin",f}function r(o){if(o.ep)return;o.ep=!0;const f=i(o);fetch(o.href,f)}})();function Z2(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var yd={exports:{}},as={};var h1;function F2(){if(h1)return as;h1=1;var t=Symbol.for("react.transitional.element"),l=Symbol.for("react.fragment");function i(r,o,f){var d=null;if(f!==void 0&&(d=""+f),o.key!==void 0&&(d=""+o.key),"key"in o){f={};for(var g in o)g!=="key"&&(f[g]=o[g])}else f=o;return o=f.ref,{$$typeof:t,type:r,key:d,ref:o!==void 0?o:null,props:f}}return as.Fragment=l,as.jsx=i,as.jsxs=i,as}var p1;function Y2(){return p1||(p1=1,yd.exports=F2()),yd.exports}var b=Y2(),_d={exports:{}},ls={},Sd={exports:{}},Ed={};var g1;function K2(){return g1||(g1=1,(function(t){function l(j,le){var G=j.length;j.push(le);e:for(;0<G;){var be=G-1>>>1,ge=j[be];if(0<o(ge,le))j[be]=le,j[G]=ge,G=be;else break e}}function i(j){return j.length===0?null:j[0]}function r(j){if(j.length===0)return null;var le=j[0],G=j.pop();if(G!==le){j[0]=G;e:for(var be=0,ge=j.length,O=ge>>>1;be<O;){var J=2*(be+1)-1,ee=j[J],oe=J+1,ne=j[oe];if(0>o(ee,G))oe<ge&&0>o(ne,ee)?(j[be]=ne,j[oe]=G,be=oe):(j[be]=ee,j[J]=G,be=J);else if(oe<ge&&0>o(ne,G))j[be]=ne,j[oe]=G,be=oe;else break e}}return le}function o(j,le){var G=j.sortIndex-le.sortIndex;return G!==0?G:j.id-le.id}if(t.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var f=performance;t.unstable_now=function(){return f.now()}}else{var d=Date,g=d.now();t.unstable_now=function(){return d.now()-g}}var h=[],p=[],v=1,S=null,y=3,T=!1,A=!1,_=!1,w=!1,x=typeof setTimeout=="function"?setTimeout:null,C=typeof clearTimeout=="function"?clearTimeout:null,D=typeof setImmediate<"u"?setImmediate:null;function k(j){for(var le=i(p);le!==null;){if(le.callback===null)r(p);else if(le.startTime<=j)r(p),le.sortIndex=le.expirationTime,l(h,le);else break;le=i(p)}}function U(j){if(_=!1,k(j),!A)if(i(h)!==null)A=!0,H||(H=!0,P());else{var le=i(p);le!==null&&de(U,le.startTime-j)}}var H=!1,L=-1,Y=5,X=-1;function W(){return w?!0:!(t.unstable_now()-X<Y)}function K(){if(w=!1,H){var j=t.unstable_now();X=j;var le=!0;try{e:{A=!1,_&&(_=!1,C(L),L=-1),T=!0;var G=y;try{t:{for(k(j),S=i(h);S!==null&&!(S.expirationTime>j&&W());){var be=S.callback;if(typeof be=="function"){S.callback=null,y=S.priorityLevel;var ge=be(S.expirationTime<=j);if(j=t.unstable_now(),typeof ge=="function"){S.callback=ge,k(j),le=!0;break t}S===i(h)&&r(h),k(j)}else r(h);S=i(h)}if(S!==null)le=!0;else{var O=i(p);O!==null&&de(U,O.startTime-j),le=!1}}break e}finally{S=null,y=G,T=!1}le=void 0}}finally{le?P():H=!1}}}var P;if(typeof D=="function")P=function(){D(K)};else if(typeof MessageChannel<"u"){var fe=new MessageChannel,he=fe.port2;fe.port1.onmessage=K,P=function(){he.postMessage(null)}}else P=function(){x(K,0)};function de(j,le){L=x(function(){j(t.unstable_now())},le)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(j){j.callback=null},t.unstable_forceFrameRate=function(j){0>j||125<j?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):Y=0<j?Math.floor(1e3/j):5},t.unstable_getCurrentPriorityLevel=function(){return y},t.unstable_next=function(j){switch(y){case 1:case 2:case 3:var le=3;break;default:le=y}var G=y;y=le;try{return j()}finally{y=G}},t.unstable_requestPaint=function(){w=!0},t.unstable_runWithPriority=function(j,le){switch(j){case 1:case 2:case 3:case 4:case 5:break;default:j=3}var G=y;y=j;try{return le()}finally{y=G}},t.unstable_scheduleCallback=function(j,le,G){var be=t.unstable_now();switch(typeof G=="object"&&G!==null?(G=G.delay,G=typeof G=="number"&&0<G?be+G:be):G=be,j){case 1:var ge=-1;break;case 2:ge=250;break;case 5:ge=1073741823;break;case 4:ge=1e4;break;default:ge=5e3}return ge=G+ge,j={id:v++,callback:le,priorityLevel:j,startTime:G,expirationTime:ge,sortIndex:-1},G>be?(j.sortIndex=G,l(p,j),i(h)===null&&j===i(p)&&(_?(C(L),L=-1):_=!0,de(U,G-be))):(j.sortIndex=ge,l(h,j),A||T||(A=!0,H||(H=!0,P()))),j},t.unstable_shouldYield=W,t.unstable_wrapCallback=function(j){var le=y;return function(){var G=y;y=le;try{return j.apply(this,arguments)}finally{y=G}}}})(Ed)),Ed}var m1;function J2(){return m1||(m1=1,Sd.exports=K2()),Sd.exports}var wd={exports:{}},Me={};var v1;function P2(){if(v1)return Me;v1=1;var t=Symbol.for("react.transitional.element"),l=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),f=Symbol.for("react.consumer"),d=Symbol.for("react.context"),g=Symbol.for("react.forward_ref"),h=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),S=Symbol.for("react.activity"),y=Symbol.iterator;function T(O){return O===null||typeof O!="object"?null:(O=y&&O[y]||O["@@iterator"],typeof O=="function"?O:null)}var A={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},_=Object.assign,w={};function x(O,J,ee){this.props=O,this.context=J,this.refs=w,this.updater=ee||A}x.prototype.isReactComponent={},x.prototype.setState=function(O,J){if(typeof O!="object"&&typeof O!="function"&&O!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,O,J,"setState")},x.prototype.forceUpdate=function(O){this.updater.enqueueForceUpdate(this,O,"forceUpdate")};function C(){}C.prototype=x.prototype;function D(O,J,ee){this.props=O,this.context=J,this.refs=w,this.updater=ee||A}var k=D.prototype=new C;k.constructor=D,_(k,x.prototype),k.isPureReactComponent=!0;var U=Array.isArray;function H(){}var L={H:null,A:null,T:null,S:null},Y=Object.prototype.hasOwnProperty;function X(O,J,ee){var oe=ee.ref;return{$$typeof:t,type:O,key:J,ref:oe!==void 0?oe:null,props:ee}}function W(O,J){return X(O.type,J,O.props)}function K(O){return typeof O=="object"&&O!==null&&O.$$typeof===t}function P(O){var J={"=":"=0",":":"=2"};return"$"+O.replace(/[=:]/g,function(ee){return J[ee]})}var fe=/\/+/g;function he(O,J){return typeof O=="object"&&O!==null&&O.key!=null?P(""+O.key):J.toString(36)}function de(O){switch(O.status){case"fulfilled":return O.value;case"rejected":throw O.reason;default:switch(typeof O.status=="string"?O.then(H,H):(O.status="pending",O.then(function(J){O.status==="pending"&&(O.status="fulfilled",O.value=J)},function(J){O.status==="pending"&&(O.status="rejected",O.reason=J)})),O.status){case"fulfilled":return O.value;case"rejected":throw O.reason}}throw O}function j(O,J,ee,oe,ne){var ce=typeof O;(ce==="undefined"||ce==="boolean")&&(O=null);var me=!1;if(O===null)me=!0;else switch(ce){case"bigint":case"string":case"number":me=!0;break;case"object":switch(O.$$typeof){case t:case l:me=!0;break;case v:return me=O._init,j(me(O._payload),J,ee,oe,ne)}}if(me)return ne=ne(O),me=oe===""?"."+he(O,0):oe,U(ne)?(ee="",me!=null&&(ee=me.replace(fe,"$&/")+"/"),j(ne,J,ee,"",function(Be){return Be})):ne!=null&&(K(ne)&&(ne=W(ne,ee+(ne.key==null||O&&O.key===ne.key?"":(""+ne.key).replace(fe,"$&/")+"/")+me)),J.push(ne)),1;me=0;var Se=oe===""?".":oe+":";if(U(O))for(var we=0;we<O.length;we++)oe=O[we],ce=Se+he(oe,we),me+=j(oe,J,ee,ce,ne);else if(we=T(O),typeof we=="function")for(O=we.call(O),we=0;!(oe=O.next()).done;)oe=oe.value,ce=Se+he(oe,we++),me+=j(oe,J,ee,ce,ne);else if(ce==="object"){if(typeof O.then=="function")return j(de(O),J,ee,oe,ne);throw J=String(O),Error("Objects are not valid as a React child (found: "+(J==="[object Object]"?"object with keys {"+Object.keys(O).join(", ")+"}":J)+"). If you meant to render a collection of children, use an array instead.")}return me}function le(O,J,ee){if(O==null)return O;var oe=[],ne=0;return j(O,oe,"","",function(ce){return J.call(ee,ce,ne++)}),oe}function G(O){if(O._status===-1){var J=O._result;J=J(),J.then(function(ee){(O._status===0||O._status===-1)&&(O._status=1,O._result=ee)},function(ee){(O._status===0||O._status===-1)&&(O._status=2,O._result=ee)}),O._status===-1&&(O._status=0,O._result=J)}if(O._status===1)return O._result.default;throw O._result}var be=typeof reportError=="function"?reportError:function(O){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var J=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof O=="object"&&O!==null&&typeof O.message=="string"?String(O.message):String(O),error:O});if(!window.dispatchEvent(J))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",O);return}console.error(O)},ge={map:le,forEach:function(O,J,ee){le(O,function(){J.apply(this,arguments)},ee)},count:function(O){var J=0;return le(O,function(){J++}),J},toArray:function(O){return le(O,function(J){return J})||[]},only:function(O){if(!K(O))throw Error("React.Children.only expected to receive a single React element child.");return O}};return Me.Activity=S,Me.Children=ge,Me.Component=x,Me.Fragment=i,Me.Profiler=o,Me.PureComponent=D,Me.StrictMode=r,Me.Suspense=h,Me.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=L,Me.__COMPILER_RUNTIME={__proto__:null,c:function(O){return L.H.useMemoCache(O)}},Me.cache=function(O){return function(){return O.apply(null,arguments)}},Me.cacheSignal=function(){return null},Me.cloneElement=function(O,J,ee){if(O==null)throw Error("The argument must be a React element, but you passed "+O+".");var oe=_({},O.props),ne=O.key;if(J!=null)for(ce in J.key!==void 0&&(ne=""+J.key),J)!Y.call(J,ce)||ce==="key"||ce==="__self"||ce==="__source"||ce==="ref"&&J.ref===void 0||(oe[ce]=J[ce]);var ce=arguments.length-2;if(ce===1)oe.children=ee;else if(1<ce){for(var me=Array(ce),Se=0;Se<ce;Se++)me[Se]=arguments[Se+2];oe.children=me}return X(O.type,ne,oe)},Me.createContext=function(O){return O={$$typeof:d,_currentValue:O,_currentValue2:O,_threadCount:0,Provider:null,Consumer:null},O.Provider=O,O.Consumer={$$typeof:f,_context:O},O},Me.createElement=function(O,J,ee){var oe,ne={},ce=null;if(J!=null)for(oe in J.key!==void 0&&(ce=""+J.key),J)Y.call(J,oe)&&oe!=="key"&&oe!=="__self"&&oe!=="__source"&&(ne[oe]=J[oe]);var me=arguments.length-2;if(me===1)ne.children=ee;else if(1<me){for(var Se=Array(me),we=0;we<me;we++)Se[we]=arguments[we+2];ne.children=Se}if(O&&O.defaultProps)for(oe in me=O.defaultProps,me)ne[oe]===void 0&&(ne[oe]=me[oe]);return X(O,ce,ne)},Me.createRef=function(){return{current:null}},Me.forwardRef=function(O){return{$$typeof:g,render:O}},Me.isValidElement=K,Me.lazy=function(O){return{$$typeof:v,_payload:{_status:-1,_result:O},_init:G}},Me.memo=function(O,J){return{$$typeof:p,type:O,compare:J===void 0?null:J}},Me.startTransition=function(O){var J=L.T,ee={};L.T=ee;try{var oe=O(),ne=L.S;ne!==null&&ne(ee,oe),typeof oe=="object"&&oe!==null&&typeof oe.then=="function"&&oe.then(H,be)}catch(ce){be(ce)}finally{J!==null&&ee.types!==null&&(J.types=ee.types),L.T=J}},Me.unstable_useCacheRefresh=function(){return L.H.useCacheRefresh()},Me.use=function(O){return L.H.use(O)},Me.useActionState=function(O,J,ee){return L.H.useActionState(O,J,ee)},Me.useCallback=function(O,J){return L.H.useCallback(O,J)},Me.useContext=function(O){return L.H.useContext(O)},Me.useDebugValue=function(){},Me.useDeferredValue=function(O,J){return L.H.useDeferredValue(O,J)},Me.useEffect=function(O,J){return L.H.useEffect(O,J)},Me.useEffectEvent=function(O){return L.H.useEffectEvent(O)},Me.useId=function(){return L.H.useId()},Me.useImperativeHandle=function(O,J,ee){return L.H.useImperativeHandle(O,J,ee)},Me.useInsertionEffect=function(O,J){return L.H.useInsertionEffect(O,J)},Me.useLayoutEffect=function(O,J){return L.H.useLayoutEffect(O,J)},Me.useMemo=function(O,J){return L.H.useMemo(O,J)},Me.useOptimistic=function(O,J){return L.H.useOptimistic(O,J)},Me.useReducer=function(O,J,ee){return L.H.useReducer(O,J,ee)},Me.useRef=function(O){return L.H.useRef(O)},Me.useState=function(O){return L.H.useState(O)},Me.useSyncExternalStore=function(O,J,ee){return L.H.useSyncExternalStore(O,J,ee)},Me.useTransition=function(){return L.H.useTransition()},Me.version="19.2.3",Me}var b1;function Ku(){return b1||(b1=1,wd.exports=P2()),wd.exports}var Td={exports:{}},Ln={};var y1;function W2(){if(y1)return Ln;y1=1;var t=Ku();function l(h){var p="https://react.dev/errors/"+h;if(1<arguments.length){p+="?args[]="+encodeURIComponent(arguments[1]);for(var v=2;v<arguments.length;v++)p+="&args[]="+encodeURIComponent(arguments[v])}return"Minified React error #"+h+"; visit "+p+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function i(){}var r={d:{f:i,r:function(){throw Error(l(522))},D:i,C:i,L:i,m:i,X:i,S:i,M:i},p:0,findDOMNode:null},o=Symbol.for("react.portal");function f(h,p,v){var S=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:o,key:S==null?null:""+S,children:h,containerInfo:p,implementation:v}}var d=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function g(h,p){if(h==="font")return"";if(typeof p=="string")return p==="use-credentials"?p:""}return Ln.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,Ln.createPortal=function(h,p){var v=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!p||p.nodeType!==1&&p.nodeType!==9&&p.nodeType!==11)throw Error(l(299));return f(h,p,null,v)},Ln.flushSync=function(h){var p=d.T,v=r.p;try{if(d.T=null,r.p=2,h)return h()}finally{d.T=p,r.p=v,r.d.f()}},Ln.preconnect=function(h,p){typeof h=="string"&&(p?(p=p.crossOrigin,p=typeof p=="string"?p==="use-credentials"?p:"":void 0):p=null,r.d.C(h,p))},Ln.prefetchDNS=function(h){typeof h=="string"&&r.d.D(h)},Ln.preinit=function(h,p){if(typeof h=="string"&&p&&typeof p.as=="string"){var v=p.as,S=g(v,p.crossOrigin),y=typeof p.integrity=="string"?p.integrity:void 0,T=typeof p.fetchPriority=="string"?p.fetchPriority:void 0;v==="style"?r.d.S(h,typeof p.precedence=="string"?p.precedence:void 0,{crossOrigin:S,integrity:y,fetchPriority:T}):v==="script"&&r.d.X(h,{crossOrigin:S,integrity:y,fetchPriority:T,nonce:typeof p.nonce=="string"?p.nonce:void 0})}},Ln.preinitModule=function(h,p){if(typeof h=="string")if(typeof p=="object"&&p!==null){if(p.as==null||p.as==="script"){var v=g(p.as,p.crossOrigin);r.d.M(h,{crossOrigin:v,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0})}}else p==null&&r.d.M(h)},Ln.preload=function(h,p){if(typeof h=="string"&&typeof p=="object"&&p!==null&&typeof p.as=="string"){var v=p.as,S=g(v,p.crossOrigin);r.d.L(h,v,{crossOrigin:S,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0,type:typeof p.type=="string"?p.type:void 0,fetchPriority:typeof p.fetchPriority=="string"?p.fetchPriority:void 0,referrerPolicy:typeof p.referrerPolicy=="string"?p.referrerPolicy:void 0,imageSrcSet:typeof p.imageSrcSet=="string"?p.imageSrcSet:void 0,imageSizes:typeof p.imageSizes=="string"?p.imageSizes:void 0,media:typeof p.media=="string"?p.media:void 0})}},Ln.preloadModule=function(h,p){if(typeof h=="string")if(p){var v=g(p.as,p.crossOrigin);r.d.m(h,{as:typeof p.as=="string"&&p.as!=="script"?p.as:void 0,crossOrigin:v,integrity:typeof p.integrity=="string"?p.integrity:void 0})}else r.d.m(h)},Ln.requestFormReset=function(h){r.d.r(h)},Ln.unstable_batchedUpdates=function(h,p){return h(p)},Ln.useFormState=function(h,p,v){return d.H.useFormState(h,p,v)},Ln.useFormStatus=function(){return d.H.useHostTransitionStatus()},Ln.version="19.2.3",Ln}var _1;function $2(){if(_1)return Td.exports;_1=1;function t(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(l){console.error(l)}}return t(),Td.exports=W2(),Td.exports}var S1;function q2(){if(S1)return ls;S1=1;var t=J2(),l=Ku(),i=$2();function r(e){var n="https://react.dev/errors/"+e;if(1<arguments.length){n+="?args[]="+encodeURIComponent(arguments[1]);for(var a=2;a<arguments.length;a++)n+="&args[]="+encodeURIComponent(arguments[a])}return"Minified React error #"+e+"; visit "+n+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function o(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function f(e){var n=e,a=e;if(e.alternate)for(;n.return;)n=n.return;else{e=n;do n=e,(n.flags&4098)!==0&&(a=n.return),e=n.return;while(e)}return n.tag===3?a:null}function d(e){if(e.tag===13){var n=e.memoizedState;if(n===null&&(e=e.alternate,e!==null&&(n=e.memoizedState)),n!==null)return n.dehydrated}return null}function g(e){if(e.tag===31){var n=e.memoizedState;if(n===null&&(e=e.alternate,e!==null&&(n=e.memoizedState)),n!==null)return n.dehydrated}return null}function h(e){if(f(e)!==e)throw Error(r(188))}function p(e){var n=e.alternate;if(!n){if(n=f(e),n===null)throw Error(r(188));return n!==e?null:e}for(var a=e,s=n;;){var u=a.return;if(u===null)break;var c=u.alternate;if(c===null){if(s=u.return,s!==null){a=s;continue}break}if(u.child===c.child){for(c=u.child;c;){if(c===a)return h(u),e;if(c===s)return h(u),n;c=c.sibling}throw Error(r(188))}if(a.return!==s.return)a=u,s=c;else{for(var m=!1,E=u.child;E;){if(E===a){m=!0,a=u,s=c;break}if(E===s){m=!0,s=u,a=c;break}E=E.sibling}if(!m){for(E=c.child;E;){if(E===a){m=!0,a=c,s=u;break}if(E===s){m=!0,s=c,a=u;break}E=E.sibling}if(!m)throw Error(r(189))}}if(a.alternate!==s)throw Error(r(190))}if(a.tag!==3)throw Error(r(188));return a.stateNode.current===a?e:n}function v(e){var n=e.tag;if(n===5||n===26||n===27||n===6)return e;for(e=e.child;e!==null;){if(n=v(e),n!==null)return n;e=e.sibling}return null}var S=Object.assign,y=Symbol.for("react.element"),T=Symbol.for("react.transitional.element"),A=Symbol.for("react.portal"),_=Symbol.for("react.fragment"),w=Symbol.for("react.strict_mode"),x=Symbol.for("react.profiler"),C=Symbol.for("react.consumer"),D=Symbol.for("react.context"),k=Symbol.for("react.forward_ref"),U=Symbol.for("react.suspense"),H=Symbol.for("react.suspense_list"),L=Symbol.for("react.memo"),Y=Symbol.for("react.lazy"),X=Symbol.for("react.activity"),W=Symbol.for("react.memo_cache_sentinel"),K=Symbol.iterator;function P(e){return e===null||typeof e!="object"?null:(e=K&&e[K]||e["@@iterator"],typeof e=="function"?e:null)}var fe=Symbol.for("react.client.reference");function he(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===fe?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case _:return"Fragment";case x:return"Profiler";case w:return"StrictMode";case U:return"Suspense";case H:return"SuspenseList";case X:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case A:return"Portal";case D:return e.displayName||"Context";case C:return(e._context.displayName||"Context")+".Consumer";case k:var n=e.render;return e=e.displayName,e||(e=n.displayName||n.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case L:return n=e.displayName||null,n!==null?n:he(e.type)||"Memo";case Y:n=e._payload,e=e._init;try{return he(e(n))}catch{}}return null}var de=Array.isArray,j=l.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,le=i.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,G={pending:!1,data:null,method:null,action:null},be=[],ge=-1;function O(e){return{current:e}}function J(e){0>ge||(e.current=be[ge],be[ge]=null,ge--)}function ee(e,n){ge++,be[ge]=e.current,e.current=n}var oe=O(null),ne=O(null),ce=O(null),me=O(null);function Se(e,n){switch(ee(ce,n),ee(ne,e),ee(oe,null),n.nodeType){case 9:case 11:e=(e=n.documentElement)&&(e=e.namespaceURI)?j0(e):0;break;default:if(e=n.tagName,n=n.namespaceURI)n=j0(n),e=B0(n,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}J(oe),ee(oe,e)}function we(){J(oe),J(ne),J(ce)}function Be(e){e.memoizedState!==null&&ee(me,e);var n=oe.current,a=B0(n,e.type);n!==a&&(ee(ne,e),ee(oe,a))}function St(e){ne.current===e&&(J(oe),J(ne)),me.current===e&&(J(me),qr._currentValue=G)}var Ae,mt;function Tt(e){if(Ae===void 0)try{throw Error()}catch(a){var n=a.stack.trim().match(/\n( *(at )?)/);Ae=n&&n[1]||"",mt=-1<a.stack.indexOf(`
2
2
  at`)?" (<anonymous>)":-1<a.stack.indexOf("@")?"@unknown:0:0":""}return`
3
3
  `+Ae+e+mt}var Oe=!1;function ct(e,n){if(!e||Oe)return"";Oe=!0;var a=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var s={DetermineComponentFrameRoot:function(){try{if(n){var ae=function(){throw Error()};if(Object.defineProperty(ae.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(ae,[])}catch(F){var Q=F}Reflect.construct(e,[],ae)}else{try{ae.call()}catch(F){Q=F}e.call(ae.prototype)}}else{try{throw Error()}catch(F){Q=F}(ae=e())&&typeof ae.catch=="function"&&ae.catch(function(){})}}catch(F){if(F&&Q&&typeof F.stack=="string")return[F.stack,Q.stack]}return[null,null]}};s.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var u=Object.getOwnPropertyDescriptor(s.DetermineComponentFrameRoot,"name");u&&u.configurable&&Object.defineProperty(s.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var c=s.DetermineComponentFrameRoot(),m=c[0],E=c[1];if(m&&E){var N=m.split(`
4
4
  `),I=E.split(`
5
5
  `);for(u=s=0;s<N.length&&!N[s].includes("DetermineComponentFrameRoot");)s++;for(;u<I.length&&!I[u].includes("DetermineComponentFrameRoot");)u++;if(s===N.length||u===I.length)for(s=N.length-1,u=I.length-1;1<=s&&0<=u&&N[s]!==I[u];)u--;for(;1<=s&&0<=u;s--,u--)if(N[s]!==I[u]){if(s!==1||u!==1)do if(s--,u--,0>u||N[s]!==I[u]){var q=`
6
6
  `+N[s].replace(" at new "," at ");return e.displayName&&q.includes("<anonymous>")&&(q=q.replace("<anonymous>",e.displayName)),q}while(1<=s&&0<=u);break}}}finally{Oe=!1,Error.prepareStackTrace=a}return(a=e?e.displayName||e.name:"")?Tt(a):""}function tn(e,n){switch(e.tag){case 26:case 27:case 5:return Tt(e.type);case 16:return Tt("Lazy");case 13:return e.child!==n&&n!==null?Tt("Suspense Fallback"):Tt("Suspense");case 19:return Tt("SuspenseList");case 0:case 15:return ct(e.type,!1);case 11:return ct(e.type.render,!1);case 1:return ct(e.type,!0);case 31:return Tt("Activity");default:return""}}function _n(e){try{var n="",a=null;do n+=tn(e,a),a=e,e=e.return;while(e);return n}catch(s){return`
7
7
  Error generating stack: `+s.message+`
8
- `+s.stack}}var Xe=Object.prototype.hasOwnProperty,Ft=t.unstable_scheduleCallback,xt=t.unstable_cancelCallback,nn=t.unstable_shouldYield,Et=t.unstable_requestPaint,st=t.unstable_now,Dn=t.unstable_getCurrentPriorityLevel,Qt=t.unstable_ImmediatePriority,Rt=t.unstable_UserBlockingPriority,zt=t.unstable_NormalPriority,cn=t.unstable_LowPriority,fn=t.unstable_IdlePriority,ua=t.log,nt=t.unstable_setDisableYieldValue,dn=null,vt=null;function ft(e){if(typeof ua=="function"&&nt(e),vt&&typeof vt.setStrictMode=="function")try{vt.setStrictMode(dn,e)}catch{}}var Je=Math.clz32?Math.clz32:hn,qe=Math.log,an=Math.LN2;function hn(e){return e>>>=0,e===0?32:31-(qe(e)/an|0)|0}var jt=256,at=262144,Yt=4194304;function At(e){var n=e&42;if(n!==0)return n;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072: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 Rn(e,n,a){var s=e.pendingLanes;if(s===0)return 0;var u=0,c=e.suspendedLanes,m=e.pingedLanes;e=e.warmLanes;var E=s&134217727;return E!==0?(s=E&~c,s!==0?u=At(s):(m&=E,m!==0?u=At(m):a||(a=E&~e,a!==0&&(u=At(a))))):(E=s&~c,E!==0?u=At(E):m!==0?u=At(m):a||(a=s&~e,a!==0&&(u=At(a)))),u===0?0:n!==0&&n!==u&&(n&c)===0&&(c=u&-u,a=n&-n,c>=a||c===32&&(a&4194048)!==0)?n:u}function Nn(e,n){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&n)===0}function dt(e,n){switch(e){case 1:case 2:case 4:case 8:case 64:return n+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return n+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function ln(){var e=Yt;return Yt<<=1,(Yt&62914560)===0&&(Yt=4194304),e}function ca(e){for(var n=[],a=0;31>a;a++)n.push(e);return n}function jn(e,n){e.pendingLanes|=n,n!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function fa(e,n,a,s,u,c){var m=e.pendingLanes;e.pendingLanes=a,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=a,e.entangledLanes&=a,e.errorRecoveryDisabledLanes&=a,e.shellSuspendCounter=0;var E=e.entanglements,N=e.expirationTimes,I=e.hiddenUpdates;for(a=m&~a;0<a;){var q=31-Je(a),ae=1<<q;E[q]=0,N[q]=-1;var Q=I[q];if(Q!==null)for(I[q]=null,q=0;q<Q.length;q++){var F=Q[q];F!==null&&(F.lane&=-536870913)}a&=~ae}s!==0&&rn(e,s,0),c!==0&&u===0&&e.tag!==0&&(e.suspendedLanes|=c&~(m&~n))}function rn(e,n,a){e.pendingLanes|=n,e.suspendedLanes&=~n;var s=31-Je(n);e.entangledLanes|=n,e.entanglements[s]=e.entanglements[s]|1073741824|a&261930}function sn(e,n){var a=e.entangledLanes|=n;for(e=e.entanglements;a;){var s=31-Je(a),u=1<<s;u&n|e[s]&n&&(e[s]|=n),a&=~u}}function Kt(e,n){var a=n&-n;return a=(a&42)!==0?1:Bt(a),(a&(e.suspendedLanes|n))!==0?0:a}function Bt(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 Pe(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function Bn(){var e=le.p;return e!==0?e:(e=window.event,e===void 0?32:r1(e.type))}function Mn(e,n){var a=le.p;try{return le.p=e,n()}finally{le.p=a}}var Ut=Math.random().toString(36).slice(2),De="__reactFiber$"+Ut,et="__reactProps$"+Ut,pn="__reactContainer$"+Ut,Fn="__reactEvents$"+Ut,on="__reactListeners$"+Ut,wa="__reactHandles$"+Ut,ze="__reactResources$"+Ut,ue="__reactMarker$"+Ut;function R(e){delete e[De],delete e[et],delete e[Fn],delete e[on],delete e[wa]}function $(e){var n=e[De];if(n)return n;for(var a=e.parentNode;a;){if(n=a[pn]||a[De]){if(a=n.alternate,n.child!==null||a!==null&&a.child!==null)for(e=G0(e);e!==null;){if(a=e[De])return a;e=G0(e)}return n}e=a,a=e.parentNode}return null}function re(e){if(e=e[De]||e[pn]){var n=e.tag;if(n===5||n===6||n===13||n===31||n===26||n===27||n===3)return e}return null}function Ee(e){var n=e.tag;if(n===5||n===26||n===27||n===6)return e.stateNode;throw Error(r(33))}function Ge(e){var n=e[ze];return n||(n=e[ze]={hoistableStyles:new Map,hoistableScripts:new Map}),n}function pe(e){e[ue]=!0}var ht=new Set,Re={};function lt(e,n){tt(e,n),tt(e+"Capture",n)}function tt(e,n){for(Re[e]=n,e=0;e<n.length;e++)ht.add(n[e])}var Ne=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]*$"),kt={},Xt={};function La(e){return Xe.call(Xt,e)?!0:Xe.call(kt,e)?!1:Ne.test(e)?Xt[e]=!0:(kt[e]=!0,!1)}function He(e,n,a){if(La(n))if(a===null)e.removeAttribute(n);else{switch(typeof a){case"undefined":case"function":case"symbol":e.removeAttribute(n);return;case"boolean":var s=n.toLowerCase().slice(0,5);if(s!=="data-"&&s!=="aria-"){e.removeAttribute(n);return}}e.setAttribute(n,""+a)}}function Yn(e,n,a){if(a===null)e.removeAttribute(n);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(n);return}e.setAttribute(n,""+a)}}function gn(e,n,a,s){if(s===null)e.removeAttribute(a);else{switch(typeof s){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(a);return}e.setAttributeNS(n,a,""+s)}}function kn(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function za(e){var n=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(n==="checkbox"||n==="radio")}function fc(e,n,a){var s=Object.getOwnPropertyDescriptor(e.constructor.prototype,n);if(!e.hasOwnProperty(n)&&typeof s<"u"&&typeof s.get=="function"&&typeof s.set=="function"){var u=s.get,c=s.set;return Object.defineProperty(e,n,{configurable:!0,get:function(){return u.call(this)},set:function(m){a=""+m,c.call(this,m)}}),Object.defineProperty(e,n,{enumerable:s.enumerable}),{getValue:function(){return a},setValue:function(m){a=""+m},stopTracking:function(){e._valueTracker=null,delete e[n]}}}}function bi(e){if(!e._valueTracker){var n=za(e)?"checked":"value";e._valueTracker=fc(e,n,""+e[n])}}function Us(e){if(!e)return!1;var n=e._valueTracker;if(!n)return!0;var a=n.getValue(),s="";return e&&(s=za(e)?e.checked?"true":"false":e.value),e=s,e!==a?(n.setValue(e),!0):!1}function yi(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var _i=/[\n"\\]/g;function Un(e){return e.replace(_i,function(n){return"\\"+n.charCodeAt(0).toString(16)+" "})}function dc(e,n,a,s,u,c,m,E){e.name="",m!=null&&typeof m!="function"&&typeof m!="symbol"&&typeof m!="boolean"?e.type=m:e.removeAttribute("type"),n!=null?m==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+kn(n)):e.value!==""+kn(n)&&(e.value=""+kn(n)):m!=="submit"&&m!=="reset"||e.removeAttribute("value"),n!=null?hc(e,m,kn(n)):a!=null?hc(e,m,kn(a)):s!=null&&e.removeAttribute("value"),u==null&&c!=null&&(e.defaultChecked=!!c),u!=null&&(e.checked=u&&typeof u!="function"&&typeof u!="symbol"),E!=null&&typeof E!="function"&&typeof E!="symbol"&&typeof E!="boolean"?e.name=""+kn(E):e.removeAttribute("name")}function gr(e,n,a,s,u,c,m,E){if(c!=null&&typeof c!="function"&&typeof c!="symbol"&&typeof c!="boolean"&&(e.type=c),n!=null||a!=null){if(!(c!=="submit"&&c!=="reset"||n!=null)){bi(e);return}a=a!=null?""+kn(a):"",n=n!=null?""+kn(n):a,E||n===e.value||(e.value=n),e.defaultValue=n}s=s??u,s=typeof s!="function"&&typeof s!="symbol"&&!!s,e.checked=E?e.checked:!!s,e.defaultChecked=!!s,m!=null&&typeof m!="function"&&typeof m!="symbol"&&typeof m!="boolean"&&(e.name=m),bi(e)}function hc(e,n,a){n==="number"&&yi(e.ownerDocument)===e||e.defaultValue===""+a||(e.defaultValue=""+a)}function ml(e,n,a,s){if(e=e.options,n){n={};for(var u=0;u<a.length;u++)n["$"+a[u]]=!0;for(a=0;a<e.length;a++)u=n.hasOwnProperty("$"+e[a].value),e[a].selected!==u&&(e[a].selected=u),u&&s&&(e[a].defaultSelected=!0)}else{for(a=""+kn(a),n=null,u=0;u<e.length;u++){if(e[u].value===a){e[u].selected=!0,s&&(e[u].defaultSelected=!0);return}n!==null||e[u].disabled||(n=e[u])}n!==null&&(n.selected=!0)}}function Np(e,n,a){if(n!=null&&(n=""+kn(n),n!==e.value&&(e.value=n),a==null)){e.defaultValue!==n&&(e.defaultValue=n);return}e.defaultValue=a!=null?""+kn(a):""}function Mp(e,n,a,s){if(n==null){if(s!=null){if(a!=null)throw Error(r(92));if(de(s)){if(1<s.length)throw Error(r(93));s=s[0]}a=s}a==null&&(a=""),n=a}a=kn(n),e.defaultValue=a,s=e.textContent,s===a&&s!==""&&s!==null&&(e.value=s),bi(e)}function Ga(e,n){if(n){var a=e.firstChild;if(a&&a===e.lastChild&&a.nodeType===3){a.nodeValue=n;return}}e.textContent=n}var Hy=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 kp(e,n,a){var s=n.indexOf("--")===0;a==null||typeof a=="boolean"||a===""?s?e.setProperty(n,""):n==="float"?e.cssFloat="":e[n]="":s?e.setProperty(n,a):typeof a!="number"||a===0||Hy.has(n)?n==="float"?e.cssFloat=a:e[n]=(""+a).trim():e[n]=a+"px"}function Lp(e,n,a){if(n!=null&&typeof n!="object")throw Error(r(62));if(e=e.style,a!=null){for(var s in a)!a.hasOwnProperty(s)||n!=null&&n.hasOwnProperty(s)||(s.indexOf("--")===0?e.setProperty(s,""):s==="float"?e.cssFloat="":e[s]="");for(var u in n)s=n[u],n.hasOwnProperty(u)&&a[u]!==s&&kp(e,u,s)}else for(var c in n)n.hasOwnProperty(c)&&kp(e,c,n[c])}function pc(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 Iy=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"]]),Vy=/^[\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 Hs(e){return Vy.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function Za(){}var gc=null;function mc(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Si=null,Ei=null;function zp(e){var n=re(e);if(n&&(e=n.stateNode)){var a=e[et]||null;e:switch(e=n.stateNode,n.type){case"input":if(dc(e,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name),n=a.name,a.type==="radio"&&n!=null){for(a=e;a.parentNode;)a=a.parentNode;for(a=a.querySelectorAll('input[name="'+Un(""+n)+'"][type="radio"]'),n=0;n<a.length;n++){var s=a[n];if(s!==e&&s.form===e.form){var u=s[et]||null;if(!u)throw Error(r(90));dc(s,u.value,u.defaultValue,u.defaultValue,u.checked,u.defaultChecked,u.type,u.name)}}for(n=0;n<a.length;n++)s=a[n],s.form===e.form&&Us(s)}break e;case"textarea":Np(e,a.value,a.defaultValue);break e;case"select":n=a.value,n!=null&&ml(e,!!a.multiple,n,!1)}}}var vc=!1;function jp(e,n,a){if(vc)return e(n,a);vc=!0;try{var s=e(n);return s}finally{if(vc=!1,(Si!==null||Ei!==null)&&(xo(),Si&&(n=Si,e=Ei,Ei=Si=null,zp(n),e)))for(n=0;n<e.length;n++)zp(e[n])}}function mr(e,n){var a=e.stateNode;if(a===null)return null;var s=a[et]||null;if(s===null)return null;a=s[n];e:switch(n){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(s=!s.disabled)||(e=e.type,s=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!s;break e;default:e=!1}if(e)return null;if(a&&typeof a!="function")throw Error(r(231,n,typeof a));return a}var Fa=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),bc=!1;if(Fa)try{var vr={};Object.defineProperty(vr,"passive",{get:function(){bc=!0}}),window.addEventListener("test",vr,vr),window.removeEventListener("test",vr,vr)}catch{bc=!1}var vl=null,yc=null,Is=null;function Bp(){if(Is)return Is;var e,n=yc,a=n.length,s,u="value"in vl?vl.value:vl.textContent,c=u.length;for(e=0;e<a&&n[e]===u[e];e++);var m=a-e;for(s=1;s<=m&&n[a-s]===u[c-s];s++);return Is=u.slice(e,1<s?1-s:void 0)}function Vs(e){var n=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&n===13&&(e=13)):e=n,e===10&&(e=13),32<=e||e===13?e:0}function Qs(){return!0}function Up(){return!1}function Kn(e){function n(a,s,u,c,m){this._reactName=a,this._targetInst=u,this.type=s,this.nativeEvent=c,this.target=m,this.currentTarget=null;for(var E in e)e.hasOwnProperty(E)&&(a=e[E],this[E]=a?a(c):c[E]);return this.isDefaultPrevented=(c.defaultPrevented!=null?c.defaultPrevented:c.returnValue===!1)?Qs:Up,this.isPropagationStopped=Up,this}return S(n.prototype,{preventDefault:function(){this.defaultPrevented=!0;var a=this.nativeEvent;a&&(a.preventDefault?a.preventDefault():typeof a.returnValue!="unknown"&&(a.returnValue=!1),this.isDefaultPrevented=Qs)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():typeof a.cancelBubble!="unknown"&&(a.cancelBubble=!0),this.isPropagationStopped=Qs)},persist:function(){},isPersistent:Qs}),n}var Fl={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Xs=Kn(Fl),br=S({},Fl,{view:0,detail:0}),Qy=Kn(br),_c,Sc,yr,Gs=S({},br,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:wc,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!==yr&&(yr&&e.type==="mousemove"?(_c=e.screenX-yr.screenX,Sc=e.screenY-yr.screenY):Sc=_c=0,yr=e),_c)},movementY:function(e){return"movementY"in e?e.movementY:Sc}}),Hp=Kn(Gs),Xy=S({},Gs,{dataTransfer:0}),Gy=Kn(Xy),Zy=S({},br,{relatedTarget:0}),Ec=Kn(Zy),Fy=S({},Fl,{animationName:0,elapsedTime:0,pseudoElement:0}),Yy=Kn(Fy),Ky=S({},Fl,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Jy=Kn(Ky),Py=S({},Fl,{data:0}),Ip=Kn(Py),Wy={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},$y={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"},qy={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function e_(e){var n=this.nativeEvent;return n.getModifierState?n.getModifierState(e):(e=qy[e])?!!n[e]:!1}function wc(){return e_}var t_=S({},br,{key:function(e){if(e.key){var n=Wy[e.key]||e.key;if(n!=="Unidentified")return n}return e.type==="keypress"?(e=Vs(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?$y[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:wc,charCode:function(e){return e.type==="keypress"?Vs(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Vs(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),n_=Kn(t_),a_=S({},Gs,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Vp=Kn(a_),l_=S({},br,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:wc}),i_=Kn(l_),r_=S({},Fl,{propertyName:0,elapsedTime:0,pseudoElement:0}),s_=Kn(r_),o_=S({},Gs,{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}),u_=Kn(o_),c_=S({},Fl,{newState:0,oldState:0}),f_=Kn(c_),d_=[9,13,27,32],Tc=Fa&&"CompositionEvent"in window,_r=null;Fa&&"documentMode"in document&&(_r=document.documentMode);var h_=Fa&&"TextEvent"in window&&!_r,Qp=Fa&&(!Tc||_r&&8<_r&&11>=_r),Xp=" ",Gp=!1;function Zp(e,n){switch(e){case"keyup":return d_.indexOf(n.keyCode)!==-1;case"keydown":return n.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Fp(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var wi=!1;function p_(e,n){switch(e){case"compositionend":return Fp(n);case"keypress":return n.which!==32?null:(Gp=!0,Xp);case"textInput":return e=n.data,e===Xp&&Gp?null:e;default:return null}}function g_(e,n){if(wi)return e==="compositionend"||!Tc&&Zp(e,n)?(e=Bp(),Is=yc=vl=null,wi=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(n.ctrlKey||n.altKey||n.metaKey)||n.ctrlKey&&n.altKey){if(n.char&&1<n.char.length)return n.char;if(n.which)return String.fromCharCode(n.which)}return null;case"compositionend":return Qp&&n.locale!=="ko"?null:n.data;default:return null}}var m_={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 Yp(e){var n=e&&e.nodeName&&e.nodeName.toLowerCase();return n==="input"?!!m_[e.type]:n==="textarea"}function Kp(e,n,a,s){Si?Ei?Ei.push(s):Ei=[s]:Si=s,n=Lo(n,"onChange"),0<n.length&&(a=new Xs("onChange","change",null,a,s),e.push({event:a,listeners:n}))}var Sr=null,Er=null;function v_(e){R0(e,0)}function Zs(e){var n=Ee(e);if(Us(n))return e}function Jp(e,n){if(e==="change")return n}var Pp=!1;if(Fa){var Ac;if(Fa){var Cc="oninput"in document;if(!Cc){var Wp=document.createElement("div");Wp.setAttribute("oninput","return;"),Cc=typeof Wp.oninput=="function"}Ac=Cc}else Ac=!1;Pp=Ac&&(!document.documentMode||9<document.documentMode)}function $p(){Sr&&(Sr.detachEvent("onpropertychange",qp),Er=Sr=null)}function qp(e){if(e.propertyName==="value"&&Zs(Er)){var n=[];Kp(n,Er,e,mc(e)),jp(v_,n)}}function b_(e,n,a){e==="focusin"?($p(),Sr=n,Er=a,Sr.attachEvent("onpropertychange",qp)):e==="focusout"&&$p()}function y_(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Zs(Er)}function __(e,n){if(e==="click")return Zs(n)}function S_(e,n){if(e==="input"||e==="change")return Zs(n)}function E_(e,n){return e===n&&(e!==0||1/e===1/n)||e!==e&&n!==n}var ea=typeof Object.is=="function"?Object.is:E_;function wr(e,n){if(ea(e,n))return!0;if(typeof e!="object"||e===null||typeof n!="object"||n===null)return!1;var a=Object.keys(e),s=Object.keys(n);if(a.length!==s.length)return!1;for(s=0;s<a.length;s++){var u=a[s];if(!Xe.call(n,u)||!ea(e[u],n[u]))return!1}return!0}function eg(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function tg(e,n){var a=eg(e);e=0;for(var s;a;){if(a.nodeType===3){if(s=e+a.textContent.length,e<=n&&s>=n)return{node:a,offset:n-e};e=s}e:{for(;a;){if(a.nextSibling){a=a.nextSibling;break e}a=a.parentNode}a=void 0}a=eg(a)}}function ng(e,n){return e&&n?e===n?!0:e&&e.nodeType===3?!1:n&&n.nodeType===3?ng(e,n.parentNode):"contains"in e?e.contains(n):e.compareDocumentPosition?!!(e.compareDocumentPosition(n)&16):!1:!1}function ag(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var n=yi(e.document);n instanceof e.HTMLIFrameElement;){try{var a=typeof n.contentWindow.location.href=="string"}catch{a=!1}if(a)e=n.contentWindow;else break;n=yi(e.document)}return n}function xc(e){var n=e&&e.nodeName&&e.nodeName.toLowerCase();return n&&(n==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||n==="textarea"||e.contentEditable==="true")}var w_=Fa&&"documentMode"in document&&11>=document.documentMode,Ti=null,Oc=null,Tr=null,Dc=!1;function lg(e,n,a){var s=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;Dc||Ti==null||Ti!==yi(s)||(s=Ti,"selectionStart"in s&&xc(s)?s={start:s.selectionStart,end:s.selectionEnd}:(s=(s.ownerDocument&&s.ownerDocument.defaultView||window).getSelection(),s={anchorNode:s.anchorNode,anchorOffset:s.anchorOffset,focusNode:s.focusNode,focusOffset:s.focusOffset}),Tr&&wr(Tr,s)||(Tr=s,s=Lo(Oc,"onSelect"),0<s.length&&(n=new Xs("onSelect","select",null,n,a),e.push({event:n,listeners:s}),n.target=Ti)))}function Yl(e,n){var a={};return a[e.toLowerCase()]=n.toLowerCase(),a["Webkit"+e]="webkit"+n,a["Moz"+e]="moz"+n,a}var Ai={animationend:Yl("Animation","AnimationEnd"),animationiteration:Yl("Animation","AnimationIteration"),animationstart:Yl("Animation","AnimationStart"),transitionrun:Yl("Transition","TransitionRun"),transitionstart:Yl("Transition","TransitionStart"),transitioncancel:Yl("Transition","TransitionCancel"),transitionend:Yl("Transition","TransitionEnd")},Rc={},ig={};Fa&&(ig=document.createElement("div").style,"AnimationEvent"in window||(delete Ai.animationend.animation,delete Ai.animationiteration.animation,delete Ai.animationstart.animation),"TransitionEvent"in window||delete Ai.transitionend.transition);function Kl(e){if(Rc[e])return Rc[e];if(!Ai[e])return e;var n=Ai[e],a;for(a in n)if(n.hasOwnProperty(a)&&a in ig)return Rc[e]=n[a];return e}var rg=Kl("animationend"),sg=Kl("animationiteration"),og=Kl("animationstart"),T_=Kl("transitionrun"),A_=Kl("transitionstart"),C_=Kl("transitioncancel"),ug=Kl("transitionend"),cg=new Map,Nc="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(" ");Nc.push("scrollEnd");function Ta(e,n){cg.set(e,n),lt(n,[e])}var Fs=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var n=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(n))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},da=[],Ci=0,Mc=0;function Ys(){for(var e=Ci,n=Mc=Ci=0;n<e;){var a=da[n];da[n++]=null;var s=da[n];da[n++]=null;var u=da[n];da[n++]=null;var c=da[n];if(da[n++]=null,s!==null&&u!==null){var m=s.pending;m===null?u.next=u:(u.next=m.next,m.next=u),s.pending=u}c!==0&&fg(a,u,c)}}function Ks(e,n,a,s){da[Ci++]=e,da[Ci++]=n,da[Ci++]=a,da[Ci++]=s,Mc|=s,e.lanes|=s,e=e.alternate,e!==null&&(e.lanes|=s)}function kc(e,n,a,s){return Ks(e,n,a,s),Js(e)}function Jl(e,n){return Ks(e,null,null,n),Js(e)}function fg(e,n,a){e.lanes|=a;var s=e.alternate;s!==null&&(s.lanes|=a);for(var u=!1,c=e.return;c!==null;)c.childLanes|=a,s=c.alternate,s!==null&&(s.childLanes|=a),c.tag===22&&(e=c.stateNode,e===null||e._visibility&1||(u=!0)),e=c,c=c.return;return e.tag===3?(c=e.stateNode,u&&n!==null&&(u=31-Je(a),e=c.hiddenUpdates,s=e[u],s===null?e[u]=[n]:s.push(n),n.lane=a|536870912),c):null}function Js(e){if(50<Fr)throw Fr=0,Xf=null,Error(r(185));for(var n=e.return;n!==null;)e=n,n=e.return;return e.tag===3?e.stateNode:null}var xi={};function x_(e,n,a,s){this.tag=e,this.key=a,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=n,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=s,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function ta(e,n,a,s){return new x_(e,n,a,s)}function Lc(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Ya(e,n){var a=e.alternate;return a===null?(a=ta(e.tag,n,e.key,e.mode),a.elementType=e.elementType,a.type=e.type,a.stateNode=e.stateNode,a.alternate=e,e.alternate=a):(a.pendingProps=n,a.type=e.type,a.flags=0,a.subtreeFlags=0,a.deletions=null),a.flags=e.flags&65011712,a.childLanes=e.childLanes,a.lanes=e.lanes,a.child=e.child,a.memoizedProps=e.memoizedProps,a.memoizedState=e.memoizedState,a.updateQueue=e.updateQueue,n=e.dependencies,a.dependencies=n===null?null:{lanes:n.lanes,firstContext:n.firstContext},a.sibling=e.sibling,a.index=e.index,a.ref=e.ref,a.refCleanup=e.refCleanup,a}function dg(e,n){e.flags&=65011714;var a=e.alternate;return a===null?(e.childLanes=0,e.lanes=n,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=a.childLanes,e.lanes=a.lanes,e.child=a.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=a.memoizedProps,e.memoizedState=a.memoizedState,e.updateQueue=a.updateQueue,e.type=a.type,n=a.dependencies,e.dependencies=n===null?null:{lanes:n.lanes,firstContext:n.firstContext}),e}function Ps(e,n,a,s,u,c){var m=0;if(s=e,typeof e=="function")Lc(e)&&(m=1);else if(typeof e=="string")m=M2(e,a,oe.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case X:return e=ta(31,a,n,u),e.elementType=X,e.lanes=c,e;case _:return Pl(a.children,u,c,n);case w:m=8,u|=24;break;case x:return e=ta(12,a,n,u|2),e.elementType=x,e.lanes=c,e;case U:return e=ta(13,a,n,u),e.elementType=U,e.lanes=c,e;case H:return e=ta(19,a,n,u),e.elementType=H,e.lanes=c,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case D:m=10;break e;case C:m=9;break e;case k:m=11;break e;case L:m=14;break e;case Y:m=16,s=null;break e}m=29,a=Error(r(130,e===null?"null":typeof e,"")),s=null}return n=ta(m,a,n,u),n.elementType=e,n.type=s,n.lanes=c,n}function Pl(e,n,a,s){return e=ta(7,e,s,n),e.lanes=a,e}function zc(e,n,a){return e=ta(6,e,null,n),e.lanes=a,e}function hg(e){var n=ta(18,null,null,0);return n.stateNode=e,n}function jc(e,n,a){return n=ta(4,e.children!==null?e.children:[],e.key,n),n.lanes=a,n.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},n}var pg=new WeakMap;function ha(e,n){if(typeof e=="object"&&e!==null){var a=pg.get(e);return a!==void 0?a:(n={value:e,source:n,stack:_n(n)},pg.set(e,n),n)}return{value:e,source:n,stack:_n(n)}}var Oi=[],Di=0,Ws=null,Ar=0,pa=[],ga=0,bl=null,ja=1,Ba="";function Ka(e,n){Oi[Di++]=Ar,Oi[Di++]=Ws,Ws=e,Ar=n}function gg(e,n,a){pa[ga++]=ja,pa[ga++]=Ba,pa[ga++]=bl,bl=e;var s=ja;e=Ba;var u=32-Je(s)-1;s&=~(1<<u),a+=1;var c=32-Je(n)+u;if(30<c){var m=u-u%5;c=(s&(1<<m)-1).toString(32),s>>=m,u-=m,ja=1<<32-Je(n)+u|a<<u|s,Ba=c+e}else ja=1<<c|a<<u|s,Ba=e}function Bc(e){e.return!==null&&(Ka(e,1),gg(e,1,0))}function Uc(e){for(;e===Ws;)Ws=Oi[--Di],Oi[Di]=null,Ar=Oi[--Di],Oi[Di]=null;for(;e===bl;)bl=pa[--ga],pa[ga]=null,Ba=pa[--ga],pa[ga]=null,ja=pa[--ga],pa[ga]=null}function mg(e,n){pa[ga++]=ja,pa[ga++]=Ba,pa[ga++]=bl,ja=n.id,Ba=n.overflow,bl=e}var Sn=null,Ot=null,Ye=!1,yl=null,ma=!1,Hc=Error(r(519));function _l(e){var n=Error(r(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Cr(ha(n,e)),Hc}function vg(e){var n=e.stateNode,a=e.type,s=e.memoizedProps;switch(n[De]=e,n[et]=s,a){case"dialog":Ve("cancel",n),Ve("close",n);break;case"iframe":case"object":case"embed":Ve("load",n);break;case"video":case"audio":for(a=0;a<Kr.length;a++)Ve(Kr[a],n);break;case"source":Ve("error",n);break;case"img":case"image":case"link":Ve("error",n),Ve("load",n);break;case"details":Ve("toggle",n);break;case"input":Ve("invalid",n),gr(n,s.value,s.defaultValue,s.checked,s.defaultChecked,s.type,s.name,!0);break;case"select":Ve("invalid",n);break;case"textarea":Ve("invalid",n),Mp(n,s.value,s.defaultValue,s.children)}a=s.children,typeof a!="string"&&typeof a!="number"&&typeof a!="bigint"||n.textContent===""+a||s.suppressHydrationWarning===!0||L0(n.textContent,a)?(s.popover!=null&&(Ve("beforetoggle",n),Ve("toggle",n)),s.onScroll!=null&&Ve("scroll",n),s.onScrollEnd!=null&&Ve("scrollend",n),s.onClick!=null&&(n.onclick=Za),n=!0):n=!1,n||_l(e,!0)}function bg(e){for(Sn=e.return;Sn;)switch(Sn.tag){case 5:case 31:case 13:ma=!1;return;case 27:case 3:ma=!0;return;default:Sn=Sn.return}}function Ri(e){if(e!==Sn)return!1;if(!Ye)return bg(e),Ye=!0,!1;var n=e.tag,a;if((a=n!==3&&n!==27)&&((a=n===5)&&(a=e.type,a=!(a!=="form"&&a!=="button")||ld(e.type,e.memoizedProps)),a=!a),a&&Ot&&_l(e),bg(e),n===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(r(317));Ot=X0(e)}else if(n===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(r(317));Ot=X0(e)}else n===27?(n=Ot,Ll(e.type)?(e=ud,ud=null,Ot=e):Ot=n):Ot=Sn?ba(e.stateNode.nextSibling):null;return!0}function Wl(){Ot=Sn=null,Ye=!1}function Ic(){var e=yl;return e!==null&&($n===null?$n=e:$n.push.apply($n,e),yl=null),e}function Cr(e){yl===null?yl=[e]:yl.push(e)}var Vc=O(null),$l=null,Ja=null;function Sl(e,n,a){ee(Vc,n._currentValue),n._currentValue=a}function Pa(e){e._currentValue=Vc.current,J(Vc)}function Qc(e,n,a){for(;e!==null;){var s=e.alternate;if((e.childLanes&n)!==n?(e.childLanes|=n,s!==null&&(s.childLanes|=n)):s!==null&&(s.childLanes&n)!==n&&(s.childLanes|=n),e===a)break;e=e.return}}function Xc(e,n,a,s){var u=e.child;for(u!==null&&(u.return=e);u!==null;){var c=u.dependencies;if(c!==null){var m=u.child;c=c.firstContext;e:for(;c!==null;){var E=c;c=u;for(var N=0;N<n.length;N++)if(E.context===n[N]){c.lanes|=a,E=c.alternate,E!==null&&(E.lanes|=a),Qc(c.return,a,e),s||(m=null);break e}c=E.next}}else if(u.tag===18){if(m=u.return,m===null)throw Error(r(341));m.lanes|=a,c=m.alternate,c!==null&&(c.lanes|=a),Qc(m,a,e),m=null}else m=u.child;if(m!==null)m.return=u;else for(m=u;m!==null;){if(m===e){m=null;break}if(u=m.sibling,u!==null){u.return=m.return,m=u;break}m=m.return}u=m}}function Ni(e,n,a,s){e=null;for(var u=n,c=!1;u!==null;){if(!c){if((u.flags&524288)!==0)c=!0;else if((u.flags&262144)!==0)break}if(u.tag===10){var m=u.alternate;if(m===null)throw Error(r(387));if(m=m.memoizedProps,m!==null){var E=u.type;ea(u.pendingProps.value,m.value)||(e!==null?e.push(E):e=[E])}}else if(u===me.current){if(m=u.alternate,m===null)throw Error(r(387));m.memoizedState.memoizedState!==u.memoizedState.memoizedState&&(e!==null?e.push(qr):e=[qr])}u=u.return}e!==null&&Xc(n,e,a,s),n.flags|=262144}function $s(e){for(e=e.firstContext;e!==null;){if(!ea(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function ql(e){$l=e,Ja=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function En(e){return yg($l,e)}function qs(e,n){return $l===null&&ql(e),yg(e,n)}function yg(e,n){var a=n._currentValue;if(n={context:n,memoizedValue:a,next:null},Ja===null){if(e===null)throw Error(r(308));Ja=n,e.dependencies={lanes:0,firstContext:n},e.flags|=524288}else Ja=Ja.next=n;return a}var O_=typeof AbortController<"u"?AbortController:function(){var e=[],n=this.signal={aborted:!1,addEventListener:function(a,s){e.push(s)}};this.abort=function(){n.aborted=!0,e.forEach(function(a){return a()})}},D_=t.unstable_scheduleCallback,R_=t.unstable_NormalPriority,Jt={$$typeof:D,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Gc(){return{controller:new O_,data:new Map,refCount:0}}function xr(e){e.refCount--,e.refCount===0&&D_(R_,function(){e.controller.abort()})}var Or=null,Zc=0,Mi=0,ki=null;function N_(e,n){if(Or===null){var a=Or=[];Zc=0,Mi=Jf(),ki={status:"pending",value:void 0,then:function(s){a.push(s)}}}return Zc++,n.then(_g,_g),n}function _g(){if(--Zc===0&&Or!==null){ki!==null&&(ki.status="fulfilled");var e=Or;Or=null,Mi=0,ki=null;for(var n=0;n<e.length;n++)(0,e[n])()}}function M_(e,n){var a=[],s={status:"pending",value:null,reason:null,then:function(u){a.push(u)}};return e.then(function(){s.status="fulfilled",s.value=n;for(var u=0;u<a.length;u++)(0,a[u])(n)},function(u){for(s.status="rejected",s.reason=u,u=0;u<a.length;u++)(0,a[u])(void 0)}),s}var Sg=j.S;j.S=function(e,n){l0=st(),typeof n=="object"&&n!==null&&typeof n.then=="function"&&N_(e,n),Sg!==null&&Sg(e,n)};var ei=O(null);function Fc(){var e=ei.current;return e!==null?e:wt.pooledCache}function eo(e,n){n===null?ee(ei,ei.current):ee(ei,n.pool)}function Eg(){var e=Fc();return e===null?null:{parent:Jt._currentValue,pool:e}}var Li=Error(r(460)),Yc=Error(r(474)),to=Error(r(542)),no={then:function(){}};function wg(e){return e=e.status,e==="fulfilled"||e==="rejected"}function Tg(e,n,a){switch(a=e[a],a===void 0?e.push(n):a!==n&&(n.then(Za,Za),n=a),n.status){case"fulfilled":return n.value;case"rejected":throw e=n.reason,Cg(e),e;default:if(typeof n.status=="string")n.then(Za,Za);else{if(e=wt,e!==null&&100<e.shellSuspendCounter)throw Error(r(482));e=n,e.status="pending",e.then(function(s){if(n.status==="pending"){var u=n;u.status="fulfilled",u.value=s}},function(s){if(n.status==="pending"){var u=n;u.status="rejected",u.reason=s}})}switch(n.status){case"fulfilled":return n.value;case"rejected":throw e=n.reason,Cg(e),e}throw ni=n,Li}}function ti(e){try{var n=e._init;return n(e._payload)}catch(a){throw a!==null&&typeof a=="object"&&typeof a.then=="function"?(ni=a,Li):a}}var ni=null;function Ag(){if(ni===null)throw Error(r(459));var e=ni;return ni=null,e}function Cg(e){if(e===Li||e===to)throw Error(r(483))}var zi=null,Dr=0;function ao(e){var n=Dr;return Dr+=1,zi===null&&(zi=[]),Tg(zi,e,n)}function Rr(e,n){n=n.props.ref,e.ref=n!==void 0?n:null}function lo(e,n){throw n.$$typeof===y?Error(r(525)):(e=Object.prototype.toString.call(n),Error(r(31,e==="[object Object]"?"object with keys {"+Object.keys(n).join(", ")+"}":e)))}function xg(e){function n(z,M){if(e){var B=z.deletions;B===null?(z.deletions=[M],z.flags|=16):B.push(M)}}function a(z,M){if(!e)return null;for(;M!==null;)n(z,M),M=M.sibling;return null}function s(z){for(var M=new Map;z!==null;)z.key!==null?M.set(z.key,z):M.set(z.index,z),z=z.sibling;return M}function u(z,M){return z=Ya(z,M),z.index=0,z.sibling=null,z}function c(z,M,B){return z.index=B,e?(B=z.alternate,B!==null?(B=B.index,B<M?(z.flags|=67108866,M):B):(z.flags|=67108866,M)):(z.flags|=1048576,M)}function m(z){return e&&z.alternate===null&&(z.flags|=67108866),z}function E(z,M,B,te){return M===null||M.tag!==6?(M=zc(B,z.mode,te),M.return=z,M):(M=u(M,B),M.return=z,M)}function N(z,M,B,te){var Te=B.type;return Te===_?q(z,M,B.props.children,te,B.key):M!==null&&(M.elementType===Te||typeof Te=="object"&&Te!==null&&Te.$$typeof===Y&&ti(Te)===M.type)?(M=u(M,B.props),Rr(M,B),M.return=z,M):(M=Ps(B.type,B.key,B.props,null,z.mode,te),Rr(M,B),M.return=z,M)}function I(z,M,B,te){return M===null||M.tag!==4||M.stateNode.containerInfo!==B.containerInfo||M.stateNode.implementation!==B.implementation?(M=jc(B,z.mode,te),M.return=z,M):(M=u(M,B.children||[]),M.return=z,M)}function q(z,M,B,te,Te){return M===null||M.tag!==7?(M=Pl(B,z.mode,te,Te),M.return=z,M):(M=u(M,B),M.return=z,M)}function ae(z,M,B){if(typeof M=="string"&&M!==""||typeof M=="number"||typeof M=="bigint")return M=zc(""+M,z.mode,B),M.return=z,M;if(typeof M=="object"&&M!==null){switch(M.$$typeof){case T:return B=Ps(M.type,M.key,M.props,null,z.mode,B),Rr(B,M),B.return=z,B;case A:return M=jc(M,z.mode,B),M.return=z,M;case Y:return M=ti(M),ae(z,M,B)}if(de(M)||P(M))return M=Pl(M,z.mode,B,null),M.return=z,M;if(typeof M.then=="function")return ae(z,ao(M),B);if(M.$$typeof===D)return ae(z,qs(z,M),B);lo(z,M)}return null}function Q(z,M,B,te){var Te=M!==null?M.key:null;if(typeof B=="string"&&B!==""||typeof B=="number"||typeof B=="bigint")return Te!==null?null:E(z,M,""+B,te);if(typeof B=="object"&&B!==null){switch(B.$$typeof){case T:return B.key===Te?N(z,M,B,te):null;case A:return B.key===Te?I(z,M,B,te):null;case Y:return B=ti(B),Q(z,M,B,te)}if(de(B)||P(B))return Te!==null?null:q(z,M,B,te,null);if(typeof B.then=="function")return Q(z,M,ao(B),te);if(B.$$typeof===D)return Q(z,M,qs(z,B),te);lo(z,B)}return null}function F(z,M,B,te,Te){if(typeof te=="string"&&te!==""||typeof te=="number"||typeof te=="bigint")return z=z.get(B)||null,E(M,z,""+te,Te);if(typeof te=="object"&&te!==null){switch(te.$$typeof){case T:return z=z.get(te.key===null?B:te.key)||null,N(M,z,te,Te);case A:return z=z.get(te.key===null?B:te.key)||null,I(M,z,te,Te);case Y:return te=ti(te),F(z,M,B,te,Te)}if(de(te)||P(te))return z=z.get(B)||null,q(M,z,te,Te,null);if(typeof te.then=="function")return F(z,M,B,ao(te),Te);if(te.$$typeof===D)return F(z,M,B,qs(M,te),Te);lo(M,te)}return null}function ve(z,M,B,te){for(var Te=null,it=null,_e=M,je=M=0,Fe=null;_e!==null&&je<B.length;je++){_e.index>je?(Fe=_e,_e=null):Fe=_e.sibling;var rt=Q(z,_e,B[je],te);if(rt===null){_e===null&&(_e=Fe);break}e&&_e&&rt.alternate===null&&n(z,_e),M=c(rt,M,je),it===null?Te=rt:it.sibling=rt,it=rt,_e=Fe}if(je===B.length)return a(z,_e),Ye&&Ka(z,je),Te;if(_e===null){for(;je<B.length;je++)_e=ae(z,B[je],te),_e!==null&&(M=c(_e,M,je),it===null?Te=_e:it.sibling=_e,it=_e);return Ye&&Ka(z,je),Te}for(_e=s(_e);je<B.length;je++)Fe=F(_e,z,je,B[je],te),Fe!==null&&(e&&Fe.alternate!==null&&_e.delete(Fe.key===null?je:Fe.key),M=c(Fe,M,je),it===null?Te=Fe:it.sibling=Fe,it=Fe);return e&&_e.forEach(function(Hl){return n(z,Hl)}),Ye&&Ka(z,je),Te}function Ce(z,M,B,te){if(B==null)throw Error(r(151));for(var Te=null,it=null,_e=M,je=M=0,Fe=null,rt=B.next();_e!==null&&!rt.done;je++,rt=B.next()){_e.index>je?(Fe=_e,_e=null):Fe=_e.sibling;var Hl=Q(z,_e,rt.value,te);if(Hl===null){_e===null&&(_e=Fe);break}e&&_e&&Hl.alternate===null&&n(z,_e),M=c(Hl,M,je),it===null?Te=Hl:it.sibling=Hl,it=Hl,_e=Fe}if(rt.done)return a(z,_e),Ye&&Ka(z,je),Te;if(_e===null){for(;!rt.done;je++,rt=B.next())rt=ae(z,rt.value,te),rt!==null&&(M=c(rt,M,je),it===null?Te=rt:it.sibling=rt,it=rt);return Ye&&Ka(z,je),Te}for(_e=s(_e);!rt.done;je++,rt=B.next())rt=F(_e,z,je,rt.value,te),rt!==null&&(e&&rt.alternate!==null&&_e.delete(rt.key===null?je:rt.key),M=c(rt,M,je),it===null?Te=rt:it.sibling=rt,it=rt);return e&&_e.forEach(function(X2){return n(z,X2)}),Ye&&Ka(z,je),Te}function _t(z,M,B,te){if(typeof B=="object"&&B!==null&&B.type===_&&B.key===null&&(B=B.props.children),typeof B=="object"&&B!==null){switch(B.$$typeof){case T:e:{for(var Te=B.key;M!==null;){if(M.key===Te){if(Te=B.type,Te===_){if(M.tag===7){a(z,M.sibling),te=u(M,B.props.children),te.return=z,z=te;break e}}else if(M.elementType===Te||typeof Te=="object"&&Te!==null&&Te.$$typeof===Y&&ti(Te)===M.type){a(z,M.sibling),te=u(M,B.props),Rr(te,B),te.return=z,z=te;break e}a(z,M);break}else n(z,M);M=M.sibling}B.type===_?(te=Pl(B.props.children,z.mode,te,B.key),te.return=z,z=te):(te=Ps(B.type,B.key,B.props,null,z.mode,te),Rr(te,B),te.return=z,z=te)}return m(z);case A:e:{for(Te=B.key;M!==null;){if(M.key===Te)if(M.tag===4&&M.stateNode.containerInfo===B.containerInfo&&M.stateNode.implementation===B.implementation){a(z,M.sibling),te=u(M,B.children||[]),te.return=z,z=te;break e}else{a(z,M);break}else n(z,M);M=M.sibling}te=jc(B,z.mode,te),te.return=z,z=te}return m(z);case Y:return B=ti(B),_t(z,M,B,te)}if(de(B))return ve(z,M,B,te);if(P(B)){if(Te=P(B),typeof Te!="function")throw Error(r(150));return B=Te.call(B),Ce(z,M,B,te)}if(typeof B.then=="function")return _t(z,M,ao(B),te);if(B.$$typeof===D)return _t(z,M,qs(z,B),te);lo(z,B)}return typeof B=="string"&&B!==""||typeof B=="number"||typeof B=="bigint"?(B=""+B,M!==null&&M.tag===6?(a(z,M.sibling),te=u(M,B),te.return=z,z=te):(a(z,M),te=zc(B,z.mode,te),te.return=z,z=te),m(z)):a(z,M)}return function(z,M,B,te){try{Dr=0;var Te=_t(z,M,B,te);return zi=null,Te}catch(_e){if(_e===Li||_e===to)throw _e;var it=ta(29,_e,null,z.mode);return it.lanes=te,it.return=z,it}finally{}}}var ai=xg(!0),Og=xg(!1),El=!1;function Kc(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Jc(e,n){e=e.updateQueue,n.updateQueue===e&&(n.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function wl(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Tl(e,n,a){var s=e.updateQueue;if(s===null)return null;if(s=s.shared,(ot&2)!==0){var u=s.pending;return u===null?n.next=n:(n.next=u.next,u.next=n),s.pending=n,n=Js(e),fg(e,null,a),n}return Ks(e,s,n,a),Js(e)}function Nr(e,n,a){if(n=n.updateQueue,n!==null&&(n=n.shared,(a&4194048)!==0)){var s=n.lanes;s&=e.pendingLanes,a|=s,n.lanes=a,sn(e,a)}}function Pc(e,n){var a=e.updateQueue,s=e.alternate;if(s!==null&&(s=s.updateQueue,a===s)){var u=null,c=null;if(a=a.firstBaseUpdate,a!==null){do{var m={lane:a.lane,tag:a.tag,payload:a.payload,callback:null,next:null};c===null?u=c=m:c=c.next=m,a=a.next}while(a!==null);c===null?u=c=n:c=c.next=n}else u=c=n;a={baseState:s.baseState,firstBaseUpdate:u,lastBaseUpdate:c,shared:s.shared,callbacks:s.callbacks},e.updateQueue=a;return}e=a.lastBaseUpdate,e===null?a.firstBaseUpdate=n:e.next=n,a.lastBaseUpdate=n}var Wc=!1;function Mr(){if(Wc){var e=ki;if(e!==null)throw e}}function kr(e,n,a,s){Wc=!1;var u=e.updateQueue;El=!1;var c=u.firstBaseUpdate,m=u.lastBaseUpdate,E=u.shared.pending;if(E!==null){u.shared.pending=null;var N=E,I=N.next;N.next=null,m===null?c=I:m.next=I,m=N;var q=e.alternate;q!==null&&(q=q.updateQueue,E=q.lastBaseUpdate,E!==m&&(E===null?q.firstBaseUpdate=I:E.next=I,q.lastBaseUpdate=N))}if(c!==null){var ae=u.baseState;m=0,q=I=N=null,E=c;do{var Q=E.lane&-536870913,F=Q!==E.lane;if(F?(Ze&Q)===Q:(s&Q)===Q){Q!==0&&Q===Mi&&(Wc=!0),q!==null&&(q=q.next={lane:0,tag:E.tag,payload:E.payload,callback:null,next:null});e:{var ve=e,Ce=E;Q=n;var _t=a;switch(Ce.tag){case 1:if(ve=Ce.payload,typeof ve=="function"){ae=ve.call(_t,ae,Q);break e}ae=ve;break e;case 3:ve.flags=ve.flags&-65537|128;case 0:if(ve=Ce.payload,Q=typeof ve=="function"?ve.call(_t,ae,Q):ve,Q==null)break e;ae=S({},ae,Q);break e;case 2:El=!0}}Q=E.callback,Q!==null&&(e.flags|=64,F&&(e.flags|=8192),F=u.callbacks,F===null?u.callbacks=[Q]:F.push(Q))}else F={lane:Q,tag:E.tag,payload:E.payload,callback:E.callback,next:null},q===null?(I=q=F,N=ae):q=q.next=F,m|=Q;if(E=E.next,E===null){if(E=u.shared.pending,E===null)break;F=E,E=F.next,F.next=null,u.lastBaseUpdate=F,u.shared.pending=null}}while(!0);q===null&&(N=ae),u.baseState=N,u.firstBaseUpdate=I,u.lastBaseUpdate=q,c===null&&(u.shared.lanes=0),Dl|=m,e.lanes=m,e.memoizedState=ae}}function Dg(e,n){if(typeof e!="function")throw Error(r(191,e));e.call(n)}function Rg(e,n){var a=e.callbacks;if(a!==null)for(e.callbacks=null,e=0;e<a.length;e++)Dg(a[e],n)}var ji=O(null),io=O(0);function Ng(e,n){e=il,ee(io,e),ee(ji,n),il=e|n.baseLanes}function $c(){ee(io,il),ee(ji,ji.current)}function qc(){il=io.current,J(ji),J(io)}var na=O(null),va=null;function Al(e){var n=e.alternate;ee(Gt,Gt.current&1),ee(na,e),va===null&&(n===null||ji.current!==null||n.memoizedState!==null)&&(va=e)}function ef(e){ee(Gt,Gt.current),ee(na,e),va===null&&(va=e)}function Mg(e){e.tag===22?(ee(Gt,Gt.current),ee(na,e),va===null&&(va=e)):Cl()}function Cl(){ee(Gt,Gt.current),ee(na,na.current)}function aa(e){J(na),va===e&&(va=null),J(Gt)}var Gt=O(0);function ro(e){for(var n=e;n!==null;){if(n.tag===13){var a=n.memoizedState;if(a!==null&&(a=a.dehydrated,a===null||sd(a)||od(a)))return n}else if(n.tag===19&&(n.memoizedProps.revealOrder==="forwards"||n.memoizedProps.revealOrder==="backwards"||n.memoizedProps.revealOrder==="unstable_legacy-backwards"||n.memoizedProps.revealOrder==="together")){if((n.flags&128)!==0)return n}else if(n.child!==null){n.child.return=n,n=n.child;continue}if(n===e)break;for(;n.sibling===null;){if(n.return===null||n.return===e)return null;n=n.return}n.sibling.return=n.return,n=n.sibling}return null}var Wa=0,Le=null,bt=null,Pt=null,so=!1,Bi=!1,li=!1,oo=0,Lr=0,Ui=null,k_=0;function Ht(){throw Error(r(321))}function tf(e,n){if(n===null)return!1;for(var a=0;a<n.length&&a<e.length;a++)if(!ea(e[a],n[a]))return!1;return!0}function nf(e,n,a,s,u,c){return Wa=c,Le=n,n.memoizedState=null,n.updateQueue=null,n.lanes=0,j.H=e===null||e.memoizedState===null?gm:bf,li=!1,c=a(s,u),li=!1,Bi&&(c=Lg(n,a,s,u)),kg(e),c}function kg(e){j.H=Br;var n=bt!==null&&bt.next!==null;if(Wa=0,Pt=bt=Le=null,so=!1,Lr=0,Ui=null,n)throw Error(r(300));e===null||Wt||(e=e.dependencies,e!==null&&$s(e)&&(Wt=!0))}function Lg(e,n,a,s){Le=e;var u=0;do{if(Bi&&(Ui=null),Lr=0,Bi=!1,25<=u)throw Error(r(301));if(u+=1,Pt=bt=null,e.updateQueue!=null){var c=e.updateQueue;c.lastEffect=null,c.events=null,c.stores=null,c.memoCache!=null&&(c.memoCache.index=0)}j.H=mm,c=n(a,s)}while(Bi);return c}function L_(){var e=j.H,n=e.useState()[0];return n=typeof n.then=="function"?zr(n):n,e=e.useState()[0],(bt!==null?bt.memoizedState:null)!==e&&(Le.flags|=1024),n}function af(){var e=oo!==0;return oo=0,e}function lf(e,n,a){n.updateQueue=e.updateQueue,n.flags&=-2053,e.lanes&=~a}function rf(e){if(so){for(e=e.memoizedState;e!==null;){var n=e.queue;n!==null&&(n.pending=null),e=e.next}so=!1}Wa=0,Pt=bt=Le=null,Bi=!1,Lr=oo=0,Ui=null}function Hn(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Pt===null?Le.memoizedState=Pt=e:Pt=Pt.next=e,Pt}function Zt(){if(bt===null){var e=Le.alternate;e=e!==null?e.memoizedState:null}else e=bt.next;var n=Pt===null?Le.memoizedState:Pt.next;if(n!==null)Pt=n,bt=e;else{if(e===null)throw Le.alternate===null?Error(r(467)):Error(r(310));bt=e,e={memoizedState:bt.memoizedState,baseState:bt.baseState,baseQueue:bt.baseQueue,queue:bt.queue,next:null},Pt===null?Le.memoizedState=Pt=e:Pt=Pt.next=e}return Pt}function uo(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function zr(e){var n=Lr;return Lr+=1,Ui===null&&(Ui=[]),e=Tg(Ui,e,n),n=Le,(Pt===null?n.memoizedState:Pt.next)===null&&(n=n.alternate,j.H=n===null||n.memoizedState===null?gm:bf),e}function co(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return zr(e);if(e.$$typeof===D)return En(e)}throw Error(r(438,String(e)))}function sf(e){var n=null,a=Le.updateQueue;if(a!==null&&(n=a.memoCache),n==null){var s=Le.alternate;s!==null&&(s=s.updateQueue,s!==null&&(s=s.memoCache,s!=null&&(n={data:s.data.map(function(u){return u.slice()}),index:0})))}if(n==null&&(n={data:[],index:0}),a===null&&(a=uo(),Le.updateQueue=a),a.memoCache=n,a=n.data[n.index],a===void 0)for(a=n.data[n.index]=Array(e),s=0;s<e;s++)a[s]=W;return n.index++,a}function $a(e,n){return typeof n=="function"?n(e):n}function fo(e){var n=Zt();return of(n,bt,e)}function of(e,n,a){var s=e.queue;if(s===null)throw Error(r(311));s.lastRenderedReducer=a;var u=e.baseQueue,c=s.pending;if(c!==null){if(u!==null){var m=u.next;u.next=c.next,c.next=m}n.baseQueue=u=c,s.pending=null}if(c=e.baseState,u===null)e.memoizedState=c;else{n=u.next;var E=m=null,N=null,I=n,q=!1;do{var ae=I.lane&-536870913;if(ae!==I.lane?(Ze&ae)===ae:(Wa&ae)===ae){var Q=I.revertLane;if(Q===0)N!==null&&(N=N.next={lane:0,revertLane:0,gesture:null,action:I.action,hasEagerState:I.hasEagerState,eagerState:I.eagerState,next:null}),ae===Mi&&(q=!0);else if((Wa&Q)===Q){I=I.next,Q===Mi&&(q=!0);continue}else ae={lane:0,revertLane:I.revertLane,gesture:null,action:I.action,hasEagerState:I.hasEagerState,eagerState:I.eagerState,next:null},N===null?(E=N=ae,m=c):N=N.next=ae,Le.lanes|=Q,Dl|=Q;ae=I.action,li&&a(c,ae),c=I.hasEagerState?I.eagerState:a(c,ae)}else Q={lane:ae,revertLane:I.revertLane,gesture:I.gesture,action:I.action,hasEagerState:I.hasEagerState,eagerState:I.eagerState,next:null},N===null?(E=N=Q,m=c):N=N.next=Q,Le.lanes|=ae,Dl|=ae;I=I.next}while(I!==null&&I!==n);if(N===null?m=c:N.next=E,!ea(c,e.memoizedState)&&(Wt=!0,q&&(a=ki,a!==null)))throw a;e.memoizedState=c,e.baseState=m,e.baseQueue=N,s.lastRenderedState=c}return u===null&&(s.lanes=0),[e.memoizedState,s.dispatch]}function uf(e){var n=Zt(),a=n.queue;if(a===null)throw Error(r(311));a.lastRenderedReducer=e;var s=a.dispatch,u=a.pending,c=n.memoizedState;if(u!==null){a.pending=null;var m=u=u.next;do c=e(c,m.action),m=m.next;while(m!==u);ea(c,n.memoizedState)||(Wt=!0),n.memoizedState=c,n.baseQueue===null&&(n.baseState=c),a.lastRenderedState=c}return[c,s]}function zg(e,n,a){var s=Le,u=Zt(),c=Ye;if(c){if(a===void 0)throw Error(r(407));a=a()}else a=n();var m=!ea((bt||u).memoizedState,a);if(m&&(u.memoizedState=a,Wt=!0),u=u.queue,df(Ug.bind(null,s,u,e),[e]),u.getSnapshot!==n||m||Pt!==null&&Pt.memoizedState.tag&1){if(s.flags|=2048,Hi(9,{destroy:void 0},Bg.bind(null,s,u,a,n),null),wt===null)throw Error(r(349));c||(Wa&127)!==0||jg(s,n,a)}return a}function jg(e,n,a){e.flags|=16384,e={getSnapshot:n,value:a},n=Le.updateQueue,n===null?(n=uo(),Le.updateQueue=n,n.stores=[e]):(a=n.stores,a===null?n.stores=[e]:a.push(e))}function Bg(e,n,a,s){n.value=a,n.getSnapshot=s,Hg(n)&&Ig(e)}function Ug(e,n,a){return a(function(){Hg(n)&&Ig(e)})}function Hg(e){var n=e.getSnapshot;e=e.value;try{var a=n();return!ea(e,a)}catch{return!0}}function Ig(e){var n=Jl(e,2);n!==null&&qn(n,e,2)}function cf(e){var n=Hn();if(typeof e=="function"){var a=e;if(e=a(),li){ft(!0);try{a()}finally{ft(!1)}}}return n.memoizedState=n.baseState=e,n.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:$a,lastRenderedState:e},n}function Vg(e,n,a,s){return e.baseState=a,of(e,bt,typeof s=="function"?s:$a)}function z_(e,n,a,s,u){if(go(e))throw Error(r(485));if(e=n.action,e!==null){var c={payload:u,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(m){c.listeners.push(m)}};j.T!==null?a(!0):c.isTransition=!1,s(c),a=n.pending,a===null?(c.next=n.pending=c,Qg(n,c)):(c.next=a.next,n.pending=a.next=c)}}function Qg(e,n){var a=n.action,s=n.payload,u=e.state;if(n.isTransition){var c=j.T,m={};j.T=m;try{var E=a(u,s),N=j.S;N!==null&&N(m,E),Xg(e,n,E)}catch(I){ff(e,n,I)}finally{c!==null&&m.types!==null&&(c.types=m.types),j.T=c}}else try{c=a(u,s),Xg(e,n,c)}catch(I){ff(e,n,I)}}function Xg(e,n,a){a!==null&&typeof a=="object"&&typeof a.then=="function"?a.then(function(s){Gg(e,n,s)},function(s){return ff(e,n,s)}):Gg(e,n,a)}function Gg(e,n,a){n.status="fulfilled",n.value=a,Zg(n),e.state=a,n=e.pending,n!==null&&(a=n.next,a===n?e.pending=null:(a=a.next,n.next=a,Qg(e,a)))}function ff(e,n,a){var s=e.pending;if(e.pending=null,s!==null){s=s.next;do n.status="rejected",n.reason=a,Zg(n),n=n.next;while(n!==s)}e.action=null}function Zg(e){e=e.listeners;for(var n=0;n<e.length;n++)(0,e[n])()}function Fg(e,n){return n}function Yg(e,n){if(Ye){var a=wt.formState;if(a!==null){e:{var s=Le;if(Ye){if(Ot){t:{for(var u=Ot,c=ma;u.nodeType!==8;){if(!c){u=null;break t}if(u=ba(u.nextSibling),u===null){u=null;break t}}c=u.data,u=c==="F!"||c==="F"?u:null}if(u){Ot=ba(u.nextSibling),s=u.data==="F!";break e}}_l(s)}s=!1}s&&(n=a[0])}}return a=Hn(),a.memoizedState=a.baseState=n,s={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Fg,lastRenderedState:n},a.queue=s,a=dm.bind(null,Le,s),s.dispatch=a,s=cf(!1),c=vf.bind(null,Le,!1,s.queue),s=Hn(),u={state:n,dispatch:null,action:e,pending:null},s.queue=u,a=z_.bind(null,Le,u,c,a),u.dispatch=a,s.memoizedState=e,[n,a,!1]}function Kg(e){var n=Zt();return Jg(n,bt,e)}function Jg(e,n,a){if(n=of(e,n,Fg)[0],e=fo($a)[0],typeof n=="object"&&n!==null&&typeof n.then=="function")try{var s=zr(n)}catch(m){throw m===Li?to:m}else s=n;n=Zt();var u=n.queue,c=u.dispatch;return a!==n.memoizedState&&(Le.flags|=2048,Hi(9,{destroy:void 0},j_.bind(null,u,a),null)),[s,c,e]}function j_(e,n){e.action=n}function Pg(e){var n=Zt(),a=bt;if(a!==null)return Jg(n,a,e);Zt(),n=n.memoizedState,a=Zt();var s=a.queue.dispatch;return a.memoizedState=e,[n,s,!1]}function Hi(e,n,a,s){return e={tag:e,create:a,deps:s,inst:n,next:null},n=Le.updateQueue,n===null&&(n=uo(),Le.updateQueue=n),a=n.lastEffect,a===null?n.lastEffect=e.next=e:(s=a.next,a.next=e,e.next=s,n.lastEffect=e),e}function Wg(){return Zt().memoizedState}function ho(e,n,a,s){var u=Hn();Le.flags|=e,u.memoizedState=Hi(1|n,{destroy:void 0},a,s===void 0?null:s)}function po(e,n,a,s){var u=Zt();s=s===void 0?null:s;var c=u.memoizedState.inst;bt!==null&&s!==null&&tf(s,bt.memoizedState.deps)?u.memoizedState=Hi(n,c,a,s):(Le.flags|=e,u.memoizedState=Hi(1|n,c,a,s))}function $g(e,n){ho(8390656,8,e,n)}function df(e,n){po(2048,8,e,n)}function B_(e){Le.flags|=4;var n=Le.updateQueue;if(n===null)n=uo(),Le.updateQueue=n,n.events=[e];else{var a=n.events;a===null?n.events=[e]:a.push(e)}}function qg(e){var n=Zt().memoizedState;return B_({ref:n,nextImpl:e}),function(){if((ot&2)!==0)throw Error(r(440));return n.impl.apply(void 0,arguments)}}function em(e,n){return po(4,2,e,n)}function tm(e,n){return po(4,4,e,n)}function nm(e,n){if(typeof n=="function"){e=e();var a=n(e);return function(){typeof a=="function"?a():n(null)}}if(n!=null)return e=e(),n.current=e,function(){n.current=null}}function am(e,n,a){a=a!=null?a.concat([e]):null,po(4,4,nm.bind(null,n,e),a)}function hf(){}function lm(e,n){var a=Zt();n=n===void 0?null:n;var s=a.memoizedState;return n!==null&&tf(n,s[1])?s[0]:(a.memoizedState=[e,n],e)}function im(e,n){var a=Zt();n=n===void 0?null:n;var s=a.memoizedState;if(n!==null&&tf(n,s[1]))return s[0];if(s=e(),li){ft(!0);try{e()}finally{ft(!1)}}return a.memoizedState=[s,n],s}function pf(e,n,a){return a===void 0||(Wa&1073741824)!==0&&(Ze&261930)===0?e.memoizedState=n:(e.memoizedState=a,e=r0(),Le.lanes|=e,Dl|=e,a)}function rm(e,n,a,s){return ea(a,n)?a:ji.current!==null?(e=pf(e,a,s),ea(e,n)||(Wt=!0),e):(Wa&42)===0||(Wa&1073741824)!==0&&(Ze&261930)===0?(Wt=!0,e.memoizedState=a):(e=r0(),Le.lanes|=e,Dl|=e,n)}function sm(e,n,a,s,u){var c=le.p;le.p=c!==0&&8>c?c:8;var m=j.T,E={};j.T=E,vf(e,!1,n,a);try{var N=u(),I=j.S;if(I!==null&&I(E,N),N!==null&&typeof N=="object"&&typeof N.then=="function"){var q=M_(N,s);jr(e,n,q,ra(e))}else jr(e,n,s,ra(e))}catch(ae){jr(e,n,{then:function(){},status:"rejected",reason:ae},ra())}finally{le.p=c,m!==null&&E.types!==null&&(m.types=E.types),j.T=m}}function U_(){}function gf(e,n,a,s){if(e.tag!==5)throw Error(r(476));var u=om(e).queue;sm(e,u,n,G,a===null?U_:function(){return um(e),a(s)})}function om(e){var n=e.memoizedState;if(n!==null)return n;n={memoizedState:G,baseState:G,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:$a,lastRenderedState:G},next:null};var a={};return n.next={memoizedState:a,baseState:a,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:$a,lastRenderedState:a},next:null},e.memoizedState=n,e=e.alternate,e!==null&&(e.memoizedState=n),n}function um(e){var n=om(e);n.next===null&&(n=e.alternate.memoizedState),jr(e,n.next.queue,{},ra())}function mf(){return En(qr)}function cm(){return Zt().memoizedState}function fm(){return Zt().memoizedState}function H_(e){for(var n=e.return;n!==null;){switch(n.tag){case 24:case 3:var a=ra();e=wl(a);var s=Tl(n,e,a);s!==null&&(qn(s,n,a),Nr(s,n,a)),n={cache:Gc()},e.payload=n;return}n=n.return}}function I_(e,n,a){var s=ra();a={lane:s,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},go(e)?hm(n,a):(a=kc(e,n,a,s),a!==null&&(qn(a,e,s),pm(a,n,s)))}function dm(e,n,a){var s=ra();jr(e,n,a,s)}function jr(e,n,a,s){var u={lane:s,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null};if(go(e))hm(n,u);else{var c=e.alternate;if(e.lanes===0&&(c===null||c.lanes===0)&&(c=n.lastRenderedReducer,c!==null))try{var m=n.lastRenderedState,E=c(m,a);if(u.hasEagerState=!0,u.eagerState=E,ea(E,m))return Ks(e,n,u,0),wt===null&&Ys(),!1}catch{}finally{}if(a=kc(e,n,u,s),a!==null)return qn(a,e,s),pm(a,n,s),!0}return!1}function vf(e,n,a,s){if(s={lane:2,revertLane:Jf(),gesture:null,action:s,hasEagerState:!1,eagerState:null,next:null},go(e)){if(n)throw Error(r(479))}else n=kc(e,a,s,2),n!==null&&qn(n,e,2)}function go(e){var n=e.alternate;return e===Le||n!==null&&n===Le}function hm(e,n){Bi=so=!0;var a=e.pending;a===null?n.next=n:(n.next=a.next,a.next=n),e.pending=n}function pm(e,n,a){if((a&4194048)!==0){var s=n.lanes;s&=e.pendingLanes,a|=s,n.lanes=a,sn(e,a)}}var Br={readContext:En,use:co,useCallback:Ht,useContext:Ht,useEffect:Ht,useImperativeHandle:Ht,useLayoutEffect:Ht,useInsertionEffect:Ht,useMemo:Ht,useReducer:Ht,useRef:Ht,useState:Ht,useDebugValue:Ht,useDeferredValue:Ht,useTransition:Ht,useSyncExternalStore:Ht,useId:Ht,useHostTransitionStatus:Ht,useFormState:Ht,useActionState:Ht,useOptimistic:Ht,useMemoCache:Ht,useCacheRefresh:Ht};Br.useEffectEvent=Ht;var gm={readContext:En,use:co,useCallback:function(e,n){return Hn().memoizedState=[e,n===void 0?null:n],e},useContext:En,useEffect:$g,useImperativeHandle:function(e,n,a){a=a!=null?a.concat([e]):null,ho(4194308,4,nm.bind(null,n,e),a)},useLayoutEffect:function(e,n){return ho(4194308,4,e,n)},useInsertionEffect:function(e,n){ho(4,2,e,n)},useMemo:function(e,n){var a=Hn();n=n===void 0?null:n;var s=e();if(li){ft(!0);try{e()}finally{ft(!1)}}return a.memoizedState=[s,n],s},useReducer:function(e,n,a){var s=Hn();if(a!==void 0){var u=a(n);if(li){ft(!0);try{a(n)}finally{ft(!1)}}}else u=n;return s.memoizedState=s.baseState=u,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:u},s.queue=e,e=e.dispatch=I_.bind(null,Le,e),[s.memoizedState,e]},useRef:function(e){var n=Hn();return e={current:e},n.memoizedState=e},useState:function(e){e=cf(e);var n=e.queue,a=dm.bind(null,Le,n);return n.dispatch=a,[e.memoizedState,a]},useDebugValue:hf,useDeferredValue:function(e,n){var a=Hn();return pf(a,e,n)},useTransition:function(){var e=cf(!1);return e=sm.bind(null,Le,e.queue,!0,!1),Hn().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,n,a){var s=Le,u=Hn();if(Ye){if(a===void 0)throw Error(r(407));a=a()}else{if(a=n(),wt===null)throw Error(r(349));(Ze&127)!==0||jg(s,n,a)}u.memoizedState=a;var c={value:a,getSnapshot:n};return u.queue=c,$g(Ug.bind(null,s,c,e),[e]),s.flags|=2048,Hi(9,{destroy:void 0},Bg.bind(null,s,c,a,n),null),a},useId:function(){var e=Hn(),n=wt.identifierPrefix;if(Ye){var a=Ba,s=ja;a=(s&~(1<<32-Je(s)-1)).toString(32)+a,n="_"+n+"R_"+a,a=oo++,0<a&&(n+="H"+a.toString(32)),n+="_"}else a=k_++,n="_"+n+"r_"+a.toString(32)+"_";return e.memoizedState=n},useHostTransitionStatus:mf,useFormState:Yg,useActionState:Yg,useOptimistic:function(e){var n=Hn();n.memoizedState=n.baseState=e;var a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return n.queue=a,n=vf.bind(null,Le,!0,a),a.dispatch=n,[e,n]},useMemoCache:sf,useCacheRefresh:function(){return Hn().memoizedState=H_.bind(null,Le)},useEffectEvent:function(e){var n=Hn(),a={impl:e};return n.memoizedState=a,function(){if((ot&2)!==0)throw Error(r(440));return a.impl.apply(void 0,arguments)}}},bf={readContext:En,use:co,useCallback:lm,useContext:En,useEffect:df,useImperativeHandle:am,useInsertionEffect:em,useLayoutEffect:tm,useMemo:im,useReducer:fo,useRef:Wg,useState:function(){return fo($a)},useDebugValue:hf,useDeferredValue:function(e,n){var a=Zt();return rm(a,bt.memoizedState,e,n)},useTransition:function(){var e=fo($a)[0],n=Zt().memoizedState;return[typeof e=="boolean"?e:zr(e),n]},useSyncExternalStore:zg,useId:cm,useHostTransitionStatus:mf,useFormState:Kg,useActionState:Kg,useOptimistic:function(e,n){var a=Zt();return Vg(a,bt,e,n)},useMemoCache:sf,useCacheRefresh:fm};bf.useEffectEvent=qg;var mm={readContext:En,use:co,useCallback:lm,useContext:En,useEffect:df,useImperativeHandle:am,useInsertionEffect:em,useLayoutEffect:tm,useMemo:im,useReducer:uf,useRef:Wg,useState:function(){return uf($a)},useDebugValue:hf,useDeferredValue:function(e,n){var a=Zt();return bt===null?pf(a,e,n):rm(a,bt.memoizedState,e,n)},useTransition:function(){var e=uf($a)[0],n=Zt().memoizedState;return[typeof e=="boolean"?e:zr(e),n]},useSyncExternalStore:zg,useId:cm,useHostTransitionStatus:mf,useFormState:Pg,useActionState:Pg,useOptimistic:function(e,n){var a=Zt();return bt!==null?Vg(a,bt,e,n):(a.baseState=e,[e,a.queue.dispatch])},useMemoCache:sf,useCacheRefresh:fm};mm.useEffectEvent=qg;function yf(e,n,a,s){n=e.memoizedState,a=a(s,n),a=a==null?n:S({},n,a),e.memoizedState=a,e.lanes===0&&(e.updateQueue.baseState=a)}var _f={enqueueSetState:function(e,n,a){e=e._reactInternals;var s=ra(),u=wl(s);u.payload=n,a!=null&&(u.callback=a),n=Tl(e,u,s),n!==null&&(qn(n,e,s),Nr(n,e,s))},enqueueReplaceState:function(e,n,a){e=e._reactInternals;var s=ra(),u=wl(s);u.tag=1,u.payload=n,a!=null&&(u.callback=a),n=Tl(e,u,s),n!==null&&(qn(n,e,s),Nr(n,e,s))},enqueueForceUpdate:function(e,n){e=e._reactInternals;var a=ra(),s=wl(a);s.tag=2,n!=null&&(s.callback=n),n=Tl(e,s,a),n!==null&&(qn(n,e,a),Nr(n,e,a))}};function vm(e,n,a,s,u,c,m){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(s,c,m):n.prototype&&n.prototype.isPureReactComponent?!wr(a,s)||!wr(u,c):!0}function bm(e,n,a,s){e=n.state,typeof n.componentWillReceiveProps=="function"&&n.componentWillReceiveProps(a,s),typeof n.UNSAFE_componentWillReceiveProps=="function"&&n.UNSAFE_componentWillReceiveProps(a,s),n.state!==e&&_f.enqueueReplaceState(n,n.state,null)}function ii(e,n){var a=n;if("ref"in n){a={};for(var s in n)s!=="ref"&&(a[s]=n[s])}if(e=e.defaultProps){a===n&&(a=S({},a));for(var u in e)a[u]===void 0&&(a[u]=e[u])}return a}function ym(e){Fs(e)}function _m(e){console.error(e)}function Sm(e){Fs(e)}function mo(e,n){try{var a=e.onUncaughtError;a(n.value,{componentStack:n.stack})}catch(s){setTimeout(function(){throw s})}}function Em(e,n,a){try{var s=e.onCaughtError;s(a.value,{componentStack:a.stack,errorBoundary:n.tag===1?n.stateNode:null})}catch(u){setTimeout(function(){throw u})}}function Sf(e,n,a){return a=wl(a),a.tag=3,a.payload={element:null},a.callback=function(){mo(e,n)},a}function wm(e){return e=wl(e),e.tag=3,e}function Tm(e,n,a,s){var u=a.type.getDerivedStateFromError;if(typeof u=="function"){var c=s.value;e.payload=function(){return u(c)},e.callback=function(){Em(n,a,s)}}var m=a.stateNode;m!==null&&typeof m.componentDidCatch=="function"&&(e.callback=function(){Em(n,a,s),typeof u!="function"&&(Rl===null?Rl=new Set([this]):Rl.add(this));var E=s.stack;this.componentDidCatch(s.value,{componentStack:E!==null?E:""})})}function V_(e,n,a,s,u){if(a.flags|=32768,s!==null&&typeof s=="object"&&typeof s.then=="function"){if(n=a.alternate,n!==null&&Ni(n,a,u,!0),a=na.current,a!==null){switch(a.tag){case 31:case 13:return va===null?Oo():a.alternate===null&&It===0&&(It=3),a.flags&=-257,a.flags|=65536,a.lanes=u,s===no?a.flags|=16384:(n=a.updateQueue,n===null?a.updateQueue=new Set([s]):n.add(s),Ff(e,s,u)),!1;case 22:return a.flags|=65536,s===no?a.flags|=16384:(n=a.updateQueue,n===null?(n={transitions:null,markerInstances:null,retryQueue:new Set([s])},a.updateQueue=n):(a=n.retryQueue,a===null?n.retryQueue=new Set([s]):a.add(s)),Ff(e,s,u)),!1}throw Error(r(435,a.tag))}return Ff(e,s,u),Oo(),!1}if(Ye)return n=na.current,n!==null?((n.flags&65536)===0&&(n.flags|=256),n.flags|=65536,n.lanes=u,s!==Hc&&(e=Error(r(422),{cause:s}),Cr(ha(e,a)))):(s!==Hc&&(n=Error(r(423),{cause:s}),Cr(ha(n,a))),e=e.current.alternate,e.flags|=65536,u&=-u,e.lanes|=u,s=ha(s,a),u=Sf(e.stateNode,s,u),Pc(e,u),It!==4&&(It=2)),!1;var c=Error(r(520),{cause:s});if(c=ha(c,a),Zr===null?Zr=[c]:Zr.push(c),It!==4&&(It=2),n===null)return!0;s=ha(s,a),a=n;do{switch(a.tag){case 3:return a.flags|=65536,e=u&-u,a.lanes|=e,e=Sf(a.stateNode,s,e),Pc(a,e),!1;case 1:if(n=a.type,c=a.stateNode,(a.flags&128)===0&&(typeof n.getDerivedStateFromError=="function"||c!==null&&typeof c.componentDidCatch=="function"&&(Rl===null||!Rl.has(c))))return a.flags|=65536,u&=-u,a.lanes|=u,u=wm(u),Tm(u,e,a,s),Pc(a,u),!1}a=a.return}while(a!==null);return!1}var Ef=Error(r(461)),Wt=!1;function wn(e,n,a,s){n.child=e===null?Og(n,null,a,s):ai(n,e.child,a,s)}function Am(e,n,a,s,u){a=a.render;var c=n.ref;if("ref"in s){var m={};for(var E in s)E!=="ref"&&(m[E]=s[E])}else m=s;return ql(n),s=nf(e,n,a,m,c,u),E=af(),e!==null&&!Wt?(lf(e,n,u),qa(e,n,u)):(Ye&&E&&Bc(n),n.flags|=1,wn(e,n,s,u),n.child)}function Cm(e,n,a,s,u){if(e===null){var c=a.type;return typeof c=="function"&&!Lc(c)&&c.defaultProps===void 0&&a.compare===null?(n.tag=15,n.type=c,xm(e,n,c,s,u)):(e=Ps(a.type,null,s,n,n.mode,u),e.ref=n.ref,e.return=n,n.child=e)}if(c=e.child,!Rf(e,u)){var m=c.memoizedProps;if(a=a.compare,a=a!==null?a:wr,a(m,s)&&e.ref===n.ref)return qa(e,n,u)}return n.flags|=1,e=Ya(c,s),e.ref=n.ref,e.return=n,n.child=e}function xm(e,n,a,s,u){if(e!==null){var c=e.memoizedProps;if(wr(c,s)&&e.ref===n.ref)if(Wt=!1,n.pendingProps=s=c,Rf(e,u))(e.flags&131072)!==0&&(Wt=!0);else return n.lanes=e.lanes,qa(e,n,u)}return wf(e,n,a,s,u)}function Om(e,n,a,s){var u=s.children,c=e!==null?e.memoizedState:null;if(e===null&&n.stateNode===null&&(n.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),s.mode==="hidden"){if((n.flags&128)!==0){if(c=c!==null?c.baseLanes|a:a,e!==null){for(s=n.child=e.child,u=0;s!==null;)u=u|s.lanes|s.childLanes,s=s.sibling;s=u&~c}else s=0,n.child=null;return Dm(e,n,c,a,s)}if((a&536870912)!==0)n.memoizedState={baseLanes:0,cachePool:null},e!==null&&eo(n,c!==null?c.cachePool:null),c!==null?Ng(n,c):$c(),Mg(n);else return s=n.lanes=536870912,Dm(e,n,c!==null?c.baseLanes|a:a,a,s)}else c!==null?(eo(n,c.cachePool),Ng(n,c),Cl(),n.memoizedState=null):(e!==null&&eo(n,null),$c(),Cl());return wn(e,n,u,a),n.child}function Ur(e,n){return e!==null&&e.tag===22||n.stateNode!==null||(n.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),n.sibling}function Dm(e,n,a,s,u){var c=Fc();return c=c===null?null:{parent:Jt._currentValue,pool:c},n.memoizedState={baseLanes:a,cachePool:c},e!==null&&eo(n,null),$c(),Mg(n),e!==null&&Ni(e,n,s,!0),n.childLanes=u,null}function vo(e,n){return n=yo({mode:n.mode,children:n.children},e.mode),n.ref=e.ref,e.child=n,n.return=e,n}function Rm(e,n,a){return ai(n,e.child,null,a),e=vo(n,n.pendingProps),e.flags|=2,aa(n),n.memoizedState=null,e}function Q_(e,n,a){var s=n.pendingProps,u=(n.flags&128)!==0;if(n.flags&=-129,e===null){if(Ye){if(s.mode==="hidden")return e=vo(n,s),n.lanes=536870912,Ur(null,e);if(ef(n),(e=Ot)?(e=Q0(e,ma),e=e!==null&&e.data==="&"?e:null,e!==null&&(n.memoizedState={dehydrated:e,treeContext:bl!==null?{id:ja,overflow:Ba}:null,retryLane:536870912,hydrationErrors:null},a=hg(e),a.return=n,n.child=a,Sn=n,Ot=null)):e=null,e===null)throw _l(n);return n.lanes=536870912,null}return vo(n,s)}var c=e.memoizedState;if(c!==null){var m=c.dehydrated;if(ef(n),u)if(n.flags&256)n.flags&=-257,n=Rm(e,n,a);else if(n.memoizedState!==null)n.child=e.child,n.flags|=128,n=null;else throw Error(r(558));else if(Wt||Ni(e,n,a,!1),u=(a&e.childLanes)!==0,Wt||u){if(s=wt,s!==null&&(m=Kt(s,a),m!==0&&m!==c.retryLane))throw c.retryLane=m,Jl(e,m),qn(s,e,m),Ef;Oo(),n=Rm(e,n,a)}else e=c.treeContext,Ot=ba(m.nextSibling),Sn=n,Ye=!0,yl=null,ma=!1,e!==null&&mg(n,e),n=vo(n,s),n.flags|=4096;return n}return e=Ya(e.child,{mode:s.mode,children:s.children}),e.ref=n.ref,n.child=e,e.return=n,e}function bo(e,n){var a=n.ref;if(a===null)e!==null&&e.ref!==null&&(n.flags|=4194816);else{if(typeof a!="function"&&typeof a!="object")throw Error(r(284));(e===null||e.ref!==a)&&(n.flags|=4194816)}}function wf(e,n,a,s,u){return ql(n),a=nf(e,n,a,s,void 0,u),s=af(),e!==null&&!Wt?(lf(e,n,u),qa(e,n,u)):(Ye&&s&&Bc(n),n.flags|=1,wn(e,n,a,u),n.child)}function Nm(e,n,a,s,u,c){return ql(n),n.updateQueue=null,a=Lg(n,s,a,u),kg(e),s=af(),e!==null&&!Wt?(lf(e,n,c),qa(e,n,c)):(Ye&&s&&Bc(n),n.flags|=1,wn(e,n,a,c),n.child)}function Mm(e,n,a,s,u){if(ql(n),n.stateNode===null){var c=xi,m=a.contextType;typeof m=="object"&&m!==null&&(c=En(m)),c=new a(s,c),n.memoizedState=c.state!==null&&c.state!==void 0?c.state:null,c.updater=_f,n.stateNode=c,c._reactInternals=n,c=n.stateNode,c.props=s,c.state=n.memoizedState,c.refs={},Kc(n),m=a.contextType,c.context=typeof m=="object"&&m!==null?En(m):xi,c.state=n.memoizedState,m=a.getDerivedStateFromProps,typeof m=="function"&&(yf(n,a,m,s),c.state=n.memoizedState),typeof a.getDerivedStateFromProps=="function"||typeof c.getSnapshotBeforeUpdate=="function"||typeof c.UNSAFE_componentWillMount!="function"&&typeof c.componentWillMount!="function"||(m=c.state,typeof c.componentWillMount=="function"&&c.componentWillMount(),typeof c.UNSAFE_componentWillMount=="function"&&c.UNSAFE_componentWillMount(),m!==c.state&&_f.enqueueReplaceState(c,c.state,null),kr(n,s,c,u),Mr(),c.state=n.memoizedState),typeof c.componentDidMount=="function"&&(n.flags|=4194308),s=!0}else if(e===null){c=n.stateNode;var E=n.memoizedProps,N=ii(a,E);c.props=N;var I=c.context,q=a.contextType;m=xi,typeof q=="object"&&q!==null&&(m=En(q));var ae=a.getDerivedStateFromProps;q=typeof ae=="function"||typeof c.getSnapshotBeforeUpdate=="function",E=n.pendingProps!==E,q||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(E||I!==m)&&bm(n,c,s,m),El=!1;var Q=n.memoizedState;c.state=Q,kr(n,s,c,u),Mr(),I=n.memoizedState,E||Q!==I||El?(typeof ae=="function"&&(yf(n,a,ae,s),I=n.memoizedState),(N=El||vm(n,a,N,s,Q,I,m))?(q||typeof c.UNSAFE_componentWillMount!="function"&&typeof c.componentWillMount!="function"||(typeof c.componentWillMount=="function"&&c.componentWillMount(),typeof c.UNSAFE_componentWillMount=="function"&&c.UNSAFE_componentWillMount()),typeof c.componentDidMount=="function"&&(n.flags|=4194308)):(typeof c.componentDidMount=="function"&&(n.flags|=4194308),n.memoizedProps=s,n.memoizedState=I),c.props=s,c.state=I,c.context=m,s=N):(typeof c.componentDidMount=="function"&&(n.flags|=4194308),s=!1)}else{c=n.stateNode,Jc(e,n),m=n.memoizedProps,q=ii(a,m),c.props=q,ae=n.pendingProps,Q=c.context,I=a.contextType,N=xi,typeof I=="object"&&I!==null&&(N=En(I)),E=a.getDerivedStateFromProps,(I=typeof E=="function"||typeof c.getSnapshotBeforeUpdate=="function")||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(m!==ae||Q!==N)&&bm(n,c,s,N),El=!1,Q=n.memoizedState,c.state=Q,kr(n,s,c,u),Mr();var F=n.memoizedState;m!==ae||Q!==F||El||e!==null&&e.dependencies!==null&&$s(e.dependencies)?(typeof E=="function"&&(yf(n,a,E,s),F=n.memoizedState),(q=El||vm(n,a,q,s,Q,F,N)||e!==null&&e.dependencies!==null&&$s(e.dependencies))?(I||typeof c.UNSAFE_componentWillUpdate!="function"&&typeof c.componentWillUpdate!="function"||(typeof c.componentWillUpdate=="function"&&c.componentWillUpdate(s,F,N),typeof c.UNSAFE_componentWillUpdate=="function"&&c.UNSAFE_componentWillUpdate(s,F,N)),typeof c.componentDidUpdate=="function"&&(n.flags|=4),typeof c.getSnapshotBeforeUpdate=="function"&&(n.flags|=1024)):(typeof c.componentDidUpdate!="function"||m===e.memoizedProps&&Q===e.memoizedState||(n.flags|=4),typeof c.getSnapshotBeforeUpdate!="function"||m===e.memoizedProps&&Q===e.memoizedState||(n.flags|=1024),n.memoizedProps=s,n.memoizedState=F),c.props=s,c.state=F,c.context=N,s=q):(typeof c.componentDidUpdate!="function"||m===e.memoizedProps&&Q===e.memoizedState||(n.flags|=4),typeof c.getSnapshotBeforeUpdate!="function"||m===e.memoizedProps&&Q===e.memoizedState||(n.flags|=1024),s=!1)}return c=s,bo(e,n),s=(n.flags&128)!==0,c||s?(c=n.stateNode,a=s&&typeof a.getDerivedStateFromError!="function"?null:c.render(),n.flags|=1,e!==null&&s?(n.child=ai(n,e.child,null,u),n.child=ai(n,null,a,u)):wn(e,n,a,u),n.memoizedState=c.state,e=n.child):e=qa(e,n,u),e}function km(e,n,a,s){return Wl(),n.flags|=256,wn(e,n,a,s),n.child}var Tf={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Af(e){return{baseLanes:e,cachePool:Eg()}}function Cf(e,n,a){return e=e!==null?e.childLanes&~a:0,n&&(e|=ia),e}function Lm(e,n,a){var s=n.pendingProps,u=!1,c=(n.flags&128)!==0,m;if((m=c)||(m=e!==null&&e.memoizedState===null?!1:(Gt.current&2)!==0),m&&(u=!0,n.flags&=-129),m=(n.flags&32)!==0,n.flags&=-33,e===null){if(Ye){if(u?Al(n):Cl(),(e=Ot)?(e=Q0(e,ma),e=e!==null&&e.data!=="&"?e:null,e!==null&&(n.memoizedState={dehydrated:e,treeContext:bl!==null?{id:ja,overflow:Ba}:null,retryLane:536870912,hydrationErrors:null},a=hg(e),a.return=n,n.child=a,Sn=n,Ot=null)):e=null,e===null)throw _l(n);return od(e)?n.lanes=32:n.lanes=536870912,null}var E=s.children;return s=s.fallback,u?(Cl(),u=n.mode,E=yo({mode:"hidden",children:E},u),s=Pl(s,u,a,null),E.return=n,s.return=n,E.sibling=s,n.child=E,s=n.child,s.memoizedState=Af(a),s.childLanes=Cf(e,m,a),n.memoizedState=Tf,Ur(null,s)):(Al(n),xf(n,E))}var N=e.memoizedState;if(N!==null&&(E=N.dehydrated,E!==null)){if(c)n.flags&256?(Al(n),n.flags&=-257,n=Of(e,n,a)):n.memoizedState!==null?(Cl(),n.child=e.child,n.flags|=128,n=null):(Cl(),E=s.fallback,u=n.mode,s=yo({mode:"visible",children:s.children},u),E=Pl(E,u,a,null),E.flags|=2,s.return=n,E.return=n,s.sibling=E,n.child=s,ai(n,e.child,null,a),s=n.child,s.memoizedState=Af(a),s.childLanes=Cf(e,m,a),n.memoizedState=Tf,n=Ur(null,s));else if(Al(n),od(E)){if(m=E.nextSibling&&E.nextSibling.dataset,m)var I=m.dgst;m=I,s=Error(r(419)),s.stack="",s.digest=m,Cr({value:s,source:null,stack:null}),n=Of(e,n,a)}else if(Wt||Ni(e,n,a,!1),m=(a&e.childLanes)!==0,Wt||m){if(m=wt,m!==null&&(s=Kt(m,a),s!==0&&s!==N.retryLane))throw N.retryLane=s,Jl(e,s),qn(m,e,s),Ef;sd(E)||Oo(),n=Of(e,n,a)}else sd(E)?(n.flags|=192,n.child=e.child,n=null):(e=N.treeContext,Ot=ba(E.nextSibling),Sn=n,Ye=!0,yl=null,ma=!1,e!==null&&mg(n,e),n=xf(n,s.children),n.flags|=4096);return n}return u?(Cl(),E=s.fallback,u=n.mode,N=e.child,I=N.sibling,s=Ya(N,{mode:"hidden",children:s.children}),s.subtreeFlags=N.subtreeFlags&65011712,I!==null?E=Ya(I,E):(E=Pl(E,u,a,null),E.flags|=2),E.return=n,s.return=n,s.sibling=E,n.child=s,Ur(null,s),s=n.child,E=e.child.memoizedState,E===null?E=Af(a):(u=E.cachePool,u!==null?(N=Jt._currentValue,u=u.parent!==N?{parent:N,pool:N}:u):u=Eg(),E={baseLanes:E.baseLanes|a,cachePool:u}),s.memoizedState=E,s.childLanes=Cf(e,m,a),n.memoizedState=Tf,Ur(e.child,s)):(Al(n),a=e.child,e=a.sibling,a=Ya(a,{mode:"visible",children:s.children}),a.return=n,a.sibling=null,e!==null&&(m=n.deletions,m===null?(n.deletions=[e],n.flags|=16):m.push(e)),n.child=a,n.memoizedState=null,a)}function xf(e,n){return n=yo({mode:"visible",children:n},e.mode),n.return=e,e.child=n}function yo(e,n){return e=ta(22,e,null,n),e.lanes=0,e}function Of(e,n,a){return ai(n,e.child,null,a),e=xf(n,n.pendingProps.children),e.flags|=2,n.memoizedState=null,e}function zm(e,n,a){e.lanes|=n;var s=e.alternate;s!==null&&(s.lanes|=n),Qc(e.return,n,a)}function Df(e,n,a,s,u,c){var m=e.memoizedState;m===null?e.memoizedState={isBackwards:n,rendering:null,renderingStartTime:0,last:s,tail:a,tailMode:u,treeForkCount:c}:(m.isBackwards=n,m.rendering=null,m.renderingStartTime=0,m.last=s,m.tail=a,m.tailMode=u,m.treeForkCount=c)}function jm(e,n,a){var s=n.pendingProps,u=s.revealOrder,c=s.tail;s=s.children;var m=Gt.current,E=(m&2)!==0;if(E?(m=m&1|2,n.flags|=128):m&=1,ee(Gt,m),wn(e,n,s,a),s=Ye?Ar:0,!E&&e!==null&&(e.flags&128)!==0)e:for(e=n.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&zm(e,a,n);else if(e.tag===19)zm(e,a,n);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===n)break e;for(;e.sibling===null;){if(e.return===null||e.return===n)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(u){case"forwards":for(a=n.child,u=null;a!==null;)e=a.alternate,e!==null&&ro(e)===null&&(u=a),a=a.sibling;a=u,a===null?(u=n.child,n.child=null):(u=a.sibling,a.sibling=null),Df(n,!1,u,a,c,s);break;case"backwards":case"unstable_legacy-backwards":for(a=null,u=n.child,n.child=null;u!==null;){if(e=u.alternate,e!==null&&ro(e)===null){n.child=u;break}e=u.sibling,u.sibling=a,a=u,u=e}Df(n,!0,a,null,c,s);break;case"together":Df(n,!1,null,null,void 0,s);break;default:n.memoizedState=null}return n.child}function qa(e,n,a){if(e!==null&&(n.dependencies=e.dependencies),Dl|=n.lanes,(a&n.childLanes)===0)if(e!==null){if(Ni(e,n,a,!1),(a&n.childLanes)===0)return null}else return null;if(e!==null&&n.child!==e.child)throw Error(r(153));if(n.child!==null){for(e=n.child,a=Ya(e,e.pendingProps),n.child=a,a.return=n;e.sibling!==null;)e=e.sibling,a=a.sibling=Ya(e,e.pendingProps),a.return=n;a.sibling=null}return n.child}function Rf(e,n){return(e.lanes&n)!==0?!0:(e=e.dependencies,!!(e!==null&&$s(e)))}function X_(e,n,a){switch(n.tag){case 3:Se(n,n.stateNode.containerInfo),Sl(n,Jt,e.memoizedState.cache),Wl();break;case 27:case 5:Be(n);break;case 4:Se(n,n.stateNode.containerInfo);break;case 10:Sl(n,n.type,n.memoizedProps.value);break;case 31:if(n.memoizedState!==null)return n.flags|=128,ef(n),null;break;case 13:var s=n.memoizedState;if(s!==null)return s.dehydrated!==null?(Al(n),n.flags|=128,null):(a&n.child.childLanes)!==0?Lm(e,n,a):(Al(n),e=qa(e,n,a),e!==null?e.sibling:null);Al(n);break;case 19:var u=(e.flags&128)!==0;if(s=(a&n.childLanes)!==0,s||(Ni(e,n,a,!1),s=(a&n.childLanes)!==0),u){if(s)return jm(e,n,a);n.flags|=128}if(u=n.memoizedState,u!==null&&(u.rendering=null,u.tail=null,u.lastEffect=null),ee(Gt,Gt.current),s)break;return null;case 22:return n.lanes=0,Om(e,n,a,n.pendingProps);case 24:Sl(n,Jt,e.memoizedState.cache)}return qa(e,n,a)}function Bm(e,n,a){if(e!==null)if(e.memoizedProps!==n.pendingProps)Wt=!0;else{if(!Rf(e,a)&&(n.flags&128)===0)return Wt=!1,X_(e,n,a);Wt=(e.flags&131072)!==0}else Wt=!1,Ye&&(n.flags&1048576)!==0&&gg(n,Ar,n.index);switch(n.lanes=0,n.tag){case 16:e:{var s=n.pendingProps;if(e=ti(n.elementType),n.type=e,typeof e=="function")Lc(e)?(s=ii(e,s),n.tag=1,n=Mm(null,n,e,s,a)):(n.tag=0,n=wf(null,n,e,s,a));else{if(e!=null){var u=e.$$typeof;if(u===k){n.tag=11,n=Am(null,n,e,s,a);break e}else if(u===L){n.tag=14,n=Cm(null,n,e,s,a);break e}}throw n=he(e)||e,Error(r(306,n,""))}}return n;case 0:return wf(e,n,n.type,n.pendingProps,a);case 1:return s=n.type,u=ii(s,n.pendingProps),Mm(e,n,s,u,a);case 3:e:{if(Se(n,n.stateNode.containerInfo),e===null)throw Error(r(387));s=n.pendingProps;var c=n.memoizedState;u=c.element,Jc(e,n),kr(n,s,null,a);var m=n.memoizedState;if(s=m.cache,Sl(n,Jt,s),s!==c.cache&&Xc(n,[Jt],a,!0),Mr(),s=m.element,c.isDehydrated)if(c={element:s,isDehydrated:!1,cache:m.cache},n.updateQueue.baseState=c,n.memoizedState=c,n.flags&256){n=km(e,n,s,a);break e}else if(s!==u){u=ha(Error(r(424)),n),Cr(u),n=km(e,n,s,a);break e}else{switch(e=n.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(Ot=ba(e.firstChild),Sn=n,Ye=!0,yl=null,ma=!0,a=Og(n,null,s,a),n.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling}else{if(Wl(),s===u){n=qa(e,n,a);break e}wn(e,n,s,a)}n=n.child}return n;case 26:return bo(e,n),e===null?(a=K0(n.type,null,n.pendingProps,null))?n.memoizedState=a:Ye||(a=n.type,e=n.pendingProps,s=zo(ce.current).createElement(a),s[De]=n,s[et]=e,Tn(s,a,e),pe(s),n.stateNode=s):n.memoizedState=K0(n.type,e.memoizedProps,n.pendingProps,e.memoizedState),null;case 27:return Be(n),e===null&&Ye&&(s=n.stateNode=Z0(n.type,n.pendingProps,ce.current),Sn=n,ma=!0,u=Ot,Ll(n.type)?(ud=u,Ot=ba(s.firstChild)):Ot=u),wn(e,n,n.pendingProps.children,a),bo(e,n),e===null&&(n.flags|=4194304),n.child;case 5:return e===null&&Ye&&((u=s=Ot)&&(s=y2(s,n.type,n.pendingProps,ma),s!==null?(n.stateNode=s,Sn=n,Ot=ba(s.firstChild),ma=!1,u=!0):u=!1),u||_l(n)),Be(n),u=n.type,c=n.pendingProps,m=e!==null?e.memoizedProps:null,s=c.children,ld(u,c)?s=null:m!==null&&ld(u,m)&&(n.flags|=32),n.memoizedState!==null&&(u=nf(e,n,L_,null,null,a),qr._currentValue=u),bo(e,n),wn(e,n,s,a),n.child;case 6:return e===null&&Ye&&((e=a=Ot)&&(a=_2(a,n.pendingProps,ma),a!==null?(n.stateNode=a,Sn=n,Ot=null,e=!0):e=!1),e||_l(n)),null;case 13:return Lm(e,n,a);case 4:return Se(n,n.stateNode.containerInfo),s=n.pendingProps,e===null?n.child=ai(n,null,s,a):wn(e,n,s,a),n.child;case 11:return Am(e,n,n.type,n.pendingProps,a);case 7:return wn(e,n,n.pendingProps,a),n.child;case 8:return wn(e,n,n.pendingProps.children,a),n.child;case 12:return wn(e,n,n.pendingProps.children,a),n.child;case 10:return s=n.pendingProps,Sl(n,n.type,s.value),wn(e,n,s.children,a),n.child;case 9:return u=n.type._context,s=n.pendingProps.children,ql(n),u=En(u),s=s(u),n.flags|=1,wn(e,n,s,a),n.child;case 14:return Cm(e,n,n.type,n.pendingProps,a);case 15:return xm(e,n,n.type,n.pendingProps,a);case 19:return jm(e,n,a);case 31:return Q_(e,n,a);case 22:return Om(e,n,a,n.pendingProps);case 24:return ql(n),s=En(Jt),e===null?(u=Fc(),u===null&&(u=wt,c=Gc(),u.pooledCache=c,c.refCount++,c!==null&&(u.pooledCacheLanes|=a),u=c),n.memoizedState={parent:s,cache:u},Kc(n),Sl(n,Jt,u)):((e.lanes&a)!==0&&(Jc(e,n),kr(n,null,null,a),Mr()),u=e.memoizedState,c=n.memoizedState,u.parent!==s?(u={parent:s,cache:s},n.memoizedState=u,n.lanes===0&&(n.memoizedState=n.updateQueue.baseState=u),Sl(n,Jt,s)):(s=c.cache,Sl(n,Jt,s),s!==u.cache&&Xc(n,[Jt],a,!0))),wn(e,n,n.pendingProps.children,a),n.child;case 29:throw n.pendingProps}throw Error(r(156,n.tag))}function el(e){e.flags|=4}function Nf(e,n,a,s,u){if((n=(e.mode&32)!==0)&&(n=!1),n){if(e.flags|=16777216,(u&335544128)===u)if(e.stateNode.complete)e.flags|=8192;else if(c0())e.flags|=8192;else throw ni=no,Yc}else e.flags&=-16777217}function Um(e,n){if(n.type!=="stylesheet"||(n.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!q0(n))if(c0())e.flags|=8192;else throw ni=no,Yc}function _o(e,n){n!==null&&(e.flags|=4),e.flags&16384&&(n=e.tag!==22?ln():536870912,e.lanes|=n,Xi|=n)}function Hr(e,n){if(!Ye)switch(e.tailMode){case"hidden":n=e.tail;for(var a=null;n!==null;)n.alternate!==null&&(a=n),n=n.sibling;a===null?e.tail=null:a.sibling=null;break;case"collapsed":a=e.tail;for(var s=null;a!==null;)a.alternate!==null&&(s=a),a=a.sibling;s===null?n||e.tail===null?e.tail=null:e.tail.sibling=null:s.sibling=null}}function Dt(e){var n=e.alternate!==null&&e.alternate.child===e.child,a=0,s=0;if(n)for(var u=e.child;u!==null;)a|=u.lanes|u.childLanes,s|=u.subtreeFlags&65011712,s|=u.flags&65011712,u.return=e,u=u.sibling;else for(u=e.child;u!==null;)a|=u.lanes|u.childLanes,s|=u.subtreeFlags,s|=u.flags,u.return=e,u=u.sibling;return e.subtreeFlags|=s,e.childLanes=a,n}function G_(e,n,a){var s=n.pendingProps;switch(Uc(n),n.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Dt(n),null;case 1:return Dt(n),null;case 3:return a=n.stateNode,s=null,e!==null&&(s=e.memoizedState.cache),n.memoizedState.cache!==s&&(n.flags|=2048),Pa(Jt),we(),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),(e===null||e.child===null)&&(Ri(n)?el(n):e===null||e.memoizedState.isDehydrated&&(n.flags&256)===0||(n.flags|=1024,Ic())),Dt(n),null;case 26:var u=n.type,c=n.memoizedState;return e===null?(el(n),c!==null?(Dt(n),Um(n,c)):(Dt(n),Nf(n,u,null,s,a))):c?c!==e.memoizedState?(el(n),Dt(n),Um(n,c)):(Dt(n),n.flags&=-16777217):(e=e.memoizedProps,e!==s&&el(n),Dt(n),Nf(n,u,e,s,a)),null;case 27:if(St(n),a=ce.current,u=n.type,e!==null&&n.stateNode!=null)e.memoizedProps!==s&&el(n);else{if(!s){if(n.stateNode===null)throw Error(r(166));return Dt(n),null}e=oe.current,Ri(n)?vg(n):(e=Z0(u,s,a),n.stateNode=e,el(n))}return Dt(n),null;case 5:if(St(n),u=n.type,e!==null&&n.stateNode!=null)e.memoizedProps!==s&&el(n);else{if(!s){if(n.stateNode===null)throw Error(r(166));return Dt(n),null}if(c=oe.current,Ri(n))vg(n);else{var m=zo(ce.current);switch(c){case 1:c=m.createElementNS("http://www.w3.org/2000/svg",u);break;case 2:c=m.createElementNS("http://www.w3.org/1998/Math/MathML",u);break;default:switch(u){case"svg":c=m.createElementNS("http://www.w3.org/2000/svg",u);break;case"math":c=m.createElementNS("http://www.w3.org/1998/Math/MathML",u);break;case"script":c=m.createElement("div"),c.innerHTML="<script><\/script>",c=c.removeChild(c.firstChild);break;case"select":c=typeof s.is=="string"?m.createElement("select",{is:s.is}):m.createElement("select"),s.multiple?c.multiple=!0:s.size&&(c.size=s.size);break;default:c=typeof s.is=="string"?m.createElement(u,{is:s.is}):m.createElement(u)}}c[De]=n,c[et]=s;e:for(m=n.child;m!==null;){if(m.tag===5||m.tag===6)c.appendChild(m.stateNode);else if(m.tag!==4&&m.tag!==27&&m.child!==null){m.child.return=m,m=m.child;continue}if(m===n)break e;for(;m.sibling===null;){if(m.return===null||m.return===n)break e;m=m.return}m.sibling.return=m.return,m=m.sibling}n.stateNode=c;e:switch(Tn(c,u,s),u){case"button":case"input":case"select":case"textarea":s=!!s.autoFocus;break e;case"img":s=!0;break e;default:s=!1}s&&el(n)}}return Dt(n),Nf(n,n.type,e===null?null:e.memoizedProps,n.pendingProps,a),null;case 6:if(e&&n.stateNode!=null)e.memoizedProps!==s&&el(n);else{if(typeof s!="string"&&n.stateNode===null)throw Error(r(166));if(e=ce.current,Ri(n)){if(e=n.stateNode,a=n.memoizedProps,s=null,u=Sn,u!==null)switch(u.tag){case 27:case 5:s=u.memoizedProps}e[De]=n,e=!!(e.nodeValue===a||s!==null&&s.suppressHydrationWarning===!0||L0(e.nodeValue,a)),e||_l(n,!0)}else e=zo(e).createTextNode(s),e[De]=n,n.stateNode=e}return Dt(n),null;case 31:if(a=n.memoizedState,e===null||e.memoizedState!==null){if(s=Ri(n),a!==null){if(e===null){if(!s)throw Error(r(318));if(e=n.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(r(557));e[De]=n}else Wl(),(n.flags&128)===0&&(n.memoizedState=null),n.flags|=4;Dt(n),e=!1}else a=Ic(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),e=!0;if(!e)return n.flags&256?(aa(n),n):(aa(n),null);if((n.flags&128)!==0)throw Error(r(558))}return Dt(n),null;case 13:if(s=n.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(u=Ri(n),s!==null&&s.dehydrated!==null){if(e===null){if(!u)throw Error(r(318));if(u=n.memoizedState,u=u!==null?u.dehydrated:null,!u)throw Error(r(317));u[De]=n}else Wl(),(n.flags&128)===0&&(n.memoizedState=null),n.flags|=4;Dt(n),u=!1}else u=Ic(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=u),u=!0;if(!u)return n.flags&256?(aa(n),n):(aa(n),null)}return aa(n),(n.flags&128)!==0?(n.lanes=a,n):(a=s!==null,e=e!==null&&e.memoizedState!==null,a&&(s=n.child,u=null,s.alternate!==null&&s.alternate.memoizedState!==null&&s.alternate.memoizedState.cachePool!==null&&(u=s.alternate.memoizedState.cachePool.pool),c=null,s.memoizedState!==null&&s.memoizedState.cachePool!==null&&(c=s.memoizedState.cachePool.pool),c!==u&&(s.flags|=2048)),a!==e&&a&&(n.child.flags|=8192),_o(n,n.updateQueue),Dt(n),null);case 4:return we(),e===null&&qf(n.stateNode.containerInfo),Dt(n),null;case 10:return Pa(n.type),Dt(n),null;case 19:if(J(Gt),s=n.memoizedState,s===null)return Dt(n),null;if(u=(n.flags&128)!==0,c=s.rendering,c===null)if(u)Hr(s,!1);else{if(It!==0||e!==null&&(e.flags&128)!==0)for(e=n.child;e!==null;){if(c=ro(e),c!==null){for(n.flags|=128,Hr(s,!1),e=c.updateQueue,n.updateQueue=e,_o(n,e),n.subtreeFlags=0,e=a,a=n.child;a!==null;)dg(a,e),a=a.sibling;return ee(Gt,Gt.current&1|2),Ye&&Ka(n,s.treeForkCount),n.child}e=e.sibling}s.tail!==null&&st()>Ao&&(n.flags|=128,u=!0,Hr(s,!1),n.lanes=4194304)}else{if(!u)if(e=ro(c),e!==null){if(n.flags|=128,u=!0,e=e.updateQueue,n.updateQueue=e,_o(n,e),Hr(s,!0),s.tail===null&&s.tailMode==="hidden"&&!c.alternate&&!Ye)return Dt(n),null}else 2*st()-s.renderingStartTime>Ao&&a!==536870912&&(n.flags|=128,u=!0,Hr(s,!1),n.lanes=4194304);s.isBackwards?(c.sibling=n.child,n.child=c):(e=s.last,e!==null?e.sibling=c:n.child=c,s.last=c)}return s.tail!==null?(e=s.tail,s.rendering=e,s.tail=e.sibling,s.renderingStartTime=st(),e.sibling=null,a=Gt.current,ee(Gt,u?a&1|2:a&1),Ye&&Ka(n,s.treeForkCount),e):(Dt(n),null);case 22:case 23:return aa(n),qc(),s=n.memoizedState!==null,e!==null?e.memoizedState!==null!==s&&(n.flags|=8192):s&&(n.flags|=8192),s?(a&536870912)!==0&&(n.flags&128)===0&&(Dt(n),n.subtreeFlags&6&&(n.flags|=8192)):Dt(n),a=n.updateQueue,a!==null&&_o(n,a.retryQueue),a=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),s=null,n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(s=n.memoizedState.cachePool.pool),s!==a&&(n.flags|=2048),e!==null&&J(ei),null;case 24:return a=null,e!==null&&(a=e.memoizedState.cache),n.memoizedState.cache!==a&&(n.flags|=2048),Pa(Jt),Dt(n),null;case 25:return null;case 30:return null}throw Error(r(156,n.tag))}function Z_(e,n){switch(Uc(n),n.tag){case 1:return e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 3:return Pa(Jt),we(),e=n.flags,(e&65536)!==0&&(e&128)===0?(n.flags=e&-65537|128,n):null;case 26:case 27:case 5:return St(n),null;case 31:if(n.memoizedState!==null){if(aa(n),n.alternate===null)throw Error(r(340));Wl()}return e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 13:if(aa(n),e=n.memoizedState,e!==null&&e.dehydrated!==null){if(n.alternate===null)throw Error(r(340));Wl()}return e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 19:return J(Gt),null;case 4:return we(),null;case 10:return Pa(n.type),null;case 22:case 23:return aa(n),qc(),e!==null&&J(ei),e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 24:return Pa(Jt),null;case 25:return null;default:return null}}function Hm(e,n){switch(Uc(n),n.tag){case 3:Pa(Jt),we();break;case 26:case 27:case 5:St(n);break;case 4:we();break;case 31:n.memoizedState!==null&&aa(n);break;case 13:aa(n);break;case 19:J(Gt);break;case 10:Pa(n.type);break;case 22:case 23:aa(n),qc(),e!==null&&J(ei);break;case 24:Pa(Jt)}}function Ir(e,n){try{var a=n.updateQueue,s=a!==null?a.lastEffect:null;if(s!==null){var u=s.next;a=u;do{if((a.tag&e)===e){s=void 0;var c=a.create,m=a.inst;s=c(),m.destroy=s}a=a.next}while(a!==u)}}catch(E){gt(n,n.return,E)}}function xl(e,n,a){try{var s=n.updateQueue,u=s!==null?s.lastEffect:null;if(u!==null){var c=u.next;s=c;do{if((s.tag&e)===e){var m=s.inst,E=m.destroy;if(E!==void 0){m.destroy=void 0,u=n;var N=a,I=E;try{I()}catch(q){gt(u,N,q)}}}s=s.next}while(s!==c)}}catch(q){gt(n,n.return,q)}}function Im(e){var n=e.updateQueue;if(n!==null){var a=e.stateNode;try{Rg(n,a)}catch(s){gt(e,e.return,s)}}}function Vm(e,n,a){a.props=ii(e.type,e.memoizedProps),a.state=e.memoizedState;try{a.componentWillUnmount()}catch(s){gt(e,n,s)}}function Vr(e,n){try{var a=e.ref;if(a!==null){switch(e.tag){case 26:case 27:case 5:var s=e.stateNode;break;case 30:s=e.stateNode;break;default:s=e.stateNode}typeof a=="function"?e.refCleanup=a(s):a.current=s}}catch(u){gt(e,n,u)}}function Ua(e,n){var a=e.ref,s=e.refCleanup;if(a!==null)if(typeof s=="function")try{s()}catch(u){gt(e,n,u)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof a=="function")try{a(null)}catch(u){gt(e,n,u)}else a.current=null}function Qm(e){var n=e.type,a=e.memoizedProps,s=e.stateNode;try{e:switch(n){case"button":case"input":case"select":case"textarea":a.autoFocus&&s.focus();break e;case"img":a.src?s.src=a.src:a.srcSet&&(s.srcset=a.srcSet)}}catch(u){gt(e,e.return,u)}}function Mf(e,n,a){try{var s=e.stateNode;h2(s,e.type,a,n),s[et]=n}catch(u){gt(e,e.return,u)}}function Xm(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Ll(e.type)||e.tag===4}function kf(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Xm(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&&Ll(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Lf(e,n,a){var s=e.tag;if(s===5||s===6)e=e.stateNode,n?(a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a).insertBefore(e,n):(n=a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a,n.appendChild(e),a=a._reactRootContainer,a!=null||n.onclick!==null||(n.onclick=Za));else if(s!==4&&(s===27&&Ll(e.type)&&(a=e.stateNode,n=null),e=e.child,e!==null))for(Lf(e,n,a),e=e.sibling;e!==null;)Lf(e,n,a),e=e.sibling}function So(e,n,a){var s=e.tag;if(s===5||s===6)e=e.stateNode,n?a.insertBefore(e,n):a.appendChild(e);else if(s!==4&&(s===27&&Ll(e.type)&&(a=e.stateNode),e=e.child,e!==null))for(So(e,n,a),e=e.sibling;e!==null;)So(e,n,a),e=e.sibling}function Gm(e){var n=e.stateNode,a=e.memoizedProps;try{for(var s=e.type,u=n.attributes;u.length;)n.removeAttributeNode(u[0]);Tn(n,s,a),n[De]=e,n[et]=a}catch(c){gt(e,e.return,c)}}var tl=!1,$t=!1,zf=!1,Zm=typeof WeakSet=="function"?WeakSet:Set,mn=null;function F_(e,n){if(e=e.containerInfo,nd=Qo,e=ag(e),xc(e)){if("selectionStart"in e)var a={start:e.selectionStart,end:e.selectionEnd};else e:{a=(a=e.ownerDocument)&&a.defaultView||window;var s=a.getSelection&&a.getSelection();if(s&&s.rangeCount!==0){a=s.anchorNode;var u=s.anchorOffset,c=s.focusNode;s=s.focusOffset;try{a.nodeType,c.nodeType}catch{a=null;break e}var m=0,E=-1,N=-1,I=0,q=0,ae=e,Q=null;t:for(;;){for(var F;ae!==a||u!==0&&ae.nodeType!==3||(E=m+u),ae!==c||s!==0&&ae.nodeType!==3||(N=m+s),ae.nodeType===3&&(m+=ae.nodeValue.length),(F=ae.firstChild)!==null;)Q=ae,ae=F;for(;;){if(ae===e)break t;if(Q===a&&++I===u&&(E=m),Q===c&&++q===s&&(N=m),(F=ae.nextSibling)!==null)break;ae=Q,Q=ae.parentNode}ae=F}a=E===-1||N===-1?null:{start:E,end:N}}else a=null}a=a||{start:0,end:0}}else a=null;for(ad={focusedElem:e,selectionRange:a},Qo=!1,mn=n;mn!==null;)if(n=mn,e=n.child,(n.subtreeFlags&1028)!==0&&e!==null)e.return=n,mn=e;else for(;mn!==null;){switch(n=mn,c=n.alternate,e=n.flags,n.tag){case 0:if((e&4)!==0&&(e=n.updateQueue,e=e!==null?e.events:null,e!==null))for(a=0;a<e.length;a++)u=e[a],u.ref.impl=u.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&c!==null){e=void 0,a=n,u=c.memoizedProps,c=c.memoizedState,s=a.stateNode;try{var ve=ii(a.type,u);e=s.getSnapshotBeforeUpdate(ve,c),s.__reactInternalSnapshotBeforeUpdate=e}catch(Ce){gt(a,a.return,Ce)}}break;case 3:if((e&1024)!==0){if(e=n.stateNode.containerInfo,a=e.nodeType,a===9)rd(e);else if(a===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":rd(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((e&1024)!==0)throw Error(r(163))}if(e=n.sibling,e!==null){e.return=n.return,mn=e;break}mn=n.return}}function Fm(e,n,a){var s=a.flags;switch(a.tag){case 0:case 11:case 15:al(e,a),s&4&&Ir(5,a);break;case 1:if(al(e,a),s&4)if(e=a.stateNode,n===null)try{e.componentDidMount()}catch(m){gt(a,a.return,m)}else{var u=ii(a.type,n.memoizedProps);n=n.memoizedState;try{e.componentDidUpdate(u,n,e.__reactInternalSnapshotBeforeUpdate)}catch(m){gt(a,a.return,m)}}s&64&&Im(a),s&512&&Vr(a,a.return);break;case 3:if(al(e,a),s&64&&(e=a.updateQueue,e!==null)){if(n=null,a.child!==null)switch(a.child.tag){case 27:case 5:n=a.child.stateNode;break;case 1:n=a.child.stateNode}try{Rg(e,n)}catch(m){gt(a,a.return,m)}}break;case 27:n===null&&s&4&&Gm(a);case 26:case 5:al(e,a),n===null&&s&4&&Qm(a),s&512&&Vr(a,a.return);break;case 12:al(e,a);break;case 31:al(e,a),s&4&&Jm(e,a);break;case 13:al(e,a),s&4&&Pm(e,a),s&64&&(e=a.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(a=t2.bind(null,a),S2(e,a))));break;case 22:if(s=a.memoizedState!==null||tl,!s){n=n!==null&&n.memoizedState!==null||$t,u=tl;var c=$t;tl=s,($t=n)&&!c?ll(e,a,(a.subtreeFlags&8772)!==0):al(e,a),tl=u,$t=c}break;case 30:break;default:al(e,a)}}function Ym(e){var n=e.alternate;n!==null&&(e.alternate=null,Ym(n)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(n=e.stateNode,n!==null&&R(n)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var Nt=null,Jn=!1;function nl(e,n,a){for(a=a.child;a!==null;)Km(e,n,a),a=a.sibling}function Km(e,n,a){if(vt&&typeof vt.onCommitFiberUnmount=="function")try{vt.onCommitFiberUnmount(dn,a)}catch{}switch(a.tag){case 26:$t||Ua(a,n),nl(e,n,a),a.memoizedState?a.memoizedState.count--:a.stateNode&&(a=a.stateNode,a.parentNode.removeChild(a));break;case 27:$t||Ua(a,n);var s=Nt,u=Jn;Ll(a.type)&&(Nt=a.stateNode,Jn=!1),nl(e,n,a),Pr(a.stateNode),Nt=s,Jn=u;break;case 5:$t||Ua(a,n);case 6:if(s=Nt,u=Jn,Nt=null,nl(e,n,a),Nt=s,Jn=u,Nt!==null)if(Jn)try{(Nt.nodeType===9?Nt.body:Nt.nodeName==="HTML"?Nt.ownerDocument.body:Nt).removeChild(a.stateNode)}catch(c){gt(a,n,c)}else try{Nt.removeChild(a.stateNode)}catch(c){gt(a,n,c)}break;case 18:Nt!==null&&(Jn?(e=Nt,I0(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,a.stateNode),Wi(e)):I0(Nt,a.stateNode));break;case 4:s=Nt,u=Jn,Nt=a.stateNode.containerInfo,Jn=!0,nl(e,n,a),Nt=s,Jn=u;break;case 0:case 11:case 14:case 15:xl(2,a,n),$t||xl(4,a,n),nl(e,n,a);break;case 1:$t||(Ua(a,n),s=a.stateNode,typeof s.componentWillUnmount=="function"&&Vm(a,n,s)),nl(e,n,a);break;case 21:nl(e,n,a);break;case 22:$t=(s=$t)||a.memoizedState!==null,nl(e,n,a),$t=s;break;default:nl(e,n,a)}}function Jm(e,n){if(n.memoizedState===null&&(e=n.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Wi(e)}catch(a){gt(n,n.return,a)}}}function Pm(e,n){if(n.memoizedState===null&&(e=n.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Wi(e)}catch(a){gt(n,n.return,a)}}function Y_(e){switch(e.tag){case 31:case 13:case 19:var n=e.stateNode;return n===null&&(n=e.stateNode=new Zm),n;case 22:return e=e.stateNode,n=e._retryCache,n===null&&(n=e._retryCache=new Zm),n;default:throw Error(r(435,e.tag))}}function Eo(e,n){var a=Y_(e);n.forEach(function(s){if(!a.has(s)){a.add(s);var u=n2.bind(null,e,s);s.then(u,u)}})}function Pn(e,n){var a=n.deletions;if(a!==null)for(var s=0;s<a.length;s++){var u=a[s],c=e,m=n,E=m;e:for(;E!==null;){switch(E.tag){case 27:if(Ll(E.type)){Nt=E.stateNode,Jn=!1;break e}break;case 5:Nt=E.stateNode,Jn=!1;break e;case 3:case 4:Nt=E.stateNode.containerInfo,Jn=!0;break e}E=E.return}if(Nt===null)throw Error(r(160));Km(c,m,u),Nt=null,Jn=!1,c=u.alternate,c!==null&&(c.return=null),u.return=null}if(n.subtreeFlags&13886)for(n=n.child;n!==null;)Wm(n,e),n=n.sibling}var Aa=null;function Wm(e,n){var a=e.alternate,s=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:Pn(n,e),Wn(e),s&4&&(xl(3,e,e.return),Ir(3,e),xl(5,e,e.return));break;case 1:Pn(n,e),Wn(e),s&512&&($t||a===null||Ua(a,a.return)),s&64&&tl&&(e=e.updateQueue,e!==null&&(s=e.callbacks,s!==null&&(a=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=a===null?s:a.concat(s))));break;case 26:var u=Aa;if(Pn(n,e),Wn(e),s&512&&($t||a===null||Ua(a,a.return)),s&4){var c=a!==null?a.memoizedState:null;if(s=e.memoizedState,a===null)if(s===null)if(e.stateNode===null){e:{s=e.type,a=e.memoizedProps,u=u.ownerDocument||u;t:switch(s){case"title":c=u.getElementsByTagName("title")[0],(!c||c[ue]||c[De]||c.namespaceURI==="http://www.w3.org/2000/svg"||c.hasAttribute("itemprop"))&&(c=u.createElement(s),u.head.insertBefore(c,u.querySelector("head > title"))),Tn(c,s,a),c[De]=e,pe(c),s=c;break e;case"link":var m=W0("link","href",u).get(s+(a.href||""));if(m){for(var E=0;E<m.length;E++)if(c=m[E],c.getAttribute("href")===(a.href==null||a.href===""?null:a.href)&&c.getAttribute("rel")===(a.rel==null?null:a.rel)&&c.getAttribute("title")===(a.title==null?null:a.title)&&c.getAttribute("crossorigin")===(a.crossOrigin==null?null:a.crossOrigin)){m.splice(E,1);break t}}c=u.createElement(s),Tn(c,s,a),u.head.appendChild(c);break;case"meta":if(m=W0("meta","content",u).get(s+(a.content||""))){for(E=0;E<m.length;E++)if(c=m[E],c.getAttribute("content")===(a.content==null?null:""+a.content)&&c.getAttribute("name")===(a.name==null?null:a.name)&&c.getAttribute("property")===(a.property==null?null:a.property)&&c.getAttribute("http-equiv")===(a.httpEquiv==null?null:a.httpEquiv)&&c.getAttribute("charset")===(a.charSet==null?null:a.charSet)){m.splice(E,1);break t}}c=u.createElement(s),Tn(c,s,a),u.head.appendChild(c);break;default:throw Error(r(468,s))}c[De]=e,pe(c),s=c}e.stateNode=s}else $0(u,e.type,e.stateNode);else e.stateNode=P0(u,s,e.memoizedProps);else c!==s?(c===null?a.stateNode!==null&&(a=a.stateNode,a.parentNode.removeChild(a)):c.count--,s===null?$0(u,e.type,e.stateNode):P0(u,s,e.memoizedProps)):s===null&&e.stateNode!==null&&Mf(e,e.memoizedProps,a.memoizedProps)}break;case 27:Pn(n,e),Wn(e),s&512&&($t||a===null||Ua(a,a.return)),a!==null&&s&4&&Mf(e,e.memoizedProps,a.memoizedProps);break;case 5:if(Pn(n,e),Wn(e),s&512&&($t||a===null||Ua(a,a.return)),e.flags&32){u=e.stateNode;try{Ga(u,"")}catch(ve){gt(e,e.return,ve)}}s&4&&e.stateNode!=null&&(u=e.memoizedProps,Mf(e,u,a!==null?a.memoizedProps:u)),s&1024&&(zf=!0);break;case 6:if(Pn(n,e),Wn(e),s&4){if(e.stateNode===null)throw Error(r(162));s=e.memoizedProps,a=e.stateNode;try{a.nodeValue=s}catch(ve){gt(e,e.return,ve)}}break;case 3:if(Uo=null,u=Aa,Aa=jo(n.containerInfo),Pn(n,e),Aa=u,Wn(e),s&4&&a!==null&&a.memoizedState.isDehydrated)try{Wi(n.containerInfo)}catch(ve){gt(e,e.return,ve)}zf&&(zf=!1,$m(e));break;case 4:s=Aa,Aa=jo(e.stateNode.containerInfo),Pn(n,e),Wn(e),Aa=s;break;case 12:Pn(n,e),Wn(e);break;case 31:Pn(n,e),Wn(e),s&4&&(s=e.updateQueue,s!==null&&(e.updateQueue=null,Eo(e,s)));break;case 13:Pn(n,e),Wn(e),e.child.flags&8192&&e.memoizedState!==null!=(a!==null&&a.memoizedState!==null)&&(To=st()),s&4&&(s=e.updateQueue,s!==null&&(e.updateQueue=null,Eo(e,s)));break;case 22:u=e.memoizedState!==null;var N=a!==null&&a.memoizedState!==null,I=tl,q=$t;if(tl=I||u,$t=q||N,Pn(n,e),$t=q,tl=I,Wn(e),s&8192)e:for(n=e.stateNode,n._visibility=u?n._visibility&-2:n._visibility|1,u&&(a===null||N||tl||$t||ri(e)),a=null,n=e;;){if(n.tag===5||n.tag===26){if(a===null){N=a=n;try{if(c=N.stateNode,u)m=c.style,typeof m.setProperty=="function"?m.setProperty("display","none","important"):m.display="none";else{E=N.stateNode;var ae=N.memoizedProps.style,Q=ae!=null&&ae.hasOwnProperty("display")?ae.display:null;E.style.display=Q==null||typeof Q=="boolean"?"":(""+Q).trim()}}catch(ve){gt(N,N.return,ve)}}}else if(n.tag===6){if(a===null){N=n;try{N.stateNode.nodeValue=u?"":N.memoizedProps}catch(ve){gt(N,N.return,ve)}}}else if(n.tag===18){if(a===null){N=n;try{var F=N.stateNode;u?V0(F,!0):V0(N.stateNode,!1)}catch(ve){gt(N,N.return,ve)}}}else if((n.tag!==22&&n.tag!==23||n.memoizedState===null||n===e)&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===e)break e;for(;n.sibling===null;){if(n.return===null||n.return===e)break e;a===n&&(a=null),n=n.return}a===n&&(a=null),n.sibling.return=n.return,n=n.sibling}s&4&&(s=e.updateQueue,s!==null&&(a=s.retryQueue,a!==null&&(s.retryQueue=null,Eo(e,a))));break;case 19:Pn(n,e),Wn(e),s&4&&(s=e.updateQueue,s!==null&&(e.updateQueue=null,Eo(e,s)));break;case 30:break;case 21:break;default:Pn(n,e),Wn(e)}}function Wn(e){var n=e.flags;if(n&2){try{for(var a,s=e.return;s!==null;){if(Xm(s)){a=s;break}s=s.return}if(a==null)throw Error(r(160));switch(a.tag){case 27:var u=a.stateNode,c=kf(e);So(e,c,u);break;case 5:var m=a.stateNode;a.flags&32&&(Ga(m,""),a.flags&=-33);var E=kf(e);So(e,E,m);break;case 3:case 4:var N=a.stateNode.containerInfo,I=kf(e);Lf(e,I,N);break;default:throw Error(r(161))}}catch(q){gt(e,e.return,q)}e.flags&=-3}n&4096&&(e.flags&=-4097)}function $m(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var n=e;$m(n),n.tag===5&&n.flags&1024&&n.stateNode.reset(),e=e.sibling}}function al(e,n){if(n.subtreeFlags&8772)for(n=n.child;n!==null;)Fm(e,n.alternate,n),n=n.sibling}function ri(e){for(e=e.child;e!==null;){var n=e;switch(n.tag){case 0:case 11:case 14:case 15:xl(4,n,n.return),ri(n);break;case 1:Ua(n,n.return);var a=n.stateNode;typeof a.componentWillUnmount=="function"&&Vm(n,n.return,a),ri(n);break;case 27:Pr(n.stateNode);case 26:case 5:Ua(n,n.return),ri(n);break;case 22:n.memoizedState===null&&ri(n);break;case 30:ri(n);break;default:ri(n)}e=e.sibling}}function ll(e,n,a){for(a=a&&(n.subtreeFlags&8772)!==0,n=n.child;n!==null;){var s=n.alternate,u=e,c=n,m=c.flags;switch(c.tag){case 0:case 11:case 15:ll(u,c,a),Ir(4,c);break;case 1:if(ll(u,c,a),s=c,u=s.stateNode,typeof u.componentDidMount=="function")try{u.componentDidMount()}catch(I){gt(s,s.return,I)}if(s=c,u=s.updateQueue,u!==null){var E=s.stateNode;try{var N=u.shared.hiddenCallbacks;if(N!==null)for(u.shared.hiddenCallbacks=null,u=0;u<N.length;u++)Dg(N[u],E)}catch(I){gt(s,s.return,I)}}a&&m&64&&Im(c),Vr(c,c.return);break;case 27:Gm(c);case 26:case 5:ll(u,c,a),a&&s===null&&m&4&&Qm(c),Vr(c,c.return);break;case 12:ll(u,c,a);break;case 31:ll(u,c,a),a&&m&4&&Jm(u,c);break;case 13:ll(u,c,a),a&&m&4&&Pm(u,c);break;case 22:c.memoizedState===null&&ll(u,c,a),Vr(c,c.return);break;case 30:break;default:ll(u,c,a)}n=n.sibling}}function jf(e,n){var a=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),e=null,n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(e=n.memoizedState.cachePool.pool),e!==a&&(e!=null&&e.refCount++,a!=null&&xr(a))}function Bf(e,n){e=null,n.alternate!==null&&(e=n.alternate.memoizedState.cache),n=n.memoizedState.cache,n!==e&&(n.refCount++,e!=null&&xr(e))}function Ca(e,n,a,s){if(n.subtreeFlags&10256)for(n=n.child;n!==null;)qm(e,n,a,s),n=n.sibling}function qm(e,n,a,s){var u=n.flags;switch(n.tag){case 0:case 11:case 15:Ca(e,n,a,s),u&2048&&Ir(9,n);break;case 1:Ca(e,n,a,s);break;case 3:Ca(e,n,a,s),u&2048&&(e=null,n.alternate!==null&&(e=n.alternate.memoizedState.cache),n=n.memoizedState.cache,n!==e&&(n.refCount++,e!=null&&xr(e)));break;case 12:if(u&2048){Ca(e,n,a,s),e=n.stateNode;try{var c=n.memoizedProps,m=c.id,E=c.onPostCommit;typeof E=="function"&&E(m,n.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(N){gt(n,n.return,N)}}else Ca(e,n,a,s);break;case 31:Ca(e,n,a,s);break;case 13:Ca(e,n,a,s);break;case 23:break;case 22:c=n.stateNode,m=n.alternate,n.memoizedState!==null?c._visibility&2?Ca(e,n,a,s):Qr(e,n):c._visibility&2?Ca(e,n,a,s):(c._visibility|=2,Ii(e,n,a,s,(n.subtreeFlags&10256)!==0||!1)),u&2048&&jf(m,n);break;case 24:Ca(e,n,a,s),u&2048&&Bf(n.alternate,n);break;default:Ca(e,n,a,s)}}function Ii(e,n,a,s,u){for(u=u&&((n.subtreeFlags&10256)!==0||!1),n=n.child;n!==null;){var c=e,m=n,E=a,N=s,I=m.flags;switch(m.tag){case 0:case 11:case 15:Ii(c,m,E,N,u),Ir(8,m);break;case 23:break;case 22:var q=m.stateNode;m.memoizedState!==null?q._visibility&2?Ii(c,m,E,N,u):Qr(c,m):(q._visibility|=2,Ii(c,m,E,N,u)),u&&I&2048&&jf(m.alternate,m);break;case 24:Ii(c,m,E,N,u),u&&I&2048&&Bf(m.alternate,m);break;default:Ii(c,m,E,N,u)}n=n.sibling}}function Qr(e,n){if(n.subtreeFlags&10256)for(n=n.child;n!==null;){var a=e,s=n,u=s.flags;switch(s.tag){case 22:Qr(a,s),u&2048&&jf(s.alternate,s);break;case 24:Qr(a,s),u&2048&&Bf(s.alternate,s);break;default:Qr(a,s)}n=n.sibling}}var Xr=8192;function Vi(e,n,a){if(e.subtreeFlags&Xr)for(e=e.child;e!==null;)e0(e,n,a),e=e.sibling}function e0(e,n,a){switch(e.tag){case 26:Vi(e,n,a),e.flags&Xr&&e.memoizedState!==null&&k2(a,Aa,e.memoizedState,e.memoizedProps);break;case 5:Vi(e,n,a);break;case 3:case 4:var s=Aa;Aa=jo(e.stateNode.containerInfo),Vi(e,n,a),Aa=s;break;case 22:e.memoizedState===null&&(s=e.alternate,s!==null&&s.memoizedState!==null?(s=Xr,Xr=16777216,Vi(e,n,a),Xr=s):Vi(e,n,a));break;default:Vi(e,n,a)}}function t0(e){var n=e.alternate;if(n!==null&&(e=n.child,e!==null)){n.child=null;do n=e.sibling,e.sibling=null,e=n;while(e!==null)}}function Gr(e){var n=e.deletions;if((e.flags&16)!==0){if(n!==null)for(var a=0;a<n.length;a++){var s=n[a];mn=s,a0(s,e)}t0(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)n0(e),e=e.sibling}function n0(e){switch(e.tag){case 0:case 11:case 15:Gr(e),e.flags&2048&&xl(9,e,e.return);break;case 3:Gr(e);break;case 12:Gr(e);break;case 22:var n=e.stateNode;e.memoizedState!==null&&n._visibility&2&&(e.return===null||e.return.tag!==13)?(n._visibility&=-3,wo(e)):Gr(e);break;default:Gr(e)}}function wo(e){var n=e.deletions;if((e.flags&16)!==0){if(n!==null)for(var a=0;a<n.length;a++){var s=n[a];mn=s,a0(s,e)}t0(e)}for(e=e.child;e!==null;){switch(n=e,n.tag){case 0:case 11:case 15:xl(8,n,n.return),wo(n);break;case 22:a=n.stateNode,a._visibility&2&&(a._visibility&=-3,wo(n));break;default:wo(n)}e=e.sibling}}function a0(e,n){for(;mn!==null;){var a=mn;switch(a.tag){case 0:case 11:case 15:xl(8,a,n);break;case 23:case 22:if(a.memoizedState!==null&&a.memoizedState.cachePool!==null){var s=a.memoizedState.cachePool.pool;s!=null&&s.refCount++}break;case 24:xr(a.memoizedState.cache)}if(s=a.child,s!==null)s.return=a,mn=s;else e:for(a=e;mn!==null;){s=mn;var u=s.sibling,c=s.return;if(Ym(s),s===a){mn=null;break e}if(u!==null){u.return=c,mn=u;break e}mn=c}}}var K_={getCacheForType:function(e){var n=En(Jt),a=n.data.get(e);return a===void 0&&(a=e(),n.data.set(e,a)),a},cacheSignal:function(){return En(Jt).controller.signal}},J_=typeof WeakMap=="function"?WeakMap:Map,ot=0,wt=null,Ie=null,Ze=0,pt=0,la=null,Ol=!1,Qi=!1,Uf=!1,il=0,It=0,Dl=0,si=0,Hf=0,ia=0,Xi=0,Zr=null,$n=null,If=!1,To=0,l0=0,Ao=1/0,Co=null,Rl=null,un=0,Nl=null,Gi=null,rl=0,Vf=0,Qf=null,i0=null,Fr=0,Xf=null;function ra(){return(ot&2)!==0&&Ze!==0?Ze&-Ze:j.T!==null?Jf():Bn()}function r0(){if(ia===0)if((Ze&536870912)===0||Ye){var e=at;at<<=1,(at&3932160)===0&&(at=262144),ia=e}else ia=536870912;return e=na.current,e!==null&&(e.flags|=32),ia}function qn(e,n,a){(e===wt&&(pt===2||pt===9)||e.cancelPendingCommit!==null)&&(Zi(e,0),Ml(e,Ze,ia,!1)),jn(e,a),((ot&2)===0||e!==wt)&&(e===wt&&((ot&2)===0&&(si|=a),It===4&&Ml(e,Ze,ia,!1)),Ha(e))}function s0(e,n,a){if((ot&6)!==0)throw Error(r(327));var s=!a&&(n&127)===0&&(n&e.expiredLanes)===0||Nn(e,n),u=s?$_(e,n):Zf(e,n,!0),c=s;do{if(u===0){Qi&&!s&&Ml(e,n,0,!1);break}else{if(a=e.current.alternate,c&&!P_(a)){u=Zf(e,n,!1),c=!1;continue}if(u===2){if(c=n,e.errorRecoveryDisabledLanes&c)var m=0;else m=e.pendingLanes&-536870913,m=m!==0?m:m&536870912?536870912:0;if(m!==0){n=m;e:{var E=e;u=Zr;var N=E.current.memoizedState.isDehydrated;if(N&&(Zi(E,m).flags|=256),m=Zf(E,m,!1),m!==2){if(Uf&&!N){E.errorRecoveryDisabledLanes|=c,si|=c,u=4;break e}c=$n,$n=u,c!==null&&($n===null?$n=c:$n.push.apply($n,c))}u=m}if(c=!1,u!==2)continue}}if(u===1){Zi(e,0),Ml(e,n,0,!0);break}e:{switch(s=e,c=u,c){case 0:case 1:throw Error(r(345));case 4:if((n&4194048)!==n)break;case 6:Ml(s,n,ia,!Ol);break e;case 2:$n=null;break;case 3:case 5:break;default:throw Error(r(329))}if((n&62914560)===n&&(u=To+300-st(),10<u)){if(Ml(s,n,ia,!Ol),Rn(s,0,!0)!==0)break e;rl=n,s.timeoutHandle=U0(o0.bind(null,s,a,$n,Co,If,n,ia,si,Xi,Ol,c,"Throttled",-0,0),u);break e}o0(s,a,$n,Co,If,n,ia,si,Xi,Ol,c,null,-0,0)}}break}while(!0);Ha(e)}function o0(e,n,a,s,u,c,m,E,N,I,q,ae,Q,F){if(e.timeoutHandle=-1,ae=n.subtreeFlags,ae&8192||(ae&16785408)===16785408){ae={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Za},e0(n,c,ae);var ve=(c&62914560)===c?To-st():(c&4194048)===c?l0-st():0;if(ve=L2(ae,ve),ve!==null){rl=c,e.cancelPendingCommit=ve(m0.bind(null,e,n,c,a,s,u,m,E,N,q,ae,null,Q,F)),Ml(e,c,m,!I);return}}m0(e,n,c,a,s,u,m,E,N)}function P_(e){for(var n=e;;){var a=n.tag;if((a===0||a===11||a===15)&&n.flags&16384&&(a=n.updateQueue,a!==null&&(a=a.stores,a!==null)))for(var s=0;s<a.length;s++){var u=a[s],c=u.getSnapshot;u=u.value;try{if(!ea(c(),u))return!1}catch{return!1}}if(a=n.child,n.subtreeFlags&16384&&a!==null)a.return=n,n=a;else{if(n===e)break;for(;n.sibling===null;){if(n.return===null||n.return===e)return!0;n=n.return}n.sibling.return=n.return,n=n.sibling}}return!0}function Ml(e,n,a,s){n&=~Hf,n&=~si,e.suspendedLanes|=n,e.pingedLanes&=~n,s&&(e.warmLanes|=n),s=e.expirationTimes;for(var u=n;0<u;){var c=31-Je(u),m=1<<c;s[c]=-1,u&=~m}a!==0&&rn(e,a,n)}function xo(){return(ot&6)===0?(Yr(0),!1):!0}function Gf(){if(Ie!==null){if(pt===0)var e=Ie.return;else e=Ie,Ja=$l=null,rf(e),zi=null,Dr=0,e=Ie;for(;e!==null;)Hm(e.alternate,e),e=e.return;Ie=null}}function Zi(e,n){var a=e.timeoutHandle;a!==-1&&(e.timeoutHandle=-1,m2(a)),a=e.cancelPendingCommit,a!==null&&(e.cancelPendingCommit=null,a()),rl=0,Gf(),wt=e,Ie=a=Ya(e.current,null),Ze=n,pt=0,la=null,Ol=!1,Qi=Nn(e,n),Uf=!1,Xi=ia=Hf=si=Dl=It=0,$n=Zr=null,If=!1,(n&8)!==0&&(n|=n&32);var s=e.entangledLanes;if(s!==0)for(e=e.entanglements,s&=n;0<s;){var u=31-Je(s),c=1<<u;n|=e[u],s&=~c}return il=n,Ys(),a}function u0(e,n){Le=null,j.H=Br,n===Li||n===to?(n=Ag(),pt=3):n===Yc?(n=Ag(),pt=4):pt=n===Ef?8:n!==null&&typeof n=="object"&&typeof n.then=="function"?6:1,la=n,Ie===null&&(It=1,mo(e,ha(n,e.current)))}function c0(){var e=na.current;return e===null?!0:(Ze&4194048)===Ze?va===null:(Ze&62914560)===Ze||(Ze&536870912)!==0?e===va:!1}function f0(){var e=j.H;return j.H=Br,e===null?Br:e}function d0(){var e=j.A;return j.A=K_,e}function Oo(){It=4,Ol||(Ze&4194048)!==Ze&&na.current!==null||(Qi=!0),(Dl&134217727)===0&&(si&134217727)===0||wt===null||Ml(wt,Ze,ia,!1)}function Zf(e,n,a){var s=ot;ot|=2;var u=f0(),c=d0();(wt!==e||Ze!==n)&&(Co=null,Zi(e,n)),n=!1;var m=It;e:do try{if(pt!==0&&Ie!==null){var E=Ie,N=la;switch(pt){case 8:Gf(),m=6;break e;case 3:case 2:case 9:case 6:na.current===null&&(n=!0);var I=pt;if(pt=0,la=null,Fi(e,E,N,I),a&&Qi){m=0;break e}break;default:I=pt,pt=0,la=null,Fi(e,E,N,I)}}W_(),m=It;break}catch(q){u0(e,q)}while(!0);return n&&e.shellSuspendCounter++,Ja=$l=null,ot=s,j.H=u,j.A=c,Ie===null&&(wt=null,Ze=0,Ys()),m}function W_(){for(;Ie!==null;)h0(Ie)}function $_(e,n){var a=ot;ot|=2;var s=f0(),u=d0();wt!==e||Ze!==n?(Co=null,Ao=st()+500,Zi(e,n)):Qi=Nn(e,n);e:do try{if(pt!==0&&Ie!==null){n=Ie;var c=la;t:switch(pt){case 1:pt=0,la=null,Fi(e,n,c,1);break;case 2:case 9:if(wg(c)){pt=0,la=null,p0(n);break}n=function(){pt!==2&&pt!==9||wt!==e||(pt=7),Ha(e)},c.then(n,n);break e;case 3:pt=7;break e;case 4:pt=5;break e;case 7:wg(c)?(pt=0,la=null,p0(n)):(pt=0,la=null,Fi(e,n,c,7));break;case 5:var m=null;switch(Ie.tag){case 26:m=Ie.memoizedState;case 5:case 27:var E=Ie;if(m?q0(m):E.stateNode.complete){pt=0,la=null;var N=E.sibling;if(N!==null)Ie=N;else{var I=E.return;I!==null?(Ie=I,Do(I)):Ie=null}break t}}pt=0,la=null,Fi(e,n,c,5);break;case 6:pt=0,la=null,Fi(e,n,c,6);break;case 8:Gf(),It=6;break e;default:throw Error(r(462))}}q_();break}catch(q){u0(e,q)}while(!0);return Ja=$l=null,j.H=s,j.A=u,ot=a,Ie!==null?0:(wt=null,Ze=0,Ys(),It)}function q_(){for(;Ie!==null&&!nn();)h0(Ie)}function h0(e){var n=Bm(e.alternate,e,il);e.memoizedProps=e.pendingProps,n===null?Do(e):Ie=n}function p0(e){var n=e,a=n.alternate;switch(n.tag){case 15:case 0:n=Nm(a,n,n.pendingProps,n.type,void 0,Ze);break;case 11:n=Nm(a,n,n.pendingProps,n.type.render,n.ref,Ze);break;case 5:rf(n);default:Hm(a,n),n=Ie=dg(n,il),n=Bm(a,n,il)}e.memoizedProps=e.pendingProps,n===null?Do(e):Ie=n}function Fi(e,n,a,s){Ja=$l=null,rf(n),zi=null,Dr=0;var u=n.return;try{if(V_(e,u,n,a,Ze)){It=1,mo(e,ha(a,e.current)),Ie=null;return}}catch(c){if(u!==null)throw Ie=u,c;It=1,mo(e,ha(a,e.current)),Ie=null;return}n.flags&32768?(Ye||s===1?e=!0:Qi||(Ze&536870912)!==0?e=!1:(Ol=e=!0,(s===2||s===9||s===3||s===6)&&(s=na.current,s!==null&&s.tag===13&&(s.flags|=16384))),g0(n,e)):Do(n)}function Do(e){var n=e;do{if((n.flags&32768)!==0){g0(n,Ol);return}e=n.return;var a=G_(n.alternate,n,il);if(a!==null){Ie=a;return}if(n=n.sibling,n!==null){Ie=n;return}Ie=n=e}while(n!==null);It===0&&(It=5)}function g0(e,n){do{var a=Z_(e.alternate,e);if(a!==null){a.flags&=32767,Ie=a;return}if(a=e.return,a!==null&&(a.flags|=32768,a.subtreeFlags=0,a.deletions=null),!n&&(e=e.sibling,e!==null)){Ie=e;return}Ie=e=a}while(e!==null);It=6,Ie=null}function m0(e,n,a,s,u,c,m,E,N){e.cancelPendingCommit=null;do Ro();while(un!==0);if((ot&6)!==0)throw Error(r(327));if(n!==null){if(n===e.current)throw Error(r(177));if(c=n.lanes|n.childLanes,c|=Mc,fa(e,a,c,m,E,N),e===wt&&(Ie=wt=null,Ze=0),Gi=n,Nl=e,rl=a,Vf=c,Qf=u,i0=s,(n.subtreeFlags&10256)!==0||(n.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,a2(zt,function(){return S0(),null})):(e.callbackNode=null,e.callbackPriority=0),s=(n.flags&13878)!==0,(n.subtreeFlags&13878)!==0||s){s=j.T,j.T=null,u=le.p,le.p=2,m=ot,ot|=4;try{F_(e,n,a)}finally{ot=m,le.p=u,j.T=s}}un=1,v0(),b0(),y0()}}function v0(){if(un===1){un=0;var e=Nl,n=Gi,a=(n.flags&13878)!==0;if((n.subtreeFlags&13878)!==0||a){a=j.T,j.T=null;var s=le.p;le.p=2;var u=ot;ot|=4;try{Wm(n,e);var c=ad,m=ag(e.containerInfo),E=c.focusedElem,N=c.selectionRange;if(m!==E&&E&&E.ownerDocument&&ng(E.ownerDocument.documentElement,E)){if(N!==null&&xc(E)){var I=N.start,q=N.end;if(q===void 0&&(q=I),"selectionStart"in E)E.selectionStart=I,E.selectionEnd=Math.min(q,E.value.length);else{var ae=E.ownerDocument||document,Q=ae&&ae.defaultView||window;if(Q.getSelection){var F=Q.getSelection(),ve=E.textContent.length,Ce=Math.min(N.start,ve),_t=N.end===void 0?Ce:Math.min(N.end,ve);!F.extend&&Ce>_t&&(m=_t,_t=Ce,Ce=m);var z=tg(E,Ce),M=tg(E,_t);if(z&&M&&(F.rangeCount!==1||F.anchorNode!==z.node||F.anchorOffset!==z.offset||F.focusNode!==M.node||F.focusOffset!==M.offset)){var B=ae.createRange();B.setStart(z.node,z.offset),F.removeAllRanges(),Ce>_t?(F.addRange(B),F.extend(M.node,M.offset)):(B.setEnd(M.node,M.offset),F.addRange(B))}}}}for(ae=[],F=E;F=F.parentNode;)F.nodeType===1&&ae.push({element:F,left:F.scrollLeft,top:F.scrollTop});for(typeof E.focus=="function"&&E.focus(),E=0;E<ae.length;E++){var te=ae[E];te.element.scrollLeft=te.left,te.element.scrollTop=te.top}}Qo=!!nd,ad=nd=null}finally{ot=u,le.p=s,j.T=a}}e.current=n,un=2}}function b0(){if(un===2){un=0;var e=Nl,n=Gi,a=(n.flags&8772)!==0;if((n.subtreeFlags&8772)!==0||a){a=j.T,j.T=null;var s=le.p;le.p=2;var u=ot;ot|=4;try{Fm(e,n.alternate,n)}finally{ot=u,le.p=s,j.T=a}}un=3}}function y0(){if(un===4||un===3){un=0,Et();var e=Nl,n=Gi,a=rl,s=i0;(n.subtreeFlags&10256)!==0||(n.flags&10256)!==0?un=5:(un=0,Gi=Nl=null,_0(e,e.pendingLanes));var u=e.pendingLanes;if(u===0&&(Rl=null),Pe(a),n=n.stateNode,vt&&typeof vt.onCommitFiberRoot=="function")try{vt.onCommitFiberRoot(dn,n,void 0,(n.current.flags&128)===128)}catch{}if(s!==null){n=j.T,u=le.p,le.p=2,j.T=null;try{for(var c=e.onRecoverableError,m=0;m<s.length;m++){var E=s[m];c(E.value,{componentStack:E.stack})}}finally{j.T=n,le.p=u}}(rl&3)!==0&&Ro(),Ha(e),u=e.pendingLanes,(a&261930)!==0&&(u&42)!==0?e===Xf?Fr++:(Fr=0,Xf=e):Fr=0,Yr(0)}}function _0(e,n){(e.pooledCacheLanes&=n)===0&&(n=e.pooledCache,n!=null&&(e.pooledCache=null,xr(n)))}function Ro(){return v0(),b0(),y0(),S0()}function S0(){if(un!==5)return!1;var e=Nl,n=Vf;Vf=0;var a=Pe(rl),s=j.T,u=le.p;try{le.p=32>a?32:a,j.T=null,a=Qf,Qf=null;var c=Nl,m=rl;if(un=0,Gi=Nl=null,rl=0,(ot&6)!==0)throw Error(r(331));var E=ot;if(ot|=4,n0(c.current),qm(c,c.current,m,a),ot=E,Yr(0,!1),vt&&typeof vt.onPostCommitFiberRoot=="function")try{vt.onPostCommitFiberRoot(dn,c)}catch{}return!0}finally{le.p=u,j.T=s,_0(e,n)}}function E0(e,n,a){n=ha(a,n),n=Sf(e.stateNode,n,2),e=Tl(e,n,2),e!==null&&(jn(e,2),Ha(e))}function gt(e,n,a){if(e.tag===3)E0(e,e,a);else for(;n!==null;){if(n.tag===3){E0(n,e,a);break}else if(n.tag===1){var s=n.stateNode;if(typeof n.type.getDerivedStateFromError=="function"||typeof s.componentDidCatch=="function"&&(Rl===null||!Rl.has(s))){e=ha(a,e),a=wm(2),s=Tl(n,a,2),s!==null&&(Tm(a,s,n,e),jn(s,2),Ha(s));break}}n=n.return}}function Ff(e,n,a){var s=e.pingCache;if(s===null){s=e.pingCache=new J_;var u=new Set;s.set(n,u)}else u=s.get(n),u===void 0&&(u=new Set,s.set(n,u));u.has(a)||(Uf=!0,u.add(a),e=e2.bind(null,e,n,a),n.then(e,e))}function e2(e,n,a){var s=e.pingCache;s!==null&&s.delete(n),e.pingedLanes|=e.suspendedLanes&a,e.warmLanes&=~a,wt===e&&(Ze&a)===a&&(It===4||It===3&&(Ze&62914560)===Ze&&300>st()-To?(ot&2)===0&&Zi(e,0):Hf|=a,Xi===Ze&&(Xi=0)),Ha(e)}function w0(e,n){n===0&&(n=ln()),e=Jl(e,n),e!==null&&(jn(e,n),Ha(e))}function t2(e){var n=e.memoizedState,a=0;n!==null&&(a=n.retryLane),w0(e,a)}function n2(e,n){var a=0;switch(e.tag){case 31:case 13:var s=e.stateNode,u=e.memoizedState;u!==null&&(a=u.retryLane);break;case 19:s=e.stateNode;break;case 22:s=e.stateNode._retryCache;break;default:throw Error(r(314))}s!==null&&s.delete(n),w0(e,a)}function a2(e,n){return Ft(e,n)}var No=null,Yi=null,Yf=!1,Mo=!1,Kf=!1,kl=0;function Ha(e){e!==Yi&&e.next===null&&(Yi===null?No=Yi=e:Yi=Yi.next=e),Mo=!0,Yf||(Yf=!0,i2())}function Yr(e,n){if(!Kf&&Mo){Kf=!0;do for(var a=!1,s=No;s!==null;){if(e!==0){var u=s.pendingLanes;if(u===0)var c=0;else{var m=s.suspendedLanes,E=s.pingedLanes;c=(1<<31-Je(42|e)+1)-1,c&=u&~(m&~E),c=c&201326741?c&201326741|1:c?c|2:0}c!==0&&(a=!0,x0(s,c))}else c=Ze,c=Rn(s,s===wt?c:0,s.cancelPendingCommit!==null||s.timeoutHandle!==-1),(c&3)===0||Nn(s,c)||(a=!0,x0(s,c));s=s.next}while(a);Kf=!1}}function l2(){T0()}function T0(){Mo=Yf=!1;var e=0;kl!==0&&g2()&&(e=kl);for(var n=st(),a=null,s=No;s!==null;){var u=s.next,c=A0(s,n);c===0?(s.next=null,a===null?No=u:a.next=u,u===null&&(Yi=a)):(a=s,(e!==0||(c&3)!==0)&&(Mo=!0)),s=u}un!==0&&un!==5||Yr(e),kl!==0&&(kl=0)}function A0(e,n){for(var a=e.suspendedLanes,s=e.pingedLanes,u=e.expirationTimes,c=e.pendingLanes&-62914561;0<c;){var m=31-Je(c),E=1<<m,N=u[m];N===-1?((E&a)===0||(E&s)!==0)&&(u[m]=dt(E,n)):N<=n&&(e.expiredLanes|=E),c&=~E}if(n=wt,a=Ze,a=Rn(e,e===n?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),s=e.callbackNode,a===0||e===n&&(pt===2||pt===9)||e.cancelPendingCommit!==null)return s!==null&&s!==null&&xt(s),e.callbackNode=null,e.callbackPriority=0;if((a&3)===0||Nn(e,a)){if(n=a&-a,n===e.callbackPriority)return n;switch(s!==null&&xt(s),Pe(a)){case 2:case 8:a=Rt;break;case 32:a=zt;break;case 268435456:a=fn;break;default:a=zt}return s=C0.bind(null,e),a=Ft(a,s),e.callbackPriority=n,e.callbackNode=a,n}return s!==null&&s!==null&&xt(s),e.callbackPriority=2,e.callbackNode=null,2}function C0(e,n){if(un!==0&&un!==5)return e.callbackNode=null,e.callbackPriority=0,null;var a=e.callbackNode;if(Ro()&&e.callbackNode!==a)return null;var s=Ze;return s=Rn(e,e===wt?s:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),s===0?null:(s0(e,s,n),A0(e,st()),e.callbackNode!=null&&e.callbackNode===a?C0.bind(null,e):null)}function x0(e,n){if(Ro())return null;s0(e,n,!0)}function i2(){v2(function(){(ot&6)!==0?Ft(Qt,l2):T0()})}function Jf(){if(kl===0){var e=Mi;e===0&&(e=jt,jt<<=1,(jt&261888)===0&&(jt=256)),kl=e}return kl}function O0(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:Hs(""+e)}function D0(e,n){var a=n.ownerDocument.createElement("input");return a.name=n.name,a.value=n.value,e.id&&a.setAttribute("form",e.id),n.parentNode.insertBefore(a,n),e=new FormData(e),a.parentNode.removeChild(a),e}function r2(e,n,a,s,u){if(n==="submit"&&a&&a.stateNode===u){var c=O0((u[et]||null).action),m=s.submitter;m&&(n=(n=m[et]||null)?O0(n.formAction):m.getAttribute("formAction"),n!==null&&(c=n,m=null));var E=new Xs("action","action",null,s,u);e.push({event:E,listeners:[{instance:null,listener:function(){if(s.defaultPrevented){if(kl!==0){var N=m?D0(u,m):new FormData(u);gf(a,{pending:!0,data:N,method:u.method,action:c},null,N)}}else typeof c=="function"&&(E.preventDefault(),N=m?D0(u,m):new FormData(u),gf(a,{pending:!0,data:N,method:u.method,action:c},c,N))},currentTarget:u}]})}}for(var Pf=0;Pf<Nc.length;Pf++){var Wf=Nc[Pf],s2=Wf.toLowerCase(),o2=Wf[0].toUpperCase()+Wf.slice(1);Ta(s2,"on"+o2)}Ta(rg,"onAnimationEnd"),Ta(sg,"onAnimationIteration"),Ta(og,"onAnimationStart"),Ta("dblclick","onDoubleClick"),Ta("focusin","onFocus"),Ta("focusout","onBlur"),Ta(T_,"onTransitionRun"),Ta(A_,"onTransitionStart"),Ta(C_,"onTransitionCancel"),Ta(ug,"onTransitionEnd"),tt("onMouseEnter",["mouseout","mouseover"]),tt("onMouseLeave",["mouseout","mouseover"]),tt("onPointerEnter",["pointerout","pointerover"]),tt("onPointerLeave",["pointerout","pointerover"]),lt("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),lt("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),lt("onBeforeInput",["compositionend","keypress","textInput","paste"]),lt("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),lt("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),lt("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Kr="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(" "),u2=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Kr));function R0(e,n){n=(n&4)!==0;for(var a=0;a<e.length;a++){var s=e[a],u=s.event;s=s.listeners;e:{var c=void 0;if(n)for(var m=s.length-1;0<=m;m--){var E=s[m],N=E.instance,I=E.currentTarget;if(E=E.listener,N!==c&&u.isPropagationStopped())break e;c=E,u.currentTarget=I;try{c(u)}catch(q){Fs(q)}u.currentTarget=null,c=N}else for(m=0;m<s.length;m++){if(E=s[m],N=E.instance,I=E.currentTarget,E=E.listener,N!==c&&u.isPropagationStopped())break e;c=E,u.currentTarget=I;try{c(u)}catch(q){Fs(q)}u.currentTarget=null,c=N}}}}function Ve(e,n){var a=n[Fn];a===void 0&&(a=n[Fn]=new Set);var s=e+"__bubble";a.has(s)||(N0(n,e,2,!1),a.add(s))}function $f(e,n,a){var s=0;n&&(s|=4),N0(a,e,s,n)}var ko="_reactListening"+Math.random().toString(36).slice(2);function qf(e){if(!e[ko]){e[ko]=!0,ht.forEach(function(a){a!=="selectionchange"&&(u2.has(a)||$f(a,!1,e),$f(a,!0,e))});var n=e.nodeType===9?e:e.ownerDocument;n===null||n[ko]||(n[ko]=!0,$f("selectionchange",!1,n))}}function N0(e,n,a,s){switch(r1(n)){case 2:var u=B2;break;case 8:u=U2;break;default:u=pd}a=u.bind(null,n,a,e),u=void 0,!bc||n!=="touchstart"&&n!=="touchmove"&&n!=="wheel"||(u=!0),s?u!==void 0?e.addEventListener(n,a,{capture:!0,passive:u}):e.addEventListener(n,a,!0):u!==void 0?e.addEventListener(n,a,{passive:u}):e.addEventListener(n,a,!1)}function ed(e,n,a,s,u){var c=s;if((n&1)===0&&(n&2)===0&&s!==null)e:for(;;){if(s===null)return;var m=s.tag;if(m===3||m===4){var E=s.stateNode.containerInfo;if(E===u)break;if(m===4)for(m=s.return;m!==null;){var N=m.tag;if((N===3||N===4)&&m.stateNode.containerInfo===u)return;m=m.return}for(;E!==null;){if(m=$(E),m===null)return;if(N=m.tag,N===5||N===6||N===26||N===27){s=c=m;continue e}E=E.parentNode}}s=s.return}jp(function(){var I=c,q=mc(a),ae=[];e:{var Q=cg.get(e);if(Q!==void 0){var F=Xs,ve=e;switch(e){case"keypress":if(Vs(a)===0)break e;case"keydown":case"keyup":F=n_;break;case"focusin":ve="focus",F=Ec;break;case"focusout":ve="blur",F=Ec;break;case"beforeblur":case"afterblur":F=Ec;break;case"click":if(a.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":F=Hp;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":F=Gy;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":F=i_;break;case rg:case sg:case og:F=Yy;break;case ug:F=s_;break;case"scroll":case"scrollend":F=Qy;break;case"wheel":F=u_;break;case"copy":case"cut":case"paste":F=Jy;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":F=Vp;break;case"toggle":case"beforetoggle":F=f_}var Ce=(n&4)!==0,_t=!Ce&&(e==="scroll"||e==="scrollend"),z=Ce?Q!==null?Q+"Capture":null:Q;Ce=[];for(var M=I,B;M!==null;){var te=M;if(B=te.stateNode,te=te.tag,te!==5&&te!==26&&te!==27||B===null||z===null||(te=mr(M,z),te!=null&&Ce.push(Jr(M,te,B))),_t)break;M=M.return}0<Ce.length&&(Q=new F(Q,ve,null,a,q),ae.push({event:Q,listeners:Ce}))}}if((n&7)===0){e:{if(Q=e==="mouseover"||e==="pointerover",F=e==="mouseout"||e==="pointerout",Q&&a!==gc&&(ve=a.relatedTarget||a.fromElement)&&($(ve)||ve[pn]))break e;if((F||Q)&&(Q=q.window===q?q:(Q=q.ownerDocument)?Q.defaultView||Q.parentWindow:window,F?(ve=a.relatedTarget||a.toElement,F=I,ve=ve?$(ve):null,ve!==null&&(_t=f(ve),Ce=ve.tag,ve!==_t||Ce!==5&&Ce!==27&&Ce!==6)&&(ve=null)):(F=null,ve=I),F!==ve)){if(Ce=Hp,te="onMouseLeave",z="onMouseEnter",M="mouse",(e==="pointerout"||e==="pointerover")&&(Ce=Vp,te="onPointerLeave",z="onPointerEnter",M="pointer"),_t=F==null?Q:Ee(F),B=ve==null?Q:Ee(ve),Q=new Ce(te,M+"leave",F,a,q),Q.target=_t,Q.relatedTarget=B,te=null,$(q)===I&&(Ce=new Ce(z,M+"enter",ve,a,q),Ce.target=B,Ce.relatedTarget=_t,te=Ce),_t=te,F&&ve)t:{for(Ce=c2,z=F,M=ve,B=0,te=z;te;te=Ce(te))B++;te=0;for(var Te=M;Te;Te=Ce(Te))te++;for(;0<B-te;)z=Ce(z),B--;for(;0<te-B;)M=Ce(M),te--;for(;B--;){if(z===M||M!==null&&z===M.alternate){Ce=z;break t}z=Ce(z),M=Ce(M)}Ce=null}else Ce=null;F!==null&&M0(ae,Q,F,Ce,!1),ve!==null&&_t!==null&&M0(ae,_t,ve,Ce,!0)}}e:{if(Q=I?Ee(I):window,F=Q.nodeName&&Q.nodeName.toLowerCase(),F==="select"||F==="input"&&Q.type==="file")var it=Jp;else if(Yp(Q))if(Pp)it=S_;else{it=y_;var _e=b_}else F=Q.nodeName,!F||F.toLowerCase()!=="input"||Q.type!=="checkbox"&&Q.type!=="radio"?I&&pc(I.elementType)&&(it=Jp):it=__;if(it&&(it=it(e,I))){Kp(ae,it,a,q);break e}_e&&_e(e,Q,I),e==="focusout"&&I&&Q.type==="number"&&I.memoizedProps.value!=null&&hc(Q,"number",Q.value)}switch(_e=I?Ee(I):window,e){case"focusin":(Yp(_e)||_e.contentEditable==="true")&&(Ti=_e,Oc=I,Tr=null);break;case"focusout":Tr=Oc=Ti=null;break;case"mousedown":Dc=!0;break;case"contextmenu":case"mouseup":case"dragend":Dc=!1,lg(ae,a,q);break;case"selectionchange":if(w_)break;case"keydown":case"keyup":lg(ae,a,q)}var je;if(Tc)e:{switch(e){case"compositionstart":var Fe="onCompositionStart";break e;case"compositionend":Fe="onCompositionEnd";break e;case"compositionupdate":Fe="onCompositionUpdate";break e}Fe=void 0}else wi?Zp(e,a)&&(Fe="onCompositionEnd"):e==="keydown"&&a.keyCode===229&&(Fe="onCompositionStart");Fe&&(Qp&&a.locale!=="ko"&&(wi||Fe!=="onCompositionStart"?Fe==="onCompositionEnd"&&wi&&(je=Bp()):(vl=q,yc="value"in vl?vl.value:vl.textContent,wi=!0)),_e=Lo(I,Fe),0<_e.length&&(Fe=new Ip(Fe,e,null,a,q),ae.push({event:Fe,listeners:_e}),je?Fe.data=je:(je=Fp(a),je!==null&&(Fe.data=je)))),(je=h_?p_(e,a):g_(e,a))&&(Fe=Lo(I,"onBeforeInput"),0<Fe.length&&(_e=new Ip("onBeforeInput","beforeinput",null,a,q),ae.push({event:_e,listeners:Fe}),_e.data=je)),r2(ae,e,I,a,q)}R0(ae,n)})}function Jr(e,n,a){return{instance:e,listener:n,currentTarget:a}}function Lo(e,n){for(var a=n+"Capture",s=[];e!==null;){var u=e,c=u.stateNode;if(u=u.tag,u!==5&&u!==26&&u!==27||c===null||(u=mr(e,a),u!=null&&s.unshift(Jr(e,u,c)),u=mr(e,n),u!=null&&s.push(Jr(e,u,c))),e.tag===3)return s;e=e.return}return[]}function c2(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function M0(e,n,a,s,u){for(var c=n._reactName,m=[];a!==null&&a!==s;){var E=a,N=E.alternate,I=E.stateNode;if(E=E.tag,N!==null&&N===s)break;E!==5&&E!==26&&E!==27||I===null||(N=I,u?(I=mr(a,c),I!=null&&m.unshift(Jr(a,I,N))):u||(I=mr(a,c),I!=null&&m.push(Jr(a,I,N)))),a=a.return}m.length!==0&&e.push({event:n,listeners:m})}var f2=/\r\n?/g,d2=/\u0000|\uFFFD/g;function k0(e){return(typeof e=="string"?e:""+e).replace(f2,`
9
- `).replace(d2,"")}function L0(e,n){return n=k0(n),k0(e)===n}function yt(e,n,a,s,u,c){switch(a){case"children":typeof s=="string"?n==="body"||n==="textarea"&&s===""||Ga(e,s):(typeof s=="number"||typeof s=="bigint")&&n!=="body"&&Ga(e,""+s);break;case"className":Yn(e,"class",s);break;case"tabIndex":Yn(e,"tabindex",s);break;case"dir":case"role":case"viewBox":case"width":case"height":Yn(e,a,s);break;case"style":Lp(e,s,c);break;case"data":if(n!=="object"){Yn(e,"data",s);break}case"src":case"href":if(s===""&&(n!=="a"||a!=="href")){e.removeAttribute(a);break}if(s==null||typeof s=="function"||typeof s=="symbol"||typeof s=="boolean"){e.removeAttribute(a);break}s=Hs(""+s),e.setAttribute(a,s);break;case"action":case"formAction":if(typeof s=="function"){e.setAttribute(a,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof c=="function"&&(a==="formAction"?(n!=="input"&&yt(e,n,"name",u.name,u,null),yt(e,n,"formEncType",u.formEncType,u,null),yt(e,n,"formMethod",u.formMethod,u,null),yt(e,n,"formTarget",u.formTarget,u,null)):(yt(e,n,"encType",u.encType,u,null),yt(e,n,"method",u.method,u,null),yt(e,n,"target",u.target,u,null)));if(s==null||typeof s=="symbol"||typeof s=="boolean"){e.removeAttribute(a);break}s=Hs(""+s),e.setAttribute(a,s);break;case"onClick":s!=null&&(e.onclick=Za);break;case"onScroll":s!=null&&Ve("scroll",e);break;case"onScrollEnd":s!=null&&Ve("scrollend",e);break;case"dangerouslySetInnerHTML":if(s!=null){if(typeof s!="object"||!("__html"in s))throw Error(r(61));if(a=s.__html,a!=null){if(u.children!=null)throw Error(r(60));e.innerHTML=a}}break;case"multiple":e.multiple=s&&typeof s!="function"&&typeof s!="symbol";break;case"muted":e.muted=s&&typeof s!="function"&&typeof s!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(s==null||typeof s=="function"||typeof s=="boolean"||typeof s=="symbol"){e.removeAttribute("xlink:href");break}a=Hs(""+s),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",a);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":s!=null&&typeof s!="function"&&typeof s!="symbol"?e.setAttribute(a,""+s):e.removeAttribute(a);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":s&&typeof s!="function"&&typeof s!="symbol"?e.setAttribute(a,""):e.removeAttribute(a);break;case"capture":case"download":s===!0?e.setAttribute(a,""):s!==!1&&s!=null&&typeof s!="function"&&typeof s!="symbol"?e.setAttribute(a,s):e.removeAttribute(a);break;case"cols":case"rows":case"size":case"span":s!=null&&typeof s!="function"&&typeof s!="symbol"&&!isNaN(s)&&1<=s?e.setAttribute(a,s):e.removeAttribute(a);break;case"rowSpan":case"start":s==null||typeof s=="function"||typeof s=="symbol"||isNaN(s)?e.removeAttribute(a):e.setAttribute(a,s);break;case"popover":Ve("beforetoggle",e),Ve("toggle",e),He(e,"popover",s);break;case"xlinkActuate":gn(e,"http://www.w3.org/1999/xlink","xlink:actuate",s);break;case"xlinkArcrole":gn(e,"http://www.w3.org/1999/xlink","xlink:arcrole",s);break;case"xlinkRole":gn(e,"http://www.w3.org/1999/xlink","xlink:role",s);break;case"xlinkShow":gn(e,"http://www.w3.org/1999/xlink","xlink:show",s);break;case"xlinkTitle":gn(e,"http://www.w3.org/1999/xlink","xlink:title",s);break;case"xlinkType":gn(e,"http://www.w3.org/1999/xlink","xlink:type",s);break;case"xmlBase":gn(e,"http://www.w3.org/XML/1998/namespace","xml:base",s);break;case"xmlLang":gn(e,"http://www.w3.org/XML/1998/namespace","xml:lang",s);break;case"xmlSpace":gn(e,"http://www.w3.org/XML/1998/namespace","xml:space",s);break;case"is":He(e,"is",s);break;case"innerText":case"textContent":break;default:(!(2<a.length)||a[0]!=="o"&&a[0]!=="O"||a[1]!=="n"&&a[1]!=="N")&&(a=Iy.get(a)||a,He(e,a,s))}}function td(e,n,a,s,u,c){switch(a){case"style":Lp(e,s,c);break;case"dangerouslySetInnerHTML":if(s!=null){if(typeof s!="object"||!("__html"in s))throw Error(r(61));if(a=s.__html,a!=null){if(u.children!=null)throw Error(r(60));e.innerHTML=a}}break;case"children":typeof s=="string"?Ga(e,s):(typeof s=="number"||typeof s=="bigint")&&Ga(e,""+s);break;case"onScroll":s!=null&&Ve("scroll",e);break;case"onScrollEnd":s!=null&&Ve("scrollend",e);break;case"onClick":s!=null&&(e.onclick=Za);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Re.hasOwnProperty(a))e:{if(a[0]==="o"&&a[1]==="n"&&(u=a.endsWith("Capture"),n=a.slice(2,u?a.length-7:void 0),c=e[et]||null,c=c!=null?c[a]:null,typeof c=="function"&&e.removeEventListener(n,c,u),typeof s=="function")){typeof c!="function"&&c!==null&&(a in e?e[a]=null:e.hasAttribute(a)&&e.removeAttribute(a)),e.addEventListener(n,s,u);break e}a in e?e[a]=s:s===!0?e.setAttribute(a,""):He(e,a,s)}}}function Tn(e,n,a){switch(n){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Ve("error",e),Ve("load",e);var s=!1,u=!1,c;for(c in a)if(a.hasOwnProperty(c)){var m=a[c];if(m!=null)switch(c){case"src":s=!0;break;case"srcSet":u=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,n));default:yt(e,n,c,m,a,null)}}u&&yt(e,n,"srcSet",a.srcSet,a,null),s&&yt(e,n,"src",a.src,a,null);return;case"input":Ve("invalid",e);var E=c=m=u=null,N=null,I=null;for(s in a)if(a.hasOwnProperty(s)){var q=a[s];if(q!=null)switch(s){case"name":u=q;break;case"type":m=q;break;case"checked":N=q;break;case"defaultChecked":I=q;break;case"value":c=q;break;case"defaultValue":E=q;break;case"children":case"dangerouslySetInnerHTML":if(q!=null)throw Error(r(137,n));break;default:yt(e,n,s,q,a,null)}}gr(e,c,E,N,I,m,u,!1);return;case"select":Ve("invalid",e),s=m=c=null;for(u in a)if(a.hasOwnProperty(u)&&(E=a[u],E!=null))switch(u){case"value":c=E;break;case"defaultValue":m=E;break;case"multiple":s=E;default:yt(e,n,u,E,a,null)}n=c,a=m,e.multiple=!!s,n!=null?ml(e,!!s,n,!1):a!=null&&ml(e,!!s,a,!0);return;case"textarea":Ve("invalid",e),c=u=s=null;for(m in a)if(a.hasOwnProperty(m)&&(E=a[m],E!=null))switch(m){case"value":s=E;break;case"defaultValue":u=E;break;case"children":c=E;break;case"dangerouslySetInnerHTML":if(E!=null)throw Error(r(91));break;default:yt(e,n,m,E,a,null)}Mp(e,s,u,c);return;case"option":for(N in a)if(a.hasOwnProperty(N)&&(s=a[N],s!=null))switch(N){case"selected":e.selected=s&&typeof s!="function"&&typeof s!="symbol";break;default:yt(e,n,N,s,a,null)}return;case"dialog":Ve("beforetoggle",e),Ve("toggle",e),Ve("cancel",e),Ve("close",e);break;case"iframe":case"object":Ve("load",e);break;case"video":case"audio":for(s=0;s<Kr.length;s++)Ve(Kr[s],e);break;case"image":Ve("error",e),Ve("load",e);break;case"details":Ve("toggle",e);break;case"embed":case"source":case"link":Ve("error",e),Ve("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(I in a)if(a.hasOwnProperty(I)&&(s=a[I],s!=null))switch(I){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,n));default:yt(e,n,I,s,a,null)}return;default:if(pc(n)){for(q in a)a.hasOwnProperty(q)&&(s=a[q],s!==void 0&&td(e,n,q,s,a,void 0));return}}for(E in a)a.hasOwnProperty(E)&&(s=a[E],s!=null&&yt(e,n,E,s,a,null))}function h2(e,n,a,s){switch(n){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var u=null,c=null,m=null,E=null,N=null,I=null,q=null;for(F in a){var ae=a[F];if(a.hasOwnProperty(F)&&ae!=null)switch(F){case"checked":break;case"value":break;case"defaultValue":N=ae;default:s.hasOwnProperty(F)||yt(e,n,F,null,s,ae)}}for(var Q in s){var F=s[Q];if(ae=a[Q],s.hasOwnProperty(Q)&&(F!=null||ae!=null))switch(Q){case"type":c=F;break;case"name":u=F;break;case"checked":I=F;break;case"defaultChecked":q=F;break;case"value":m=F;break;case"defaultValue":E=F;break;case"children":case"dangerouslySetInnerHTML":if(F!=null)throw Error(r(137,n));break;default:F!==ae&&yt(e,n,Q,F,s,ae)}}dc(e,m,E,N,I,q,c,u);return;case"select":F=m=E=Q=null;for(c in a)if(N=a[c],a.hasOwnProperty(c)&&N!=null)switch(c){case"value":break;case"multiple":F=N;default:s.hasOwnProperty(c)||yt(e,n,c,null,s,N)}for(u in s)if(c=s[u],N=a[u],s.hasOwnProperty(u)&&(c!=null||N!=null))switch(u){case"value":Q=c;break;case"defaultValue":E=c;break;case"multiple":m=c;default:c!==N&&yt(e,n,u,c,s,N)}n=E,a=m,s=F,Q!=null?ml(e,!!a,Q,!1):!!s!=!!a&&(n!=null?ml(e,!!a,n,!0):ml(e,!!a,a?[]:"",!1));return;case"textarea":F=Q=null;for(E in a)if(u=a[E],a.hasOwnProperty(E)&&u!=null&&!s.hasOwnProperty(E))switch(E){case"value":break;case"children":break;default:yt(e,n,E,null,s,u)}for(m in s)if(u=s[m],c=a[m],s.hasOwnProperty(m)&&(u!=null||c!=null))switch(m){case"value":Q=u;break;case"defaultValue":F=u;break;case"children":break;case"dangerouslySetInnerHTML":if(u!=null)throw Error(r(91));break;default:u!==c&&yt(e,n,m,u,s,c)}Np(e,Q,F);return;case"option":for(var ve in a)if(Q=a[ve],a.hasOwnProperty(ve)&&Q!=null&&!s.hasOwnProperty(ve))switch(ve){case"selected":e.selected=!1;break;default:yt(e,n,ve,null,s,Q)}for(N in s)if(Q=s[N],F=a[N],s.hasOwnProperty(N)&&Q!==F&&(Q!=null||F!=null))switch(N){case"selected":e.selected=Q&&typeof Q!="function"&&typeof Q!="symbol";break;default:yt(e,n,N,Q,s,F)}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 Ce in a)Q=a[Ce],a.hasOwnProperty(Ce)&&Q!=null&&!s.hasOwnProperty(Ce)&&yt(e,n,Ce,null,s,Q);for(I in s)if(Q=s[I],F=a[I],s.hasOwnProperty(I)&&Q!==F&&(Q!=null||F!=null))switch(I){case"children":case"dangerouslySetInnerHTML":if(Q!=null)throw Error(r(137,n));break;default:yt(e,n,I,Q,s,F)}return;default:if(pc(n)){for(var _t in a)Q=a[_t],a.hasOwnProperty(_t)&&Q!==void 0&&!s.hasOwnProperty(_t)&&td(e,n,_t,void 0,s,Q);for(q in s)Q=s[q],F=a[q],!s.hasOwnProperty(q)||Q===F||Q===void 0&&F===void 0||td(e,n,q,Q,s,F);return}}for(var z in a)Q=a[z],a.hasOwnProperty(z)&&Q!=null&&!s.hasOwnProperty(z)&&yt(e,n,z,null,s,Q);for(ae in s)Q=s[ae],F=a[ae],!s.hasOwnProperty(ae)||Q===F||Q==null&&F==null||yt(e,n,ae,Q,s,F)}function z0(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function p2(){if(typeof performance.getEntriesByType=="function"){for(var e=0,n=0,a=performance.getEntriesByType("resource"),s=0;s<a.length;s++){var u=a[s],c=u.transferSize,m=u.initiatorType,E=u.duration;if(c&&E&&z0(m)){for(m=0,E=u.responseEnd,s+=1;s<a.length;s++){var N=a[s],I=N.startTime;if(I>E)break;var q=N.transferSize,ae=N.initiatorType;q&&z0(ae)&&(N=N.responseEnd,m+=q*(N<E?1:(E-I)/(N-I)))}if(--s,n+=8*(c+m)/(u.duration/1e3),e++,10<e)break}}if(0<e)return n/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var nd=null,ad=null;function zo(e){return e.nodeType===9?e:e.ownerDocument}function j0(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 B0(e,n){if(e===0)switch(n){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&n==="foreignObject"?0:e}function ld(e,n){return e==="textarea"||e==="noscript"||typeof n.children=="string"||typeof n.children=="number"||typeof n.children=="bigint"||typeof n.dangerouslySetInnerHTML=="object"&&n.dangerouslySetInnerHTML!==null&&n.dangerouslySetInnerHTML.__html!=null}var id=null;function g2(){var e=window.event;return e&&e.type==="popstate"?e===id?!1:(id=e,!0):(id=null,!1)}var U0=typeof setTimeout=="function"?setTimeout:void 0,m2=typeof clearTimeout=="function"?clearTimeout:void 0,H0=typeof Promise=="function"?Promise:void 0,v2=typeof queueMicrotask=="function"?queueMicrotask:typeof H0<"u"?function(e){return H0.resolve(null).then(e).catch(b2)}:U0;function b2(e){setTimeout(function(){throw e})}function Ll(e){return e==="head"}function I0(e,n){var a=n,s=0;do{var u=a.nextSibling;if(e.removeChild(a),u&&u.nodeType===8)if(a=u.data,a==="/$"||a==="/&"){if(s===0){e.removeChild(u),Wi(n);return}s--}else if(a==="$"||a==="$?"||a==="$~"||a==="$!"||a==="&")s++;else if(a==="html")Pr(e.ownerDocument.documentElement);else if(a==="head"){a=e.ownerDocument.head,Pr(a);for(var c=a.firstChild;c;){var m=c.nextSibling,E=c.nodeName;c[ue]||E==="SCRIPT"||E==="STYLE"||E==="LINK"&&c.rel.toLowerCase()==="stylesheet"||a.removeChild(c),c=m}}else a==="body"&&Pr(e.ownerDocument.body);a=u}while(a);Wi(n)}function V0(e,n){var a=e;e=0;do{var s=a.nextSibling;if(a.nodeType===1?n?(a._stashedDisplay=a.style.display,a.style.display="none"):(a.style.display=a._stashedDisplay||"",a.getAttribute("style")===""&&a.removeAttribute("style")):a.nodeType===3&&(n?(a._stashedText=a.nodeValue,a.nodeValue=""):a.nodeValue=a._stashedText||""),s&&s.nodeType===8)if(a=s.data,a==="/$"){if(e===0)break;e--}else a!=="$"&&a!=="$?"&&a!=="$~"&&a!=="$!"||e++;a=s}while(a)}function rd(e){var n=e.firstChild;for(n&&n.nodeType===10&&(n=n.nextSibling);n;){var a=n;switch(n=n.nextSibling,a.nodeName){case"HTML":case"HEAD":case"BODY":rd(a),R(a);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(a.rel.toLowerCase()==="stylesheet")continue}e.removeChild(a)}}function y2(e,n,a,s){for(;e.nodeType===1;){var u=a;if(e.nodeName.toLowerCase()!==n.toLowerCase()){if(!s&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(s){if(!e[ue])switch(n){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(c=e.getAttribute("rel"),c==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(c!==u.rel||e.getAttribute("href")!==(u.href==null||u.href===""?null:u.href)||e.getAttribute("crossorigin")!==(u.crossOrigin==null?null:u.crossOrigin)||e.getAttribute("title")!==(u.title==null?null:u.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(c=e.getAttribute("src"),(c!==(u.src==null?null:u.src)||e.getAttribute("type")!==(u.type==null?null:u.type)||e.getAttribute("crossorigin")!==(u.crossOrigin==null?null:u.crossOrigin))&&c&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(n==="input"&&e.type==="hidden"){var c=u.name==null?null:""+u.name;if(u.type==="hidden"&&e.getAttribute("name")===c)return e}else return e;if(e=ba(e.nextSibling),e===null)break}return null}function _2(e,n,a){if(n==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!a||(e=ba(e.nextSibling),e===null))return null;return e}function Q0(e,n){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!n||(e=ba(e.nextSibling),e===null))return null;return e}function sd(e){return e.data==="$?"||e.data==="$~"}function od(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function S2(e,n){var a=e.ownerDocument;if(e.data==="$~")e._reactRetry=n;else if(e.data!=="$?"||a.readyState!=="loading")n();else{var s=function(){n(),a.removeEventListener("DOMContentLoaded",s)};a.addEventListener("DOMContentLoaded",s),e._reactRetry=s}}function ba(e){for(;e!=null;e=e.nextSibling){var n=e.nodeType;if(n===1||n===3)break;if(n===8){if(n=e.data,n==="$"||n==="$!"||n==="$?"||n==="$~"||n==="&"||n==="F!"||n==="F")break;if(n==="/$"||n==="/&")return null}}return e}var ud=null;function X0(e){e=e.nextSibling;for(var n=0;e;){if(e.nodeType===8){var a=e.data;if(a==="/$"||a==="/&"){if(n===0)return ba(e.nextSibling);n--}else a!=="$"&&a!=="$!"&&a!=="$?"&&a!=="$~"&&a!=="&"||n++}e=e.nextSibling}return null}function G0(e){e=e.previousSibling;for(var n=0;e;){if(e.nodeType===8){var a=e.data;if(a==="$"||a==="$!"||a==="$?"||a==="$~"||a==="&"){if(n===0)return e;n--}else a!=="/$"&&a!=="/&"||n++}e=e.previousSibling}return null}function Z0(e,n,a){switch(n=zo(a),e){case"html":if(e=n.documentElement,!e)throw Error(r(452));return e;case"head":if(e=n.head,!e)throw Error(r(453));return e;case"body":if(e=n.body,!e)throw Error(r(454));return e;default:throw Error(r(451))}}function Pr(e){for(var n=e.attributes;n.length;)e.removeAttributeNode(n[0]);R(e)}var ya=new Map,F0=new Set;function jo(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var sl=le.d;le.d={f:E2,r:w2,D:T2,C:A2,L:C2,m:x2,X:D2,S:O2,M:R2};function E2(){var e=sl.f(),n=xo();return e||n}function w2(e){var n=re(e);n!==null&&n.tag===5&&n.type==="form"?um(n):sl.r(e)}var Ki=typeof document>"u"?null:document;function Y0(e,n,a){var s=Ki;if(s&&typeof n=="string"&&n){var u=Un(n);u='link[rel="'+e+'"][href="'+u+'"]',typeof a=="string"&&(u+='[crossorigin="'+a+'"]'),F0.has(u)||(F0.add(u),e={rel:e,crossOrigin:a,href:n},s.querySelector(u)===null&&(n=s.createElement("link"),Tn(n,"link",e),pe(n),s.head.appendChild(n)))}}function T2(e){sl.D(e),Y0("dns-prefetch",e,null)}function A2(e,n){sl.C(e,n),Y0("preconnect",e,n)}function C2(e,n,a){sl.L(e,n,a);var s=Ki;if(s&&e&&n){var u='link[rel="preload"][as="'+Un(n)+'"]';n==="image"&&a&&a.imageSrcSet?(u+='[imagesrcset="'+Un(a.imageSrcSet)+'"]',typeof a.imageSizes=="string"&&(u+='[imagesizes="'+Un(a.imageSizes)+'"]')):u+='[href="'+Un(e)+'"]';var c=u;switch(n){case"style":c=Ji(e);break;case"script":c=Pi(e)}ya.has(c)||(e=S({rel:"preload",href:n==="image"&&a&&a.imageSrcSet?void 0:e,as:n},a),ya.set(c,e),s.querySelector(u)!==null||n==="style"&&s.querySelector(Wr(c))||n==="script"&&s.querySelector($r(c))||(n=s.createElement("link"),Tn(n,"link",e),pe(n),s.head.appendChild(n)))}}function x2(e,n){sl.m(e,n);var a=Ki;if(a&&e){var s=n&&typeof n.as=="string"?n.as:"script",u='link[rel="modulepreload"][as="'+Un(s)+'"][href="'+Un(e)+'"]',c=u;switch(s){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":c=Pi(e)}if(!ya.has(c)&&(e=S({rel:"modulepreload",href:e},n),ya.set(c,e),a.querySelector(u)===null)){switch(s){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(a.querySelector($r(c)))return}s=a.createElement("link"),Tn(s,"link",e),pe(s),a.head.appendChild(s)}}}function O2(e,n,a){sl.S(e,n,a);var s=Ki;if(s&&e){var u=Ge(s).hoistableStyles,c=Ji(e);n=n||"default";var m=u.get(c);if(!m){var E={loading:0,preload:null};if(m=s.querySelector(Wr(c)))E.loading=5;else{e=S({rel:"stylesheet",href:e,"data-precedence":n},a),(a=ya.get(c))&&cd(e,a);var N=m=s.createElement("link");pe(N),Tn(N,"link",e),N._p=new Promise(function(I,q){N.onload=I,N.onerror=q}),N.addEventListener("load",function(){E.loading|=1}),N.addEventListener("error",function(){E.loading|=2}),E.loading|=4,Bo(m,n,s)}m={type:"stylesheet",instance:m,count:1,state:E},u.set(c,m)}}}function D2(e,n){sl.X(e,n);var a=Ki;if(a&&e){var s=Ge(a).hoistableScripts,u=Pi(e),c=s.get(u);c||(c=a.querySelector($r(u)),c||(e=S({src:e,async:!0},n),(n=ya.get(u))&&fd(e,n),c=a.createElement("script"),pe(c),Tn(c,"link",e),a.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},s.set(u,c))}}function R2(e,n){sl.M(e,n);var a=Ki;if(a&&e){var s=Ge(a).hoistableScripts,u=Pi(e),c=s.get(u);c||(c=a.querySelector($r(u)),c||(e=S({src:e,async:!0,type:"module"},n),(n=ya.get(u))&&fd(e,n),c=a.createElement("script"),pe(c),Tn(c,"link",e),a.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},s.set(u,c))}}function K0(e,n,a,s){var u=(u=ce.current)?jo(u):null;if(!u)throw Error(r(446));switch(e){case"meta":case"title":return null;case"style":return typeof a.precedence=="string"&&typeof a.href=="string"?(n=Ji(a.href),a=Ge(u).hoistableStyles,s=a.get(n),s||(s={type:"style",instance:null,count:0,state:null},a.set(n,s)),s):{type:"void",instance:null,count:0,state:null};case"link":if(a.rel==="stylesheet"&&typeof a.href=="string"&&typeof a.precedence=="string"){e=Ji(a.href);var c=Ge(u).hoistableStyles,m=c.get(e);if(m||(u=u.ownerDocument||u,m={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},c.set(e,m),(c=u.querySelector(Wr(e)))&&!c._p&&(m.instance=c,m.state.loading=5),ya.has(e)||(a={rel:"preload",as:"style",href:a.href,crossOrigin:a.crossOrigin,integrity:a.integrity,media:a.media,hrefLang:a.hrefLang,referrerPolicy:a.referrerPolicy},ya.set(e,a),c||N2(u,e,a,m.state))),n&&s===null)throw Error(r(528,""));return m}if(n&&s!==null)throw Error(r(529,""));return null;case"script":return n=a.async,a=a.src,typeof a=="string"&&n&&typeof n!="function"&&typeof n!="symbol"?(n=Pi(a),a=Ge(u).hoistableScripts,s=a.get(n),s||(s={type:"script",instance:null,count:0,state:null},a.set(n,s)),s):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,e))}}function Ji(e){return'href="'+Un(e)+'"'}function Wr(e){return'link[rel="stylesheet"]['+e+"]"}function J0(e){return S({},e,{"data-precedence":e.precedence,precedence:null})}function N2(e,n,a,s){e.querySelector('link[rel="preload"][as="style"]['+n+"]")?s.loading=1:(n=e.createElement("link"),s.preload=n,n.addEventListener("load",function(){return s.loading|=1}),n.addEventListener("error",function(){return s.loading|=2}),Tn(n,"link",a),pe(n),e.head.appendChild(n))}function Pi(e){return'[src="'+Un(e)+'"]'}function $r(e){return"script[async]"+e}function P0(e,n,a){if(n.count++,n.instance===null)switch(n.type){case"style":var s=e.querySelector('style[data-href~="'+Un(a.href)+'"]');if(s)return n.instance=s,pe(s),s;var u=S({},a,{"data-href":a.href,"data-precedence":a.precedence,href:null,precedence:null});return s=(e.ownerDocument||e).createElement("style"),pe(s),Tn(s,"style",u),Bo(s,a.precedence,e),n.instance=s;case"stylesheet":u=Ji(a.href);var c=e.querySelector(Wr(u));if(c)return n.state.loading|=4,n.instance=c,pe(c),c;s=J0(a),(u=ya.get(u))&&cd(s,u),c=(e.ownerDocument||e).createElement("link"),pe(c);var m=c;return m._p=new Promise(function(E,N){m.onload=E,m.onerror=N}),Tn(c,"link",s),n.state.loading|=4,Bo(c,a.precedence,e),n.instance=c;case"script":return c=Pi(a.src),(u=e.querySelector($r(c)))?(n.instance=u,pe(u),u):(s=a,(u=ya.get(c))&&(s=S({},a),fd(s,u)),e=e.ownerDocument||e,u=e.createElement("script"),pe(u),Tn(u,"link",s),e.head.appendChild(u),n.instance=u);case"void":return null;default:throw Error(r(443,n.type))}else n.type==="stylesheet"&&(n.state.loading&4)===0&&(s=n.instance,n.state.loading|=4,Bo(s,a.precedence,e));return n.instance}function Bo(e,n,a){for(var s=a.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),u=s.length?s[s.length-1]:null,c=u,m=0;m<s.length;m++){var E=s[m];if(E.dataset.precedence===n)c=E;else if(c!==u)break}c?c.parentNode.insertBefore(e,c.nextSibling):(n=a.nodeType===9?a.head:a,n.insertBefore(e,n.firstChild))}function cd(e,n){e.crossOrigin==null&&(e.crossOrigin=n.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=n.referrerPolicy),e.title==null&&(e.title=n.title)}function fd(e,n){e.crossOrigin==null&&(e.crossOrigin=n.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=n.referrerPolicy),e.integrity==null&&(e.integrity=n.integrity)}var Uo=null;function W0(e,n,a){if(Uo===null){var s=new Map,u=Uo=new Map;u.set(a,s)}else u=Uo,s=u.get(a),s||(s=new Map,u.set(a,s));if(s.has(e))return s;for(s.set(e,null),a=a.getElementsByTagName(e),u=0;u<a.length;u++){var c=a[u];if(!(c[ue]||c[De]||e==="link"&&c.getAttribute("rel")==="stylesheet")&&c.namespaceURI!=="http://www.w3.org/2000/svg"){var m=c.getAttribute(n)||"";m=e+m;var E=s.get(m);E?E.push(c):s.set(m,[c])}}return s}function $0(e,n,a){e=e.ownerDocument||e,e.head.insertBefore(a,n==="title"?e.querySelector("head > title"):null)}function M2(e,n,a){if(a===1||n.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof n.precedence!="string"||typeof n.href!="string"||n.href==="")break;return!0;case"link":if(typeof n.rel!="string"||typeof n.href!="string"||n.href===""||n.onLoad||n.onError)break;switch(n.rel){case"stylesheet":return e=n.disabled,typeof n.precedence=="string"&&e==null;default:return!0}case"script":if(n.async&&typeof n.async!="function"&&typeof n.async!="symbol"&&!n.onLoad&&!n.onError&&n.src&&typeof n.src=="string")return!0}return!1}function q0(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function k2(e,n,a,s){if(a.type==="stylesheet"&&(typeof s.media!="string"||matchMedia(s.media).matches!==!1)&&(a.state.loading&4)===0){if(a.instance===null){var u=Ji(s.href),c=n.querySelector(Wr(u));if(c){n=c._p,n!==null&&typeof n=="object"&&typeof n.then=="function"&&(e.count++,e=Ho.bind(e),n.then(e,e)),a.state.loading|=4,a.instance=c,pe(c);return}c=n.ownerDocument||n,s=J0(s),(u=ya.get(u))&&cd(s,u),c=c.createElement("link"),pe(c);var m=c;m._p=new Promise(function(E,N){m.onload=E,m.onerror=N}),Tn(c,"link",s),a.instance=c}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(a,n),(n=a.state.preload)&&(a.state.loading&3)===0&&(e.count++,a=Ho.bind(e),n.addEventListener("load",a),n.addEventListener("error",a))}}var dd=0;function L2(e,n){return e.stylesheets&&e.count===0&&Vo(e,e.stylesheets),0<e.count||0<e.imgCount?function(a){var s=setTimeout(function(){if(e.stylesheets&&Vo(e,e.stylesheets),e.unsuspend){var c=e.unsuspend;e.unsuspend=null,c()}},6e4+n);0<e.imgBytes&&dd===0&&(dd=62500*p2());var u=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&Vo(e,e.stylesheets),e.unsuspend)){var c=e.unsuspend;e.unsuspend=null,c()}},(e.imgBytes>dd?50:800)+n);return e.unsuspend=a,function(){e.unsuspend=null,clearTimeout(s),clearTimeout(u)}}:null}function Ho(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Vo(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Io=null;function Vo(e,n){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Io=new Map,n.forEach(z2,e),Io=null,Ho.call(e))}function z2(e,n){if(!(n.state.loading&4)){var a=Io.get(e);if(a)var s=a.get(null);else{a=new Map,Io.set(e,a);for(var u=e.querySelectorAll("link[data-precedence],style[data-precedence]"),c=0;c<u.length;c++){var m=u[c];(m.nodeName==="LINK"||m.getAttribute("media")!=="not all")&&(a.set(m.dataset.precedence,m),s=m)}s&&a.set(null,s)}u=n.instance,m=u.getAttribute("data-precedence"),c=a.get(m)||s,c===s&&a.set(null,u),a.set(m,u),this.count++,s=Ho.bind(this),u.addEventListener("load",s),u.addEventListener("error",s),c?c.parentNode.insertBefore(u,c.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(u,e.firstChild)),n.state.loading|=4}}var qr={$$typeof:D,Provider:null,Consumer:null,_currentValue:G,_currentValue2:G,_threadCount:0};function j2(e,n,a,s,u,c,m,E,N){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=ca(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ca(0),this.hiddenUpdates=ca(null),this.identifierPrefix=s,this.onUncaughtError=u,this.onCaughtError=c,this.onRecoverableError=m,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=N,this.incompleteTransitions=new Map}function e1(e,n,a,s,u,c,m,E,N,I,q,ae){return e=new j2(e,n,a,m,N,I,q,ae,E),n=1,c===!0&&(n|=24),c=ta(3,null,null,n),e.current=c,c.stateNode=e,n=Gc(),n.refCount++,e.pooledCache=n,n.refCount++,c.memoizedState={element:s,isDehydrated:a,cache:n},Kc(c),e}function t1(e){return e?(e=xi,e):xi}function n1(e,n,a,s,u,c){u=t1(u),s.context===null?s.context=u:s.pendingContext=u,s=wl(n),s.payload={element:a},c=c===void 0?null:c,c!==null&&(s.callback=c),a=Tl(e,s,n),a!==null&&(qn(a,e,n),Nr(a,e,n))}function a1(e,n){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var a=e.retryLane;e.retryLane=a!==0&&a<n?a:n}}function hd(e,n){a1(e,n),(e=e.alternate)&&a1(e,n)}function l1(e){if(e.tag===13||e.tag===31){var n=Jl(e,67108864);n!==null&&qn(n,e,67108864),hd(e,67108864)}}function i1(e){if(e.tag===13||e.tag===31){var n=ra();n=Bt(n);var a=Jl(e,n);a!==null&&qn(a,e,n),hd(e,n)}}var Qo=!0;function B2(e,n,a,s){var u=j.T;j.T=null;var c=le.p;try{le.p=2,pd(e,n,a,s)}finally{le.p=c,j.T=u}}function U2(e,n,a,s){var u=j.T;j.T=null;var c=le.p;try{le.p=8,pd(e,n,a,s)}finally{le.p=c,j.T=u}}function pd(e,n,a,s){if(Qo){var u=gd(s);if(u===null)ed(e,n,s,Xo,a),s1(e,s);else if(I2(u,e,n,a,s))s.stopPropagation();else if(s1(e,s),n&4&&-1<H2.indexOf(e)){for(;u!==null;){var c=re(u);if(c!==null)switch(c.tag){case 3:if(c=c.stateNode,c.current.memoizedState.isDehydrated){var m=At(c.pendingLanes);if(m!==0){var E=c;for(E.pendingLanes|=2,E.entangledLanes|=2;m;){var N=1<<31-Je(m);E.entanglements[1]|=N,m&=~N}Ha(c),(ot&6)===0&&(Ao=st()+500,Yr(0))}}break;case 31:case 13:E=Jl(c,2),E!==null&&qn(E,c,2),xo(),hd(c,2)}if(c=gd(s),c===null&&ed(e,n,s,Xo,a),c===u)break;u=c}u!==null&&s.stopPropagation()}else ed(e,n,s,null,a)}}function gd(e){return e=mc(e),md(e)}var Xo=null;function md(e){if(Xo=null,e=$(e),e!==null){var n=f(e);if(n===null)e=null;else{var a=n.tag;if(a===13){if(e=d(n),e!==null)return e;e=null}else if(a===31){if(e=g(n),e!==null)return e;e=null}else if(a===3){if(n.stateNode.current.memoizedState.isDehydrated)return n.tag===3?n.stateNode.containerInfo:null;e=null}else n!==e&&(e=null)}}return Xo=e,null}function r1(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(Dn()){case Qt:return 2;case Rt:return 8;case zt:case cn:return 32;case fn:return 268435456;default:return 32}default:return 32}}var vd=!1,zl=null,jl=null,Bl=null,es=new Map,ts=new Map,Ul=[],H2="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 s1(e,n){switch(e){case"focusin":case"focusout":zl=null;break;case"dragenter":case"dragleave":jl=null;break;case"mouseover":case"mouseout":Bl=null;break;case"pointerover":case"pointerout":es.delete(n.pointerId);break;case"gotpointercapture":case"lostpointercapture":ts.delete(n.pointerId)}}function ns(e,n,a,s,u,c){return e===null||e.nativeEvent!==c?(e={blockedOn:n,domEventName:a,eventSystemFlags:s,nativeEvent:c,targetContainers:[u]},n!==null&&(n=re(n),n!==null&&l1(n)),e):(e.eventSystemFlags|=s,n=e.targetContainers,u!==null&&n.indexOf(u)===-1&&n.push(u),e)}function I2(e,n,a,s,u){switch(n){case"focusin":return zl=ns(zl,e,n,a,s,u),!0;case"dragenter":return jl=ns(jl,e,n,a,s,u),!0;case"mouseover":return Bl=ns(Bl,e,n,a,s,u),!0;case"pointerover":var c=u.pointerId;return es.set(c,ns(es.get(c)||null,e,n,a,s,u)),!0;case"gotpointercapture":return c=u.pointerId,ts.set(c,ns(ts.get(c)||null,e,n,a,s,u)),!0}return!1}function o1(e){var n=$(e.target);if(n!==null){var a=f(n);if(a!==null){if(n=a.tag,n===13){if(n=d(a),n!==null){e.blockedOn=n,Mn(e.priority,function(){i1(a)});return}}else if(n===31){if(n=g(a),n!==null){e.blockedOn=n,Mn(e.priority,function(){i1(a)});return}}else if(n===3&&a.stateNode.current.memoizedState.isDehydrated){e.blockedOn=a.tag===3?a.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Go(e){if(e.blockedOn!==null)return!1;for(var n=e.targetContainers;0<n.length;){var a=gd(e.nativeEvent);if(a===null){a=e.nativeEvent;var s=new a.constructor(a.type,a);gc=s,a.target.dispatchEvent(s),gc=null}else return n=re(a),n!==null&&l1(n),e.blockedOn=a,!1;n.shift()}return!0}function u1(e,n,a){Go(e)&&a.delete(n)}function V2(){vd=!1,zl!==null&&Go(zl)&&(zl=null),jl!==null&&Go(jl)&&(jl=null),Bl!==null&&Go(Bl)&&(Bl=null),es.forEach(u1),ts.forEach(u1)}function Zo(e,n){e.blockedOn===n&&(e.blockedOn=null,vd||(vd=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,V2)))}var Fo=null;function c1(e){Fo!==e&&(Fo=e,t.unstable_scheduleCallback(t.unstable_NormalPriority,function(){Fo===e&&(Fo=null);for(var n=0;n<e.length;n+=3){var a=e[n],s=e[n+1],u=e[n+2];if(typeof s!="function"){if(md(s||a)===null)continue;break}var c=re(a);c!==null&&(e.splice(n,3),n-=3,gf(c,{pending:!0,data:u,method:a.method,action:s},s,u))}}))}function Wi(e){function n(N){return Zo(N,e)}zl!==null&&Zo(zl,e),jl!==null&&Zo(jl,e),Bl!==null&&Zo(Bl,e),es.forEach(n),ts.forEach(n);for(var a=0;a<Ul.length;a++){var s=Ul[a];s.blockedOn===e&&(s.blockedOn=null)}for(;0<Ul.length&&(a=Ul[0],a.blockedOn===null);)o1(a),a.blockedOn===null&&Ul.shift();if(a=(e.ownerDocument||e).$$reactFormReplay,a!=null)for(s=0;s<a.length;s+=3){var u=a[s],c=a[s+1],m=u[et]||null;if(typeof c=="function")m||c1(a);else if(m){var E=null;if(c&&c.hasAttribute("formAction")){if(u=c,m=c[et]||null)E=m.formAction;else if(md(u)!==null)continue}else E=m.action;typeof E=="function"?a[s+1]=E:(a.splice(s,3),s-=3),c1(a)}}}function f1(){function e(c){c.canIntercept&&c.info==="react-transition"&&c.intercept({handler:function(){return new Promise(function(m){return u=m})},focusReset:"manual",scroll:"manual"})}function n(){u!==null&&(u(),u=null),s||setTimeout(a,20)}function a(){if(!s&&!navigation.transition){var c=navigation.currentEntry;c&&c.url!=null&&navigation.navigate(c.url,{state:c.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var s=!1,u=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",n),navigation.addEventListener("navigateerror",n),setTimeout(a,100),function(){s=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",n),navigation.removeEventListener("navigateerror",n),u!==null&&(u(),u=null)}}}function bd(e){this._internalRoot=e}Yo.prototype.render=bd.prototype.render=function(e){var n=this._internalRoot;if(n===null)throw Error(r(409));var a=n.current,s=ra();n1(a,s,e,n,null,null)},Yo.prototype.unmount=bd.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var n=e.containerInfo;n1(e.current,2,null,e,null,null),xo(),n[pn]=null}};function Yo(e){this._internalRoot=e}Yo.prototype.unstable_scheduleHydration=function(e){if(e){var n=Bn();e={blockedOn:null,target:e,priority:n};for(var a=0;a<Ul.length&&n!==0&&n<Ul[a].priority;a++);Ul.splice(a,0,e),a===0&&o1(e)}};var d1=l.version;if(d1!=="19.2.1")throw Error(r(527,d1,"19.2.1"));le.findDOMNode=function(e){var n=e._reactInternals;if(n===void 0)throw typeof e.render=="function"?Error(r(188)):(e=Object.keys(e).join(","),Error(r(268,e)));return e=p(n),e=e!==null?v(e):null,e=e===null?null:e.stateNode,e};var Q2={bundleType:0,version:"19.2.1",rendererPackageName:"react-dom",currentDispatcherRef:j,reconcilerVersion:"19.2.1"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Ko=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Ko.isDisabled&&Ko.supportsFiber)try{dn=Ko.inject(Q2),vt=Ko}catch{}}return ls.createRoot=function(e,n){if(!o(e))throw Error(r(299));var a=!1,s="",u=ym,c=_m,m=Sm;return n!=null&&(n.unstable_strictMode===!0&&(a=!0),n.identifierPrefix!==void 0&&(s=n.identifierPrefix),n.onUncaughtError!==void 0&&(u=n.onUncaughtError),n.onCaughtError!==void 0&&(c=n.onCaughtError),n.onRecoverableError!==void 0&&(m=n.onRecoverableError)),n=e1(e,1,!1,null,null,a,s,null,u,c,m,f1),e[pn]=n.current,qf(e),new bd(n)},ls.hydrateRoot=function(e,n,a){if(!o(e))throw Error(r(299));var s=!1,u="",c=ym,m=_m,E=Sm,N=null;return a!=null&&(a.unstable_strictMode===!0&&(s=!0),a.identifierPrefix!==void 0&&(u=a.identifierPrefix),a.onUncaughtError!==void 0&&(c=a.onUncaughtError),a.onCaughtError!==void 0&&(m=a.onCaughtError),a.onRecoverableError!==void 0&&(E=a.onRecoverableError),a.formState!==void 0&&(N=a.formState)),n=e1(e,1,!0,n,a??null,s,u,N,c,m,E,f1),n.context=t1(null),a=n.current,s=ra(),s=Bt(s),u=wl(s),u.callback=null,Tl(a,u,s),a=s,n.current.lanes=a,jn(n,a),Ha(n),e[pn]=n.current,qf(e),new Yo(n)},ls.version="19.2.1",ls}var E1;function q2(){if(E1)return _d.exports;E1=1;function t(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(l){console.error(l)}}return t(),_d.exports=$2(),_d.exports}var eS=q2(),Z=Ku();const Vv=G2(Z);var Ad={exports:{}},Cd={};var w1;function tS(){if(w1)return Cd;w1=1;var t=Ku();function l(h,p){return h===p&&(h!==0||1/h===1/p)||h!==h&&p!==p}var i=typeof Object.is=="function"?Object.is:l,r=t.useSyncExternalStore,o=t.useRef,f=t.useEffect,d=t.useMemo,g=t.useDebugValue;return Cd.useSyncExternalStoreWithSelector=function(h,p,v,S,y){var T=o(null);if(T.current===null){var A={hasValue:!1,value:null};T.current=A}else A=T.current;T=d(function(){function w(U){if(!x){if(x=!0,C=U,U=S(U),y!==void 0&&A.hasValue){var H=A.value;if(y(H,U))return D=H}return D=U}if(H=D,i(C,U))return H;var L=S(U);return y!==void 0&&y(H,L)?(C=U,H):(C=U,D=L)}var x=!1,C,D,k=v===void 0?null:v;return[function(){return w(p())},k===null?void 0:function(){return w(k())}]},[p,v,S,y]);var _=r(h,T[0],T[1]);return f(function(){A.hasValue=!0,A.value=_},[_]),g(_),_},Cd}var T1;function nS(){return T1||(T1=1,Ad.exports=tS()),Ad.exports}var aS=nS(),lS=Z.version.startsWith("19"),iS=Symbol.for(lS?"react.transitional.element":"react.element"),rS=Symbol.for("react.portal"),sS=Symbol.for("react.fragment"),oS=Symbol.for("react.strict_mode"),uS=Symbol.for("react.profiler"),cS=Symbol.for("react.consumer"),fS=Symbol.for("react.context"),Qv=Symbol.for("react.forward_ref"),dS=Symbol.for("react.suspense"),hS=Symbol.for("react.suspense_list"),Mh=Symbol.for("react.memo"),pS=Symbol.for("react.lazy"),gS=Qv,mS=Mh;function vS(t){if(typeof t=="object"&&t!==null){const{$$typeof:l}=t;switch(l){case iS:switch(t=t.type,t){case sS:case uS:case oS:case dS:case hS:return t;default:switch(t=t&&t.$$typeof,t){case fS:case Qv:case pS:case Mh:return t;case cS:return t;default:return l}}case rS:return l}}}function bS(t){return vS(t)===Mh}function yS(t,l,i,r,{areStatesEqual:o,areOwnPropsEqual:f,areStatePropsEqual:d}){let g=!1,h,p,v,S,y;function T(C,D){return h=C,p=D,v=t(h,p),S=l(r,p),y=i(v,S,p),g=!0,y}function A(){return v=t(h,p),l.dependsOnOwnProps&&(S=l(r,p)),y=i(v,S,p),y}function _(){return t.dependsOnOwnProps&&(v=t(h,p)),l.dependsOnOwnProps&&(S=l(r,p)),y=i(v,S,p),y}function w(){const C=t(h,p),D=!d(C,v);return v=C,D&&(y=i(v,S,p)),y}function x(C,D){const k=!f(D,p),U=!o(C,h,D,p);return h=C,p=D,k&&U?A():k?_():U?w():y}return function(D,k){return g?x(D,k):T(D,k)}}function _S(t,{initMapStateToProps:l,initMapDispatchToProps:i,initMergeProps:r,...o}){const f=l(t,o),d=i(t,o),g=r(t,o);return yS(f,d,g,t,o)}function SS(t,l){const i={};for(const r in t){const o=t[r];typeof o=="function"&&(i[r]=(...f)=>l(o(...f)))}return i}function Pd(t){return function(i){const r=t(i);function o(){return r}return o.dependsOnOwnProps=!1,o}}function A1(t){return t.dependsOnOwnProps?!!t.dependsOnOwnProps:t.length!==1}function Xv(t,l){return function(r,{displayName:o}){const f=function(g,h){return f.dependsOnOwnProps?f.mapToProps(g,h):f.mapToProps(g,void 0)};return f.dependsOnOwnProps=!0,f.mapToProps=function(g,h){f.mapToProps=t,f.dependsOnOwnProps=A1(t);let p=f(g,h);return typeof p=="function"&&(f.mapToProps=p,f.dependsOnOwnProps=A1(p),p=f(g,h)),p},f}}function kh(t,l){return(i,r)=>{throw new Error(`Invalid value of type ${typeof t} for ${l} argument when connecting component ${r.wrappedComponentName}.`)}}function ES(t){return t&&typeof t=="object"?Pd(l=>SS(t,l)):t?typeof t=="function"?Xv(t):kh(t,"mapDispatchToProps"):Pd(l=>({dispatch:l}))}function wS(t){return t?typeof t=="function"?Xv(t):kh(t,"mapStateToProps"):Pd(()=>({}))}function TS(t,l,i){return{...i,...t,...l}}function AS(t){return function(i,{displayName:r,areMergedPropsEqual:o}){let f=!1,d;return function(h,p,v){const S=t(h,p,v);return f?o(S,d)||(d=S):(f=!0,d=S),d}}}function CS(t){return t?typeof t=="function"?AS(t):kh(t,"mergeProps"):()=>TS}function xS(t){t()}function OS(){let t=null,l=null;return{clear(){t=null,l=null},notify(){xS(()=>{let i=t;for(;i;)i.callback(),i=i.next})},get(){const i=[];let r=t;for(;r;)i.push(r),r=r.next;return i},subscribe(i){let r=!0;const o=l={callback:i,next:null,prev:l};return o.prev?o.prev.next=o:t=o,function(){!r||t===null||(r=!1,o.next?o.next.prev=o.prev:l=o.prev,o.prev?o.prev.next=o.next:t=o.next)}}}}var C1={notify(){},get:()=>[]};function Gv(t,l){let i,r=C1,o=0,f=!1;function d(_){v();const w=r.subscribe(_);let x=!1;return()=>{x||(x=!0,w(),S())}}function g(){r.notify()}function h(){A.onStateChange&&A.onStateChange()}function p(){return f}function v(){o++,i||(i=l?l.addNestedSub(h):t.subscribe(h),r=OS())}function S(){o--,i&&o===0&&(i(),i=void 0,r.clear(),r=C1)}function y(){f||(f=!0,v())}function T(){f&&(f=!1,S())}const A={addNestedSub:d,notifyNestedSubs:g,handleChangeWrapper:h,isSubscribed:p,trySubscribe:y,tryUnsubscribe:T,getListeners:()=>r};return A}var DS=()=>typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",RS=DS(),NS=()=>typeof navigator<"u"&&navigator.product==="ReactNative",MS=NS(),kS=()=>RS||MS?Z.useLayoutEffect:Z.useEffect,Su=kS();function x1(t,l){return t===l?t!==0||l!==0||1/t===1/l:t!==t&&l!==l}function xd(t,l){if(x1(t,l))return!0;if(typeof t!="object"||t===null||typeof l!="object"||l===null)return!1;const i=Object.keys(t),r=Object.keys(l);if(i.length!==r.length)return!1;for(let o=0;o<i.length;o++)if(!Object.prototype.hasOwnProperty.call(l,i[o])||!x1(t[i[o]],l[i[o]]))return!1;return!0}var LS={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},zS={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},jS={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Zv={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},BS={[gS]:jS,[mS]:Zv};function O1(t){return bS(t)?Zv:BS[t.$$typeof]||LS}var US=Object.defineProperty,HS=Object.getOwnPropertyNames,D1=Object.getOwnPropertySymbols,IS=Object.getOwnPropertyDescriptor,VS=Object.getPrototypeOf,R1=Object.prototype;function Wd(t,l){if(typeof l!="string"){if(R1){const f=VS(l);f&&f!==R1&&Wd(t,f)}let i=HS(l);D1&&(i=i.concat(D1(l)));const r=O1(t),o=O1(l);for(let f=0;f<i.length;++f){const d=i[f];if(!zS[d]&&!(o&&o[d])&&!(r&&r[d])){const g=IS(l,d);try{US(t,d,g)}catch{}}}}return t}var QS=Symbol.for("react-redux-context"),XS=typeof globalThis<"u"?globalThis:{};function GS(){if(!Z.createContext)return{};const t=XS[QS]??=new Map;let l=t.get(Z.createContext);return l||(l=Z.createContext(null),t.set(Z.createContext,l)),l}var dl=GS(),ZS=[null,null];function FS(t,l,i){Su(()=>t(...l),i)}function YS(t,l,i,r,o,f){t.current=r,i.current=!1,o.current&&(o.current=null,f())}function KS(t,l,i,r,o,f,d,g,h,p,v){if(!t)return()=>{};let S=!1,y=null;const T=()=>{if(S||!g.current)return;const _=l.getState();let w,x;try{w=r(_,o.current)}catch(C){x=C,y=C}x||(y=null),w===f.current?d.current||p():(f.current=w,h.current=w,d.current=!0,v())};return i.onStateChange=T,i.trySubscribe(),T(),()=>{if(S=!0,i.tryUnsubscribe(),i.onStateChange=null,y)throw y}}function JS(t,l){return t===l}function PS(t,l,i,{pure:r,areStatesEqual:o=JS,areOwnPropsEqual:f=xd,areStatePropsEqual:d=xd,areMergedPropsEqual:g=xd,forwardRef:h=!1,context:p=dl}={}){const v=p,S=wS(t),y=ES(l),T=CS(i),A=!!t;return w=>{const x=w.displayName||w.name||"Component",C=`Connect(${x})`,D={shouldHandleStateChanges:A,displayName:C,wrappedComponentName:x,WrappedComponent:w,initMapStateToProps:S,initMapDispatchToProps:y,initMergeProps:T,areStatesEqual:o,areStatePropsEqual:d,areOwnPropsEqual:f,areMergedPropsEqual:g};function k(L){const[Y,X,W]=Z.useMemo(()=>{const{reactReduxForwardedRef:Ae,...mt}=L;return[L.context,Ae,mt]},[L]),K=Z.useMemo(()=>{let Ae=v;return Y?.Consumer,Ae},[Y,v]),P=Z.useContext(K),fe=!!L.store&&!!L.store.getState&&!!L.store.dispatch,he=!!P&&!!P.store,de=fe?L.store:P.store,j=he?P.getServerState:de.getState,le=Z.useMemo(()=>_S(de.dispatch,D),[de]),[G,be]=Z.useMemo(()=>{if(!A)return ZS;const Ae=Gv(de,fe?void 0:P.subscription),mt=Ae.notifyNestedSubs.bind(Ae);return[Ae,mt]},[de,fe,P]),ge=Z.useMemo(()=>fe?P:{...P,subscription:G},[fe,P,G]),O=Z.useRef(void 0),J=Z.useRef(W),ee=Z.useRef(void 0),oe=Z.useRef(!1),ne=Z.useRef(!1),ce=Z.useRef(void 0);Su(()=>(ne.current=!0,()=>{ne.current=!1}),[]);const me=Z.useMemo(()=>()=>ee.current&&W===J.current?ee.current:le(de.getState(),W),[de,W]),Se=Z.useMemo(()=>mt=>G?KS(A,de,G,le,J,O,oe,ne,ee,be,mt):()=>{},[G]);FS(YS,[J,O,oe,W,ee,be]);let we;try{we=Z.useSyncExternalStore(Se,me,j?()=>le(j(),W):me)}catch(Ae){throw ce.current&&(Ae.message+=`
8
+ `+s.stack}}var Xe=Object.prototype.hasOwnProperty,Ft=t.unstable_scheduleCallback,xt=t.unstable_cancelCallback,nn=t.unstable_shouldYield,Et=t.unstable_requestPaint,st=t.unstable_now,Dn=t.unstable_getCurrentPriorityLevel,Qt=t.unstable_ImmediatePriority,Rt=t.unstable_UserBlockingPriority,zt=t.unstable_NormalPriority,cn=t.unstable_LowPriority,fn=t.unstable_IdlePriority,ua=t.log,nt=t.unstable_setDisableYieldValue,dn=null,vt=null;function ft(e){if(typeof ua=="function"&&nt(e),vt&&typeof vt.setStrictMode=="function")try{vt.setStrictMode(dn,e)}catch{}}var Je=Math.clz32?Math.clz32:hn,qe=Math.log,an=Math.LN2;function hn(e){return e>>>=0,e===0?32:31-(qe(e)/an|0)|0}var jt=256,at=262144,Yt=4194304;function At(e){var n=e&42;if(n!==0)return n;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072: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 Rn(e,n,a){var s=e.pendingLanes;if(s===0)return 0;var u=0,c=e.suspendedLanes,m=e.pingedLanes;e=e.warmLanes;var E=s&134217727;return E!==0?(s=E&~c,s!==0?u=At(s):(m&=E,m!==0?u=At(m):a||(a=E&~e,a!==0&&(u=At(a))))):(E=s&~c,E!==0?u=At(E):m!==0?u=At(m):a||(a=s&~e,a!==0&&(u=At(a)))),u===0?0:n!==0&&n!==u&&(n&c)===0&&(c=u&-u,a=n&-n,c>=a||c===32&&(a&4194048)!==0)?n:u}function Nn(e,n){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&n)===0}function dt(e,n){switch(e){case 1:case 2:case 4:case 8:case 64:return n+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return n+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function ln(){var e=Yt;return Yt<<=1,(Yt&62914560)===0&&(Yt=4194304),e}function ca(e){for(var n=[],a=0;31>a;a++)n.push(e);return n}function jn(e,n){e.pendingLanes|=n,n!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function fa(e,n,a,s,u,c){var m=e.pendingLanes;e.pendingLanes=a,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=a,e.entangledLanes&=a,e.errorRecoveryDisabledLanes&=a,e.shellSuspendCounter=0;var E=e.entanglements,N=e.expirationTimes,I=e.hiddenUpdates;for(a=m&~a;0<a;){var q=31-Je(a),ae=1<<q;E[q]=0,N[q]=-1;var Q=I[q];if(Q!==null)for(I[q]=null,q=0;q<Q.length;q++){var F=Q[q];F!==null&&(F.lane&=-536870913)}a&=~ae}s!==0&&rn(e,s,0),c!==0&&u===0&&e.tag!==0&&(e.suspendedLanes|=c&~(m&~n))}function rn(e,n,a){e.pendingLanes|=n,e.suspendedLanes&=~n;var s=31-Je(n);e.entangledLanes|=n,e.entanglements[s]=e.entanglements[s]|1073741824|a&261930}function sn(e,n){var a=e.entangledLanes|=n;for(e=e.entanglements;a;){var s=31-Je(a),u=1<<s;u&n|e[s]&n&&(e[s]|=n),a&=~u}}function Kt(e,n){var a=n&-n;return a=(a&42)!==0?1:Bt(a),(a&(e.suspendedLanes|n))!==0?0:a}function Bt(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 Pe(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function Bn(){var e=le.p;return e!==0?e:(e=window.event,e===void 0?32:r1(e.type))}function Mn(e,n){var a=le.p;try{return le.p=e,n()}finally{le.p=a}}var Ut=Math.random().toString(36).slice(2),De="__reactFiber$"+Ut,et="__reactProps$"+Ut,pn="__reactContainer$"+Ut,Fn="__reactEvents$"+Ut,on="__reactListeners$"+Ut,wa="__reactHandles$"+Ut,ze="__reactResources$"+Ut,ue="__reactMarker$"+Ut;function R(e){delete e[De],delete e[et],delete e[Fn],delete e[on],delete e[wa]}function $(e){var n=e[De];if(n)return n;for(var a=e.parentNode;a;){if(n=a[pn]||a[De]){if(a=n.alternate,n.child!==null||a!==null&&a.child!==null)for(e=G0(e);e!==null;){if(a=e[De])return a;e=G0(e)}return n}e=a,a=e.parentNode}return null}function re(e){if(e=e[De]||e[pn]){var n=e.tag;if(n===5||n===6||n===13||n===31||n===26||n===27||n===3)return e}return null}function Ee(e){var n=e.tag;if(n===5||n===26||n===27||n===6)return e.stateNode;throw Error(r(33))}function Ge(e){var n=e[ze];return n||(n=e[ze]={hoistableStyles:new Map,hoistableScripts:new Map}),n}function pe(e){e[ue]=!0}var ht=new Set,Re={};function lt(e,n){tt(e,n),tt(e+"Capture",n)}function tt(e,n){for(Re[e]=n,e=0;e<n.length;e++)ht.add(n[e])}var Ne=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]*$"),kt={},Xt={};function La(e){return Xe.call(Xt,e)?!0:Xe.call(kt,e)?!1:Ne.test(e)?Xt[e]=!0:(kt[e]=!0,!1)}function He(e,n,a){if(La(n))if(a===null)e.removeAttribute(n);else{switch(typeof a){case"undefined":case"function":case"symbol":e.removeAttribute(n);return;case"boolean":var s=n.toLowerCase().slice(0,5);if(s!=="data-"&&s!=="aria-"){e.removeAttribute(n);return}}e.setAttribute(n,""+a)}}function Yn(e,n,a){if(a===null)e.removeAttribute(n);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(n);return}e.setAttribute(n,""+a)}}function gn(e,n,a,s){if(s===null)e.removeAttribute(a);else{switch(typeof s){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(a);return}e.setAttributeNS(n,a,""+s)}}function kn(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function za(e){var n=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(n==="checkbox"||n==="radio")}function fc(e,n,a){var s=Object.getOwnPropertyDescriptor(e.constructor.prototype,n);if(!e.hasOwnProperty(n)&&typeof s<"u"&&typeof s.get=="function"&&typeof s.set=="function"){var u=s.get,c=s.set;return Object.defineProperty(e,n,{configurable:!0,get:function(){return u.call(this)},set:function(m){a=""+m,c.call(this,m)}}),Object.defineProperty(e,n,{enumerable:s.enumerable}),{getValue:function(){return a},setValue:function(m){a=""+m},stopTracking:function(){e._valueTracker=null,delete e[n]}}}}function bi(e){if(!e._valueTracker){var n=za(e)?"checked":"value";e._valueTracker=fc(e,n,""+e[n])}}function Us(e){if(!e)return!1;var n=e._valueTracker;if(!n)return!0;var a=n.getValue(),s="";return e&&(s=za(e)?e.checked?"true":"false":e.value),e=s,e!==a?(n.setValue(e),!0):!1}function yi(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var _i=/[\n"\\]/g;function Un(e){return e.replace(_i,function(n){return"\\"+n.charCodeAt(0).toString(16)+" "})}function dc(e,n,a,s,u,c,m,E){e.name="",m!=null&&typeof m!="function"&&typeof m!="symbol"&&typeof m!="boolean"?e.type=m:e.removeAttribute("type"),n!=null?m==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+kn(n)):e.value!==""+kn(n)&&(e.value=""+kn(n)):m!=="submit"&&m!=="reset"||e.removeAttribute("value"),n!=null?hc(e,m,kn(n)):a!=null?hc(e,m,kn(a)):s!=null&&e.removeAttribute("value"),u==null&&c!=null&&(e.defaultChecked=!!c),u!=null&&(e.checked=u&&typeof u!="function"&&typeof u!="symbol"),E!=null&&typeof E!="function"&&typeof E!="symbol"&&typeof E!="boolean"?e.name=""+kn(E):e.removeAttribute("name")}function gr(e,n,a,s,u,c,m,E){if(c!=null&&typeof c!="function"&&typeof c!="symbol"&&typeof c!="boolean"&&(e.type=c),n!=null||a!=null){if(!(c!=="submit"&&c!=="reset"||n!=null)){bi(e);return}a=a!=null?""+kn(a):"",n=n!=null?""+kn(n):a,E||n===e.value||(e.value=n),e.defaultValue=n}s=s??u,s=typeof s!="function"&&typeof s!="symbol"&&!!s,e.checked=E?e.checked:!!s,e.defaultChecked=!!s,m!=null&&typeof m!="function"&&typeof m!="symbol"&&typeof m!="boolean"&&(e.name=m),bi(e)}function hc(e,n,a){n==="number"&&yi(e.ownerDocument)===e||e.defaultValue===""+a||(e.defaultValue=""+a)}function ml(e,n,a,s){if(e=e.options,n){n={};for(var u=0;u<a.length;u++)n["$"+a[u]]=!0;for(a=0;a<e.length;a++)u=n.hasOwnProperty("$"+e[a].value),e[a].selected!==u&&(e[a].selected=u),u&&s&&(e[a].defaultSelected=!0)}else{for(a=""+kn(a),n=null,u=0;u<e.length;u++){if(e[u].value===a){e[u].selected=!0,s&&(e[u].defaultSelected=!0);return}n!==null||e[u].disabled||(n=e[u])}n!==null&&(n.selected=!0)}}function Np(e,n,a){if(n!=null&&(n=""+kn(n),n!==e.value&&(e.value=n),a==null)){e.defaultValue!==n&&(e.defaultValue=n);return}e.defaultValue=a!=null?""+kn(a):""}function Mp(e,n,a,s){if(n==null){if(s!=null){if(a!=null)throw Error(r(92));if(de(s)){if(1<s.length)throw Error(r(93));s=s[0]}a=s}a==null&&(a=""),n=a}a=kn(n),e.defaultValue=a,s=e.textContent,s===a&&s!==""&&s!==null&&(e.value=s),bi(e)}function Ga(e,n){if(n){var a=e.firstChild;if(a&&a===e.lastChild&&a.nodeType===3){a.nodeValue=n;return}}e.textContent=n}var Iy=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 kp(e,n,a){var s=n.indexOf("--")===0;a==null||typeof a=="boolean"||a===""?s?e.setProperty(n,""):n==="float"?e.cssFloat="":e[n]="":s?e.setProperty(n,a):typeof a!="number"||a===0||Iy.has(n)?n==="float"?e.cssFloat=a:e[n]=(""+a).trim():e[n]=a+"px"}function Lp(e,n,a){if(n!=null&&typeof n!="object")throw Error(r(62));if(e=e.style,a!=null){for(var s in a)!a.hasOwnProperty(s)||n!=null&&n.hasOwnProperty(s)||(s.indexOf("--")===0?e.setProperty(s,""):s==="float"?e.cssFloat="":e[s]="");for(var u in n)s=n[u],n.hasOwnProperty(u)&&a[u]!==s&&kp(e,u,s)}else for(var c in n)n.hasOwnProperty(c)&&kp(e,c,n[c])}function pc(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 Vy=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"]]),Qy=/^[\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 Hs(e){return Qy.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function Za(){}var gc=null;function mc(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Si=null,Ei=null;function zp(e){var n=re(e);if(n&&(e=n.stateNode)){var a=e[et]||null;e:switch(e=n.stateNode,n.type){case"input":if(dc(e,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name),n=a.name,a.type==="radio"&&n!=null){for(a=e;a.parentNode;)a=a.parentNode;for(a=a.querySelectorAll('input[name="'+Un(""+n)+'"][type="radio"]'),n=0;n<a.length;n++){var s=a[n];if(s!==e&&s.form===e.form){var u=s[et]||null;if(!u)throw Error(r(90));dc(s,u.value,u.defaultValue,u.defaultValue,u.checked,u.defaultChecked,u.type,u.name)}}for(n=0;n<a.length;n++)s=a[n],s.form===e.form&&Us(s)}break e;case"textarea":Np(e,a.value,a.defaultValue);break e;case"select":n=a.value,n!=null&&ml(e,!!a.multiple,n,!1)}}}var vc=!1;function jp(e,n,a){if(vc)return e(n,a);vc=!0;try{var s=e(n);return s}finally{if(vc=!1,(Si!==null||Ei!==null)&&(xo(),Si&&(n=Si,e=Ei,Ei=Si=null,zp(n),e)))for(n=0;n<e.length;n++)zp(e[n])}}function mr(e,n){var a=e.stateNode;if(a===null)return null;var s=a[et]||null;if(s===null)return null;a=s[n];e:switch(n){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(s=!s.disabled)||(e=e.type,s=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!s;break e;default:e=!1}if(e)return null;if(a&&typeof a!="function")throw Error(r(231,n,typeof a));return a}var Fa=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),bc=!1;if(Fa)try{var vr={};Object.defineProperty(vr,"passive",{get:function(){bc=!0}}),window.addEventListener("test",vr,vr),window.removeEventListener("test",vr,vr)}catch{bc=!1}var vl=null,yc=null,Is=null;function Bp(){if(Is)return Is;var e,n=yc,a=n.length,s,u="value"in vl?vl.value:vl.textContent,c=u.length;for(e=0;e<a&&n[e]===u[e];e++);var m=a-e;for(s=1;s<=m&&n[a-s]===u[c-s];s++);return Is=u.slice(e,1<s?1-s:void 0)}function Vs(e){var n=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&n===13&&(e=13)):e=n,e===10&&(e=13),32<=e||e===13?e:0}function Qs(){return!0}function Up(){return!1}function Kn(e){function n(a,s,u,c,m){this._reactName=a,this._targetInst=u,this.type=s,this.nativeEvent=c,this.target=m,this.currentTarget=null;for(var E in e)e.hasOwnProperty(E)&&(a=e[E],this[E]=a?a(c):c[E]);return this.isDefaultPrevented=(c.defaultPrevented!=null?c.defaultPrevented:c.returnValue===!1)?Qs:Up,this.isPropagationStopped=Up,this}return S(n.prototype,{preventDefault:function(){this.defaultPrevented=!0;var a=this.nativeEvent;a&&(a.preventDefault?a.preventDefault():typeof a.returnValue!="unknown"&&(a.returnValue=!1),this.isDefaultPrevented=Qs)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():typeof a.cancelBubble!="unknown"&&(a.cancelBubble=!0),this.isPropagationStopped=Qs)},persist:function(){},isPersistent:Qs}),n}var Fl={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Xs=Kn(Fl),br=S({},Fl,{view:0,detail:0}),Xy=Kn(br),_c,Sc,yr,Gs=S({},br,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:wc,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!==yr&&(yr&&e.type==="mousemove"?(_c=e.screenX-yr.screenX,Sc=e.screenY-yr.screenY):Sc=_c=0,yr=e),_c)},movementY:function(e){return"movementY"in e?e.movementY:Sc}}),Hp=Kn(Gs),Gy=S({},Gs,{dataTransfer:0}),Zy=Kn(Gy),Fy=S({},br,{relatedTarget:0}),Ec=Kn(Fy),Yy=S({},Fl,{animationName:0,elapsedTime:0,pseudoElement:0}),Ky=Kn(Yy),Jy=S({},Fl,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Py=Kn(Jy),Wy=S({},Fl,{data:0}),Ip=Kn(Wy),$y={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},qy={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"},e_={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function t_(e){var n=this.nativeEvent;return n.getModifierState?n.getModifierState(e):(e=e_[e])?!!n[e]:!1}function wc(){return t_}var n_=S({},br,{key:function(e){if(e.key){var n=$y[e.key]||e.key;if(n!=="Unidentified")return n}return e.type==="keypress"?(e=Vs(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?qy[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:wc,charCode:function(e){return e.type==="keypress"?Vs(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Vs(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),a_=Kn(n_),l_=S({},Gs,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Vp=Kn(l_),i_=S({},br,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:wc}),r_=Kn(i_),s_=S({},Fl,{propertyName:0,elapsedTime:0,pseudoElement:0}),o_=Kn(s_),u_=S({},Gs,{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}),c_=Kn(u_),f_=S({},Fl,{newState:0,oldState:0}),d_=Kn(f_),h_=[9,13,27,32],Tc=Fa&&"CompositionEvent"in window,_r=null;Fa&&"documentMode"in document&&(_r=document.documentMode);var p_=Fa&&"TextEvent"in window&&!_r,Qp=Fa&&(!Tc||_r&&8<_r&&11>=_r),Xp=" ",Gp=!1;function Zp(e,n){switch(e){case"keyup":return h_.indexOf(n.keyCode)!==-1;case"keydown":return n.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Fp(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var wi=!1;function g_(e,n){switch(e){case"compositionend":return Fp(n);case"keypress":return n.which!==32?null:(Gp=!0,Xp);case"textInput":return e=n.data,e===Xp&&Gp?null:e;default:return null}}function m_(e,n){if(wi)return e==="compositionend"||!Tc&&Zp(e,n)?(e=Bp(),Is=yc=vl=null,wi=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(n.ctrlKey||n.altKey||n.metaKey)||n.ctrlKey&&n.altKey){if(n.char&&1<n.char.length)return n.char;if(n.which)return String.fromCharCode(n.which)}return null;case"compositionend":return Qp&&n.locale!=="ko"?null:n.data;default:return null}}var v_={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 Yp(e){var n=e&&e.nodeName&&e.nodeName.toLowerCase();return n==="input"?!!v_[e.type]:n==="textarea"}function Kp(e,n,a,s){Si?Ei?Ei.push(s):Ei=[s]:Si=s,n=Lo(n,"onChange"),0<n.length&&(a=new Xs("onChange","change",null,a,s),e.push({event:a,listeners:n}))}var Sr=null,Er=null;function b_(e){R0(e,0)}function Zs(e){var n=Ee(e);if(Us(n))return e}function Jp(e,n){if(e==="change")return n}var Pp=!1;if(Fa){var Ac;if(Fa){var Cc="oninput"in document;if(!Cc){var Wp=document.createElement("div");Wp.setAttribute("oninput","return;"),Cc=typeof Wp.oninput=="function"}Ac=Cc}else Ac=!1;Pp=Ac&&(!document.documentMode||9<document.documentMode)}function $p(){Sr&&(Sr.detachEvent("onpropertychange",qp),Er=Sr=null)}function qp(e){if(e.propertyName==="value"&&Zs(Er)){var n=[];Kp(n,Er,e,mc(e)),jp(b_,n)}}function y_(e,n,a){e==="focusin"?($p(),Sr=n,Er=a,Sr.attachEvent("onpropertychange",qp)):e==="focusout"&&$p()}function __(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Zs(Er)}function S_(e,n){if(e==="click")return Zs(n)}function E_(e,n){if(e==="input"||e==="change")return Zs(n)}function w_(e,n){return e===n&&(e!==0||1/e===1/n)||e!==e&&n!==n}var ea=typeof Object.is=="function"?Object.is:w_;function wr(e,n){if(ea(e,n))return!0;if(typeof e!="object"||e===null||typeof n!="object"||n===null)return!1;var a=Object.keys(e),s=Object.keys(n);if(a.length!==s.length)return!1;for(s=0;s<a.length;s++){var u=a[s];if(!Xe.call(n,u)||!ea(e[u],n[u]))return!1}return!0}function eg(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function tg(e,n){var a=eg(e);e=0;for(var s;a;){if(a.nodeType===3){if(s=e+a.textContent.length,e<=n&&s>=n)return{node:a,offset:n-e};e=s}e:{for(;a;){if(a.nextSibling){a=a.nextSibling;break e}a=a.parentNode}a=void 0}a=eg(a)}}function ng(e,n){return e&&n?e===n?!0:e&&e.nodeType===3?!1:n&&n.nodeType===3?ng(e,n.parentNode):"contains"in e?e.contains(n):e.compareDocumentPosition?!!(e.compareDocumentPosition(n)&16):!1:!1}function ag(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var n=yi(e.document);n instanceof e.HTMLIFrameElement;){try{var a=typeof n.contentWindow.location.href=="string"}catch{a=!1}if(a)e=n.contentWindow;else break;n=yi(e.document)}return n}function xc(e){var n=e&&e.nodeName&&e.nodeName.toLowerCase();return n&&(n==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||n==="textarea"||e.contentEditable==="true")}var T_=Fa&&"documentMode"in document&&11>=document.documentMode,Ti=null,Oc=null,Tr=null,Dc=!1;function lg(e,n,a){var s=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;Dc||Ti==null||Ti!==yi(s)||(s=Ti,"selectionStart"in s&&xc(s)?s={start:s.selectionStart,end:s.selectionEnd}:(s=(s.ownerDocument&&s.ownerDocument.defaultView||window).getSelection(),s={anchorNode:s.anchorNode,anchorOffset:s.anchorOffset,focusNode:s.focusNode,focusOffset:s.focusOffset}),Tr&&wr(Tr,s)||(Tr=s,s=Lo(Oc,"onSelect"),0<s.length&&(n=new Xs("onSelect","select",null,n,a),e.push({event:n,listeners:s}),n.target=Ti)))}function Yl(e,n){var a={};return a[e.toLowerCase()]=n.toLowerCase(),a["Webkit"+e]="webkit"+n,a["Moz"+e]="moz"+n,a}var Ai={animationend:Yl("Animation","AnimationEnd"),animationiteration:Yl("Animation","AnimationIteration"),animationstart:Yl("Animation","AnimationStart"),transitionrun:Yl("Transition","TransitionRun"),transitionstart:Yl("Transition","TransitionStart"),transitioncancel:Yl("Transition","TransitionCancel"),transitionend:Yl("Transition","TransitionEnd")},Rc={},ig={};Fa&&(ig=document.createElement("div").style,"AnimationEvent"in window||(delete Ai.animationend.animation,delete Ai.animationiteration.animation,delete Ai.animationstart.animation),"TransitionEvent"in window||delete Ai.transitionend.transition);function Kl(e){if(Rc[e])return Rc[e];if(!Ai[e])return e;var n=Ai[e],a;for(a in n)if(n.hasOwnProperty(a)&&a in ig)return Rc[e]=n[a];return e}var rg=Kl("animationend"),sg=Kl("animationiteration"),og=Kl("animationstart"),A_=Kl("transitionrun"),C_=Kl("transitionstart"),x_=Kl("transitioncancel"),ug=Kl("transitionend"),cg=new Map,Nc="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(" ");Nc.push("scrollEnd");function Ta(e,n){cg.set(e,n),lt(n,[e])}var Fs=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var n=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(n))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},da=[],Ci=0,Mc=0;function Ys(){for(var e=Ci,n=Mc=Ci=0;n<e;){var a=da[n];da[n++]=null;var s=da[n];da[n++]=null;var u=da[n];da[n++]=null;var c=da[n];if(da[n++]=null,s!==null&&u!==null){var m=s.pending;m===null?u.next=u:(u.next=m.next,m.next=u),s.pending=u}c!==0&&fg(a,u,c)}}function Ks(e,n,a,s){da[Ci++]=e,da[Ci++]=n,da[Ci++]=a,da[Ci++]=s,Mc|=s,e.lanes|=s,e=e.alternate,e!==null&&(e.lanes|=s)}function kc(e,n,a,s){return Ks(e,n,a,s),Js(e)}function Jl(e,n){return Ks(e,null,null,n),Js(e)}function fg(e,n,a){e.lanes|=a;var s=e.alternate;s!==null&&(s.lanes|=a);for(var u=!1,c=e.return;c!==null;)c.childLanes|=a,s=c.alternate,s!==null&&(s.childLanes|=a),c.tag===22&&(e=c.stateNode,e===null||e._visibility&1||(u=!0)),e=c,c=c.return;return e.tag===3?(c=e.stateNode,u&&n!==null&&(u=31-Je(a),e=c.hiddenUpdates,s=e[u],s===null?e[u]=[n]:s.push(n),n.lane=a|536870912),c):null}function Js(e){if(50<Fr)throw Fr=0,Xf=null,Error(r(185));for(var n=e.return;n!==null;)e=n,n=e.return;return e.tag===3?e.stateNode:null}var xi={};function O_(e,n,a,s){this.tag=e,this.key=a,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=n,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=s,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function ta(e,n,a,s){return new O_(e,n,a,s)}function Lc(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Ya(e,n){var a=e.alternate;return a===null?(a=ta(e.tag,n,e.key,e.mode),a.elementType=e.elementType,a.type=e.type,a.stateNode=e.stateNode,a.alternate=e,e.alternate=a):(a.pendingProps=n,a.type=e.type,a.flags=0,a.subtreeFlags=0,a.deletions=null),a.flags=e.flags&65011712,a.childLanes=e.childLanes,a.lanes=e.lanes,a.child=e.child,a.memoizedProps=e.memoizedProps,a.memoizedState=e.memoizedState,a.updateQueue=e.updateQueue,n=e.dependencies,a.dependencies=n===null?null:{lanes:n.lanes,firstContext:n.firstContext},a.sibling=e.sibling,a.index=e.index,a.ref=e.ref,a.refCleanup=e.refCleanup,a}function dg(e,n){e.flags&=65011714;var a=e.alternate;return a===null?(e.childLanes=0,e.lanes=n,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=a.childLanes,e.lanes=a.lanes,e.child=a.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=a.memoizedProps,e.memoizedState=a.memoizedState,e.updateQueue=a.updateQueue,e.type=a.type,n=a.dependencies,e.dependencies=n===null?null:{lanes:n.lanes,firstContext:n.firstContext}),e}function Ps(e,n,a,s,u,c){var m=0;if(s=e,typeof e=="function")Lc(e)&&(m=1);else if(typeof e=="string")m=k2(e,a,oe.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case X:return e=ta(31,a,n,u),e.elementType=X,e.lanes=c,e;case _:return Pl(a.children,u,c,n);case w:m=8,u|=24;break;case x:return e=ta(12,a,n,u|2),e.elementType=x,e.lanes=c,e;case U:return e=ta(13,a,n,u),e.elementType=U,e.lanes=c,e;case H:return e=ta(19,a,n,u),e.elementType=H,e.lanes=c,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case D:m=10;break e;case C:m=9;break e;case k:m=11;break e;case L:m=14;break e;case Y:m=16,s=null;break e}m=29,a=Error(r(130,e===null?"null":typeof e,"")),s=null}return n=ta(m,a,n,u),n.elementType=e,n.type=s,n.lanes=c,n}function Pl(e,n,a,s){return e=ta(7,e,s,n),e.lanes=a,e}function zc(e,n,a){return e=ta(6,e,null,n),e.lanes=a,e}function hg(e){var n=ta(18,null,null,0);return n.stateNode=e,n}function jc(e,n,a){return n=ta(4,e.children!==null?e.children:[],e.key,n),n.lanes=a,n.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},n}var pg=new WeakMap;function ha(e,n){if(typeof e=="object"&&e!==null){var a=pg.get(e);return a!==void 0?a:(n={value:e,source:n,stack:_n(n)},pg.set(e,n),n)}return{value:e,source:n,stack:_n(n)}}var Oi=[],Di=0,Ws=null,Ar=0,pa=[],ga=0,bl=null,ja=1,Ba="";function Ka(e,n){Oi[Di++]=Ar,Oi[Di++]=Ws,Ws=e,Ar=n}function gg(e,n,a){pa[ga++]=ja,pa[ga++]=Ba,pa[ga++]=bl,bl=e;var s=ja;e=Ba;var u=32-Je(s)-1;s&=~(1<<u),a+=1;var c=32-Je(n)+u;if(30<c){var m=u-u%5;c=(s&(1<<m)-1).toString(32),s>>=m,u-=m,ja=1<<32-Je(n)+u|a<<u|s,Ba=c+e}else ja=1<<c|a<<u|s,Ba=e}function Bc(e){e.return!==null&&(Ka(e,1),gg(e,1,0))}function Uc(e){for(;e===Ws;)Ws=Oi[--Di],Oi[Di]=null,Ar=Oi[--Di],Oi[Di]=null;for(;e===bl;)bl=pa[--ga],pa[ga]=null,Ba=pa[--ga],pa[ga]=null,ja=pa[--ga],pa[ga]=null}function mg(e,n){pa[ga++]=ja,pa[ga++]=Ba,pa[ga++]=bl,ja=n.id,Ba=n.overflow,bl=e}var Sn=null,Ot=null,Ye=!1,yl=null,ma=!1,Hc=Error(r(519));function _l(e){var n=Error(r(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Cr(ha(n,e)),Hc}function vg(e){var n=e.stateNode,a=e.type,s=e.memoizedProps;switch(n[De]=e,n[et]=s,a){case"dialog":Ve("cancel",n),Ve("close",n);break;case"iframe":case"object":case"embed":Ve("load",n);break;case"video":case"audio":for(a=0;a<Kr.length;a++)Ve(Kr[a],n);break;case"source":Ve("error",n);break;case"img":case"image":case"link":Ve("error",n),Ve("load",n);break;case"details":Ve("toggle",n);break;case"input":Ve("invalid",n),gr(n,s.value,s.defaultValue,s.checked,s.defaultChecked,s.type,s.name,!0);break;case"select":Ve("invalid",n);break;case"textarea":Ve("invalid",n),Mp(n,s.value,s.defaultValue,s.children)}a=s.children,typeof a!="string"&&typeof a!="number"&&typeof a!="bigint"||n.textContent===""+a||s.suppressHydrationWarning===!0||L0(n.textContent,a)?(s.popover!=null&&(Ve("beforetoggle",n),Ve("toggle",n)),s.onScroll!=null&&Ve("scroll",n),s.onScrollEnd!=null&&Ve("scrollend",n),s.onClick!=null&&(n.onclick=Za),n=!0):n=!1,n||_l(e,!0)}function bg(e){for(Sn=e.return;Sn;)switch(Sn.tag){case 5:case 31:case 13:ma=!1;return;case 27:case 3:ma=!0;return;default:Sn=Sn.return}}function Ri(e){if(e!==Sn)return!1;if(!Ye)return bg(e),Ye=!0,!1;var n=e.tag,a;if((a=n!==3&&n!==27)&&((a=n===5)&&(a=e.type,a=!(a!=="form"&&a!=="button")||ld(e.type,e.memoizedProps)),a=!a),a&&Ot&&_l(e),bg(e),n===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(r(317));Ot=X0(e)}else if(n===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(r(317));Ot=X0(e)}else n===27?(n=Ot,Ll(e.type)?(e=ud,ud=null,Ot=e):Ot=n):Ot=Sn?ba(e.stateNode.nextSibling):null;return!0}function Wl(){Ot=Sn=null,Ye=!1}function Ic(){var e=yl;return e!==null&&($n===null?$n=e:$n.push.apply($n,e),yl=null),e}function Cr(e){yl===null?yl=[e]:yl.push(e)}var Vc=O(null),$l=null,Ja=null;function Sl(e,n,a){ee(Vc,n._currentValue),n._currentValue=a}function Pa(e){e._currentValue=Vc.current,J(Vc)}function Qc(e,n,a){for(;e!==null;){var s=e.alternate;if((e.childLanes&n)!==n?(e.childLanes|=n,s!==null&&(s.childLanes|=n)):s!==null&&(s.childLanes&n)!==n&&(s.childLanes|=n),e===a)break;e=e.return}}function Xc(e,n,a,s){var u=e.child;for(u!==null&&(u.return=e);u!==null;){var c=u.dependencies;if(c!==null){var m=u.child;c=c.firstContext;e:for(;c!==null;){var E=c;c=u;for(var N=0;N<n.length;N++)if(E.context===n[N]){c.lanes|=a,E=c.alternate,E!==null&&(E.lanes|=a),Qc(c.return,a,e),s||(m=null);break e}c=E.next}}else if(u.tag===18){if(m=u.return,m===null)throw Error(r(341));m.lanes|=a,c=m.alternate,c!==null&&(c.lanes|=a),Qc(m,a,e),m=null}else m=u.child;if(m!==null)m.return=u;else for(m=u;m!==null;){if(m===e){m=null;break}if(u=m.sibling,u!==null){u.return=m.return,m=u;break}m=m.return}u=m}}function Ni(e,n,a,s){e=null;for(var u=n,c=!1;u!==null;){if(!c){if((u.flags&524288)!==0)c=!0;else if((u.flags&262144)!==0)break}if(u.tag===10){var m=u.alternate;if(m===null)throw Error(r(387));if(m=m.memoizedProps,m!==null){var E=u.type;ea(u.pendingProps.value,m.value)||(e!==null?e.push(E):e=[E])}}else if(u===me.current){if(m=u.alternate,m===null)throw Error(r(387));m.memoizedState.memoizedState!==u.memoizedState.memoizedState&&(e!==null?e.push(qr):e=[qr])}u=u.return}e!==null&&Xc(n,e,a,s),n.flags|=262144}function $s(e){for(e=e.firstContext;e!==null;){if(!ea(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function ql(e){$l=e,Ja=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function En(e){return yg($l,e)}function qs(e,n){return $l===null&&ql(e),yg(e,n)}function yg(e,n){var a=n._currentValue;if(n={context:n,memoizedValue:a,next:null},Ja===null){if(e===null)throw Error(r(308));Ja=n,e.dependencies={lanes:0,firstContext:n},e.flags|=524288}else Ja=Ja.next=n;return a}var D_=typeof AbortController<"u"?AbortController:function(){var e=[],n=this.signal={aborted:!1,addEventListener:function(a,s){e.push(s)}};this.abort=function(){n.aborted=!0,e.forEach(function(a){return a()})}},R_=t.unstable_scheduleCallback,N_=t.unstable_NormalPriority,Jt={$$typeof:D,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Gc(){return{controller:new D_,data:new Map,refCount:0}}function xr(e){e.refCount--,e.refCount===0&&R_(N_,function(){e.controller.abort()})}var Or=null,Zc=0,Mi=0,ki=null;function M_(e,n){if(Or===null){var a=Or=[];Zc=0,Mi=Jf(),ki={status:"pending",value:void 0,then:function(s){a.push(s)}}}return Zc++,n.then(_g,_g),n}function _g(){if(--Zc===0&&Or!==null){ki!==null&&(ki.status="fulfilled");var e=Or;Or=null,Mi=0,ki=null;for(var n=0;n<e.length;n++)(0,e[n])()}}function k_(e,n){var a=[],s={status:"pending",value:null,reason:null,then:function(u){a.push(u)}};return e.then(function(){s.status="fulfilled",s.value=n;for(var u=0;u<a.length;u++)(0,a[u])(n)},function(u){for(s.status="rejected",s.reason=u,u=0;u<a.length;u++)(0,a[u])(void 0)}),s}var Sg=j.S;j.S=function(e,n){l0=st(),typeof n=="object"&&n!==null&&typeof n.then=="function"&&M_(e,n),Sg!==null&&Sg(e,n)};var ei=O(null);function Fc(){var e=ei.current;return e!==null?e:wt.pooledCache}function eo(e,n){n===null?ee(ei,ei.current):ee(ei,n.pool)}function Eg(){var e=Fc();return e===null?null:{parent:Jt._currentValue,pool:e}}var Li=Error(r(460)),Yc=Error(r(474)),to=Error(r(542)),no={then:function(){}};function wg(e){return e=e.status,e==="fulfilled"||e==="rejected"}function Tg(e,n,a){switch(a=e[a],a===void 0?e.push(n):a!==n&&(n.then(Za,Za),n=a),n.status){case"fulfilled":return n.value;case"rejected":throw e=n.reason,Cg(e),e;default:if(typeof n.status=="string")n.then(Za,Za);else{if(e=wt,e!==null&&100<e.shellSuspendCounter)throw Error(r(482));e=n,e.status="pending",e.then(function(s){if(n.status==="pending"){var u=n;u.status="fulfilled",u.value=s}},function(s){if(n.status==="pending"){var u=n;u.status="rejected",u.reason=s}})}switch(n.status){case"fulfilled":return n.value;case"rejected":throw e=n.reason,Cg(e),e}throw ni=n,Li}}function ti(e){try{var n=e._init;return n(e._payload)}catch(a){throw a!==null&&typeof a=="object"&&typeof a.then=="function"?(ni=a,Li):a}}var ni=null;function Ag(){if(ni===null)throw Error(r(459));var e=ni;return ni=null,e}function Cg(e){if(e===Li||e===to)throw Error(r(483))}var zi=null,Dr=0;function ao(e){var n=Dr;return Dr+=1,zi===null&&(zi=[]),Tg(zi,e,n)}function Rr(e,n){n=n.props.ref,e.ref=n!==void 0?n:null}function lo(e,n){throw n.$$typeof===y?Error(r(525)):(e=Object.prototype.toString.call(n),Error(r(31,e==="[object Object]"?"object with keys {"+Object.keys(n).join(", ")+"}":e)))}function xg(e){function n(z,M){if(e){var B=z.deletions;B===null?(z.deletions=[M],z.flags|=16):B.push(M)}}function a(z,M){if(!e)return null;for(;M!==null;)n(z,M),M=M.sibling;return null}function s(z){for(var M=new Map;z!==null;)z.key!==null?M.set(z.key,z):M.set(z.index,z),z=z.sibling;return M}function u(z,M){return z=Ya(z,M),z.index=0,z.sibling=null,z}function c(z,M,B){return z.index=B,e?(B=z.alternate,B!==null?(B=B.index,B<M?(z.flags|=67108866,M):B):(z.flags|=67108866,M)):(z.flags|=1048576,M)}function m(z){return e&&z.alternate===null&&(z.flags|=67108866),z}function E(z,M,B,te){return M===null||M.tag!==6?(M=zc(B,z.mode,te),M.return=z,M):(M=u(M,B),M.return=z,M)}function N(z,M,B,te){var Te=B.type;return Te===_?q(z,M,B.props.children,te,B.key):M!==null&&(M.elementType===Te||typeof Te=="object"&&Te!==null&&Te.$$typeof===Y&&ti(Te)===M.type)?(M=u(M,B.props),Rr(M,B),M.return=z,M):(M=Ps(B.type,B.key,B.props,null,z.mode,te),Rr(M,B),M.return=z,M)}function I(z,M,B,te){return M===null||M.tag!==4||M.stateNode.containerInfo!==B.containerInfo||M.stateNode.implementation!==B.implementation?(M=jc(B,z.mode,te),M.return=z,M):(M=u(M,B.children||[]),M.return=z,M)}function q(z,M,B,te,Te){return M===null||M.tag!==7?(M=Pl(B,z.mode,te,Te),M.return=z,M):(M=u(M,B),M.return=z,M)}function ae(z,M,B){if(typeof M=="string"&&M!==""||typeof M=="number"||typeof M=="bigint")return M=zc(""+M,z.mode,B),M.return=z,M;if(typeof M=="object"&&M!==null){switch(M.$$typeof){case T:return B=Ps(M.type,M.key,M.props,null,z.mode,B),Rr(B,M),B.return=z,B;case A:return M=jc(M,z.mode,B),M.return=z,M;case Y:return M=ti(M),ae(z,M,B)}if(de(M)||P(M))return M=Pl(M,z.mode,B,null),M.return=z,M;if(typeof M.then=="function")return ae(z,ao(M),B);if(M.$$typeof===D)return ae(z,qs(z,M),B);lo(z,M)}return null}function Q(z,M,B,te){var Te=M!==null?M.key:null;if(typeof B=="string"&&B!==""||typeof B=="number"||typeof B=="bigint")return Te!==null?null:E(z,M,""+B,te);if(typeof B=="object"&&B!==null){switch(B.$$typeof){case T:return B.key===Te?N(z,M,B,te):null;case A:return B.key===Te?I(z,M,B,te):null;case Y:return B=ti(B),Q(z,M,B,te)}if(de(B)||P(B))return Te!==null?null:q(z,M,B,te,null);if(typeof B.then=="function")return Q(z,M,ao(B),te);if(B.$$typeof===D)return Q(z,M,qs(z,B),te);lo(z,B)}return null}function F(z,M,B,te,Te){if(typeof te=="string"&&te!==""||typeof te=="number"||typeof te=="bigint")return z=z.get(B)||null,E(M,z,""+te,Te);if(typeof te=="object"&&te!==null){switch(te.$$typeof){case T:return z=z.get(te.key===null?B:te.key)||null,N(M,z,te,Te);case A:return z=z.get(te.key===null?B:te.key)||null,I(M,z,te,Te);case Y:return te=ti(te),F(z,M,B,te,Te)}if(de(te)||P(te))return z=z.get(B)||null,q(M,z,te,Te,null);if(typeof te.then=="function")return F(z,M,B,ao(te),Te);if(te.$$typeof===D)return F(z,M,B,qs(M,te),Te);lo(M,te)}return null}function ve(z,M,B,te){for(var Te=null,it=null,_e=M,je=M=0,Fe=null;_e!==null&&je<B.length;je++){_e.index>je?(Fe=_e,_e=null):Fe=_e.sibling;var rt=Q(z,_e,B[je],te);if(rt===null){_e===null&&(_e=Fe);break}e&&_e&&rt.alternate===null&&n(z,_e),M=c(rt,M,je),it===null?Te=rt:it.sibling=rt,it=rt,_e=Fe}if(je===B.length)return a(z,_e),Ye&&Ka(z,je),Te;if(_e===null){for(;je<B.length;je++)_e=ae(z,B[je],te),_e!==null&&(M=c(_e,M,je),it===null?Te=_e:it.sibling=_e,it=_e);return Ye&&Ka(z,je),Te}for(_e=s(_e);je<B.length;je++)Fe=F(_e,z,je,B[je],te),Fe!==null&&(e&&Fe.alternate!==null&&_e.delete(Fe.key===null?je:Fe.key),M=c(Fe,M,je),it===null?Te=Fe:it.sibling=Fe,it=Fe);return e&&_e.forEach(function(Hl){return n(z,Hl)}),Ye&&Ka(z,je),Te}function Ce(z,M,B,te){if(B==null)throw Error(r(151));for(var Te=null,it=null,_e=M,je=M=0,Fe=null,rt=B.next();_e!==null&&!rt.done;je++,rt=B.next()){_e.index>je?(Fe=_e,_e=null):Fe=_e.sibling;var Hl=Q(z,_e,rt.value,te);if(Hl===null){_e===null&&(_e=Fe);break}e&&_e&&Hl.alternate===null&&n(z,_e),M=c(Hl,M,je),it===null?Te=Hl:it.sibling=Hl,it=Hl,_e=Fe}if(rt.done)return a(z,_e),Ye&&Ka(z,je),Te;if(_e===null){for(;!rt.done;je++,rt=B.next())rt=ae(z,rt.value,te),rt!==null&&(M=c(rt,M,je),it===null?Te=rt:it.sibling=rt,it=rt);return Ye&&Ka(z,je),Te}for(_e=s(_e);!rt.done;je++,rt=B.next())rt=F(_e,z,je,rt.value,te),rt!==null&&(e&&rt.alternate!==null&&_e.delete(rt.key===null?je:rt.key),M=c(rt,M,je),it===null?Te=rt:it.sibling=rt,it=rt);return e&&_e.forEach(function(G2){return n(z,G2)}),Ye&&Ka(z,je),Te}function _t(z,M,B,te){if(typeof B=="object"&&B!==null&&B.type===_&&B.key===null&&(B=B.props.children),typeof B=="object"&&B!==null){switch(B.$$typeof){case T:e:{for(var Te=B.key;M!==null;){if(M.key===Te){if(Te=B.type,Te===_){if(M.tag===7){a(z,M.sibling),te=u(M,B.props.children),te.return=z,z=te;break e}}else if(M.elementType===Te||typeof Te=="object"&&Te!==null&&Te.$$typeof===Y&&ti(Te)===M.type){a(z,M.sibling),te=u(M,B.props),Rr(te,B),te.return=z,z=te;break e}a(z,M);break}else n(z,M);M=M.sibling}B.type===_?(te=Pl(B.props.children,z.mode,te,B.key),te.return=z,z=te):(te=Ps(B.type,B.key,B.props,null,z.mode,te),Rr(te,B),te.return=z,z=te)}return m(z);case A:e:{for(Te=B.key;M!==null;){if(M.key===Te)if(M.tag===4&&M.stateNode.containerInfo===B.containerInfo&&M.stateNode.implementation===B.implementation){a(z,M.sibling),te=u(M,B.children||[]),te.return=z,z=te;break e}else{a(z,M);break}else n(z,M);M=M.sibling}te=jc(B,z.mode,te),te.return=z,z=te}return m(z);case Y:return B=ti(B),_t(z,M,B,te)}if(de(B))return ve(z,M,B,te);if(P(B)){if(Te=P(B),typeof Te!="function")throw Error(r(150));return B=Te.call(B),Ce(z,M,B,te)}if(typeof B.then=="function")return _t(z,M,ao(B),te);if(B.$$typeof===D)return _t(z,M,qs(z,B),te);lo(z,B)}return typeof B=="string"&&B!==""||typeof B=="number"||typeof B=="bigint"?(B=""+B,M!==null&&M.tag===6?(a(z,M.sibling),te=u(M,B),te.return=z,z=te):(a(z,M),te=zc(B,z.mode,te),te.return=z,z=te),m(z)):a(z,M)}return function(z,M,B,te){try{Dr=0;var Te=_t(z,M,B,te);return zi=null,Te}catch(_e){if(_e===Li||_e===to)throw _e;var it=ta(29,_e,null,z.mode);return it.lanes=te,it.return=z,it}}}var ai=xg(!0),Og=xg(!1),El=!1;function Kc(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Jc(e,n){e=e.updateQueue,n.updateQueue===e&&(n.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function wl(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Tl(e,n,a){var s=e.updateQueue;if(s===null)return null;if(s=s.shared,(ot&2)!==0){var u=s.pending;return u===null?n.next=n:(n.next=u.next,u.next=n),s.pending=n,n=Js(e),fg(e,null,a),n}return Ks(e,s,n,a),Js(e)}function Nr(e,n,a){if(n=n.updateQueue,n!==null&&(n=n.shared,(a&4194048)!==0)){var s=n.lanes;s&=e.pendingLanes,a|=s,n.lanes=a,sn(e,a)}}function Pc(e,n){var a=e.updateQueue,s=e.alternate;if(s!==null&&(s=s.updateQueue,a===s)){var u=null,c=null;if(a=a.firstBaseUpdate,a!==null){do{var m={lane:a.lane,tag:a.tag,payload:a.payload,callback:null,next:null};c===null?u=c=m:c=c.next=m,a=a.next}while(a!==null);c===null?u=c=n:c=c.next=n}else u=c=n;a={baseState:s.baseState,firstBaseUpdate:u,lastBaseUpdate:c,shared:s.shared,callbacks:s.callbacks},e.updateQueue=a;return}e=a.lastBaseUpdate,e===null?a.firstBaseUpdate=n:e.next=n,a.lastBaseUpdate=n}var Wc=!1;function Mr(){if(Wc){var e=ki;if(e!==null)throw e}}function kr(e,n,a,s){Wc=!1;var u=e.updateQueue;El=!1;var c=u.firstBaseUpdate,m=u.lastBaseUpdate,E=u.shared.pending;if(E!==null){u.shared.pending=null;var N=E,I=N.next;N.next=null,m===null?c=I:m.next=I,m=N;var q=e.alternate;q!==null&&(q=q.updateQueue,E=q.lastBaseUpdate,E!==m&&(E===null?q.firstBaseUpdate=I:E.next=I,q.lastBaseUpdate=N))}if(c!==null){var ae=u.baseState;m=0,q=I=N=null,E=c;do{var Q=E.lane&-536870913,F=Q!==E.lane;if(F?(Ze&Q)===Q:(s&Q)===Q){Q!==0&&Q===Mi&&(Wc=!0),q!==null&&(q=q.next={lane:0,tag:E.tag,payload:E.payload,callback:null,next:null});e:{var ve=e,Ce=E;Q=n;var _t=a;switch(Ce.tag){case 1:if(ve=Ce.payload,typeof ve=="function"){ae=ve.call(_t,ae,Q);break e}ae=ve;break e;case 3:ve.flags=ve.flags&-65537|128;case 0:if(ve=Ce.payload,Q=typeof ve=="function"?ve.call(_t,ae,Q):ve,Q==null)break e;ae=S({},ae,Q);break e;case 2:El=!0}}Q=E.callback,Q!==null&&(e.flags|=64,F&&(e.flags|=8192),F=u.callbacks,F===null?u.callbacks=[Q]:F.push(Q))}else F={lane:Q,tag:E.tag,payload:E.payload,callback:E.callback,next:null},q===null?(I=q=F,N=ae):q=q.next=F,m|=Q;if(E=E.next,E===null){if(E=u.shared.pending,E===null)break;F=E,E=F.next,F.next=null,u.lastBaseUpdate=F,u.shared.pending=null}}while(!0);q===null&&(N=ae),u.baseState=N,u.firstBaseUpdate=I,u.lastBaseUpdate=q,c===null&&(u.shared.lanes=0),Dl|=m,e.lanes=m,e.memoizedState=ae}}function Dg(e,n){if(typeof e!="function")throw Error(r(191,e));e.call(n)}function Rg(e,n){var a=e.callbacks;if(a!==null)for(e.callbacks=null,e=0;e<a.length;e++)Dg(a[e],n)}var ji=O(null),io=O(0);function Ng(e,n){e=il,ee(io,e),ee(ji,n),il=e|n.baseLanes}function $c(){ee(io,il),ee(ji,ji.current)}function qc(){il=io.current,J(ji),J(io)}var na=O(null),va=null;function Al(e){var n=e.alternate;ee(Gt,Gt.current&1),ee(na,e),va===null&&(n===null||ji.current!==null||n.memoizedState!==null)&&(va=e)}function ef(e){ee(Gt,Gt.current),ee(na,e),va===null&&(va=e)}function Mg(e){e.tag===22?(ee(Gt,Gt.current),ee(na,e),va===null&&(va=e)):Cl()}function Cl(){ee(Gt,Gt.current),ee(na,na.current)}function aa(e){J(na),va===e&&(va=null),J(Gt)}var Gt=O(0);function ro(e){for(var n=e;n!==null;){if(n.tag===13){var a=n.memoizedState;if(a!==null&&(a=a.dehydrated,a===null||sd(a)||od(a)))return n}else if(n.tag===19&&(n.memoizedProps.revealOrder==="forwards"||n.memoizedProps.revealOrder==="backwards"||n.memoizedProps.revealOrder==="unstable_legacy-backwards"||n.memoizedProps.revealOrder==="together")){if((n.flags&128)!==0)return n}else if(n.child!==null){n.child.return=n,n=n.child;continue}if(n===e)break;for(;n.sibling===null;){if(n.return===null||n.return===e)return null;n=n.return}n.sibling.return=n.return,n=n.sibling}return null}var Wa=0,Le=null,bt=null,Pt=null,so=!1,Bi=!1,li=!1,oo=0,Lr=0,Ui=null,L_=0;function Ht(){throw Error(r(321))}function tf(e,n){if(n===null)return!1;for(var a=0;a<n.length&&a<e.length;a++)if(!ea(e[a],n[a]))return!1;return!0}function nf(e,n,a,s,u,c){return Wa=c,Le=n,n.memoizedState=null,n.updateQueue=null,n.lanes=0,j.H=e===null||e.memoizedState===null?gm:bf,li=!1,c=a(s,u),li=!1,Bi&&(c=Lg(n,a,s,u)),kg(e),c}function kg(e){j.H=Br;var n=bt!==null&&bt.next!==null;if(Wa=0,Pt=bt=Le=null,so=!1,Lr=0,Ui=null,n)throw Error(r(300));e===null||Wt||(e=e.dependencies,e!==null&&$s(e)&&(Wt=!0))}function Lg(e,n,a,s){Le=e;var u=0;do{if(Bi&&(Ui=null),Lr=0,Bi=!1,25<=u)throw Error(r(301));if(u+=1,Pt=bt=null,e.updateQueue!=null){var c=e.updateQueue;c.lastEffect=null,c.events=null,c.stores=null,c.memoCache!=null&&(c.memoCache.index=0)}j.H=mm,c=n(a,s)}while(Bi);return c}function z_(){var e=j.H,n=e.useState()[0];return n=typeof n.then=="function"?zr(n):n,e=e.useState()[0],(bt!==null?bt.memoizedState:null)!==e&&(Le.flags|=1024),n}function af(){var e=oo!==0;return oo=0,e}function lf(e,n,a){n.updateQueue=e.updateQueue,n.flags&=-2053,e.lanes&=~a}function rf(e){if(so){for(e=e.memoizedState;e!==null;){var n=e.queue;n!==null&&(n.pending=null),e=e.next}so=!1}Wa=0,Pt=bt=Le=null,Bi=!1,Lr=oo=0,Ui=null}function Hn(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Pt===null?Le.memoizedState=Pt=e:Pt=Pt.next=e,Pt}function Zt(){if(bt===null){var e=Le.alternate;e=e!==null?e.memoizedState:null}else e=bt.next;var n=Pt===null?Le.memoizedState:Pt.next;if(n!==null)Pt=n,bt=e;else{if(e===null)throw Le.alternate===null?Error(r(467)):Error(r(310));bt=e,e={memoizedState:bt.memoizedState,baseState:bt.baseState,baseQueue:bt.baseQueue,queue:bt.queue,next:null},Pt===null?Le.memoizedState=Pt=e:Pt=Pt.next=e}return Pt}function uo(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function zr(e){var n=Lr;return Lr+=1,Ui===null&&(Ui=[]),e=Tg(Ui,e,n),n=Le,(Pt===null?n.memoizedState:Pt.next)===null&&(n=n.alternate,j.H=n===null||n.memoizedState===null?gm:bf),e}function co(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return zr(e);if(e.$$typeof===D)return En(e)}throw Error(r(438,String(e)))}function sf(e){var n=null,a=Le.updateQueue;if(a!==null&&(n=a.memoCache),n==null){var s=Le.alternate;s!==null&&(s=s.updateQueue,s!==null&&(s=s.memoCache,s!=null&&(n={data:s.data.map(function(u){return u.slice()}),index:0})))}if(n==null&&(n={data:[],index:0}),a===null&&(a=uo(),Le.updateQueue=a),a.memoCache=n,a=n.data[n.index],a===void 0)for(a=n.data[n.index]=Array(e),s=0;s<e;s++)a[s]=W;return n.index++,a}function $a(e,n){return typeof n=="function"?n(e):n}function fo(e){var n=Zt();return of(n,bt,e)}function of(e,n,a){var s=e.queue;if(s===null)throw Error(r(311));s.lastRenderedReducer=a;var u=e.baseQueue,c=s.pending;if(c!==null){if(u!==null){var m=u.next;u.next=c.next,c.next=m}n.baseQueue=u=c,s.pending=null}if(c=e.baseState,u===null)e.memoizedState=c;else{n=u.next;var E=m=null,N=null,I=n,q=!1;do{var ae=I.lane&-536870913;if(ae!==I.lane?(Ze&ae)===ae:(Wa&ae)===ae){var Q=I.revertLane;if(Q===0)N!==null&&(N=N.next={lane:0,revertLane:0,gesture:null,action:I.action,hasEagerState:I.hasEagerState,eagerState:I.eagerState,next:null}),ae===Mi&&(q=!0);else if((Wa&Q)===Q){I=I.next,Q===Mi&&(q=!0);continue}else ae={lane:0,revertLane:I.revertLane,gesture:null,action:I.action,hasEagerState:I.hasEagerState,eagerState:I.eagerState,next:null},N===null?(E=N=ae,m=c):N=N.next=ae,Le.lanes|=Q,Dl|=Q;ae=I.action,li&&a(c,ae),c=I.hasEagerState?I.eagerState:a(c,ae)}else Q={lane:ae,revertLane:I.revertLane,gesture:I.gesture,action:I.action,hasEagerState:I.hasEagerState,eagerState:I.eagerState,next:null},N===null?(E=N=Q,m=c):N=N.next=Q,Le.lanes|=ae,Dl|=ae;I=I.next}while(I!==null&&I!==n);if(N===null?m=c:N.next=E,!ea(c,e.memoizedState)&&(Wt=!0,q&&(a=ki,a!==null)))throw a;e.memoizedState=c,e.baseState=m,e.baseQueue=N,s.lastRenderedState=c}return u===null&&(s.lanes=0),[e.memoizedState,s.dispatch]}function uf(e){var n=Zt(),a=n.queue;if(a===null)throw Error(r(311));a.lastRenderedReducer=e;var s=a.dispatch,u=a.pending,c=n.memoizedState;if(u!==null){a.pending=null;var m=u=u.next;do c=e(c,m.action),m=m.next;while(m!==u);ea(c,n.memoizedState)||(Wt=!0),n.memoizedState=c,n.baseQueue===null&&(n.baseState=c),a.lastRenderedState=c}return[c,s]}function zg(e,n,a){var s=Le,u=Zt(),c=Ye;if(c){if(a===void 0)throw Error(r(407));a=a()}else a=n();var m=!ea((bt||u).memoizedState,a);if(m&&(u.memoizedState=a,Wt=!0),u=u.queue,df(Ug.bind(null,s,u,e),[e]),u.getSnapshot!==n||m||Pt!==null&&Pt.memoizedState.tag&1){if(s.flags|=2048,Hi(9,{destroy:void 0},Bg.bind(null,s,u,a,n),null),wt===null)throw Error(r(349));c||(Wa&127)!==0||jg(s,n,a)}return a}function jg(e,n,a){e.flags|=16384,e={getSnapshot:n,value:a},n=Le.updateQueue,n===null?(n=uo(),Le.updateQueue=n,n.stores=[e]):(a=n.stores,a===null?n.stores=[e]:a.push(e))}function Bg(e,n,a,s){n.value=a,n.getSnapshot=s,Hg(n)&&Ig(e)}function Ug(e,n,a){return a(function(){Hg(n)&&Ig(e)})}function Hg(e){var n=e.getSnapshot;e=e.value;try{var a=n();return!ea(e,a)}catch{return!0}}function Ig(e){var n=Jl(e,2);n!==null&&qn(n,e,2)}function cf(e){var n=Hn();if(typeof e=="function"){var a=e;if(e=a(),li){ft(!0);try{a()}finally{ft(!1)}}}return n.memoizedState=n.baseState=e,n.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:$a,lastRenderedState:e},n}function Vg(e,n,a,s){return e.baseState=a,of(e,bt,typeof s=="function"?s:$a)}function j_(e,n,a,s,u){if(go(e))throw Error(r(485));if(e=n.action,e!==null){var c={payload:u,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(m){c.listeners.push(m)}};j.T!==null?a(!0):c.isTransition=!1,s(c),a=n.pending,a===null?(c.next=n.pending=c,Qg(n,c)):(c.next=a.next,n.pending=a.next=c)}}function Qg(e,n){var a=n.action,s=n.payload,u=e.state;if(n.isTransition){var c=j.T,m={};j.T=m;try{var E=a(u,s),N=j.S;N!==null&&N(m,E),Xg(e,n,E)}catch(I){ff(e,n,I)}finally{c!==null&&m.types!==null&&(c.types=m.types),j.T=c}}else try{c=a(u,s),Xg(e,n,c)}catch(I){ff(e,n,I)}}function Xg(e,n,a){a!==null&&typeof a=="object"&&typeof a.then=="function"?a.then(function(s){Gg(e,n,s)},function(s){return ff(e,n,s)}):Gg(e,n,a)}function Gg(e,n,a){n.status="fulfilled",n.value=a,Zg(n),e.state=a,n=e.pending,n!==null&&(a=n.next,a===n?e.pending=null:(a=a.next,n.next=a,Qg(e,a)))}function ff(e,n,a){var s=e.pending;if(e.pending=null,s!==null){s=s.next;do n.status="rejected",n.reason=a,Zg(n),n=n.next;while(n!==s)}e.action=null}function Zg(e){e=e.listeners;for(var n=0;n<e.length;n++)(0,e[n])()}function Fg(e,n){return n}function Yg(e,n){if(Ye){var a=wt.formState;if(a!==null){e:{var s=Le;if(Ye){if(Ot){t:{for(var u=Ot,c=ma;u.nodeType!==8;){if(!c){u=null;break t}if(u=ba(u.nextSibling),u===null){u=null;break t}}c=u.data,u=c==="F!"||c==="F"?u:null}if(u){Ot=ba(u.nextSibling),s=u.data==="F!";break e}}_l(s)}s=!1}s&&(n=a[0])}}return a=Hn(),a.memoizedState=a.baseState=n,s={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Fg,lastRenderedState:n},a.queue=s,a=dm.bind(null,Le,s),s.dispatch=a,s=cf(!1),c=vf.bind(null,Le,!1,s.queue),s=Hn(),u={state:n,dispatch:null,action:e,pending:null},s.queue=u,a=j_.bind(null,Le,u,c,a),u.dispatch=a,s.memoizedState=e,[n,a,!1]}function Kg(e){var n=Zt();return Jg(n,bt,e)}function Jg(e,n,a){if(n=of(e,n,Fg)[0],e=fo($a)[0],typeof n=="object"&&n!==null&&typeof n.then=="function")try{var s=zr(n)}catch(m){throw m===Li?to:m}else s=n;n=Zt();var u=n.queue,c=u.dispatch;return a!==n.memoizedState&&(Le.flags|=2048,Hi(9,{destroy:void 0},B_.bind(null,u,a),null)),[s,c,e]}function B_(e,n){e.action=n}function Pg(e){var n=Zt(),a=bt;if(a!==null)return Jg(n,a,e);Zt(),n=n.memoizedState,a=Zt();var s=a.queue.dispatch;return a.memoizedState=e,[n,s,!1]}function Hi(e,n,a,s){return e={tag:e,create:a,deps:s,inst:n,next:null},n=Le.updateQueue,n===null&&(n=uo(),Le.updateQueue=n),a=n.lastEffect,a===null?n.lastEffect=e.next=e:(s=a.next,a.next=e,e.next=s,n.lastEffect=e),e}function Wg(){return Zt().memoizedState}function ho(e,n,a,s){var u=Hn();Le.flags|=e,u.memoizedState=Hi(1|n,{destroy:void 0},a,s===void 0?null:s)}function po(e,n,a,s){var u=Zt();s=s===void 0?null:s;var c=u.memoizedState.inst;bt!==null&&s!==null&&tf(s,bt.memoizedState.deps)?u.memoizedState=Hi(n,c,a,s):(Le.flags|=e,u.memoizedState=Hi(1|n,c,a,s))}function $g(e,n){ho(8390656,8,e,n)}function df(e,n){po(2048,8,e,n)}function U_(e){Le.flags|=4;var n=Le.updateQueue;if(n===null)n=uo(),Le.updateQueue=n,n.events=[e];else{var a=n.events;a===null?n.events=[e]:a.push(e)}}function qg(e){var n=Zt().memoizedState;return U_({ref:n,nextImpl:e}),function(){if((ot&2)!==0)throw Error(r(440));return n.impl.apply(void 0,arguments)}}function em(e,n){return po(4,2,e,n)}function tm(e,n){return po(4,4,e,n)}function nm(e,n){if(typeof n=="function"){e=e();var a=n(e);return function(){typeof a=="function"?a():n(null)}}if(n!=null)return e=e(),n.current=e,function(){n.current=null}}function am(e,n,a){a=a!=null?a.concat([e]):null,po(4,4,nm.bind(null,n,e),a)}function hf(){}function lm(e,n){var a=Zt();n=n===void 0?null:n;var s=a.memoizedState;return n!==null&&tf(n,s[1])?s[0]:(a.memoizedState=[e,n],e)}function im(e,n){var a=Zt();n=n===void 0?null:n;var s=a.memoizedState;if(n!==null&&tf(n,s[1]))return s[0];if(s=e(),li){ft(!0);try{e()}finally{ft(!1)}}return a.memoizedState=[s,n],s}function pf(e,n,a){return a===void 0||(Wa&1073741824)!==0&&(Ze&261930)===0?e.memoizedState=n:(e.memoizedState=a,e=r0(),Le.lanes|=e,Dl|=e,a)}function rm(e,n,a,s){return ea(a,n)?a:ji.current!==null?(e=pf(e,a,s),ea(e,n)||(Wt=!0),e):(Wa&42)===0||(Wa&1073741824)!==0&&(Ze&261930)===0?(Wt=!0,e.memoizedState=a):(e=r0(),Le.lanes|=e,Dl|=e,n)}function sm(e,n,a,s,u){var c=le.p;le.p=c!==0&&8>c?c:8;var m=j.T,E={};j.T=E,vf(e,!1,n,a);try{var N=u(),I=j.S;if(I!==null&&I(E,N),N!==null&&typeof N=="object"&&typeof N.then=="function"){var q=k_(N,s);jr(e,n,q,ra(e))}else jr(e,n,s,ra(e))}catch(ae){jr(e,n,{then:function(){},status:"rejected",reason:ae},ra())}finally{le.p=c,m!==null&&E.types!==null&&(m.types=E.types),j.T=m}}function H_(){}function gf(e,n,a,s){if(e.tag!==5)throw Error(r(476));var u=om(e).queue;sm(e,u,n,G,a===null?H_:function(){return um(e),a(s)})}function om(e){var n=e.memoizedState;if(n!==null)return n;n={memoizedState:G,baseState:G,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:$a,lastRenderedState:G},next:null};var a={};return n.next={memoizedState:a,baseState:a,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:$a,lastRenderedState:a},next:null},e.memoizedState=n,e=e.alternate,e!==null&&(e.memoizedState=n),n}function um(e){var n=om(e);n.next===null&&(n=e.alternate.memoizedState),jr(e,n.next.queue,{},ra())}function mf(){return En(qr)}function cm(){return Zt().memoizedState}function fm(){return Zt().memoizedState}function I_(e){for(var n=e.return;n!==null;){switch(n.tag){case 24:case 3:var a=ra();e=wl(a);var s=Tl(n,e,a);s!==null&&(qn(s,n,a),Nr(s,n,a)),n={cache:Gc()},e.payload=n;return}n=n.return}}function V_(e,n,a){var s=ra();a={lane:s,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},go(e)?hm(n,a):(a=kc(e,n,a,s),a!==null&&(qn(a,e,s),pm(a,n,s)))}function dm(e,n,a){var s=ra();jr(e,n,a,s)}function jr(e,n,a,s){var u={lane:s,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null};if(go(e))hm(n,u);else{var c=e.alternate;if(e.lanes===0&&(c===null||c.lanes===0)&&(c=n.lastRenderedReducer,c!==null))try{var m=n.lastRenderedState,E=c(m,a);if(u.hasEagerState=!0,u.eagerState=E,ea(E,m))return Ks(e,n,u,0),wt===null&&Ys(),!1}catch{}if(a=kc(e,n,u,s),a!==null)return qn(a,e,s),pm(a,n,s),!0}return!1}function vf(e,n,a,s){if(s={lane:2,revertLane:Jf(),gesture:null,action:s,hasEagerState:!1,eagerState:null,next:null},go(e)){if(n)throw Error(r(479))}else n=kc(e,a,s,2),n!==null&&qn(n,e,2)}function go(e){var n=e.alternate;return e===Le||n!==null&&n===Le}function hm(e,n){Bi=so=!0;var a=e.pending;a===null?n.next=n:(n.next=a.next,a.next=n),e.pending=n}function pm(e,n,a){if((a&4194048)!==0){var s=n.lanes;s&=e.pendingLanes,a|=s,n.lanes=a,sn(e,a)}}var Br={readContext:En,use:co,useCallback:Ht,useContext:Ht,useEffect:Ht,useImperativeHandle:Ht,useLayoutEffect:Ht,useInsertionEffect:Ht,useMemo:Ht,useReducer:Ht,useRef:Ht,useState:Ht,useDebugValue:Ht,useDeferredValue:Ht,useTransition:Ht,useSyncExternalStore:Ht,useId:Ht,useHostTransitionStatus:Ht,useFormState:Ht,useActionState:Ht,useOptimistic:Ht,useMemoCache:Ht,useCacheRefresh:Ht};Br.useEffectEvent=Ht;var gm={readContext:En,use:co,useCallback:function(e,n){return Hn().memoizedState=[e,n===void 0?null:n],e},useContext:En,useEffect:$g,useImperativeHandle:function(e,n,a){a=a!=null?a.concat([e]):null,ho(4194308,4,nm.bind(null,n,e),a)},useLayoutEffect:function(e,n){return ho(4194308,4,e,n)},useInsertionEffect:function(e,n){ho(4,2,e,n)},useMemo:function(e,n){var a=Hn();n=n===void 0?null:n;var s=e();if(li){ft(!0);try{e()}finally{ft(!1)}}return a.memoizedState=[s,n],s},useReducer:function(e,n,a){var s=Hn();if(a!==void 0){var u=a(n);if(li){ft(!0);try{a(n)}finally{ft(!1)}}}else u=n;return s.memoizedState=s.baseState=u,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:u},s.queue=e,e=e.dispatch=V_.bind(null,Le,e),[s.memoizedState,e]},useRef:function(e){var n=Hn();return e={current:e},n.memoizedState=e},useState:function(e){e=cf(e);var n=e.queue,a=dm.bind(null,Le,n);return n.dispatch=a,[e.memoizedState,a]},useDebugValue:hf,useDeferredValue:function(e,n){var a=Hn();return pf(a,e,n)},useTransition:function(){var e=cf(!1);return e=sm.bind(null,Le,e.queue,!0,!1),Hn().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,n,a){var s=Le,u=Hn();if(Ye){if(a===void 0)throw Error(r(407));a=a()}else{if(a=n(),wt===null)throw Error(r(349));(Ze&127)!==0||jg(s,n,a)}u.memoizedState=a;var c={value:a,getSnapshot:n};return u.queue=c,$g(Ug.bind(null,s,c,e),[e]),s.flags|=2048,Hi(9,{destroy:void 0},Bg.bind(null,s,c,a,n),null),a},useId:function(){var e=Hn(),n=wt.identifierPrefix;if(Ye){var a=Ba,s=ja;a=(s&~(1<<32-Je(s)-1)).toString(32)+a,n="_"+n+"R_"+a,a=oo++,0<a&&(n+="H"+a.toString(32)),n+="_"}else a=L_++,n="_"+n+"r_"+a.toString(32)+"_";return e.memoizedState=n},useHostTransitionStatus:mf,useFormState:Yg,useActionState:Yg,useOptimistic:function(e){var n=Hn();n.memoizedState=n.baseState=e;var a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return n.queue=a,n=vf.bind(null,Le,!0,a),a.dispatch=n,[e,n]},useMemoCache:sf,useCacheRefresh:function(){return Hn().memoizedState=I_.bind(null,Le)},useEffectEvent:function(e){var n=Hn(),a={impl:e};return n.memoizedState=a,function(){if((ot&2)!==0)throw Error(r(440));return a.impl.apply(void 0,arguments)}}},bf={readContext:En,use:co,useCallback:lm,useContext:En,useEffect:df,useImperativeHandle:am,useInsertionEffect:em,useLayoutEffect:tm,useMemo:im,useReducer:fo,useRef:Wg,useState:function(){return fo($a)},useDebugValue:hf,useDeferredValue:function(e,n){var a=Zt();return rm(a,bt.memoizedState,e,n)},useTransition:function(){var e=fo($a)[0],n=Zt().memoizedState;return[typeof e=="boolean"?e:zr(e),n]},useSyncExternalStore:zg,useId:cm,useHostTransitionStatus:mf,useFormState:Kg,useActionState:Kg,useOptimistic:function(e,n){var a=Zt();return Vg(a,bt,e,n)},useMemoCache:sf,useCacheRefresh:fm};bf.useEffectEvent=qg;var mm={readContext:En,use:co,useCallback:lm,useContext:En,useEffect:df,useImperativeHandle:am,useInsertionEffect:em,useLayoutEffect:tm,useMemo:im,useReducer:uf,useRef:Wg,useState:function(){return uf($a)},useDebugValue:hf,useDeferredValue:function(e,n){var a=Zt();return bt===null?pf(a,e,n):rm(a,bt.memoizedState,e,n)},useTransition:function(){var e=uf($a)[0],n=Zt().memoizedState;return[typeof e=="boolean"?e:zr(e),n]},useSyncExternalStore:zg,useId:cm,useHostTransitionStatus:mf,useFormState:Pg,useActionState:Pg,useOptimistic:function(e,n){var a=Zt();return bt!==null?Vg(a,bt,e,n):(a.baseState=e,[e,a.queue.dispatch])},useMemoCache:sf,useCacheRefresh:fm};mm.useEffectEvent=qg;function yf(e,n,a,s){n=e.memoizedState,a=a(s,n),a=a==null?n:S({},n,a),e.memoizedState=a,e.lanes===0&&(e.updateQueue.baseState=a)}var _f={enqueueSetState:function(e,n,a){e=e._reactInternals;var s=ra(),u=wl(s);u.payload=n,a!=null&&(u.callback=a),n=Tl(e,u,s),n!==null&&(qn(n,e,s),Nr(n,e,s))},enqueueReplaceState:function(e,n,a){e=e._reactInternals;var s=ra(),u=wl(s);u.tag=1,u.payload=n,a!=null&&(u.callback=a),n=Tl(e,u,s),n!==null&&(qn(n,e,s),Nr(n,e,s))},enqueueForceUpdate:function(e,n){e=e._reactInternals;var a=ra(),s=wl(a);s.tag=2,n!=null&&(s.callback=n),n=Tl(e,s,a),n!==null&&(qn(n,e,a),Nr(n,e,a))}};function vm(e,n,a,s,u,c,m){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(s,c,m):n.prototype&&n.prototype.isPureReactComponent?!wr(a,s)||!wr(u,c):!0}function bm(e,n,a,s){e=n.state,typeof n.componentWillReceiveProps=="function"&&n.componentWillReceiveProps(a,s),typeof n.UNSAFE_componentWillReceiveProps=="function"&&n.UNSAFE_componentWillReceiveProps(a,s),n.state!==e&&_f.enqueueReplaceState(n,n.state,null)}function ii(e,n){var a=n;if("ref"in n){a={};for(var s in n)s!=="ref"&&(a[s]=n[s])}if(e=e.defaultProps){a===n&&(a=S({},a));for(var u in e)a[u]===void 0&&(a[u]=e[u])}return a}function ym(e){Fs(e)}function _m(e){console.error(e)}function Sm(e){Fs(e)}function mo(e,n){try{var a=e.onUncaughtError;a(n.value,{componentStack:n.stack})}catch(s){setTimeout(function(){throw s})}}function Em(e,n,a){try{var s=e.onCaughtError;s(a.value,{componentStack:a.stack,errorBoundary:n.tag===1?n.stateNode:null})}catch(u){setTimeout(function(){throw u})}}function Sf(e,n,a){return a=wl(a),a.tag=3,a.payload={element:null},a.callback=function(){mo(e,n)},a}function wm(e){return e=wl(e),e.tag=3,e}function Tm(e,n,a,s){var u=a.type.getDerivedStateFromError;if(typeof u=="function"){var c=s.value;e.payload=function(){return u(c)},e.callback=function(){Em(n,a,s)}}var m=a.stateNode;m!==null&&typeof m.componentDidCatch=="function"&&(e.callback=function(){Em(n,a,s),typeof u!="function"&&(Rl===null?Rl=new Set([this]):Rl.add(this));var E=s.stack;this.componentDidCatch(s.value,{componentStack:E!==null?E:""})})}function Q_(e,n,a,s,u){if(a.flags|=32768,s!==null&&typeof s=="object"&&typeof s.then=="function"){if(n=a.alternate,n!==null&&Ni(n,a,u,!0),a=na.current,a!==null){switch(a.tag){case 31:case 13:return va===null?Oo():a.alternate===null&&It===0&&(It=3),a.flags&=-257,a.flags|=65536,a.lanes=u,s===no?a.flags|=16384:(n=a.updateQueue,n===null?a.updateQueue=new Set([s]):n.add(s),Ff(e,s,u)),!1;case 22:return a.flags|=65536,s===no?a.flags|=16384:(n=a.updateQueue,n===null?(n={transitions:null,markerInstances:null,retryQueue:new Set([s])},a.updateQueue=n):(a=n.retryQueue,a===null?n.retryQueue=new Set([s]):a.add(s)),Ff(e,s,u)),!1}throw Error(r(435,a.tag))}return Ff(e,s,u),Oo(),!1}if(Ye)return n=na.current,n!==null?((n.flags&65536)===0&&(n.flags|=256),n.flags|=65536,n.lanes=u,s!==Hc&&(e=Error(r(422),{cause:s}),Cr(ha(e,a)))):(s!==Hc&&(n=Error(r(423),{cause:s}),Cr(ha(n,a))),e=e.current.alternate,e.flags|=65536,u&=-u,e.lanes|=u,s=ha(s,a),u=Sf(e.stateNode,s,u),Pc(e,u),It!==4&&(It=2)),!1;var c=Error(r(520),{cause:s});if(c=ha(c,a),Zr===null?Zr=[c]:Zr.push(c),It!==4&&(It=2),n===null)return!0;s=ha(s,a),a=n;do{switch(a.tag){case 3:return a.flags|=65536,e=u&-u,a.lanes|=e,e=Sf(a.stateNode,s,e),Pc(a,e),!1;case 1:if(n=a.type,c=a.stateNode,(a.flags&128)===0&&(typeof n.getDerivedStateFromError=="function"||c!==null&&typeof c.componentDidCatch=="function"&&(Rl===null||!Rl.has(c))))return a.flags|=65536,u&=-u,a.lanes|=u,u=wm(u),Tm(u,e,a,s),Pc(a,u),!1}a=a.return}while(a!==null);return!1}var Ef=Error(r(461)),Wt=!1;function wn(e,n,a,s){n.child=e===null?Og(n,null,a,s):ai(n,e.child,a,s)}function Am(e,n,a,s,u){a=a.render;var c=n.ref;if("ref"in s){var m={};for(var E in s)E!=="ref"&&(m[E]=s[E])}else m=s;return ql(n),s=nf(e,n,a,m,c,u),E=af(),e!==null&&!Wt?(lf(e,n,u),qa(e,n,u)):(Ye&&E&&Bc(n),n.flags|=1,wn(e,n,s,u),n.child)}function Cm(e,n,a,s,u){if(e===null){var c=a.type;return typeof c=="function"&&!Lc(c)&&c.defaultProps===void 0&&a.compare===null?(n.tag=15,n.type=c,xm(e,n,c,s,u)):(e=Ps(a.type,null,s,n,n.mode,u),e.ref=n.ref,e.return=n,n.child=e)}if(c=e.child,!Rf(e,u)){var m=c.memoizedProps;if(a=a.compare,a=a!==null?a:wr,a(m,s)&&e.ref===n.ref)return qa(e,n,u)}return n.flags|=1,e=Ya(c,s),e.ref=n.ref,e.return=n,n.child=e}function xm(e,n,a,s,u){if(e!==null){var c=e.memoizedProps;if(wr(c,s)&&e.ref===n.ref)if(Wt=!1,n.pendingProps=s=c,Rf(e,u))(e.flags&131072)!==0&&(Wt=!0);else return n.lanes=e.lanes,qa(e,n,u)}return wf(e,n,a,s,u)}function Om(e,n,a,s){var u=s.children,c=e!==null?e.memoizedState:null;if(e===null&&n.stateNode===null&&(n.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),s.mode==="hidden"){if((n.flags&128)!==0){if(c=c!==null?c.baseLanes|a:a,e!==null){for(s=n.child=e.child,u=0;s!==null;)u=u|s.lanes|s.childLanes,s=s.sibling;s=u&~c}else s=0,n.child=null;return Dm(e,n,c,a,s)}if((a&536870912)!==0)n.memoizedState={baseLanes:0,cachePool:null},e!==null&&eo(n,c!==null?c.cachePool:null),c!==null?Ng(n,c):$c(),Mg(n);else return s=n.lanes=536870912,Dm(e,n,c!==null?c.baseLanes|a:a,a,s)}else c!==null?(eo(n,c.cachePool),Ng(n,c),Cl(),n.memoizedState=null):(e!==null&&eo(n,null),$c(),Cl());return wn(e,n,u,a),n.child}function Ur(e,n){return e!==null&&e.tag===22||n.stateNode!==null||(n.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),n.sibling}function Dm(e,n,a,s,u){var c=Fc();return c=c===null?null:{parent:Jt._currentValue,pool:c},n.memoizedState={baseLanes:a,cachePool:c},e!==null&&eo(n,null),$c(),Mg(n),e!==null&&Ni(e,n,s,!0),n.childLanes=u,null}function vo(e,n){return n=yo({mode:n.mode,children:n.children},e.mode),n.ref=e.ref,e.child=n,n.return=e,n}function Rm(e,n,a){return ai(n,e.child,null,a),e=vo(n,n.pendingProps),e.flags|=2,aa(n),n.memoizedState=null,e}function X_(e,n,a){var s=n.pendingProps,u=(n.flags&128)!==0;if(n.flags&=-129,e===null){if(Ye){if(s.mode==="hidden")return e=vo(n,s),n.lanes=536870912,Ur(null,e);if(ef(n),(e=Ot)?(e=Q0(e,ma),e=e!==null&&e.data==="&"?e:null,e!==null&&(n.memoizedState={dehydrated:e,treeContext:bl!==null?{id:ja,overflow:Ba}:null,retryLane:536870912,hydrationErrors:null},a=hg(e),a.return=n,n.child=a,Sn=n,Ot=null)):e=null,e===null)throw _l(n);return n.lanes=536870912,null}return vo(n,s)}var c=e.memoizedState;if(c!==null){var m=c.dehydrated;if(ef(n),u)if(n.flags&256)n.flags&=-257,n=Rm(e,n,a);else if(n.memoizedState!==null)n.child=e.child,n.flags|=128,n=null;else throw Error(r(558));else if(Wt||Ni(e,n,a,!1),u=(a&e.childLanes)!==0,Wt||u){if(s=wt,s!==null&&(m=Kt(s,a),m!==0&&m!==c.retryLane))throw c.retryLane=m,Jl(e,m),qn(s,e,m),Ef;Oo(),n=Rm(e,n,a)}else e=c.treeContext,Ot=ba(m.nextSibling),Sn=n,Ye=!0,yl=null,ma=!1,e!==null&&mg(n,e),n=vo(n,s),n.flags|=4096;return n}return e=Ya(e.child,{mode:s.mode,children:s.children}),e.ref=n.ref,n.child=e,e.return=n,e}function bo(e,n){var a=n.ref;if(a===null)e!==null&&e.ref!==null&&(n.flags|=4194816);else{if(typeof a!="function"&&typeof a!="object")throw Error(r(284));(e===null||e.ref!==a)&&(n.flags|=4194816)}}function wf(e,n,a,s,u){return ql(n),a=nf(e,n,a,s,void 0,u),s=af(),e!==null&&!Wt?(lf(e,n,u),qa(e,n,u)):(Ye&&s&&Bc(n),n.flags|=1,wn(e,n,a,u),n.child)}function Nm(e,n,a,s,u,c){return ql(n),n.updateQueue=null,a=Lg(n,s,a,u),kg(e),s=af(),e!==null&&!Wt?(lf(e,n,c),qa(e,n,c)):(Ye&&s&&Bc(n),n.flags|=1,wn(e,n,a,c),n.child)}function Mm(e,n,a,s,u){if(ql(n),n.stateNode===null){var c=xi,m=a.contextType;typeof m=="object"&&m!==null&&(c=En(m)),c=new a(s,c),n.memoizedState=c.state!==null&&c.state!==void 0?c.state:null,c.updater=_f,n.stateNode=c,c._reactInternals=n,c=n.stateNode,c.props=s,c.state=n.memoizedState,c.refs={},Kc(n),m=a.contextType,c.context=typeof m=="object"&&m!==null?En(m):xi,c.state=n.memoizedState,m=a.getDerivedStateFromProps,typeof m=="function"&&(yf(n,a,m,s),c.state=n.memoizedState),typeof a.getDerivedStateFromProps=="function"||typeof c.getSnapshotBeforeUpdate=="function"||typeof c.UNSAFE_componentWillMount!="function"&&typeof c.componentWillMount!="function"||(m=c.state,typeof c.componentWillMount=="function"&&c.componentWillMount(),typeof c.UNSAFE_componentWillMount=="function"&&c.UNSAFE_componentWillMount(),m!==c.state&&_f.enqueueReplaceState(c,c.state,null),kr(n,s,c,u),Mr(),c.state=n.memoizedState),typeof c.componentDidMount=="function"&&(n.flags|=4194308),s=!0}else if(e===null){c=n.stateNode;var E=n.memoizedProps,N=ii(a,E);c.props=N;var I=c.context,q=a.contextType;m=xi,typeof q=="object"&&q!==null&&(m=En(q));var ae=a.getDerivedStateFromProps;q=typeof ae=="function"||typeof c.getSnapshotBeforeUpdate=="function",E=n.pendingProps!==E,q||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(E||I!==m)&&bm(n,c,s,m),El=!1;var Q=n.memoizedState;c.state=Q,kr(n,s,c,u),Mr(),I=n.memoizedState,E||Q!==I||El?(typeof ae=="function"&&(yf(n,a,ae,s),I=n.memoizedState),(N=El||vm(n,a,N,s,Q,I,m))?(q||typeof c.UNSAFE_componentWillMount!="function"&&typeof c.componentWillMount!="function"||(typeof c.componentWillMount=="function"&&c.componentWillMount(),typeof c.UNSAFE_componentWillMount=="function"&&c.UNSAFE_componentWillMount()),typeof c.componentDidMount=="function"&&(n.flags|=4194308)):(typeof c.componentDidMount=="function"&&(n.flags|=4194308),n.memoizedProps=s,n.memoizedState=I),c.props=s,c.state=I,c.context=m,s=N):(typeof c.componentDidMount=="function"&&(n.flags|=4194308),s=!1)}else{c=n.stateNode,Jc(e,n),m=n.memoizedProps,q=ii(a,m),c.props=q,ae=n.pendingProps,Q=c.context,I=a.contextType,N=xi,typeof I=="object"&&I!==null&&(N=En(I)),E=a.getDerivedStateFromProps,(I=typeof E=="function"||typeof c.getSnapshotBeforeUpdate=="function")||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(m!==ae||Q!==N)&&bm(n,c,s,N),El=!1,Q=n.memoizedState,c.state=Q,kr(n,s,c,u),Mr();var F=n.memoizedState;m!==ae||Q!==F||El||e!==null&&e.dependencies!==null&&$s(e.dependencies)?(typeof E=="function"&&(yf(n,a,E,s),F=n.memoizedState),(q=El||vm(n,a,q,s,Q,F,N)||e!==null&&e.dependencies!==null&&$s(e.dependencies))?(I||typeof c.UNSAFE_componentWillUpdate!="function"&&typeof c.componentWillUpdate!="function"||(typeof c.componentWillUpdate=="function"&&c.componentWillUpdate(s,F,N),typeof c.UNSAFE_componentWillUpdate=="function"&&c.UNSAFE_componentWillUpdate(s,F,N)),typeof c.componentDidUpdate=="function"&&(n.flags|=4),typeof c.getSnapshotBeforeUpdate=="function"&&(n.flags|=1024)):(typeof c.componentDidUpdate!="function"||m===e.memoizedProps&&Q===e.memoizedState||(n.flags|=4),typeof c.getSnapshotBeforeUpdate!="function"||m===e.memoizedProps&&Q===e.memoizedState||(n.flags|=1024),n.memoizedProps=s,n.memoizedState=F),c.props=s,c.state=F,c.context=N,s=q):(typeof c.componentDidUpdate!="function"||m===e.memoizedProps&&Q===e.memoizedState||(n.flags|=4),typeof c.getSnapshotBeforeUpdate!="function"||m===e.memoizedProps&&Q===e.memoizedState||(n.flags|=1024),s=!1)}return c=s,bo(e,n),s=(n.flags&128)!==0,c||s?(c=n.stateNode,a=s&&typeof a.getDerivedStateFromError!="function"?null:c.render(),n.flags|=1,e!==null&&s?(n.child=ai(n,e.child,null,u),n.child=ai(n,null,a,u)):wn(e,n,a,u),n.memoizedState=c.state,e=n.child):e=qa(e,n,u),e}function km(e,n,a,s){return Wl(),n.flags|=256,wn(e,n,a,s),n.child}var Tf={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Af(e){return{baseLanes:e,cachePool:Eg()}}function Cf(e,n,a){return e=e!==null?e.childLanes&~a:0,n&&(e|=ia),e}function Lm(e,n,a){var s=n.pendingProps,u=!1,c=(n.flags&128)!==0,m;if((m=c)||(m=e!==null&&e.memoizedState===null?!1:(Gt.current&2)!==0),m&&(u=!0,n.flags&=-129),m=(n.flags&32)!==0,n.flags&=-33,e===null){if(Ye){if(u?Al(n):Cl(),(e=Ot)?(e=Q0(e,ma),e=e!==null&&e.data!=="&"?e:null,e!==null&&(n.memoizedState={dehydrated:e,treeContext:bl!==null?{id:ja,overflow:Ba}:null,retryLane:536870912,hydrationErrors:null},a=hg(e),a.return=n,n.child=a,Sn=n,Ot=null)):e=null,e===null)throw _l(n);return od(e)?n.lanes=32:n.lanes=536870912,null}var E=s.children;return s=s.fallback,u?(Cl(),u=n.mode,E=yo({mode:"hidden",children:E},u),s=Pl(s,u,a,null),E.return=n,s.return=n,E.sibling=s,n.child=E,s=n.child,s.memoizedState=Af(a),s.childLanes=Cf(e,m,a),n.memoizedState=Tf,Ur(null,s)):(Al(n),xf(n,E))}var N=e.memoizedState;if(N!==null&&(E=N.dehydrated,E!==null)){if(c)n.flags&256?(Al(n),n.flags&=-257,n=Of(e,n,a)):n.memoizedState!==null?(Cl(),n.child=e.child,n.flags|=128,n=null):(Cl(),E=s.fallback,u=n.mode,s=yo({mode:"visible",children:s.children},u),E=Pl(E,u,a,null),E.flags|=2,s.return=n,E.return=n,s.sibling=E,n.child=s,ai(n,e.child,null,a),s=n.child,s.memoizedState=Af(a),s.childLanes=Cf(e,m,a),n.memoizedState=Tf,n=Ur(null,s));else if(Al(n),od(E)){if(m=E.nextSibling&&E.nextSibling.dataset,m)var I=m.dgst;m=I,s=Error(r(419)),s.stack="",s.digest=m,Cr({value:s,source:null,stack:null}),n=Of(e,n,a)}else if(Wt||Ni(e,n,a,!1),m=(a&e.childLanes)!==0,Wt||m){if(m=wt,m!==null&&(s=Kt(m,a),s!==0&&s!==N.retryLane))throw N.retryLane=s,Jl(e,s),qn(m,e,s),Ef;sd(E)||Oo(),n=Of(e,n,a)}else sd(E)?(n.flags|=192,n.child=e.child,n=null):(e=N.treeContext,Ot=ba(E.nextSibling),Sn=n,Ye=!0,yl=null,ma=!1,e!==null&&mg(n,e),n=xf(n,s.children),n.flags|=4096);return n}return u?(Cl(),E=s.fallback,u=n.mode,N=e.child,I=N.sibling,s=Ya(N,{mode:"hidden",children:s.children}),s.subtreeFlags=N.subtreeFlags&65011712,I!==null?E=Ya(I,E):(E=Pl(E,u,a,null),E.flags|=2),E.return=n,s.return=n,s.sibling=E,n.child=s,Ur(null,s),s=n.child,E=e.child.memoizedState,E===null?E=Af(a):(u=E.cachePool,u!==null?(N=Jt._currentValue,u=u.parent!==N?{parent:N,pool:N}:u):u=Eg(),E={baseLanes:E.baseLanes|a,cachePool:u}),s.memoizedState=E,s.childLanes=Cf(e,m,a),n.memoizedState=Tf,Ur(e.child,s)):(Al(n),a=e.child,e=a.sibling,a=Ya(a,{mode:"visible",children:s.children}),a.return=n,a.sibling=null,e!==null&&(m=n.deletions,m===null?(n.deletions=[e],n.flags|=16):m.push(e)),n.child=a,n.memoizedState=null,a)}function xf(e,n){return n=yo({mode:"visible",children:n},e.mode),n.return=e,e.child=n}function yo(e,n){return e=ta(22,e,null,n),e.lanes=0,e}function Of(e,n,a){return ai(n,e.child,null,a),e=xf(n,n.pendingProps.children),e.flags|=2,n.memoizedState=null,e}function zm(e,n,a){e.lanes|=n;var s=e.alternate;s!==null&&(s.lanes|=n),Qc(e.return,n,a)}function Df(e,n,a,s,u,c){var m=e.memoizedState;m===null?e.memoizedState={isBackwards:n,rendering:null,renderingStartTime:0,last:s,tail:a,tailMode:u,treeForkCount:c}:(m.isBackwards=n,m.rendering=null,m.renderingStartTime=0,m.last=s,m.tail=a,m.tailMode=u,m.treeForkCount=c)}function jm(e,n,a){var s=n.pendingProps,u=s.revealOrder,c=s.tail;s=s.children;var m=Gt.current,E=(m&2)!==0;if(E?(m=m&1|2,n.flags|=128):m&=1,ee(Gt,m),wn(e,n,s,a),s=Ye?Ar:0,!E&&e!==null&&(e.flags&128)!==0)e:for(e=n.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&zm(e,a,n);else if(e.tag===19)zm(e,a,n);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===n)break e;for(;e.sibling===null;){if(e.return===null||e.return===n)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(u){case"forwards":for(a=n.child,u=null;a!==null;)e=a.alternate,e!==null&&ro(e)===null&&(u=a),a=a.sibling;a=u,a===null?(u=n.child,n.child=null):(u=a.sibling,a.sibling=null),Df(n,!1,u,a,c,s);break;case"backwards":case"unstable_legacy-backwards":for(a=null,u=n.child,n.child=null;u!==null;){if(e=u.alternate,e!==null&&ro(e)===null){n.child=u;break}e=u.sibling,u.sibling=a,a=u,u=e}Df(n,!0,a,null,c,s);break;case"together":Df(n,!1,null,null,void 0,s);break;default:n.memoizedState=null}return n.child}function qa(e,n,a){if(e!==null&&(n.dependencies=e.dependencies),Dl|=n.lanes,(a&n.childLanes)===0)if(e!==null){if(Ni(e,n,a,!1),(a&n.childLanes)===0)return null}else return null;if(e!==null&&n.child!==e.child)throw Error(r(153));if(n.child!==null){for(e=n.child,a=Ya(e,e.pendingProps),n.child=a,a.return=n;e.sibling!==null;)e=e.sibling,a=a.sibling=Ya(e,e.pendingProps),a.return=n;a.sibling=null}return n.child}function Rf(e,n){return(e.lanes&n)!==0?!0:(e=e.dependencies,!!(e!==null&&$s(e)))}function G_(e,n,a){switch(n.tag){case 3:Se(n,n.stateNode.containerInfo),Sl(n,Jt,e.memoizedState.cache),Wl();break;case 27:case 5:Be(n);break;case 4:Se(n,n.stateNode.containerInfo);break;case 10:Sl(n,n.type,n.memoizedProps.value);break;case 31:if(n.memoizedState!==null)return n.flags|=128,ef(n),null;break;case 13:var s=n.memoizedState;if(s!==null)return s.dehydrated!==null?(Al(n),n.flags|=128,null):(a&n.child.childLanes)!==0?Lm(e,n,a):(Al(n),e=qa(e,n,a),e!==null?e.sibling:null);Al(n);break;case 19:var u=(e.flags&128)!==0;if(s=(a&n.childLanes)!==0,s||(Ni(e,n,a,!1),s=(a&n.childLanes)!==0),u){if(s)return jm(e,n,a);n.flags|=128}if(u=n.memoizedState,u!==null&&(u.rendering=null,u.tail=null,u.lastEffect=null),ee(Gt,Gt.current),s)break;return null;case 22:return n.lanes=0,Om(e,n,a,n.pendingProps);case 24:Sl(n,Jt,e.memoizedState.cache)}return qa(e,n,a)}function Bm(e,n,a){if(e!==null)if(e.memoizedProps!==n.pendingProps)Wt=!0;else{if(!Rf(e,a)&&(n.flags&128)===0)return Wt=!1,G_(e,n,a);Wt=(e.flags&131072)!==0}else Wt=!1,Ye&&(n.flags&1048576)!==0&&gg(n,Ar,n.index);switch(n.lanes=0,n.tag){case 16:e:{var s=n.pendingProps;if(e=ti(n.elementType),n.type=e,typeof e=="function")Lc(e)?(s=ii(e,s),n.tag=1,n=Mm(null,n,e,s,a)):(n.tag=0,n=wf(null,n,e,s,a));else{if(e!=null){var u=e.$$typeof;if(u===k){n.tag=11,n=Am(null,n,e,s,a);break e}else if(u===L){n.tag=14,n=Cm(null,n,e,s,a);break e}}throw n=he(e)||e,Error(r(306,n,""))}}return n;case 0:return wf(e,n,n.type,n.pendingProps,a);case 1:return s=n.type,u=ii(s,n.pendingProps),Mm(e,n,s,u,a);case 3:e:{if(Se(n,n.stateNode.containerInfo),e===null)throw Error(r(387));s=n.pendingProps;var c=n.memoizedState;u=c.element,Jc(e,n),kr(n,s,null,a);var m=n.memoizedState;if(s=m.cache,Sl(n,Jt,s),s!==c.cache&&Xc(n,[Jt],a,!0),Mr(),s=m.element,c.isDehydrated)if(c={element:s,isDehydrated:!1,cache:m.cache},n.updateQueue.baseState=c,n.memoizedState=c,n.flags&256){n=km(e,n,s,a);break e}else if(s!==u){u=ha(Error(r(424)),n),Cr(u),n=km(e,n,s,a);break e}else{switch(e=n.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(Ot=ba(e.firstChild),Sn=n,Ye=!0,yl=null,ma=!0,a=Og(n,null,s,a),n.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling}else{if(Wl(),s===u){n=qa(e,n,a);break e}wn(e,n,s,a)}n=n.child}return n;case 26:return bo(e,n),e===null?(a=K0(n.type,null,n.pendingProps,null))?n.memoizedState=a:Ye||(a=n.type,e=n.pendingProps,s=zo(ce.current).createElement(a),s[De]=n,s[et]=e,Tn(s,a,e),pe(s),n.stateNode=s):n.memoizedState=K0(n.type,e.memoizedProps,n.pendingProps,e.memoizedState),null;case 27:return Be(n),e===null&&Ye&&(s=n.stateNode=Z0(n.type,n.pendingProps,ce.current),Sn=n,ma=!0,u=Ot,Ll(n.type)?(ud=u,Ot=ba(s.firstChild)):Ot=u),wn(e,n,n.pendingProps.children,a),bo(e,n),e===null&&(n.flags|=4194304),n.child;case 5:return e===null&&Ye&&((u=s=Ot)&&(s=_2(s,n.type,n.pendingProps,ma),s!==null?(n.stateNode=s,Sn=n,Ot=ba(s.firstChild),ma=!1,u=!0):u=!1),u||_l(n)),Be(n),u=n.type,c=n.pendingProps,m=e!==null?e.memoizedProps:null,s=c.children,ld(u,c)?s=null:m!==null&&ld(u,m)&&(n.flags|=32),n.memoizedState!==null&&(u=nf(e,n,z_,null,null,a),qr._currentValue=u),bo(e,n),wn(e,n,s,a),n.child;case 6:return e===null&&Ye&&((e=a=Ot)&&(a=S2(a,n.pendingProps,ma),a!==null?(n.stateNode=a,Sn=n,Ot=null,e=!0):e=!1),e||_l(n)),null;case 13:return Lm(e,n,a);case 4:return Se(n,n.stateNode.containerInfo),s=n.pendingProps,e===null?n.child=ai(n,null,s,a):wn(e,n,s,a),n.child;case 11:return Am(e,n,n.type,n.pendingProps,a);case 7:return wn(e,n,n.pendingProps,a),n.child;case 8:return wn(e,n,n.pendingProps.children,a),n.child;case 12:return wn(e,n,n.pendingProps.children,a),n.child;case 10:return s=n.pendingProps,Sl(n,n.type,s.value),wn(e,n,s.children,a),n.child;case 9:return u=n.type._context,s=n.pendingProps.children,ql(n),u=En(u),s=s(u),n.flags|=1,wn(e,n,s,a),n.child;case 14:return Cm(e,n,n.type,n.pendingProps,a);case 15:return xm(e,n,n.type,n.pendingProps,a);case 19:return jm(e,n,a);case 31:return X_(e,n,a);case 22:return Om(e,n,a,n.pendingProps);case 24:return ql(n),s=En(Jt),e===null?(u=Fc(),u===null&&(u=wt,c=Gc(),u.pooledCache=c,c.refCount++,c!==null&&(u.pooledCacheLanes|=a),u=c),n.memoizedState={parent:s,cache:u},Kc(n),Sl(n,Jt,u)):((e.lanes&a)!==0&&(Jc(e,n),kr(n,null,null,a),Mr()),u=e.memoizedState,c=n.memoizedState,u.parent!==s?(u={parent:s,cache:s},n.memoizedState=u,n.lanes===0&&(n.memoizedState=n.updateQueue.baseState=u),Sl(n,Jt,s)):(s=c.cache,Sl(n,Jt,s),s!==u.cache&&Xc(n,[Jt],a,!0))),wn(e,n,n.pendingProps.children,a),n.child;case 29:throw n.pendingProps}throw Error(r(156,n.tag))}function el(e){e.flags|=4}function Nf(e,n,a,s,u){if((n=(e.mode&32)!==0)&&(n=!1),n){if(e.flags|=16777216,(u&335544128)===u)if(e.stateNode.complete)e.flags|=8192;else if(c0())e.flags|=8192;else throw ni=no,Yc}else e.flags&=-16777217}function Um(e,n){if(n.type!=="stylesheet"||(n.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!q0(n))if(c0())e.flags|=8192;else throw ni=no,Yc}function _o(e,n){n!==null&&(e.flags|=4),e.flags&16384&&(n=e.tag!==22?ln():536870912,e.lanes|=n,Xi|=n)}function Hr(e,n){if(!Ye)switch(e.tailMode){case"hidden":n=e.tail;for(var a=null;n!==null;)n.alternate!==null&&(a=n),n=n.sibling;a===null?e.tail=null:a.sibling=null;break;case"collapsed":a=e.tail;for(var s=null;a!==null;)a.alternate!==null&&(s=a),a=a.sibling;s===null?n||e.tail===null?e.tail=null:e.tail.sibling=null:s.sibling=null}}function Dt(e){var n=e.alternate!==null&&e.alternate.child===e.child,a=0,s=0;if(n)for(var u=e.child;u!==null;)a|=u.lanes|u.childLanes,s|=u.subtreeFlags&65011712,s|=u.flags&65011712,u.return=e,u=u.sibling;else for(u=e.child;u!==null;)a|=u.lanes|u.childLanes,s|=u.subtreeFlags,s|=u.flags,u.return=e,u=u.sibling;return e.subtreeFlags|=s,e.childLanes=a,n}function Z_(e,n,a){var s=n.pendingProps;switch(Uc(n),n.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Dt(n),null;case 1:return Dt(n),null;case 3:return a=n.stateNode,s=null,e!==null&&(s=e.memoizedState.cache),n.memoizedState.cache!==s&&(n.flags|=2048),Pa(Jt),we(),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),(e===null||e.child===null)&&(Ri(n)?el(n):e===null||e.memoizedState.isDehydrated&&(n.flags&256)===0||(n.flags|=1024,Ic())),Dt(n),null;case 26:var u=n.type,c=n.memoizedState;return e===null?(el(n),c!==null?(Dt(n),Um(n,c)):(Dt(n),Nf(n,u,null,s,a))):c?c!==e.memoizedState?(el(n),Dt(n),Um(n,c)):(Dt(n),n.flags&=-16777217):(e=e.memoizedProps,e!==s&&el(n),Dt(n),Nf(n,u,e,s,a)),null;case 27:if(St(n),a=ce.current,u=n.type,e!==null&&n.stateNode!=null)e.memoizedProps!==s&&el(n);else{if(!s){if(n.stateNode===null)throw Error(r(166));return Dt(n),null}e=oe.current,Ri(n)?vg(n):(e=Z0(u,s,a),n.stateNode=e,el(n))}return Dt(n),null;case 5:if(St(n),u=n.type,e!==null&&n.stateNode!=null)e.memoizedProps!==s&&el(n);else{if(!s){if(n.stateNode===null)throw Error(r(166));return Dt(n),null}if(c=oe.current,Ri(n))vg(n);else{var m=zo(ce.current);switch(c){case 1:c=m.createElementNS("http://www.w3.org/2000/svg",u);break;case 2:c=m.createElementNS("http://www.w3.org/1998/Math/MathML",u);break;default:switch(u){case"svg":c=m.createElementNS("http://www.w3.org/2000/svg",u);break;case"math":c=m.createElementNS("http://www.w3.org/1998/Math/MathML",u);break;case"script":c=m.createElement("div"),c.innerHTML="<script><\/script>",c=c.removeChild(c.firstChild);break;case"select":c=typeof s.is=="string"?m.createElement("select",{is:s.is}):m.createElement("select"),s.multiple?c.multiple=!0:s.size&&(c.size=s.size);break;default:c=typeof s.is=="string"?m.createElement(u,{is:s.is}):m.createElement(u)}}c[De]=n,c[et]=s;e:for(m=n.child;m!==null;){if(m.tag===5||m.tag===6)c.appendChild(m.stateNode);else if(m.tag!==4&&m.tag!==27&&m.child!==null){m.child.return=m,m=m.child;continue}if(m===n)break e;for(;m.sibling===null;){if(m.return===null||m.return===n)break e;m=m.return}m.sibling.return=m.return,m=m.sibling}n.stateNode=c;e:switch(Tn(c,u,s),u){case"button":case"input":case"select":case"textarea":s=!!s.autoFocus;break e;case"img":s=!0;break e;default:s=!1}s&&el(n)}}return Dt(n),Nf(n,n.type,e===null?null:e.memoizedProps,n.pendingProps,a),null;case 6:if(e&&n.stateNode!=null)e.memoizedProps!==s&&el(n);else{if(typeof s!="string"&&n.stateNode===null)throw Error(r(166));if(e=ce.current,Ri(n)){if(e=n.stateNode,a=n.memoizedProps,s=null,u=Sn,u!==null)switch(u.tag){case 27:case 5:s=u.memoizedProps}e[De]=n,e=!!(e.nodeValue===a||s!==null&&s.suppressHydrationWarning===!0||L0(e.nodeValue,a)),e||_l(n,!0)}else e=zo(e).createTextNode(s),e[De]=n,n.stateNode=e}return Dt(n),null;case 31:if(a=n.memoizedState,e===null||e.memoizedState!==null){if(s=Ri(n),a!==null){if(e===null){if(!s)throw Error(r(318));if(e=n.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(r(557));e[De]=n}else Wl(),(n.flags&128)===0&&(n.memoizedState=null),n.flags|=4;Dt(n),e=!1}else a=Ic(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),e=!0;if(!e)return n.flags&256?(aa(n),n):(aa(n),null);if((n.flags&128)!==0)throw Error(r(558))}return Dt(n),null;case 13:if(s=n.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(u=Ri(n),s!==null&&s.dehydrated!==null){if(e===null){if(!u)throw Error(r(318));if(u=n.memoizedState,u=u!==null?u.dehydrated:null,!u)throw Error(r(317));u[De]=n}else Wl(),(n.flags&128)===0&&(n.memoizedState=null),n.flags|=4;Dt(n),u=!1}else u=Ic(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=u),u=!0;if(!u)return n.flags&256?(aa(n),n):(aa(n),null)}return aa(n),(n.flags&128)!==0?(n.lanes=a,n):(a=s!==null,e=e!==null&&e.memoizedState!==null,a&&(s=n.child,u=null,s.alternate!==null&&s.alternate.memoizedState!==null&&s.alternate.memoizedState.cachePool!==null&&(u=s.alternate.memoizedState.cachePool.pool),c=null,s.memoizedState!==null&&s.memoizedState.cachePool!==null&&(c=s.memoizedState.cachePool.pool),c!==u&&(s.flags|=2048)),a!==e&&a&&(n.child.flags|=8192),_o(n,n.updateQueue),Dt(n),null);case 4:return we(),e===null&&qf(n.stateNode.containerInfo),Dt(n),null;case 10:return Pa(n.type),Dt(n),null;case 19:if(J(Gt),s=n.memoizedState,s===null)return Dt(n),null;if(u=(n.flags&128)!==0,c=s.rendering,c===null)if(u)Hr(s,!1);else{if(It!==0||e!==null&&(e.flags&128)!==0)for(e=n.child;e!==null;){if(c=ro(e),c!==null){for(n.flags|=128,Hr(s,!1),e=c.updateQueue,n.updateQueue=e,_o(n,e),n.subtreeFlags=0,e=a,a=n.child;a!==null;)dg(a,e),a=a.sibling;return ee(Gt,Gt.current&1|2),Ye&&Ka(n,s.treeForkCount),n.child}e=e.sibling}s.tail!==null&&st()>Ao&&(n.flags|=128,u=!0,Hr(s,!1),n.lanes=4194304)}else{if(!u)if(e=ro(c),e!==null){if(n.flags|=128,u=!0,e=e.updateQueue,n.updateQueue=e,_o(n,e),Hr(s,!0),s.tail===null&&s.tailMode==="hidden"&&!c.alternate&&!Ye)return Dt(n),null}else 2*st()-s.renderingStartTime>Ao&&a!==536870912&&(n.flags|=128,u=!0,Hr(s,!1),n.lanes=4194304);s.isBackwards?(c.sibling=n.child,n.child=c):(e=s.last,e!==null?e.sibling=c:n.child=c,s.last=c)}return s.tail!==null?(e=s.tail,s.rendering=e,s.tail=e.sibling,s.renderingStartTime=st(),e.sibling=null,a=Gt.current,ee(Gt,u?a&1|2:a&1),Ye&&Ka(n,s.treeForkCount),e):(Dt(n),null);case 22:case 23:return aa(n),qc(),s=n.memoizedState!==null,e!==null?e.memoizedState!==null!==s&&(n.flags|=8192):s&&(n.flags|=8192),s?(a&536870912)!==0&&(n.flags&128)===0&&(Dt(n),n.subtreeFlags&6&&(n.flags|=8192)):Dt(n),a=n.updateQueue,a!==null&&_o(n,a.retryQueue),a=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),s=null,n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(s=n.memoizedState.cachePool.pool),s!==a&&(n.flags|=2048),e!==null&&J(ei),null;case 24:return a=null,e!==null&&(a=e.memoizedState.cache),n.memoizedState.cache!==a&&(n.flags|=2048),Pa(Jt),Dt(n),null;case 25:return null;case 30:return null}throw Error(r(156,n.tag))}function F_(e,n){switch(Uc(n),n.tag){case 1:return e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 3:return Pa(Jt),we(),e=n.flags,(e&65536)!==0&&(e&128)===0?(n.flags=e&-65537|128,n):null;case 26:case 27:case 5:return St(n),null;case 31:if(n.memoizedState!==null){if(aa(n),n.alternate===null)throw Error(r(340));Wl()}return e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 13:if(aa(n),e=n.memoizedState,e!==null&&e.dehydrated!==null){if(n.alternate===null)throw Error(r(340));Wl()}return e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 19:return J(Gt),null;case 4:return we(),null;case 10:return Pa(n.type),null;case 22:case 23:return aa(n),qc(),e!==null&&J(ei),e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 24:return Pa(Jt),null;case 25:return null;default:return null}}function Hm(e,n){switch(Uc(n),n.tag){case 3:Pa(Jt),we();break;case 26:case 27:case 5:St(n);break;case 4:we();break;case 31:n.memoizedState!==null&&aa(n);break;case 13:aa(n);break;case 19:J(Gt);break;case 10:Pa(n.type);break;case 22:case 23:aa(n),qc(),e!==null&&J(ei);break;case 24:Pa(Jt)}}function Ir(e,n){try{var a=n.updateQueue,s=a!==null?a.lastEffect:null;if(s!==null){var u=s.next;a=u;do{if((a.tag&e)===e){s=void 0;var c=a.create,m=a.inst;s=c(),m.destroy=s}a=a.next}while(a!==u)}}catch(E){gt(n,n.return,E)}}function xl(e,n,a){try{var s=n.updateQueue,u=s!==null?s.lastEffect:null;if(u!==null){var c=u.next;s=c;do{if((s.tag&e)===e){var m=s.inst,E=m.destroy;if(E!==void 0){m.destroy=void 0,u=n;var N=a,I=E;try{I()}catch(q){gt(u,N,q)}}}s=s.next}while(s!==c)}}catch(q){gt(n,n.return,q)}}function Im(e){var n=e.updateQueue;if(n!==null){var a=e.stateNode;try{Rg(n,a)}catch(s){gt(e,e.return,s)}}}function Vm(e,n,a){a.props=ii(e.type,e.memoizedProps),a.state=e.memoizedState;try{a.componentWillUnmount()}catch(s){gt(e,n,s)}}function Vr(e,n){try{var a=e.ref;if(a!==null){switch(e.tag){case 26:case 27:case 5:var s=e.stateNode;break;case 30:s=e.stateNode;break;default:s=e.stateNode}typeof a=="function"?e.refCleanup=a(s):a.current=s}}catch(u){gt(e,n,u)}}function Ua(e,n){var a=e.ref,s=e.refCleanup;if(a!==null)if(typeof s=="function")try{s()}catch(u){gt(e,n,u)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof a=="function")try{a(null)}catch(u){gt(e,n,u)}else a.current=null}function Qm(e){var n=e.type,a=e.memoizedProps,s=e.stateNode;try{e:switch(n){case"button":case"input":case"select":case"textarea":a.autoFocus&&s.focus();break e;case"img":a.src?s.src=a.src:a.srcSet&&(s.srcset=a.srcSet)}}catch(u){gt(e,e.return,u)}}function Mf(e,n,a){try{var s=e.stateNode;p2(s,e.type,a,n),s[et]=n}catch(u){gt(e,e.return,u)}}function Xm(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Ll(e.type)||e.tag===4}function kf(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Xm(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&&Ll(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Lf(e,n,a){var s=e.tag;if(s===5||s===6)e=e.stateNode,n?(a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a).insertBefore(e,n):(n=a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a,n.appendChild(e),a=a._reactRootContainer,a!=null||n.onclick!==null||(n.onclick=Za));else if(s!==4&&(s===27&&Ll(e.type)&&(a=e.stateNode,n=null),e=e.child,e!==null))for(Lf(e,n,a),e=e.sibling;e!==null;)Lf(e,n,a),e=e.sibling}function So(e,n,a){var s=e.tag;if(s===5||s===6)e=e.stateNode,n?a.insertBefore(e,n):a.appendChild(e);else if(s!==4&&(s===27&&Ll(e.type)&&(a=e.stateNode),e=e.child,e!==null))for(So(e,n,a),e=e.sibling;e!==null;)So(e,n,a),e=e.sibling}function Gm(e){var n=e.stateNode,a=e.memoizedProps;try{for(var s=e.type,u=n.attributes;u.length;)n.removeAttributeNode(u[0]);Tn(n,s,a),n[De]=e,n[et]=a}catch(c){gt(e,e.return,c)}}var tl=!1,$t=!1,zf=!1,Zm=typeof WeakSet=="function"?WeakSet:Set,mn=null;function Y_(e,n){if(e=e.containerInfo,nd=Qo,e=ag(e),xc(e)){if("selectionStart"in e)var a={start:e.selectionStart,end:e.selectionEnd};else e:{a=(a=e.ownerDocument)&&a.defaultView||window;var s=a.getSelection&&a.getSelection();if(s&&s.rangeCount!==0){a=s.anchorNode;var u=s.anchorOffset,c=s.focusNode;s=s.focusOffset;try{a.nodeType,c.nodeType}catch{a=null;break e}var m=0,E=-1,N=-1,I=0,q=0,ae=e,Q=null;t:for(;;){for(var F;ae!==a||u!==0&&ae.nodeType!==3||(E=m+u),ae!==c||s!==0&&ae.nodeType!==3||(N=m+s),ae.nodeType===3&&(m+=ae.nodeValue.length),(F=ae.firstChild)!==null;)Q=ae,ae=F;for(;;){if(ae===e)break t;if(Q===a&&++I===u&&(E=m),Q===c&&++q===s&&(N=m),(F=ae.nextSibling)!==null)break;ae=Q,Q=ae.parentNode}ae=F}a=E===-1||N===-1?null:{start:E,end:N}}else a=null}a=a||{start:0,end:0}}else a=null;for(ad={focusedElem:e,selectionRange:a},Qo=!1,mn=n;mn!==null;)if(n=mn,e=n.child,(n.subtreeFlags&1028)!==0&&e!==null)e.return=n,mn=e;else for(;mn!==null;){switch(n=mn,c=n.alternate,e=n.flags,n.tag){case 0:if((e&4)!==0&&(e=n.updateQueue,e=e!==null?e.events:null,e!==null))for(a=0;a<e.length;a++)u=e[a],u.ref.impl=u.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&c!==null){e=void 0,a=n,u=c.memoizedProps,c=c.memoizedState,s=a.stateNode;try{var ve=ii(a.type,u);e=s.getSnapshotBeforeUpdate(ve,c),s.__reactInternalSnapshotBeforeUpdate=e}catch(Ce){gt(a,a.return,Ce)}}break;case 3:if((e&1024)!==0){if(e=n.stateNode.containerInfo,a=e.nodeType,a===9)rd(e);else if(a===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":rd(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((e&1024)!==0)throw Error(r(163))}if(e=n.sibling,e!==null){e.return=n.return,mn=e;break}mn=n.return}}function Fm(e,n,a){var s=a.flags;switch(a.tag){case 0:case 11:case 15:al(e,a),s&4&&Ir(5,a);break;case 1:if(al(e,a),s&4)if(e=a.stateNode,n===null)try{e.componentDidMount()}catch(m){gt(a,a.return,m)}else{var u=ii(a.type,n.memoizedProps);n=n.memoizedState;try{e.componentDidUpdate(u,n,e.__reactInternalSnapshotBeforeUpdate)}catch(m){gt(a,a.return,m)}}s&64&&Im(a),s&512&&Vr(a,a.return);break;case 3:if(al(e,a),s&64&&(e=a.updateQueue,e!==null)){if(n=null,a.child!==null)switch(a.child.tag){case 27:case 5:n=a.child.stateNode;break;case 1:n=a.child.stateNode}try{Rg(e,n)}catch(m){gt(a,a.return,m)}}break;case 27:n===null&&s&4&&Gm(a);case 26:case 5:al(e,a),n===null&&s&4&&Qm(a),s&512&&Vr(a,a.return);break;case 12:al(e,a);break;case 31:al(e,a),s&4&&Jm(e,a);break;case 13:al(e,a),s&4&&Pm(e,a),s&64&&(e=a.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(a=n2.bind(null,a),E2(e,a))));break;case 22:if(s=a.memoizedState!==null||tl,!s){n=n!==null&&n.memoizedState!==null||$t,u=tl;var c=$t;tl=s,($t=n)&&!c?ll(e,a,(a.subtreeFlags&8772)!==0):al(e,a),tl=u,$t=c}break;case 30:break;default:al(e,a)}}function Ym(e){var n=e.alternate;n!==null&&(e.alternate=null,Ym(n)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(n=e.stateNode,n!==null&&R(n)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var Nt=null,Jn=!1;function nl(e,n,a){for(a=a.child;a!==null;)Km(e,n,a),a=a.sibling}function Km(e,n,a){if(vt&&typeof vt.onCommitFiberUnmount=="function")try{vt.onCommitFiberUnmount(dn,a)}catch{}switch(a.tag){case 26:$t||Ua(a,n),nl(e,n,a),a.memoizedState?a.memoizedState.count--:a.stateNode&&(a=a.stateNode,a.parentNode.removeChild(a));break;case 27:$t||Ua(a,n);var s=Nt,u=Jn;Ll(a.type)&&(Nt=a.stateNode,Jn=!1),nl(e,n,a),Pr(a.stateNode),Nt=s,Jn=u;break;case 5:$t||Ua(a,n);case 6:if(s=Nt,u=Jn,Nt=null,nl(e,n,a),Nt=s,Jn=u,Nt!==null)if(Jn)try{(Nt.nodeType===9?Nt.body:Nt.nodeName==="HTML"?Nt.ownerDocument.body:Nt).removeChild(a.stateNode)}catch(c){gt(a,n,c)}else try{Nt.removeChild(a.stateNode)}catch(c){gt(a,n,c)}break;case 18:Nt!==null&&(Jn?(e=Nt,I0(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,a.stateNode),Wi(e)):I0(Nt,a.stateNode));break;case 4:s=Nt,u=Jn,Nt=a.stateNode.containerInfo,Jn=!0,nl(e,n,a),Nt=s,Jn=u;break;case 0:case 11:case 14:case 15:xl(2,a,n),$t||xl(4,a,n),nl(e,n,a);break;case 1:$t||(Ua(a,n),s=a.stateNode,typeof s.componentWillUnmount=="function"&&Vm(a,n,s)),nl(e,n,a);break;case 21:nl(e,n,a);break;case 22:$t=(s=$t)||a.memoizedState!==null,nl(e,n,a),$t=s;break;default:nl(e,n,a)}}function Jm(e,n){if(n.memoizedState===null&&(e=n.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Wi(e)}catch(a){gt(n,n.return,a)}}}function Pm(e,n){if(n.memoizedState===null&&(e=n.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Wi(e)}catch(a){gt(n,n.return,a)}}function K_(e){switch(e.tag){case 31:case 13:case 19:var n=e.stateNode;return n===null&&(n=e.stateNode=new Zm),n;case 22:return e=e.stateNode,n=e._retryCache,n===null&&(n=e._retryCache=new Zm),n;default:throw Error(r(435,e.tag))}}function Eo(e,n){var a=K_(e);n.forEach(function(s){if(!a.has(s)){a.add(s);var u=a2.bind(null,e,s);s.then(u,u)}})}function Pn(e,n){var a=n.deletions;if(a!==null)for(var s=0;s<a.length;s++){var u=a[s],c=e,m=n,E=m;e:for(;E!==null;){switch(E.tag){case 27:if(Ll(E.type)){Nt=E.stateNode,Jn=!1;break e}break;case 5:Nt=E.stateNode,Jn=!1;break e;case 3:case 4:Nt=E.stateNode.containerInfo,Jn=!0;break e}E=E.return}if(Nt===null)throw Error(r(160));Km(c,m,u),Nt=null,Jn=!1,c=u.alternate,c!==null&&(c.return=null),u.return=null}if(n.subtreeFlags&13886)for(n=n.child;n!==null;)Wm(n,e),n=n.sibling}var Aa=null;function Wm(e,n){var a=e.alternate,s=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:Pn(n,e),Wn(e),s&4&&(xl(3,e,e.return),Ir(3,e),xl(5,e,e.return));break;case 1:Pn(n,e),Wn(e),s&512&&($t||a===null||Ua(a,a.return)),s&64&&tl&&(e=e.updateQueue,e!==null&&(s=e.callbacks,s!==null&&(a=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=a===null?s:a.concat(s))));break;case 26:var u=Aa;if(Pn(n,e),Wn(e),s&512&&($t||a===null||Ua(a,a.return)),s&4){var c=a!==null?a.memoizedState:null;if(s=e.memoizedState,a===null)if(s===null)if(e.stateNode===null){e:{s=e.type,a=e.memoizedProps,u=u.ownerDocument||u;t:switch(s){case"title":c=u.getElementsByTagName("title")[0],(!c||c[ue]||c[De]||c.namespaceURI==="http://www.w3.org/2000/svg"||c.hasAttribute("itemprop"))&&(c=u.createElement(s),u.head.insertBefore(c,u.querySelector("head > title"))),Tn(c,s,a),c[De]=e,pe(c),s=c;break e;case"link":var m=W0("link","href",u).get(s+(a.href||""));if(m){for(var E=0;E<m.length;E++)if(c=m[E],c.getAttribute("href")===(a.href==null||a.href===""?null:a.href)&&c.getAttribute("rel")===(a.rel==null?null:a.rel)&&c.getAttribute("title")===(a.title==null?null:a.title)&&c.getAttribute("crossorigin")===(a.crossOrigin==null?null:a.crossOrigin)){m.splice(E,1);break t}}c=u.createElement(s),Tn(c,s,a),u.head.appendChild(c);break;case"meta":if(m=W0("meta","content",u).get(s+(a.content||""))){for(E=0;E<m.length;E++)if(c=m[E],c.getAttribute("content")===(a.content==null?null:""+a.content)&&c.getAttribute("name")===(a.name==null?null:a.name)&&c.getAttribute("property")===(a.property==null?null:a.property)&&c.getAttribute("http-equiv")===(a.httpEquiv==null?null:a.httpEquiv)&&c.getAttribute("charset")===(a.charSet==null?null:a.charSet)){m.splice(E,1);break t}}c=u.createElement(s),Tn(c,s,a),u.head.appendChild(c);break;default:throw Error(r(468,s))}c[De]=e,pe(c),s=c}e.stateNode=s}else $0(u,e.type,e.stateNode);else e.stateNode=P0(u,s,e.memoizedProps);else c!==s?(c===null?a.stateNode!==null&&(a=a.stateNode,a.parentNode.removeChild(a)):c.count--,s===null?$0(u,e.type,e.stateNode):P0(u,s,e.memoizedProps)):s===null&&e.stateNode!==null&&Mf(e,e.memoizedProps,a.memoizedProps)}break;case 27:Pn(n,e),Wn(e),s&512&&($t||a===null||Ua(a,a.return)),a!==null&&s&4&&Mf(e,e.memoizedProps,a.memoizedProps);break;case 5:if(Pn(n,e),Wn(e),s&512&&($t||a===null||Ua(a,a.return)),e.flags&32){u=e.stateNode;try{Ga(u,"")}catch(ve){gt(e,e.return,ve)}}s&4&&e.stateNode!=null&&(u=e.memoizedProps,Mf(e,u,a!==null?a.memoizedProps:u)),s&1024&&(zf=!0);break;case 6:if(Pn(n,e),Wn(e),s&4){if(e.stateNode===null)throw Error(r(162));s=e.memoizedProps,a=e.stateNode;try{a.nodeValue=s}catch(ve){gt(e,e.return,ve)}}break;case 3:if(Uo=null,u=Aa,Aa=jo(n.containerInfo),Pn(n,e),Aa=u,Wn(e),s&4&&a!==null&&a.memoizedState.isDehydrated)try{Wi(n.containerInfo)}catch(ve){gt(e,e.return,ve)}zf&&(zf=!1,$m(e));break;case 4:s=Aa,Aa=jo(e.stateNode.containerInfo),Pn(n,e),Wn(e),Aa=s;break;case 12:Pn(n,e),Wn(e);break;case 31:Pn(n,e),Wn(e),s&4&&(s=e.updateQueue,s!==null&&(e.updateQueue=null,Eo(e,s)));break;case 13:Pn(n,e),Wn(e),e.child.flags&8192&&e.memoizedState!==null!=(a!==null&&a.memoizedState!==null)&&(To=st()),s&4&&(s=e.updateQueue,s!==null&&(e.updateQueue=null,Eo(e,s)));break;case 22:u=e.memoizedState!==null;var N=a!==null&&a.memoizedState!==null,I=tl,q=$t;if(tl=I||u,$t=q||N,Pn(n,e),$t=q,tl=I,Wn(e),s&8192)e:for(n=e.stateNode,n._visibility=u?n._visibility&-2:n._visibility|1,u&&(a===null||N||tl||$t||ri(e)),a=null,n=e;;){if(n.tag===5||n.tag===26){if(a===null){N=a=n;try{if(c=N.stateNode,u)m=c.style,typeof m.setProperty=="function"?m.setProperty("display","none","important"):m.display="none";else{E=N.stateNode;var ae=N.memoizedProps.style,Q=ae!=null&&ae.hasOwnProperty("display")?ae.display:null;E.style.display=Q==null||typeof Q=="boolean"?"":(""+Q).trim()}}catch(ve){gt(N,N.return,ve)}}}else if(n.tag===6){if(a===null){N=n;try{N.stateNode.nodeValue=u?"":N.memoizedProps}catch(ve){gt(N,N.return,ve)}}}else if(n.tag===18){if(a===null){N=n;try{var F=N.stateNode;u?V0(F,!0):V0(N.stateNode,!1)}catch(ve){gt(N,N.return,ve)}}}else if((n.tag!==22&&n.tag!==23||n.memoizedState===null||n===e)&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===e)break e;for(;n.sibling===null;){if(n.return===null||n.return===e)break e;a===n&&(a=null),n=n.return}a===n&&(a=null),n.sibling.return=n.return,n=n.sibling}s&4&&(s=e.updateQueue,s!==null&&(a=s.retryQueue,a!==null&&(s.retryQueue=null,Eo(e,a))));break;case 19:Pn(n,e),Wn(e),s&4&&(s=e.updateQueue,s!==null&&(e.updateQueue=null,Eo(e,s)));break;case 30:break;case 21:break;default:Pn(n,e),Wn(e)}}function Wn(e){var n=e.flags;if(n&2){try{for(var a,s=e.return;s!==null;){if(Xm(s)){a=s;break}s=s.return}if(a==null)throw Error(r(160));switch(a.tag){case 27:var u=a.stateNode,c=kf(e);So(e,c,u);break;case 5:var m=a.stateNode;a.flags&32&&(Ga(m,""),a.flags&=-33);var E=kf(e);So(e,E,m);break;case 3:case 4:var N=a.stateNode.containerInfo,I=kf(e);Lf(e,I,N);break;default:throw Error(r(161))}}catch(q){gt(e,e.return,q)}e.flags&=-3}n&4096&&(e.flags&=-4097)}function $m(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var n=e;$m(n),n.tag===5&&n.flags&1024&&n.stateNode.reset(),e=e.sibling}}function al(e,n){if(n.subtreeFlags&8772)for(n=n.child;n!==null;)Fm(e,n.alternate,n),n=n.sibling}function ri(e){for(e=e.child;e!==null;){var n=e;switch(n.tag){case 0:case 11:case 14:case 15:xl(4,n,n.return),ri(n);break;case 1:Ua(n,n.return);var a=n.stateNode;typeof a.componentWillUnmount=="function"&&Vm(n,n.return,a),ri(n);break;case 27:Pr(n.stateNode);case 26:case 5:Ua(n,n.return),ri(n);break;case 22:n.memoizedState===null&&ri(n);break;case 30:ri(n);break;default:ri(n)}e=e.sibling}}function ll(e,n,a){for(a=a&&(n.subtreeFlags&8772)!==0,n=n.child;n!==null;){var s=n.alternate,u=e,c=n,m=c.flags;switch(c.tag){case 0:case 11:case 15:ll(u,c,a),Ir(4,c);break;case 1:if(ll(u,c,a),s=c,u=s.stateNode,typeof u.componentDidMount=="function")try{u.componentDidMount()}catch(I){gt(s,s.return,I)}if(s=c,u=s.updateQueue,u!==null){var E=s.stateNode;try{var N=u.shared.hiddenCallbacks;if(N!==null)for(u.shared.hiddenCallbacks=null,u=0;u<N.length;u++)Dg(N[u],E)}catch(I){gt(s,s.return,I)}}a&&m&64&&Im(c),Vr(c,c.return);break;case 27:Gm(c);case 26:case 5:ll(u,c,a),a&&s===null&&m&4&&Qm(c),Vr(c,c.return);break;case 12:ll(u,c,a);break;case 31:ll(u,c,a),a&&m&4&&Jm(u,c);break;case 13:ll(u,c,a),a&&m&4&&Pm(u,c);break;case 22:c.memoizedState===null&&ll(u,c,a),Vr(c,c.return);break;case 30:break;default:ll(u,c,a)}n=n.sibling}}function jf(e,n){var a=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),e=null,n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(e=n.memoizedState.cachePool.pool),e!==a&&(e!=null&&e.refCount++,a!=null&&xr(a))}function Bf(e,n){e=null,n.alternate!==null&&(e=n.alternate.memoizedState.cache),n=n.memoizedState.cache,n!==e&&(n.refCount++,e!=null&&xr(e))}function Ca(e,n,a,s){if(n.subtreeFlags&10256)for(n=n.child;n!==null;)qm(e,n,a,s),n=n.sibling}function qm(e,n,a,s){var u=n.flags;switch(n.tag){case 0:case 11:case 15:Ca(e,n,a,s),u&2048&&Ir(9,n);break;case 1:Ca(e,n,a,s);break;case 3:Ca(e,n,a,s),u&2048&&(e=null,n.alternate!==null&&(e=n.alternate.memoizedState.cache),n=n.memoizedState.cache,n!==e&&(n.refCount++,e!=null&&xr(e)));break;case 12:if(u&2048){Ca(e,n,a,s),e=n.stateNode;try{var c=n.memoizedProps,m=c.id,E=c.onPostCommit;typeof E=="function"&&E(m,n.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(N){gt(n,n.return,N)}}else Ca(e,n,a,s);break;case 31:Ca(e,n,a,s);break;case 13:Ca(e,n,a,s);break;case 23:break;case 22:c=n.stateNode,m=n.alternate,n.memoizedState!==null?c._visibility&2?Ca(e,n,a,s):Qr(e,n):c._visibility&2?Ca(e,n,a,s):(c._visibility|=2,Ii(e,n,a,s,(n.subtreeFlags&10256)!==0||!1)),u&2048&&jf(m,n);break;case 24:Ca(e,n,a,s),u&2048&&Bf(n.alternate,n);break;default:Ca(e,n,a,s)}}function Ii(e,n,a,s,u){for(u=u&&((n.subtreeFlags&10256)!==0||!1),n=n.child;n!==null;){var c=e,m=n,E=a,N=s,I=m.flags;switch(m.tag){case 0:case 11:case 15:Ii(c,m,E,N,u),Ir(8,m);break;case 23:break;case 22:var q=m.stateNode;m.memoizedState!==null?q._visibility&2?Ii(c,m,E,N,u):Qr(c,m):(q._visibility|=2,Ii(c,m,E,N,u)),u&&I&2048&&jf(m.alternate,m);break;case 24:Ii(c,m,E,N,u),u&&I&2048&&Bf(m.alternate,m);break;default:Ii(c,m,E,N,u)}n=n.sibling}}function Qr(e,n){if(n.subtreeFlags&10256)for(n=n.child;n!==null;){var a=e,s=n,u=s.flags;switch(s.tag){case 22:Qr(a,s),u&2048&&jf(s.alternate,s);break;case 24:Qr(a,s),u&2048&&Bf(s.alternate,s);break;default:Qr(a,s)}n=n.sibling}}var Xr=8192;function Vi(e,n,a){if(e.subtreeFlags&Xr)for(e=e.child;e!==null;)e0(e,n,a),e=e.sibling}function e0(e,n,a){switch(e.tag){case 26:Vi(e,n,a),e.flags&Xr&&e.memoizedState!==null&&L2(a,Aa,e.memoizedState,e.memoizedProps);break;case 5:Vi(e,n,a);break;case 3:case 4:var s=Aa;Aa=jo(e.stateNode.containerInfo),Vi(e,n,a),Aa=s;break;case 22:e.memoizedState===null&&(s=e.alternate,s!==null&&s.memoizedState!==null?(s=Xr,Xr=16777216,Vi(e,n,a),Xr=s):Vi(e,n,a));break;default:Vi(e,n,a)}}function t0(e){var n=e.alternate;if(n!==null&&(e=n.child,e!==null)){n.child=null;do n=e.sibling,e.sibling=null,e=n;while(e!==null)}}function Gr(e){var n=e.deletions;if((e.flags&16)!==0){if(n!==null)for(var a=0;a<n.length;a++){var s=n[a];mn=s,a0(s,e)}t0(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)n0(e),e=e.sibling}function n0(e){switch(e.tag){case 0:case 11:case 15:Gr(e),e.flags&2048&&xl(9,e,e.return);break;case 3:Gr(e);break;case 12:Gr(e);break;case 22:var n=e.stateNode;e.memoizedState!==null&&n._visibility&2&&(e.return===null||e.return.tag!==13)?(n._visibility&=-3,wo(e)):Gr(e);break;default:Gr(e)}}function wo(e){var n=e.deletions;if((e.flags&16)!==0){if(n!==null)for(var a=0;a<n.length;a++){var s=n[a];mn=s,a0(s,e)}t0(e)}for(e=e.child;e!==null;){switch(n=e,n.tag){case 0:case 11:case 15:xl(8,n,n.return),wo(n);break;case 22:a=n.stateNode,a._visibility&2&&(a._visibility&=-3,wo(n));break;default:wo(n)}e=e.sibling}}function a0(e,n){for(;mn!==null;){var a=mn;switch(a.tag){case 0:case 11:case 15:xl(8,a,n);break;case 23:case 22:if(a.memoizedState!==null&&a.memoizedState.cachePool!==null){var s=a.memoizedState.cachePool.pool;s!=null&&s.refCount++}break;case 24:xr(a.memoizedState.cache)}if(s=a.child,s!==null)s.return=a,mn=s;else e:for(a=e;mn!==null;){s=mn;var u=s.sibling,c=s.return;if(Ym(s),s===a){mn=null;break e}if(u!==null){u.return=c,mn=u;break e}mn=c}}}var J_={getCacheForType:function(e){var n=En(Jt),a=n.data.get(e);return a===void 0&&(a=e(),n.data.set(e,a)),a},cacheSignal:function(){return En(Jt).controller.signal}},P_=typeof WeakMap=="function"?WeakMap:Map,ot=0,wt=null,Ie=null,Ze=0,pt=0,la=null,Ol=!1,Qi=!1,Uf=!1,il=0,It=0,Dl=0,si=0,Hf=0,ia=0,Xi=0,Zr=null,$n=null,If=!1,To=0,l0=0,Ao=1/0,Co=null,Rl=null,un=0,Nl=null,Gi=null,rl=0,Vf=0,Qf=null,i0=null,Fr=0,Xf=null;function ra(){return(ot&2)!==0&&Ze!==0?Ze&-Ze:j.T!==null?Jf():Bn()}function r0(){if(ia===0)if((Ze&536870912)===0||Ye){var e=at;at<<=1,(at&3932160)===0&&(at=262144),ia=e}else ia=536870912;return e=na.current,e!==null&&(e.flags|=32),ia}function qn(e,n,a){(e===wt&&(pt===2||pt===9)||e.cancelPendingCommit!==null)&&(Zi(e,0),Ml(e,Ze,ia,!1)),jn(e,a),((ot&2)===0||e!==wt)&&(e===wt&&((ot&2)===0&&(si|=a),It===4&&Ml(e,Ze,ia,!1)),Ha(e))}function s0(e,n,a){if((ot&6)!==0)throw Error(r(327));var s=!a&&(n&127)===0&&(n&e.expiredLanes)===0||Nn(e,n),u=s?q_(e,n):Zf(e,n,!0),c=s;do{if(u===0){Qi&&!s&&Ml(e,n,0,!1);break}else{if(a=e.current.alternate,c&&!W_(a)){u=Zf(e,n,!1),c=!1;continue}if(u===2){if(c=n,e.errorRecoveryDisabledLanes&c)var m=0;else m=e.pendingLanes&-536870913,m=m!==0?m:m&536870912?536870912:0;if(m!==0){n=m;e:{var E=e;u=Zr;var N=E.current.memoizedState.isDehydrated;if(N&&(Zi(E,m).flags|=256),m=Zf(E,m,!1),m!==2){if(Uf&&!N){E.errorRecoveryDisabledLanes|=c,si|=c,u=4;break e}c=$n,$n=u,c!==null&&($n===null?$n=c:$n.push.apply($n,c))}u=m}if(c=!1,u!==2)continue}}if(u===1){Zi(e,0),Ml(e,n,0,!0);break}e:{switch(s=e,c=u,c){case 0:case 1:throw Error(r(345));case 4:if((n&4194048)!==n)break;case 6:Ml(s,n,ia,!Ol);break e;case 2:$n=null;break;case 3:case 5:break;default:throw Error(r(329))}if((n&62914560)===n&&(u=To+300-st(),10<u)){if(Ml(s,n,ia,!Ol),Rn(s,0,!0)!==0)break e;rl=n,s.timeoutHandle=U0(o0.bind(null,s,a,$n,Co,If,n,ia,si,Xi,Ol,c,"Throttled",-0,0),u);break e}o0(s,a,$n,Co,If,n,ia,si,Xi,Ol,c,null,-0,0)}}break}while(!0);Ha(e)}function o0(e,n,a,s,u,c,m,E,N,I,q,ae,Q,F){if(e.timeoutHandle=-1,ae=n.subtreeFlags,ae&8192||(ae&16785408)===16785408){ae={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Za},e0(n,c,ae);var ve=(c&62914560)===c?To-st():(c&4194048)===c?l0-st():0;if(ve=z2(ae,ve),ve!==null){rl=c,e.cancelPendingCommit=ve(m0.bind(null,e,n,c,a,s,u,m,E,N,q,ae,null,Q,F)),Ml(e,c,m,!I);return}}m0(e,n,c,a,s,u,m,E,N)}function W_(e){for(var n=e;;){var a=n.tag;if((a===0||a===11||a===15)&&n.flags&16384&&(a=n.updateQueue,a!==null&&(a=a.stores,a!==null)))for(var s=0;s<a.length;s++){var u=a[s],c=u.getSnapshot;u=u.value;try{if(!ea(c(),u))return!1}catch{return!1}}if(a=n.child,n.subtreeFlags&16384&&a!==null)a.return=n,n=a;else{if(n===e)break;for(;n.sibling===null;){if(n.return===null||n.return===e)return!0;n=n.return}n.sibling.return=n.return,n=n.sibling}}return!0}function Ml(e,n,a,s){n&=~Hf,n&=~si,e.suspendedLanes|=n,e.pingedLanes&=~n,s&&(e.warmLanes|=n),s=e.expirationTimes;for(var u=n;0<u;){var c=31-Je(u),m=1<<c;s[c]=-1,u&=~m}a!==0&&rn(e,a,n)}function xo(){return(ot&6)===0?(Yr(0),!1):!0}function Gf(){if(Ie!==null){if(pt===0)var e=Ie.return;else e=Ie,Ja=$l=null,rf(e),zi=null,Dr=0,e=Ie;for(;e!==null;)Hm(e.alternate,e),e=e.return;Ie=null}}function Zi(e,n){var a=e.timeoutHandle;a!==-1&&(e.timeoutHandle=-1,v2(a)),a=e.cancelPendingCommit,a!==null&&(e.cancelPendingCommit=null,a()),rl=0,Gf(),wt=e,Ie=a=Ya(e.current,null),Ze=n,pt=0,la=null,Ol=!1,Qi=Nn(e,n),Uf=!1,Xi=ia=Hf=si=Dl=It=0,$n=Zr=null,If=!1,(n&8)!==0&&(n|=n&32);var s=e.entangledLanes;if(s!==0)for(e=e.entanglements,s&=n;0<s;){var u=31-Je(s),c=1<<u;n|=e[u],s&=~c}return il=n,Ys(),a}function u0(e,n){Le=null,j.H=Br,n===Li||n===to?(n=Ag(),pt=3):n===Yc?(n=Ag(),pt=4):pt=n===Ef?8:n!==null&&typeof n=="object"&&typeof n.then=="function"?6:1,la=n,Ie===null&&(It=1,mo(e,ha(n,e.current)))}function c0(){var e=na.current;return e===null?!0:(Ze&4194048)===Ze?va===null:(Ze&62914560)===Ze||(Ze&536870912)!==0?e===va:!1}function f0(){var e=j.H;return j.H=Br,e===null?Br:e}function d0(){var e=j.A;return j.A=J_,e}function Oo(){It=4,Ol||(Ze&4194048)!==Ze&&na.current!==null||(Qi=!0),(Dl&134217727)===0&&(si&134217727)===0||wt===null||Ml(wt,Ze,ia,!1)}function Zf(e,n,a){var s=ot;ot|=2;var u=f0(),c=d0();(wt!==e||Ze!==n)&&(Co=null,Zi(e,n)),n=!1;var m=It;e:do try{if(pt!==0&&Ie!==null){var E=Ie,N=la;switch(pt){case 8:Gf(),m=6;break e;case 3:case 2:case 9:case 6:na.current===null&&(n=!0);var I=pt;if(pt=0,la=null,Fi(e,E,N,I),a&&Qi){m=0;break e}break;default:I=pt,pt=0,la=null,Fi(e,E,N,I)}}$_(),m=It;break}catch(q){u0(e,q)}while(!0);return n&&e.shellSuspendCounter++,Ja=$l=null,ot=s,j.H=u,j.A=c,Ie===null&&(wt=null,Ze=0,Ys()),m}function $_(){for(;Ie!==null;)h0(Ie)}function q_(e,n){var a=ot;ot|=2;var s=f0(),u=d0();wt!==e||Ze!==n?(Co=null,Ao=st()+500,Zi(e,n)):Qi=Nn(e,n);e:do try{if(pt!==0&&Ie!==null){n=Ie;var c=la;t:switch(pt){case 1:pt=0,la=null,Fi(e,n,c,1);break;case 2:case 9:if(wg(c)){pt=0,la=null,p0(n);break}n=function(){pt!==2&&pt!==9||wt!==e||(pt=7),Ha(e)},c.then(n,n);break e;case 3:pt=7;break e;case 4:pt=5;break e;case 7:wg(c)?(pt=0,la=null,p0(n)):(pt=0,la=null,Fi(e,n,c,7));break;case 5:var m=null;switch(Ie.tag){case 26:m=Ie.memoizedState;case 5:case 27:var E=Ie;if(m?q0(m):E.stateNode.complete){pt=0,la=null;var N=E.sibling;if(N!==null)Ie=N;else{var I=E.return;I!==null?(Ie=I,Do(I)):Ie=null}break t}}pt=0,la=null,Fi(e,n,c,5);break;case 6:pt=0,la=null,Fi(e,n,c,6);break;case 8:Gf(),It=6;break e;default:throw Error(r(462))}}e2();break}catch(q){u0(e,q)}while(!0);return Ja=$l=null,j.H=s,j.A=u,ot=a,Ie!==null?0:(wt=null,Ze=0,Ys(),It)}function e2(){for(;Ie!==null&&!nn();)h0(Ie)}function h0(e){var n=Bm(e.alternate,e,il);e.memoizedProps=e.pendingProps,n===null?Do(e):Ie=n}function p0(e){var n=e,a=n.alternate;switch(n.tag){case 15:case 0:n=Nm(a,n,n.pendingProps,n.type,void 0,Ze);break;case 11:n=Nm(a,n,n.pendingProps,n.type.render,n.ref,Ze);break;case 5:rf(n);default:Hm(a,n),n=Ie=dg(n,il),n=Bm(a,n,il)}e.memoizedProps=e.pendingProps,n===null?Do(e):Ie=n}function Fi(e,n,a,s){Ja=$l=null,rf(n),zi=null,Dr=0;var u=n.return;try{if(Q_(e,u,n,a,Ze)){It=1,mo(e,ha(a,e.current)),Ie=null;return}}catch(c){if(u!==null)throw Ie=u,c;It=1,mo(e,ha(a,e.current)),Ie=null;return}n.flags&32768?(Ye||s===1?e=!0:Qi||(Ze&536870912)!==0?e=!1:(Ol=e=!0,(s===2||s===9||s===3||s===6)&&(s=na.current,s!==null&&s.tag===13&&(s.flags|=16384))),g0(n,e)):Do(n)}function Do(e){var n=e;do{if((n.flags&32768)!==0){g0(n,Ol);return}e=n.return;var a=Z_(n.alternate,n,il);if(a!==null){Ie=a;return}if(n=n.sibling,n!==null){Ie=n;return}Ie=n=e}while(n!==null);It===0&&(It=5)}function g0(e,n){do{var a=F_(e.alternate,e);if(a!==null){a.flags&=32767,Ie=a;return}if(a=e.return,a!==null&&(a.flags|=32768,a.subtreeFlags=0,a.deletions=null),!n&&(e=e.sibling,e!==null)){Ie=e;return}Ie=e=a}while(e!==null);It=6,Ie=null}function m0(e,n,a,s,u,c,m,E,N){e.cancelPendingCommit=null;do Ro();while(un!==0);if((ot&6)!==0)throw Error(r(327));if(n!==null){if(n===e.current)throw Error(r(177));if(c=n.lanes|n.childLanes,c|=Mc,fa(e,a,c,m,E,N),e===wt&&(Ie=wt=null,Ze=0),Gi=n,Nl=e,rl=a,Vf=c,Qf=u,i0=s,(n.subtreeFlags&10256)!==0||(n.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,l2(zt,function(){return S0(),null})):(e.callbackNode=null,e.callbackPriority=0),s=(n.flags&13878)!==0,(n.subtreeFlags&13878)!==0||s){s=j.T,j.T=null,u=le.p,le.p=2,m=ot,ot|=4;try{Y_(e,n,a)}finally{ot=m,le.p=u,j.T=s}}un=1,v0(),b0(),y0()}}function v0(){if(un===1){un=0;var e=Nl,n=Gi,a=(n.flags&13878)!==0;if((n.subtreeFlags&13878)!==0||a){a=j.T,j.T=null;var s=le.p;le.p=2;var u=ot;ot|=4;try{Wm(n,e);var c=ad,m=ag(e.containerInfo),E=c.focusedElem,N=c.selectionRange;if(m!==E&&E&&E.ownerDocument&&ng(E.ownerDocument.documentElement,E)){if(N!==null&&xc(E)){var I=N.start,q=N.end;if(q===void 0&&(q=I),"selectionStart"in E)E.selectionStart=I,E.selectionEnd=Math.min(q,E.value.length);else{var ae=E.ownerDocument||document,Q=ae&&ae.defaultView||window;if(Q.getSelection){var F=Q.getSelection(),ve=E.textContent.length,Ce=Math.min(N.start,ve),_t=N.end===void 0?Ce:Math.min(N.end,ve);!F.extend&&Ce>_t&&(m=_t,_t=Ce,Ce=m);var z=tg(E,Ce),M=tg(E,_t);if(z&&M&&(F.rangeCount!==1||F.anchorNode!==z.node||F.anchorOffset!==z.offset||F.focusNode!==M.node||F.focusOffset!==M.offset)){var B=ae.createRange();B.setStart(z.node,z.offset),F.removeAllRanges(),Ce>_t?(F.addRange(B),F.extend(M.node,M.offset)):(B.setEnd(M.node,M.offset),F.addRange(B))}}}}for(ae=[],F=E;F=F.parentNode;)F.nodeType===1&&ae.push({element:F,left:F.scrollLeft,top:F.scrollTop});for(typeof E.focus=="function"&&E.focus(),E=0;E<ae.length;E++){var te=ae[E];te.element.scrollLeft=te.left,te.element.scrollTop=te.top}}Qo=!!nd,ad=nd=null}finally{ot=u,le.p=s,j.T=a}}e.current=n,un=2}}function b0(){if(un===2){un=0;var e=Nl,n=Gi,a=(n.flags&8772)!==0;if((n.subtreeFlags&8772)!==0||a){a=j.T,j.T=null;var s=le.p;le.p=2;var u=ot;ot|=4;try{Fm(e,n.alternate,n)}finally{ot=u,le.p=s,j.T=a}}un=3}}function y0(){if(un===4||un===3){un=0,Et();var e=Nl,n=Gi,a=rl,s=i0;(n.subtreeFlags&10256)!==0||(n.flags&10256)!==0?un=5:(un=0,Gi=Nl=null,_0(e,e.pendingLanes));var u=e.pendingLanes;if(u===0&&(Rl=null),Pe(a),n=n.stateNode,vt&&typeof vt.onCommitFiberRoot=="function")try{vt.onCommitFiberRoot(dn,n,void 0,(n.current.flags&128)===128)}catch{}if(s!==null){n=j.T,u=le.p,le.p=2,j.T=null;try{for(var c=e.onRecoverableError,m=0;m<s.length;m++){var E=s[m];c(E.value,{componentStack:E.stack})}}finally{j.T=n,le.p=u}}(rl&3)!==0&&Ro(),Ha(e),u=e.pendingLanes,(a&261930)!==0&&(u&42)!==0?e===Xf?Fr++:(Fr=0,Xf=e):Fr=0,Yr(0)}}function _0(e,n){(e.pooledCacheLanes&=n)===0&&(n=e.pooledCache,n!=null&&(e.pooledCache=null,xr(n)))}function Ro(){return v0(),b0(),y0(),S0()}function S0(){if(un!==5)return!1;var e=Nl,n=Vf;Vf=0;var a=Pe(rl),s=j.T,u=le.p;try{le.p=32>a?32:a,j.T=null,a=Qf,Qf=null;var c=Nl,m=rl;if(un=0,Gi=Nl=null,rl=0,(ot&6)!==0)throw Error(r(331));var E=ot;if(ot|=4,n0(c.current),qm(c,c.current,m,a),ot=E,Yr(0,!1),vt&&typeof vt.onPostCommitFiberRoot=="function")try{vt.onPostCommitFiberRoot(dn,c)}catch{}return!0}finally{le.p=u,j.T=s,_0(e,n)}}function E0(e,n,a){n=ha(a,n),n=Sf(e.stateNode,n,2),e=Tl(e,n,2),e!==null&&(jn(e,2),Ha(e))}function gt(e,n,a){if(e.tag===3)E0(e,e,a);else for(;n!==null;){if(n.tag===3){E0(n,e,a);break}else if(n.tag===1){var s=n.stateNode;if(typeof n.type.getDerivedStateFromError=="function"||typeof s.componentDidCatch=="function"&&(Rl===null||!Rl.has(s))){e=ha(a,e),a=wm(2),s=Tl(n,a,2),s!==null&&(Tm(a,s,n,e),jn(s,2),Ha(s));break}}n=n.return}}function Ff(e,n,a){var s=e.pingCache;if(s===null){s=e.pingCache=new P_;var u=new Set;s.set(n,u)}else u=s.get(n),u===void 0&&(u=new Set,s.set(n,u));u.has(a)||(Uf=!0,u.add(a),e=t2.bind(null,e,n,a),n.then(e,e))}function t2(e,n,a){var s=e.pingCache;s!==null&&s.delete(n),e.pingedLanes|=e.suspendedLanes&a,e.warmLanes&=~a,wt===e&&(Ze&a)===a&&(It===4||It===3&&(Ze&62914560)===Ze&&300>st()-To?(ot&2)===0&&Zi(e,0):Hf|=a,Xi===Ze&&(Xi=0)),Ha(e)}function w0(e,n){n===0&&(n=ln()),e=Jl(e,n),e!==null&&(jn(e,n),Ha(e))}function n2(e){var n=e.memoizedState,a=0;n!==null&&(a=n.retryLane),w0(e,a)}function a2(e,n){var a=0;switch(e.tag){case 31:case 13:var s=e.stateNode,u=e.memoizedState;u!==null&&(a=u.retryLane);break;case 19:s=e.stateNode;break;case 22:s=e.stateNode._retryCache;break;default:throw Error(r(314))}s!==null&&s.delete(n),w0(e,a)}function l2(e,n){return Ft(e,n)}var No=null,Yi=null,Yf=!1,Mo=!1,Kf=!1,kl=0;function Ha(e){e!==Yi&&e.next===null&&(Yi===null?No=Yi=e:Yi=Yi.next=e),Mo=!0,Yf||(Yf=!0,r2())}function Yr(e,n){if(!Kf&&Mo){Kf=!0;do for(var a=!1,s=No;s!==null;){if(e!==0){var u=s.pendingLanes;if(u===0)var c=0;else{var m=s.suspendedLanes,E=s.pingedLanes;c=(1<<31-Je(42|e)+1)-1,c&=u&~(m&~E),c=c&201326741?c&201326741|1:c?c|2:0}c!==0&&(a=!0,x0(s,c))}else c=Ze,c=Rn(s,s===wt?c:0,s.cancelPendingCommit!==null||s.timeoutHandle!==-1),(c&3)===0||Nn(s,c)||(a=!0,x0(s,c));s=s.next}while(a);Kf=!1}}function i2(){T0()}function T0(){Mo=Yf=!1;var e=0;kl!==0&&m2()&&(e=kl);for(var n=st(),a=null,s=No;s!==null;){var u=s.next,c=A0(s,n);c===0?(s.next=null,a===null?No=u:a.next=u,u===null&&(Yi=a)):(a=s,(e!==0||(c&3)!==0)&&(Mo=!0)),s=u}un!==0&&un!==5||Yr(e),kl!==0&&(kl=0)}function A0(e,n){for(var a=e.suspendedLanes,s=e.pingedLanes,u=e.expirationTimes,c=e.pendingLanes&-62914561;0<c;){var m=31-Je(c),E=1<<m,N=u[m];N===-1?((E&a)===0||(E&s)!==0)&&(u[m]=dt(E,n)):N<=n&&(e.expiredLanes|=E),c&=~E}if(n=wt,a=Ze,a=Rn(e,e===n?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),s=e.callbackNode,a===0||e===n&&(pt===2||pt===9)||e.cancelPendingCommit!==null)return s!==null&&s!==null&&xt(s),e.callbackNode=null,e.callbackPriority=0;if((a&3)===0||Nn(e,a)){if(n=a&-a,n===e.callbackPriority)return n;switch(s!==null&&xt(s),Pe(a)){case 2:case 8:a=Rt;break;case 32:a=zt;break;case 268435456:a=fn;break;default:a=zt}return s=C0.bind(null,e),a=Ft(a,s),e.callbackPriority=n,e.callbackNode=a,n}return s!==null&&s!==null&&xt(s),e.callbackPriority=2,e.callbackNode=null,2}function C0(e,n){if(un!==0&&un!==5)return e.callbackNode=null,e.callbackPriority=0,null;var a=e.callbackNode;if(Ro()&&e.callbackNode!==a)return null;var s=Ze;return s=Rn(e,e===wt?s:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),s===0?null:(s0(e,s,n),A0(e,st()),e.callbackNode!=null&&e.callbackNode===a?C0.bind(null,e):null)}function x0(e,n){if(Ro())return null;s0(e,n,!0)}function r2(){b2(function(){(ot&6)!==0?Ft(Qt,i2):T0()})}function Jf(){if(kl===0){var e=Mi;e===0&&(e=jt,jt<<=1,(jt&261888)===0&&(jt=256)),kl=e}return kl}function O0(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:Hs(""+e)}function D0(e,n){var a=n.ownerDocument.createElement("input");return a.name=n.name,a.value=n.value,e.id&&a.setAttribute("form",e.id),n.parentNode.insertBefore(a,n),e=new FormData(e),a.parentNode.removeChild(a),e}function s2(e,n,a,s,u){if(n==="submit"&&a&&a.stateNode===u){var c=O0((u[et]||null).action),m=s.submitter;m&&(n=(n=m[et]||null)?O0(n.formAction):m.getAttribute("formAction"),n!==null&&(c=n,m=null));var E=new Xs("action","action",null,s,u);e.push({event:E,listeners:[{instance:null,listener:function(){if(s.defaultPrevented){if(kl!==0){var N=m?D0(u,m):new FormData(u);gf(a,{pending:!0,data:N,method:u.method,action:c},null,N)}}else typeof c=="function"&&(E.preventDefault(),N=m?D0(u,m):new FormData(u),gf(a,{pending:!0,data:N,method:u.method,action:c},c,N))},currentTarget:u}]})}}for(var Pf=0;Pf<Nc.length;Pf++){var Wf=Nc[Pf],o2=Wf.toLowerCase(),u2=Wf[0].toUpperCase()+Wf.slice(1);Ta(o2,"on"+u2)}Ta(rg,"onAnimationEnd"),Ta(sg,"onAnimationIteration"),Ta(og,"onAnimationStart"),Ta("dblclick","onDoubleClick"),Ta("focusin","onFocus"),Ta("focusout","onBlur"),Ta(A_,"onTransitionRun"),Ta(C_,"onTransitionStart"),Ta(x_,"onTransitionCancel"),Ta(ug,"onTransitionEnd"),tt("onMouseEnter",["mouseout","mouseover"]),tt("onMouseLeave",["mouseout","mouseover"]),tt("onPointerEnter",["pointerout","pointerover"]),tt("onPointerLeave",["pointerout","pointerover"]),lt("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),lt("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),lt("onBeforeInput",["compositionend","keypress","textInput","paste"]),lt("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),lt("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),lt("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Kr="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(" "),c2=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Kr));function R0(e,n){n=(n&4)!==0;for(var a=0;a<e.length;a++){var s=e[a],u=s.event;s=s.listeners;e:{var c=void 0;if(n)for(var m=s.length-1;0<=m;m--){var E=s[m],N=E.instance,I=E.currentTarget;if(E=E.listener,N!==c&&u.isPropagationStopped())break e;c=E,u.currentTarget=I;try{c(u)}catch(q){Fs(q)}u.currentTarget=null,c=N}else for(m=0;m<s.length;m++){if(E=s[m],N=E.instance,I=E.currentTarget,E=E.listener,N!==c&&u.isPropagationStopped())break e;c=E,u.currentTarget=I;try{c(u)}catch(q){Fs(q)}u.currentTarget=null,c=N}}}}function Ve(e,n){var a=n[Fn];a===void 0&&(a=n[Fn]=new Set);var s=e+"__bubble";a.has(s)||(N0(n,e,2,!1),a.add(s))}function $f(e,n,a){var s=0;n&&(s|=4),N0(a,e,s,n)}var ko="_reactListening"+Math.random().toString(36).slice(2);function qf(e){if(!e[ko]){e[ko]=!0,ht.forEach(function(a){a!=="selectionchange"&&(c2.has(a)||$f(a,!1,e),$f(a,!0,e))});var n=e.nodeType===9?e:e.ownerDocument;n===null||n[ko]||(n[ko]=!0,$f("selectionchange",!1,n))}}function N0(e,n,a,s){switch(r1(n)){case 2:var u=U2;break;case 8:u=H2;break;default:u=pd}a=u.bind(null,n,a,e),u=void 0,!bc||n!=="touchstart"&&n!=="touchmove"&&n!=="wheel"||(u=!0),s?u!==void 0?e.addEventListener(n,a,{capture:!0,passive:u}):e.addEventListener(n,a,!0):u!==void 0?e.addEventListener(n,a,{passive:u}):e.addEventListener(n,a,!1)}function ed(e,n,a,s,u){var c=s;if((n&1)===0&&(n&2)===0&&s!==null)e:for(;;){if(s===null)return;var m=s.tag;if(m===3||m===4){var E=s.stateNode.containerInfo;if(E===u)break;if(m===4)for(m=s.return;m!==null;){var N=m.tag;if((N===3||N===4)&&m.stateNode.containerInfo===u)return;m=m.return}for(;E!==null;){if(m=$(E),m===null)return;if(N=m.tag,N===5||N===6||N===26||N===27){s=c=m;continue e}E=E.parentNode}}s=s.return}jp(function(){var I=c,q=mc(a),ae=[];e:{var Q=cg.get(e);if(Q!==void 0){var F=Xs,ve=e;switch(e){case"keypress":if(Vs(a)===0)break e;case"keydown":case"keyup":F=a_;break;case"focusin":ve="focus",F=Ec;break;case"focusout":ve="blur",F=Ec;break;case"beforeblur":case"afterblur":F=Ec;break;case"click":if(a.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":F=Hp;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":F=Zy;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":F=r_;break;case rg:case sg:case og:F=Ky;break;case ug:F=o_;break;case"scroll":case"scrollend":F=Xy;break;case"wheel":F=c_;break;case"copy":case"cut":case"paste":F=Py;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":F=Vp;break;case"toggle":case"beforetoggle":F=d_}var Ce=(n&4)!==0,_t=!Ce&&(e==="scroll"||e==="scrollend"),z=Ce?Q!==null?Q+"Capture":null:Q;Ce=[];for(var M=I,B;M!==null;){var te=M;if(B=te.stateNode,te=te.tag,te!==5&&te!==26&&te!==27||B===null||z===null||(te=mr(M,z),te!=null&&Ce.push(Jr(M,te,B))),_t)break;M=M.return}0<Ce.length&&(Q=new F(Q,ve,null,a,q),ae.push({event:Q,listeners:Ce}))}}if((n&7)===0){e:{if(Q=e==="mouseover"||e==="pointerover",F=e==="mouseout"||e==="pointerout",Q&&a!==gc&&(ve=a.relatedTarget||a.fromElement)&&($(ve)||ve[pn]))break e;if((F||Q)&&(Q=q.window===q?q:(Q=q.ownerDocument)?Q.defaultView||Q.parentWindow:window,F?(ve=a.relatedTarget||a.toElement,F=I,ve=ve?$(ve):null,ve!==null&&(_t=f(ve),Ce=ve.tag,ve!==_t||Ce!==5&&Ce!==27&&Ce!==6)&&(ve=null)):(F=null,ve=I),F!==ve)){if(Ce=Hp,te="onMouseLeave",z="onMouseEnter",M="mouse",(e==="pointerout"||e==="pointerover")&&(Ce=Vp,te="onPointerLeave",z="onPointerEnter",M="pointer"),_t=F==null?Q:Ee(F),B=ve==null?Q:Ee(ve),Q=new Ce(te,M+"leave",F,a,q),Q.target=_t,Q.relatedTarget=B,te=null,$(q)===I&&(Ce=new Ce(z,M+"enter",ve,a,q),Ce.target=B,Ce.relatedTarget=_t,te=Ce),_t=te,F&&ve)t:{for(Ce=f2,z=F,M=ve,B=0,te=z;te;te=Ce(te))B++;te=0;for(var Te=M;Te;Te=Ce(Te))te++;for(;0<B-te;)z=Ce(z),B--;for(;0<te-B;)M=Ce(M),te--;for(;B--;){if(z===M||M!==null&&z===M.alternate){Ce=z;break t}z=Ce(z),M=Ce(M)}Ce=null}else Ce=null;F!==null&&M0(ae,Q,F,Ce,!1),ve!==null&&_t!==null&&M0(ae,_t,ve,Ce,!0)}}e:{if(Q=I?Ee(I):window,F=Q.nodeName&&Q.nodeName.toLowerCase(),F==="select"||F==="input"&&Q.type==="file")var it=Jp;else if(Yp(Q))if(Pp)it=E_;else{it=__;var _e=y_}else F=Q.nodeName,!F||F.toLowerCase()!=="input"||Q.type!=="checkbox"&&Q.type!=="radio"?I&&pc(I.elementType)&&(it=Jp):it=S_;if(it&&(it=it(e,I))){Kp(ae,it,a,q);break e}_e&&_e(e,Q,I),e==="focusout"&&I&&Q.type==="number"&&I.memoizedProps.value!=null&&hc(Q,"number",Q.value)}switch(_e=I?Ee(I):window,e){case"focusin":(Yp(_e)||_e.contentEditable==="true")&&(Ti=_e,Oc=I,Tr=null);break;case"focusout":Tr=Oc=Ti=null;break;case"mousedown":Dc=!0;break;case"contextmenu":case"mouseup":case"dragend":Dc=!1,lg(ae,a,q);break;case"selectionchange":if(T_)break;case"keydown":case"keyup":lg(ae,a,q)}var je;if(Tc)e:{switch(e){case"compositionstart":var Fe="onCompositionStart";break e;case"compositionend":Fe="onCompositionEnd";break e;case"compositionupdate":Fe="onCompositionUpdate";break e}Fe=void 0}else wi?Zp(e,a)&&(Fe="onCompositionEnd"):e==="keydown"&&a.keyCode===229&&(Fe="onCompositionStart");Fe&&(Qp&&a.locale!=="ko"&&(wi||Fe!=="onCompositionStart"?Fe==="onCompositionEnd"&&wi&&(je=Bp()):(vl=q,yc="value"in vl?vl.value:vl.textContent,wi=!0)),_e=Lo(I,Fe),0<_e.length&&(Fe=new Ip(Fe,e,null,a,q),ae.push({event:Fe,listeners:_e}),je?Fe.data=je:(je=Fp(a),je!==null&&(Fe.data=je)))),(je=p_?g_(e,a):m_(e,a))&&(Fe=Lo(I,"onBeforeInput"),0<Fe.length&&(_e=new Ip("onBeforeInput","beforeinput",null,a,q),ae.push({event:_e,listeners:Fe}),_e.data=je)),s2(ae,e,I,a,q)}R0(ae,n)})}function Jr(e,n,a){return{instance:e,listener:n,currentTarget:a}}function Lo(e,n){for(var a=n+"Capture",s=[];e!==null;){var u=e,c=u.stateNode;if(u=u.tag,u!==5&&u!==26&&u!==27||c===null||(u=mr(e,a),u!=null&&s.unshift(Jr(e,u,c)),u=mr(e,n),u!=null&&s.push(Jr(e,u,c))),e.tag===3)return s;e=e.return}return[]}function f2(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function M0(e,n,a,s,u){for(var c=n._reactName,m=[];a!==null&&a!==s;){var E=a,N=E.alternate,I=E.stateNode;if(E=E.tag,N!==null&&N===s)break;E!==5&&E!==26&&E!==27||I===null||(N=I,u?(I=mr(a,c),I!=null&&m.unshift(Jr(a,I,N))):u||(I=mr(a,c),I!=null&&m.push(Jr(a,I,N)))),a=a.return}m.length!==0&&e.push({event:n,listeners:m})}var d2=/\r\n?/g,h2=/\u0000|\uFFFD/g;function k0(e){return(typeof e=="string"?e:""+e).replace(d2,`
9
+ `).replace(h2,"")}function L0(e,n){return n=k0(n),k0(e)===n}function yt(e,n,a,s,u,c){switch(a){case"children":typeof s=="string"?n==="body"||n==="textarea"&&s===""||Ga(e,s):(typeof s=="number"||typeof s=="bigint")&&n!=="body"&&Ga(e,""+s);break;case"className":Yn(e,"class",s);break;case"tabIndex":Yn(e,"tabindex",s);break;case"dir":case"role":case"viewBox":case"width":case"height":Yn(e,a,s);break;case"style":Lp(e,s,c);break;case"data":if(n!=="object"){Yn(e,"data",s);break}case"src":case"href":if(s===""&&(n!=="a"||a!=="href")){e.removeAttribute(a);break}if(s==null||typeof s=="function"||typeof s=="symbol"||typeof s=="boolean"){e.removeAttribute(a);break}s=Hs(""+s),e.setAttribute(a,s);break;case"action":case"formAction":if(typeof s=="function"){e.setAttribute(a,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof c=="function"&&(a==="formAction"?(n!=="input"&&yt(e,n,"name",u.name,u,null),yt(e,n,"formEncType",u.formEncType,u,null),yt(e,n,"formMethod",u.formMethod,u,null),yt(e,n,"formTarget",u.formTarget,u,null)):(yt(e,n,"encType",u.encType,u,null),yt(e,n,"method",u.method,u,null),yt(e,n,"target",u.target,u,null)));if(s==null||typeof s=="symbol"||typeof s=="boolean"){e.removeAttribute(a);break}s=Hs(""+s),e.setAttribute(a,s);break;case"onClick":s!=null&&(e.onclick=Za);break;case"onScroll":s!=null&&Ve("scroll",e);break;case"onScrollEnd":s!=null&&Ve("scrollend",e);break;case"dangerouslySetInnerHTML":if(s!=null){if(typeof s!="object"||!("__html"in s))throw Error(r(61));if(a=s.__html,a!=null){if(u.children!=null)throw Error(r(60));e.innerHTML=a}}break;case"multiple":e.multiple=s&&typeof s!="function"&&typeof s!="symbol";break;case"muted":e.muted=s&&typeof s!="function"&&typeof s!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(s==null||typeof s=="function"||typeof s=="boolean"||typeof s=="symbol"){e.removeAttribute("xlink:href");break}a=Hs(""+s),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",a);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":s!=null&&typeof s!="function"&&typeof s!="symbol"?e.setAttribute(a,""+s):e.removeAttribute(a);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":s&&typeof s!="function"&&typeof s!="symbol"?e.setAttribute(a,""):e.removeAttribute(a);break;case"capture":case"download":s===!0?e.setAttribute(a,""):s!==!1&&s!=null&&typeof s!="function"&&typeof s!="symbol"?e.setAttribute(a,s):e.removeAttribute(a);break;case"cols":case"rows":case"size":case"span":s!=null&&typeof s!="function"&&typeof s!="symbol"&&!isNaN(s)&&1<=s?e.setAttribute(a,s):e.removeAttribute(a);break;case"rowSpan":case"start":s==null||typeof s=="function"||typeof s=="symbol"||isNaN(s)?e.removeAttribute(a):e.setAttribute(a,s);break;case"popover":Ve("beforetoggle",e),Ve("toggle",e),He(e,"popover",s);break;case"xlinkActuate":gn(e,"http://www.w3.org/1999/xlink","xlink:actuate",s);break;case"xlinkArcrole":gn(e,"http://www.w3.org/1999/xlink","xlink:arcrole",s);break;case"xlinkRole":gn(e,"http://www.w3.org/1999/xlink","xlink:role",s);break;case"xlinkShow":gn(e,"http://www.w3.org/1999/xlink","xlink:show",s);break;case"xlinkTitle":gn(e,"http://www.w3.org/1999/xlink","xlink:title",s);break;case"xlinkType":gn(e,"http://www.w3.org/1999/xlink","xlink:type",s);break;case"xmlBase":gn(e,"http://www.w3.org/XML/1998/namespace","xml:base",s);break;case"xmlLang":gn(e,"http://www.w3.org/XML/1998/namespace","xml:lang",s);break;case"xmlSpace":gn(e,"http://www.w3.org/XML/1998/namespace","xml:space",s);break;case"is":He(e,"is",s);break;case"innerText":case"textContent":break;default:(!(2<a.length)||a[0]!=="o"&&a[0]!=="O"||a[1]!=="n"&&a[1]!=="N")&&(a=Vy.get(a)||a,He(e,a,s))}}function td(e,n,a,s,u,c){switch(a){case"style":Lp(e,s,c);break;case"dangerouslySetInnerHTML":if(s!=null){if(typeof s!="object"||!("__html"in s))throw Error(r(61));if(a=s.__html,a!=null){if(u.children!=null)throw Error(r(60));e.innerHTML=a}}break;case"children":typeof s=="string"?Ga(e,s):(typeof s=="number"||typeof s=="bigint")&&Ga(e,""+s);break;case"onScroll":s!=null&&Ve("scroll",e);break;case"onScrollEnd":s!=null&&Ve("scrollend",e);break;case"onClick":s!=null&&(e.onclick=Za);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Re.hasOwnProperty(a))e:{if(a[0]==="o"&&a[1]==="n"&&(u=a.endsWith("Capture"),n=a.slice(2,u?a.length-7:void 0),c=e[et]||null,c=c!=null?c[a]:null,typeof c=="function"&&e.removeEventListener(n,c,u),typeof s=="function")){typeof c!="function"&&c!==null&&(a in e?e[a]=null:e.hasAttribute(a)&&e.removeAttribute(a)),e.addEventListener(n,s,u);break e}a in e?e[a]=s:s===!0?e.setAttribute(a,""):He(e,a,s)}}}function Tn(e,n,a){switch(n){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Ve("error",e),Ve("load",e);var s=!1,u=!1,c;for(c in a)if(a.hasOwnProperty(c)){var m=a[c];if(m!=null)switch(c){case"src":s=!0;break;case"srcSet":u=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,n));default:yt(e,n,c,m,a,null)}}u&&yt(e,n,"srcSet",a.srcSet,a,null),s&&yt(e,n,"src",a.src,a,null);return;case"input":Ve("invalid",e);var E=c=m=u=null,N=null,I=null;for(s in a)if(a.hasOwnProperty(s)){var q=a[s];if(q!=null)switch(s){case"name":u=q;break;case"type":m=q;break;case"checked":N=q;break;case"defaultChecked":I=q;break;case"value":c=q;break;case"defaultValue":E=q;break;case"children":case"dangerouslySetInnerHTML":if(q!=null)throw Error(r(137,n));break;default:yt(e,n,s,q,a,null)}}gr(e,c,E,N,I,m,u,!1);return;case"select":Ve("invalid",e),s=m=c=null;for(u in a)if(a.hasOwnProperty(u)&&(E=a[u],E!=null))switch(u){case"value":c=E;break;case"defaultValue":m=E;break;case"multiple":s=E;default:yt(e,n,u,E,a,null)}n=c,a=m,e.multiple=!!s,n!=null?ml(e,!!s,n,!1):a!=null&&ml(e,!!s,a,!0);return;case"textarea":Ve("invalid",e),c=u=s=null;for(m in a)if(a.hasOwnProperty(m)&&(E=a[m],E!=null))switch(m){case"value":s=E;break;case"defaultValue":u=E;break;case"children":c=E;break;case"dangerouslySetInnerHTML":if(E!=null)throw Error(r(91));break;default:yt(e,n,m,E,a,null)}Mp(e,s,u,c);return;case"option":for(N in a)if(a.hasOwnProperty(N)&&(s=a[N],s!=null))switch(N){case"selected":e.selected=s&&typeof s!="function"&&typeof s!="symbol";break;default:yt(e,n,N,s,a,null)}return;case"dialog":Ve("beforetoggle",e),Ve("toggle",e),Ve("cancel",e),Ve("close",e);break;case"iframe":case"object":Ve("load",e);break;case"video":case"audio":for(s=0;s<Kr.length;s++)Ve(Kr[s],e);break;case"image":Ve("error",e),Ve("load",e);break;case"details":Ve("toggle",e);break;case"embed":case"source":case"link":Ve("error",e),Ve("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(I in a)if(a.hasOwnProperty(I)&&(s=a[I],s!=null))switch(I){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,n));default:yt(e,n,I,s,a,null)}return;default:if(pc(n)){for(q in a)a.hasOwnProperty(q)&&(s=a[q],s!==void 0&&td(e,n,q,s,a,void 0));return}}for(E in a)a.hasOwnProperty(E)&&(s=a[E],s!=null&&yt(e,n,E,s,a,null))}function p2(e,n,a,s){switch(n){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var u=null,c=null,m=null,E=null,N=null,I=null,q=null;for(F in a){var ae=a[F];if(a.hasOwnProperty(F)&&ae!=null)switch(F){case"checked":break;case"value":break;case"defaultValue":N=ae;default:s.hasOwnProperty(F)||yt(e,n,F,null,s,ae)}}for(var Q in s){var F=s[Q];if(ae=a[Q],s.hasOwnProperty(Q)&&(F!=null||ae!=null))switch(Q){case"type":c=F;break;case"name":u=F;break;case"checked":I=F;break;case"defaultChecked":q=F;break;case"value":m=F;break;case"defaultValue":E=F;break;case"children":case"dangerouslySetInnerHTML":if(F!=null)throw Error(r(137,n));break;default:F!==ae&&yt(e,n,Q,F,s,ae)}}dc(e,m,E,N,I,q,c,u);return;case"select":F=m=E=Q=null;for(c in a)if(N=a[c],a.hasOwnProperty(c)&&N!=null)switch(c){case"value":break;case"multiple":F=N;default:s.hasOwnProperty(c)||yt(e,n,c,null,s,N)}for(u in s)if(c=s[u],N=a[u],s.hasOwnProperty(u)&&(c!=null||N!=null))switch(u){case"value":Q=c;break;case"defaultValue":E=c;break;case"multiple":m=c;default:c!==N&&yt(e,n,u,c,s,N)}n=E,a=m,s=F,Q!=null?ml(e,!!a,Q,!1):!!s!=!!a&&(n!=null?ml(e,!!a,n,!0):ml(e,!!a,a?[]:"",!1));return;case"textarea":F=Q=null;for(E in a)if(u=a[E],a.hasOwnProperty(E)&&u!=null&&!s.hasOwnProperty(E))switch(E){case"value":break;case"children":break;default:yt(e,n,E,null,s,u)}for(m in s)if(u=s[m],c=a[m],s.hasOwnProperty(m)&&(u!=null||c!=null))switch(m){case"value":Q=u;break;case"defaultValue":F=u;break;case"children":break;case"dangerouslySetInnerHTML":if(u!=null)throw Error(r(91));break;default:u!==c&&yt(e,n,m,u,s,c)}Np(e,Q,F);return;case"option":for(var ve in a)if(Q=a[ve],a.hasOwnProperty(ve)&&Q!=null&&!s.hasOwnProperty(ve))switch(ve){case"selected":e.selected=!1;break;default:yt(e,n,ve,null,s,Q)}for(N in s)if(Q=s[N],F=a[N],s.hasOwnProperty(N)&&Q!==F&&(Q!=null||F!=null))switch(N){case"selected":e.selected=Q&&typeof Q!="function"&&typeof Q!="symbol";break;default:yt(e,n,N,Q,s,F)}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 Ce in a)Q=a[Ce],a.hasOwnProperty(Ce)&&Q!=null&&!s.hasOwnProperty(Ce)&&yt(e,n,Ce,null,s,Q);for(I in s)if(Q=s[I],F=a[I],s.hasOwnProperty(I)&&Q!==F&&(Q!=null||F!=null))switch(I){case"children":case"dangerouslySetInnerHTML":if(Q!=null)throw Error(r(137,n));break;default:yt(e,n,I,Q,s,F)}return;default:if(pc(n)){for(var _t in a)Q=a[_t],a.hasOwnProperty(_t)&&Q!==void 0&&!s.hasOwnProperty(_t)&&td(e,n,_t,void 0,s,Q);for(q in s)Q=s[q],F=a[q],!s.hasOwnProperty(q)||Q===F||Q===void 0&&F===void 0||td(e,n,q,Q,s,F);return}}for(var z in a)Q=a[z],a.hasOwnProperty(z)&&Q!=null&&!s.hasOwnProperty(z)&&yt(e,n,z,null,s,Q);for(ae in s)Q=s[ae],F=a[ae],!s.hasOwnProperty(ae)||Q===F||Q==null&&F==null||yt(e,n,ae,Q,s,F)}function z0(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function g2(){if(typeof performance.getEntriesByType=="function"){for(var e=0,n=0,a=performance.getEntriesByType("resource"),s=0;s<a.length;s++){var u=a[s],c=u.transferSize,m=u.initiatorType,E=u.duration;if(c&&E&&z0(m)){for(m=0,E=u.responseEnd,s+=1;s<a.length;s++){var N=a[s],I=N.startTime;if(I>E)break;var q=N.transferSize,ae=N.initiatorType;q&&z0(ae)&&(N=N.responseEnd,m+=q*(N<E?1:(E-I)/(N-I)))}if(--s,n+=8*(c+m)/(u.duration/1e3),e++,10<e)break}}if(0<e)return n/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var nd=null,ad=null;function zo(e){return e.nodeType===9?e:e.ownerDocument}function j0(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 B0(e,n){if(e===0)switch(n){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&n==="foreignObject"?0:e}function ld(e,n){return e==="textarea"||e==="noscript"||typeof n.children=="string"||typeof n.children=="number"||typeof n.children=="bigint"||typeof n.dangerouslySetInnerHTML=="object"&&n.dangerouslySetInnerHTML!==null&&n.dangerouslySetInnerHTML.__html!=null}var id=null;function m2(){var e=window.event;return e&&e.type==="popstate"?e===id?!1:(id=e,!0):(id=null,!1)}var U0=typeof setTimeout=="function"?setTimeout:void 0,v2=typeof clearTimeout=="function"?clearTimeout:void 0,H0=typeof Promise=="function"?Promise:void 0,b2=typeof queueMicrotask=="function"?queueMicrotask:typeof H0<"u"?function(e){return H0.resolve(null).then(e).catch(y2)}:U0;function y2(e){setTimeout(function(){throw e})}function Ll(e){return e==="head"}function I0(e,n){var a=n,s=0;do{var u=a.nextSibling;if(e.removeChild(a),u&&u.nodeType===8)if(a=u.data,a==="/$"||a==="/&"){if(s===0){e.removeChild(u),Wi(n);return}s--}else if(a==="$"||a==="$?"||a==="$~"||a==="$!"||a==="&")s++;else if(a==="html")Pr(e.ownerDocument.documentElement);else if(a==="head"){a=e.ownerDocument.head,Pr(a);for(var c=a.firstChild;c;){var m=c.nextSibling,E=c.nodeName;c[ue]||E==="SCRIPT"||E==="STYLE"||E==="LINK"&&c.rel.toLowerCase()==="stylesheet"||a.removeChild(c),c=m}}else a==="body"&&Pr(e.ownerDocument.body);a=u}while(a);Wi(n)}function V0(e,n){var a=e;e=0;do{var s=a.nextSibling;if(a.nodeType===1?n?(a._stashedDisplay=a.style.display,a.style.display="none"):(a.style.display=a._stashedDisplay||"",a.getAttribute("style")===""&&a.removeAttribute("style")):a.nodeType===3&&(n?(a._stashedText=a.nodeValue,a.nodeValue=""):a.nodeValue=a._stashedText||""),s&&s.nodeType===8)if(a=s.data,a==="/$"){if(e===0)break;e--}else a!=="$"&&a!=="$?"&&a!=="$~"&&a!=="$!"||e++;a=s}while(a)}function rd(e){var n=e.firstChild;for(n&&n.nodeType===10&&(n=n.nextSibling);n;){var a=n;switch(n=n.nextSibling,a.nodeName){case"HTML":case"HEAD":case"BODY":rd(a),R(a);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(a.rel.toLowerCase()==="stylesheet")continue}e.removeChild(a)}}function _2(e,n,a,s){for(;e.nodeType===1;){var u=a;if(e.nodeName.toLowerCase()!==n.toLowerCase()){if(!s&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(s){if(!e[ue])switch(n){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(c=e.getAttribute("rel"),c==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(c!==u.rel||e.getAttribute("href")!==(u.href==null||u.href===""?null:u.href)||e.getAttribute("crossorigin")!==(u.crossOrigin==null?null:u.crossOrigin)||e.getAttribute("title")!==(u.title==null?null:u.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(c=e.getAttribute("src"),(c!==(u.src==null?null:u.src)||e.getAttribute("type")!==(u.type==null?null:u.type)||e.getAttribute("crossorigin")!==(u.crossOrigin==null?null:u.crossOrigin))&&c&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(n==="input"&&e.type==="hidden"){var c=u.name==null?null:""+u.name;if(u.type==="hidden"&&e.getAttribute("name")===c)return e}else return e;if(e=ba(e.nextSibling),e===null)break}return null}function S2(e,n,a){if(n==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!a||(e=ba(e.nextSibling),e===null))return null;return e}function Q0(e,n){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!n||(e=ba(e.nextSibling),e===null))return null;return e}function sd(e){return e.data==="$?"||e.data==="$~"}function od(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function E2(e,n){var a=e.ownerDocument;if(e.data==="$~")e._reactRetry=n;else if(e.data!=="$?"||a.readyState!=="loading")n();else{var s=function(){n(),a.removeEventListener("DOMContentLoaded",s)};a.addEventListener("DOMContentLoaded",s),e._reactRetry=s}}function ba(e){for(;e!=null;e=e.nextSibling){var n=e.nodeType;if(n===1||n===3)break;if(n===8){if(n=e.data,n==="$"||n==="$!"||n==="$?"||n==="$~"||n==="&"||n==="F!"||n==="F")break;if(n==="/$"||n==="/&")return null}}return e}var ud=null;function X0(e){e=e.nextSibling;for(var n=0;e;){if(e.nodeType===8){var a=e.data;if(a==="/$"||a==="/&"){if(n===0)return ba(e.nextSibling);n--}else a!=="$"&&a!=="$!"&&a!=="$?"&&a!=="$~"&&a!=="&"||n++}e=e.nextSibling}return null}function G0(e){e=e.previousSibling;for(var n=0;e;){if(e.nodeType===8){var a=e.data;if(a==="$"||a==="$!"||a==="$?"||a==="$~"||a==="&"){if(n===0)return e;n--}else a!=="/$"&&a!=="/&"||n++}e=e.previousSibling}return null}function Z0(e,n,a){switch(n=zo(a),e){case"html":if(e=n.documentElement,!e)throw Error(r(452));return e;case"head":if(e=n.head,!e)throw Error(r(453));return e;case"body":if(e=n.body,!e)throw Error(r(454));return e;default:throw Error(r(451))}}function Pr(e){for(var n=e.attributes;n.length;)e.removeAttributeNode(n[0]);R(e)}var ya=new Map,F0=new Set;function jo(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var sl=le.d;le.d={f:w2,r:T2,D:A2,C:C2,L:x2,m:O2,X:R2,S:D2,M:N2};function w2(){var e=sl.f(),n=xo();return e||n}function T2(e){var n=re(e);n!==null&&n.tag===5&&n.type==="form"?um(n):sl.r(e)}var Ki=typeof document>"u"?null:document;function Y0(e,n,a){var s=Ki;if(s&&typeof n=="string"&&n){var u=Un(n);u='link[rel="'+e+'"][href="'+u+'"]',typeof a=="string"&&(u+='[crossorigin="'+a+'"]'),F0.has(u)||(F0.add(u),e={rel:e,crossOrigin:a,href:n},s.querySelector(u)===null&&(n=s.createElement("link"),Tn(n,"link",e),pe(n),s.head.appendChild(n)))}}function A2(e){sl.D(e),Y0("dns-prefetch",e,null)}function C2(e,n){sl.C(e,n),Y0("preconnect",e,n)}function x2(e,n,a){sl.L(e,n,a);var s=Ki;if(s&&e&&n){var u='link[rel="preload"][as="'+Un(n)+'"]';n==="image"&&a&&a.imageSrcSet?(u+='[imagesrcset="'+Un(a.imageSrcSet)+'"]',typeof a.imageSizes=="string"&&(u+='[imagesizes="'+Un(a.imageSizes)+'"]')):u+='[href="'+Un(e)+'"]';var c=u;switch(n){case"style":c=Ji(e);break;case"script":c=Pi(e)}ya.has(c)||(e=S({rel:"preload",href:n==="image"&&a&&a.imageSrcSet?void 0:e,as:n},a),ya.set(c,e),s.querySelector(u)!==null||n==="style"&&s.querySelector(Wr(c))||n==="script"&&s.querySelector($r(c))||(n=s.createElement("link"),Tn(n,"link",e),pe(n),s.head.appendChild(n)))}}function O2(e,n){sl.m(e,n);var a=Ki;if(a&&e){var s=n&&typeof n.as=="string"?n.as:"script",u='link[rel="modulepreload"][as="'+Un(s)+'"][href="'+Un(e)+'"]',c=u;switch(s){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":c=Pi(e)}if(!ya.has(c)&&(e=S({rel:"modulepreload",href:e},n),ya.set(c,e),a.querySelector(u)===null)){switch(s){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(a.querySelector($r(c)))return}s=a.createElement("link"),Tn(s,"link",e),pe(s),a.head.appendChild(s)}}}function D2(e,n,a){sl.S(e,n,a);var s=Ki;if(s&&e){var u=Ge(s).hoistableStyles,c=Ji(e);n=n||"default";var m=u.get(c);if(!m){var E={loading:0,preload:null};if(m=s.querySelector(Wr(c)))E.loading=5;else{e=S({rel:"stylesheet",href:e,"data-precedence":n},a),(a=ya.get(c))&&cd(e,a);var N=m=s.createElement("link");pe(N),Tn(N,"link",e),N._p=new Promise(function(I,q){N.onload=I,N.onerror=q}),N.addEventListener("load",function(){E.loading|=1}),N.addEventListener("error",function(){E.loading|=2}),E.loading|=4,Bo(m,n,s)}m={type:"stylesheet",instance:m,count:1,state:E},u.set(c,m)}}}function R2(e,n){sl.X(e,n);var a=Ki;if(a&&e){var s=Ge(a).hoistableScripts,u=Pi(e),c=s.get(u);c||(c=a.querySelector($r(u)),c||(e=S({src:e,async:!0},n),(n=ya.get(u))&&fd(e,n),c=a.createElement("script"),pe(c),Tn(c,"link",e),a.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},s.set(u,c))}}function N2(e,n){sl.M(e,n);var a=Ki;if(a&&e){var s=Ge(a).hoistableScripts,u=Pi(e),c=s.get(u);c||(c=a.querySelector($r(u)),c||(e=S({src:e,async:!0,type:"module"},n),(n=ya.get(u))&&fd(e,n),c=a.createElement("script"),pe(c),Tn(c,"link",e),a.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},s.set(u,c))}}function K0(e,n,a,s){var u=(u=ce.current)?jo(u):null;if(!u)throw Error(r(446));switch(e){case"meta":case"title":return null;case"style":return typeof a.precedence=="string"&&typeof a.href=="string"?(n=Ji(a.href),a=Ge(u).hoistableStyles,s=a.get(n),s||(s={type:"style",instance:null,count:0,state:null},a.set(n,s)),s):{type:"void",instance:null,count:0,state:null};case"link":if(a.rel==="stylesheet"&&typeof a.href=="string"&&typeof a.precedence=="string"){e=Ji(a.href);var c=Ge(u).hoistableStyles,m=c.get(e);if(m||(u=u.ownerDocument||u,m={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},c.set(e,m),(c=u.querySelector(Wr(e)))&&!c._p&&(m.instance=c,m.state.loading=5),ya.has(e)||(a={rel:"preload",as:"style",href:a.href,crossOrigin:a.crossOrigin,integrity:a.integrity,media:a.media,hrefLang:a.hrefLang,referrerPolicy:a.referrerPolicy},ya.set(e,a),c||M2(u,e,a,m.state))),n&&s===null)throw Error(r(528,""));return m}if(n&&s!==null)throw Error(r(529,""));return null;case"script":return n=a.async,a=a.src,typeof a=="string"&&n&&typeof n!="function"&&typeof n!="symbol"?(n=Pi(a),a=Ge(u).hoistableScripts,s=a.get(n),s||(s={type:"script",instance:null,count:0,state:null},a.set(n,s)),s):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,e))}}function Ji(e){return'href="'+Un(e)+'"'}function Wr(e){return'link[rel="stylesheet"]['+e+"]"}function J0(e){return S({},e,{"data-precedence":e.precedence,precedence:null})}function M2(e,n,a,s){e.querySelector('link[rel="preload"][as="style"]['+n+"]")?s.loading=1:(n=e.createElement("link"),s.preload=n,n.addEventListener("load",function(){return s.loading|=1}),n.addEventListener("error",function(){return s.loading|=2}),Tn(n,"link",a),pe(n),e.head.appendChild(n))}function Pi(e){return'[src="'+Un(e)+'"]'}function $r(e){return"script[async]"+e}function P0(e,n,a){if(n.count++,n.instance===null)switch(n.type){case"style":var s=e.querySelector('style[data-href~="'+Un(a.href)+'"]');if(s)return n.instance=s,pe(s),s;var u=S({},a,{"data-href":a.href,"data-precedence":a.precedence,href:null,precedence:null});return s=(e.ownerDocument||e).createElement("style"),pe(s),Tn(s,"style",u),Bo(s,a.precedence,e),n.instance=s;case"stylesheet":u=Ji(a.href);var c=e.querySelector(Wr(u));if(c)return n.state.loading|=4,n.instance=c,pe(c),c;s=J0(a),(u=ya.get(u))&&cd(s,u),c=(e.ownerDocument||e).createElement("link"),pe(c);var m=c;return m._p=new Promise(function(E,N){m.onload=E,m.onerror=N}),Tn(c,"link",s),n.state.loading|=4,Bo(c,a.precedence,e),n.instance=c;case"script":return c=Pi(a.src),(u=e.querySelector($r(c)))?(n.instance=u,pe(u),u):(s=a,(u=ya.get(c))&&(s=S({},a),fd(s,u)),e=e.ownerDocument||e,u=e.createElement("script"),pe(u),Tn(u,"link",s),e.head.appendChild(u),n.instance=u);case"void":return null;default:throw Error(r(443,n.type))}else n.type==="stylesheet"&&(n.state.loading&4)===0&&(s=n.instance,n.state.loading|=4,Bo(s,a.precedence,e));return n.instance}function Bo(e,n,a){for(var s=a.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),u=s.length?s[s.length-1]:null,c=u,m=0;m<s.length;m++){var E=s[m];if(E.dataset.precedence===n)c=E;else if(c!==u)break}c?c.parentNode.insertBefore(e,c.nextSibling):(n=a.nodeType===9?a.head:a,n.insertBefore(e,n.firstChild))}function cd(e,n){e.crossOrigin==null&&(e.crossOrigin=n.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=n.referrerPolicy),e.title==null&&(e.title=n.title)}function fd(e,n){e.crossOrigin==null&&(e.crossOrigin=n.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=n.referrerPolicy),e.integrity==null&&(e.integrity=n.integrity)}var Uo=null;function W0(e,n,a){if(Uo===null){var s=new Map,u=Uo=new Map;u.set(a,s)}else u=Uo,s=u.get(a),s||(s=new Map,u.set(a,s));if(s.has(e))return s;for(s.set(e,null),a=a.getElementsByTagName(e),u=0;u<a.length;u++){var c=a[u];if(!(c[ue]||c[De]||e==="link"&&c.getAttribute("rel")==="stylesheet")&&c.namespaceURI!=="http://www.w3.org/2000/svg"){var m=c.getAttribute(n)||"";m=e+m;var E=s.get(m);E?E.push(c):s.set(m,[c])}}return s}function $0(e,n,a){e=e.ownerDocument||e,e.head.insertBefore(a,n==="title"?e.querySelector("head > title"):null)}function k2(e,n,a){if(a===1||n.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof n.precedence!="string"||typeof n.href!="string"||n.href==="")break;return!0;case"link":if(typeof n.rel!="string"||typeof n.href!="string"||n.href===""||n.onLoad||n.onError)break;switch(n.rel){case"stylesheet":return e=n.disabled,typeof n.precedence=="string"&&e==null;default:return!0}case"script":if(n.async&&typeof n.async!="function"&&typeof n.async!="symbol"&&!n.onLoad&&!n.onError&&n.src&&typeof n.src=="string")return!0}return!1}function q0(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function L2(e,n,a,s){if(a.type==="stylesheet"&&(typeof s.media!="string"||matchMedia(s.media).matches!==!1)&&(a.state.loading&4)===0){if(a.instance===null){var u=Ji(s.href),c=n.querySelector(Wr(u));if(c){n=c._p,n!==null&&typeof n=="object"&&typeof n.then=="function"&&(e.count++,e=Ho.bind(e),n.then(e,e)),a.state.loading|=4,a.instance=c,pe(c);return}c=n.ownerDocument||n,s=J0(s),(u=ya.get(u))&&cd(s,u),c=c.createElement("link"),pe(c);var m=c;m._p=new Promise(function(E,N){m.onload=E,m.onerror=N}),Tn(c,"link",s),a.instance=c}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(a,n),(n=a.state.preload)&&(a.state.loading&3)===0&&(e.count++,a=Ho.bind(e),n.addEventListener("load",a),n.addEventListener("error",a))}}var dd=0;function z2(e,n){return e.stylesheets&&e.count===0&&Vo(e,e.stylesheets),0<e.count||0<e.imgCount?function(a){var s=setTimeout(function(){if(e.stylesheets&&Vo(e,e.stylesheets),e.unsuspend){var c=e.unsuspend;e.unsuspend=null,c()}},6e4+n);0<e.imgBytes&&dd===0&&(dd=62500*g2());var u=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&Vo(e,e.stylesheets),e.unsuspend)){var c=e.unsuspend;e.unsuspend=null,c()}},(e.imgBytes>dd?50:800)+n);return e.unsuspend=a,function(){e.unsuspend=null,clearTimeout(s),clearTimeout(u)}}:null}function Ho(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Vo(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Io=null;function Vo(e,n){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Io=new Map,n.forEach(j2,e),Io=null,Ho.call(e))}function j2(e,n){if(!(n.state.loading&4)){var a=Io.get(e);if(a)var s=a.get(null);else{a=new Map,Io.set(e,a);for(var u=e.querySelectorAll("link[data-precedence],style[data-precedence]"),c=0;c<u.length;c++){var m=u[c];(m.nodeName==="LINK"||m.getAttribute("media")!=="not all")&&(a.set(m.dataset.precedence,m),s=m)}s&&a.set(null,s)}u=n.instance,m=u.getAttribute("data-precedence"),c=a.get(m)||s,c===s&&a.set(null,u),a.set(m,u),this.count++,s=Ho.bind(this),u.addEventListener("load",s),u.addEventListener("error",s),c?c.parentNode.insertBefore(u,c.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(u,e.firstChild)),n.state.loading|=4}}var qr={$$typeof:D,Provider:null,Consumer:null,_currentValue:G,_currentValue2:G,_threadCount:0};function B2(e,n,a,s,u,c,m,E,N){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=ca(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ca(0),this.hiddenUpdates=ca(null),this.identifierPrefix=s,this.onUncaughtError=u,this.onCaughtError=c,this.onRecoverableError=m,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=N,this.incompleteTransitions=new Map}function e1(e,n,a,s,u,c,m,E,N,I,q,ae){return e=new B2(e,n,a,m,N,I,q,ae,E),n=1,c===!0&&(n|=24),c=ta(3,null,null,n),e.current=c,c.stateNode=e,n=Gc(),n.refCount++,e.pooledCache=n,n.refCount++,c.memoizedState={element:s,isDehydrated:a,cache:n},Kc(c),e}function t1(e){return e?(e=xi,e):xi}function n1(e,n,a,s,u,c){u=t1(u),s.context===null?s.context=u:s.pendingContext=u,s=wl(n),s.payload={element:a},c=c===void 0?null:c,c!==null&&(s.callback=c),a=Tl(e,s,n),a!==null&&(qn(a,e,n),Nr(a,e,n))}function a1(e,n){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var a=e.retryLane;e.retryLane=a!==0&&a<n?a:n}}function hd(e,n){a1(e,n),(e=e.alternate)&&a1(e,n)}function l1(e){if(e.tag===13||e.tag===31){var n=Jl(e,67108864);n!==null&&qn(n,e,67108864),hd(e,67108864)}}function i1(e){if(e.tag===13||e.tag===31){var n=ra();n=Bt(n);var a=Jl(e,n);a!==null&&qn(a,e,n),hd(e,n)}}var Qo=!0;function U2(e,n,a,s){var u=j.T;j.T=null;var c=le.p;try{le.p=2,pd(e,n,a,s)}finally{le.p=c,j.T=u}}function H2(e,n,a,s){var u=j.T;j.T=null;var c=le.p;try{le.p=8,pd(e,n,a,s)}finally{le.p=c,j.T=u}}function pd(e,n,a,s){if(Qo){var u=gd(s);if(u===null)ed(e,n,s,Xo,a),s1(e,s);else if(V2(u,e,n,a,s))s.stopPropagation();else if(s1(e,s),n&4&&-1<I2.indexOf(e)){for(;u!==null;){var c=re(u);if(c!==null)switch(c.tag){case 3:if(c=c.stateNode,c.current.memoizedState.isDehydrated){var m=At(c.pendingLanes);if(m!==0){var E=c;for(E.pendingLanes|=2,E.entangledLanes|=2;m;){var N=1<<31-Je(m);E.entanglements[1]|=N,m&=~N}Ha(c),(ot&6)===0&&(Ao=st()+500,Yr(0))}}break;case 31:case 13:E=Jl(c,2),E!==null&&qn(E,c,2),xo(),hd(c,2)}if(c=gd(s),c===null&&ed(e,n,s,Xo,a),c===u)break;u=c}u!==null&&s.stopPropagation()}else ed(e,n,s,null,a)}}function gd(e){return e=mc(e),md(e)}var Xo=null;function md(e){if(Xo=null,e=$(e),e!==null){var n=f(e);if(n===null)e=null;else{var a=n.tag;if(a===13){if(e=d(n),e!==null)return e;e=null}else if(a===31){if(e=g(n),e!==null)return e;e=null}else if(a===3){if(n.stateNode.current.memoizedState.isDehydrated)return n.tag===3?n.stateNode.containerInfo:null;e=null}else n!==e&&(e=null)}}return Xo=e,null}function r1(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(Dn()){case Qt:return 2;case Rt:return 8;case zt:case cn:return 32;case fn:return 268435456;default:return 32}default:return 32}}var vd=!1,zl=null,jl=null,Bl=null,es=new Map,ts=new Map,Ul=[],I2="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 s1(e,n){switch(e){case"focusin":case"focusout":zl=null;break;case"dragenter":case"dragleave":jl=null;break;case"mouseover":case"mouseout":Bl=null;break;case"pointerover":case"pointerout":es.delete(n.pointerId);break;case"gotpointercapture":case"lostpointercapture":ts.delete(n.pointerId)}}function ns(e,n,a,s,u,c){return e===null||e.nativeEvent!==c?(e={blockedOn:n,domEventName:a,eventSystemFlags:s,nativeEvent:c,targetContainers:[u]},n!==null&&(n=re(n),n!==null&&l1(n)),e):(e.eventSystemFlags|=s,n=e.targetContainers,u!==null&&n.indexOf(u)===-1&&n.push(u),e)}function V2(e,n,a,s,u){switch(n){case"focusin":return zl=ns(zl,e,n,a,s,u),!0;case"dragenter":return jl=ns(jl,e,n,a,s,u),!0;case"mouseover":return Bl=ns(Bl,e,n,a,s,u),!0;case"pointerover":var c=u.pointerId;return es.set(c,ns(es.get(c)||null,e,n,a,s,u)),!0;case"gotpointercapture":return c=u.pointerId,ts.set(c,ns(ts.get(c)||null,e,n,a,s,u)),!0}return!1}function o1(e){var n=$(e.target);if(n!==null){var a=f(n);if(a!==null){if(n=a.tag,n===13){if(n=d(a),n!==null){e.blockedOn=n,Mn(e.priority,function(){i1(a)});return}}else if(n===31){if(n=g(a),n!==null){e.blockedOn=n,Mn(e.priority,function(){i1(a)});return}}else if(n===3&&a.stateNode.current.memoizedState.isDehydrated){e.blockedOn=a.tag===3?a.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Go(e){if(e.blockedOn!==null)return!1;for(var n=e.targetContainers;0<n.length;){var a=gd(e.nativeEvent);if(a===null){a=e.nativeEvent;var s=new a.constructor(a.type,a);gc=s,a.target.dispatchEvent(s),gc=null}else return n=re(a),n!==null&&l1(n),e.blockedOn=a,!1;n.shift()}return!0}function u1(e,n,a){Go(e)&&a.delete(n)}function Q2(){vd=!1,zl!==null&&Go(zl)&&(zl=null),jl!==null&&Go(jl)&&(jl=null),Bl!==null&&Go(Bl)&&(Bl=null),es.forEach(u1),ts.forEach(u1)}function Zo(e,n){e.blockedOn===n&&(e.blockedOn=null,vd||(vd=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,Q2)))}var Fo=null;function c1(e){Fo!==e&&(Fo=e,t.unstable_scheduleCallback(t.unstable_NormalPriority,function(){Fo===e&&(Fo=null);for(var n=0;n<e.length;n+=3){var a=e[n],s=e[n+1],u=e[n+2];if(typeof s!="function"){if(md(s||a)===null)continue;break}var c=re(a);c!==null&&(e.splice(n,3),n-=3,gf(c,{pending:!0,data:u,method:a.method,action:s},s,u))}}))}function Wi(e){function n(N){return Zo(N,e)}zl!==null&&Zo(zl,e),jl!==null&&Zo(jl,e),Bl!==null&&Zo(Bl,e),es.forEach(n),ts.forEach(n);for(var a=0;a<Ul.length;a++){var s=Ul[a];s.blockedOn===e&&(s.blockedOn=null)}for(;0<Ul.length&&(a=Ul[0],a.blockedOn===null);)o1(a),a.blockedOn===null&&Ul.shift();if(a=(e.ownerDocument||e).$$reactFormReplay,a!=null)for(s=0;s<a.length;s+=3){var u=a[s],c=a[s+1],m=u[et]||null;if(typeof c=="function")m||c1(a);else if(m){var E=null;if(c&&c.hasAttribute("formAction")){if(u=c,m=c[et]||null)E=m.formAction;else if(md(u)!==null)continue}else E=m.action;typeof E=="function"?a[s+1]=E:(a.splice(s,3),s-=3),c1(a)}}}function f1(){function e(c){c.canIntercept&&c.info==="react-transition"&&c.intercept({handler:function(){return new Promise(function(m){return u=m})},focusReset:"manual",scroll:"manual"})}function n(){u!==null&&(u(),u=null),s||setTimeout(a,20)}function a(){if(!s&&!navigation.transition){var c=navigation.currentEntry;c&&c.url!=null&&navigation.navigate(c.url,{state:c.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var s=!1,u=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",n),navigation.addEventListener("navigateerror",n),setTimeout(a,100),function(){s=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",n),navigation.removeEventListener("navigateerror",n),u!==null&&(u(),u=null)}}}function bd(e){this._internalRoot=e}Yo.prototype.render=bd.prototype.render=function(e){var n=this._internalRoot;if(n===null)throw Error(r(409));var a=n.current,s=ra();n1(a,s,e,n,null,null)},Yo.prototype.unmount=bd.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var n=e.containerInfo;n1(e.current,2,null,e,null,null),xo(),n[pn]=null}};function Yo(e){this._internalRoot=e}Yo.prototype.unstable_scheduleHydration=function(e){if(e){var n=Bn();e={blockedOn:null,target:e,priority:n};for(var a=0;a<Ul.length&&n!==0&&n<Ul[a].priority;a++);Ul.splice(a,0,e),a===0&&o1(e)}};var d1=l.version;if(d1!=="19.2.3")throw Error(r(527,d1,"19.2.3"));le.findDOMNode=function(e){var n=e._reactInternals;if(n===void 0)throw typeof e.render=="function"?Error(r(188)):(e=Object.keys(e).join(","),Error(r(268,e)));return e=p(n),e=e!==null?v(e):null,e=e===null?null:e.stateNode,e};var X2={bundleType:0,version:"19.2.3",rendererPackageName:"react-dom",currentDispatcherRef:j,reconcilerVersion:"19.2.3"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Ko=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Ko.isDisabled&&Ko.supportsFiber)try{dn=Ko.inject(X2),vt=Ko}catch{}}return ls.createRoot=function(e,n){if(!o(e))throw Error(r(299));var a=!1,s="",u=ym,c=_m,m=Sm;return n!=null&&(n.unstable_strictMode===!0&&(a=!0),n.identifierPrefix!==void 0&&(s=n.identifierPrefix),n.onUncaughtError!==void 0&&(u=n.onUncaughtError),n.onCaughtError!==void 0&&(c=n.onCaughtError),n.onRecoverableError!==void 0&&(m=n.onRecoverableError)),n=e1(e,1,!1,null,null,a,s,null,u,c,m,f1),e[pn]=n.current,qf(e),new bd(n)},ls.hydrateRoot=function(e,n,a){if(!o(e))throw Error(r(299));var s=!1,u="",c=ym,m=_m,E=Sm,N=null;return a!=null&&(a.unstable_strictMode===!0&&(s=!0),a.identifierPrefix!==void 0&&(u=a.identifierPrefix),a.onUncaughtError!==void 0&&(c=a.onUncaughtError),a.onCaughtError!==void 0&&(m=a.onCaughtError),a.onRecoverableError!==void 0&&(E=a.onRecoverableError),a.formState!==void 0&&(N=a.formState)),n=e1(e,1,!0,n,a??null,s,u,N,c,m,E,f1),n.context=t1(null),a=n.current,s=ra(),s=Bt(s),u=wl(s),u.callback=null,Tl(a,u,s),a=s,n.current.lanes=a,jn(n,a),Ha(n),e[pn]=n.current,qf(e),new Yo(n)},ls.version="19.2.3",ls}var E1;function eS(){if(E1)return _d.exports;E1=1;function t(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(l){console.error(l)}}return t(),_d.exports=q2(),_d.exports}var tS=eS(),Z=Ku();const Vv=Z2(Z);var Ad={exports:{}},Cd={};var w1;function nS(){if(w1)return Cd;w1=1;var t=Ku();function l(h,p){return h===p&&(h!==0||1/h===1/p)||h!==h&&p!==p}var i=typeof Object.is=="function"?Object.is:l,r=t.useSyncExternalStore,o=t.useRef,f=t.useEffect,d=t.useMemo,g=t.useDebugValue;return Cd.useSyncExternalStoreWithSelector=function(h,p,v,S,y){var T=o(null);if(T.current===null){var A={hasValue:!1,value:null};T.current=A}else A=T.current;T=d(function(){function w(U){if(!x){if(x=!0,C=U,U=S(U),y!==void 0&&A.hasValue){var H=A.value;if(y(H,U))return D=H}return D=U}if(H=D,i(C,U))return H;var L=S(U);return y!==void 0&&y(H,L)?(C=U,H):(C=U,D=L)}var x=!1,C,D,k=v===void 0?null:v;return[function(){return w(p())},k===null?void 0:function(){return w(k())}]},[p,v,S,y]);var _=r(h,T[0],T[1]);return f(function(){A.hasValue=!0,A.value=_},[_]),g(_),_},Cd}var T1;function aS(){return T1||(T1=1,Ad.exports=nS()),Ad.exports}var lS=aS(),iS=Z.version.startsWith("19"),rS=Symbol.for(iS?"react.transitional.element":"react.element"),sS=Symbol.for("react.portal"),oS=Symbol.for("react.fragment"),uS=Symbol.for("react.strict_mode"),cS=Symbol.for("react.profiler"),fS=Symbol.for("react.consumer"),dS=Symbol.for("react.context"),Qv=Symbol.for("react.forward_ref"),hS=Symbol.for("react.suspense"),pS=Symbol.for("react.suspense_list"),Mh=Symbol.for("react.memo"),gS=Symbol.for("react.lazy"),mS=Qv,vS=Mh;function bS(t){if(typeof t=="object"&&t!==null){const{$$typeof:l}=t;switch(l){case rS:switch(t=t.type,t){case oS:case cS:case uS:case hS:case pS:return t;default:switch(t=t&&t.$$typeof,t){case dS:case Qv:case gS:case Mh:return t;case fS:return t;default:return l}}case sS:return l}}}function yS(t){return bS(t)===Mh}function _S(t,l,i,r,{areStatesEqual:o,areOwnPropsEqual:f,areStatePropsEqual:d}){let g=!1,h,p,v,S,y;function T(C,D){return h=C,p=D,v=t(h,p),S=l(r,p),y=i(v,S,p),g=!0,y}function A(){return v=t(h,p),l.dependsOnOwnProps&&(S=l(r,p)),y=i(v,S,p),y}function _(){return t.dependsOnOwnProps&&(v=t(h,p)),l.dependsOnOwnProps&&(S=l(r,p)),y=i(v,S,p),y}function w(){const C=t(h,p),D=!d(C,v);return v=C,D&&(y=i(v,S,p)),y}function x(C,D){const k=!f(D,p),U=!o(C,h,D,p);return h=C,p=D,k&&U?A():k?_():U?w():y}return function(D,k){return g?x(D,k):T(D,k)}}function SS(t,{initMapStateToProps:l,initMapDispatchToProps:i,initMergeProps:r,...o}){const f=l(t,o),d=i(t,o),g=r(t,o);return _S(f,d,g,t,o)}function ES(t,l){const i={};for(const r in t){const o=t[r];typeof o=="function"&&(i[r]=(...f)=>l(o(...f)))}return i}function Pd(t){return function(i){const r=t(i);function o(){return r}return o.dependsOnOwnProps=!1,o}}function A1(t){return t.dependsOnOwnProps?!!t.dependsOnOwnProps:t.length!==1}function Xv(t,l){return function(r,{displayName:o}){const f=function(g,h){return f.dependsOnOwnProps?f.mapToProps(g,h):f.mapToProps(g,void 0)};return f.dependsOnOwnProps=!0,f.mapToProps=function(g,h){f.mapToProps=t,f.dependsOnOwnProps=A1(t);let p=f(g,h);return typeof p=="function"&&(f.mapToProps=p,f.dependsOnOwnProps=A1(p),p=f(g,h)),p},f}}function kh(t,l){return(i,r)=>{throw new Error(`Invalid value of type ${typeof t} for ${l} argument when connecting component ${r.wrappedComponentName}.`)}}function wS(t){return t&&typeof t=="object"?Pd(l=>ES(t,l)):t?typeof t=="function"?Xv(t):kh(t,"mapDispatchToProps"):Pd(l=>({dispatch:l}))}function TS(t){return t?typeof t=="function"?Xv(t):kh(t,"mapStateToProps"):Pd(()=>({}))}function AS(t,l,i){return{...i,...t,...l}}function CS(t){return function(i,{displayName:r,areMergedPropsEqual:o}){let f=!1,d;return function(h,p,v){const S=t(h,p,v);return f?o(S,d)||(d=S):(f=!0,d=S),d}}}function xS(t){return t?typeof t=="function"?CS(t):kh(t,"mergeProps"):()=>AS}function OS(t){t()}function DS(){let t=null,l=null;return{clear(){t=null,l=null},notify(){OS(()=>{let i=t;for(;i;)i.callback(),i=i.next})},get(){const i=[];let r=t;for(;r;)i.push(r),r=r.next;return i},subscribe(i){let r=!0;const o=l={callback:i,next:null,prev:l};return o.prev?o.prev.next=o:t=o,function(){!r||t===null||(r=!1,o.next?o.next.prev=o.prev:l=o.prev,o.prev?o.prev.next=o.next:t=o.next)}}}}var C1={notify(){},get:()=>[]};function Gv(t,l){let i,r=C1,o=0,f=!1;function d(_){v();const w=r.subscribe(_);let x=!1;return()=>{x||(x=!0,w(),S())}}function g(){r.notify()}function h(){A.onStateChange&&A.onStateChange()}function p(){return f}function v(){o++,i||(i=l?l.addNestedSub(h):t.subscribe(h),r=DS())}function S(){o--,i&&o===0&&(i(),i=void 0,r.clear(),r=C1)}function y(){f||(f=!0,v())}function T(){f&&(f=!1,S())}const A={addNestedSub:d,notifyNestedSubs:g,handleChangeWrapper:h,isSubscribed:p,trySubscribe:y,tryUnsubscribe:T,getListeners:()=>r};return A}var RS=()=>typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",NS=RS(),MS=()=>typeof navigator<"u"&&navigator.product==="ReactNative",kS=MS(),LS=()=>NS||kS?Z.useLayoutEffect:Z.useEffect,Su=LS();function x1(t,l){return t===l?t!==0||l!==0||1/t===1/l:t!==t&&l!==l}function xd(t,l){if(x1(t,l))return!0;if(typeof t!="object"||t===null||typeof l!="object"||l===null)return!1;const i=Object.keys(t),r=Object.keys(l);if(i.length!==r.length)return!1;for(let o=0;o<i.length;o++)if(!Object.prototype.hasOwnProperty.call(l,i[o])||!x1(t[i[o]],l[i[o]]))return!1;return!0}var zS={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},jS={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},BS={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Zv={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},US={[mS]:BS,[vS]:Zv};function O1(t){return yS(t)?Zv:US[t.$$typeof]||zS}var HS=Object.defineProperty,IS=Object.getOwnPropertyNames,D1=Object.getOwnPropertySymbols,VS=Object.getOwnPropertyDescriptor,QS=Object.getPrototypeOf,R1=Object.prototype;function Wd(t,l){if(typeof l!="string"){if(R1){const f=QS(l);f&&f!==R1&&Wd(t,f)}let i=IS(l);D1&&(i=i.concat(D1(l)));const r=O1(t),o=O1(l);for(let f=0;f<i.length;++f){const d=i[f];if(!jS[d]&&!(o&&o[d])&&!(r&&r[d])){const g=VS(l,d);try{HS(t,d,g)}catch{}}}}return t}var XS=Symbol.for("react-redux-context"),GS=typeof globalThis<"u"?globalThis:{};function ZS(){if(!Z.createContext)return{};const t=GS[XS]??=new Map;let l=t.get(Z.createContext);return l||(l=Z.createContext(null),t.set(Z.createContext,l)),l}var dl=ZS(),FS=[null,null];function YS(t,l,i){Su(()=>t(...l),i)}function KS(t,l,i,r,o,f){t.current=r,i.current=!1,o.current&&(o.current=null,f())}function JS(t,l,i,r,o,f,d,g,h,p,v){if(!t)return()=>{};let S=!1,y=null;const T=()=>{if(S||!g.current)return;const _=l.getState();let w,x;try{w=r(_,o.current)}catch(C){x=C,y=C}x||(y=null),w===f.current?d.current||p():(f.current=w,h.current=w,d.current=!0,v())};return i.onStateChange=T,i.trySubscribe(),T(),()=>{if(S=!0,i.tryUnsubscribe(),i.onStateChange=null,y)throw y}}function PS(t,l){return t===l}function WS(t,l,i,{pure:r,areStatesEqual:o=PS,areOwnPropsEqual:f=xd,areStatePropsEqual:d=xd,areMergedPropsEqual:g=xd,forwardRef:h=!1,context:p=dl}={}){const v=p,S=TS(t),y=wS(l),T=xS(i),A=!!t;return w=>{const x=w.displayName||w.name||"Component",C=`Connect(${x})`,D={shouldHandleStateChanges:A,displayName:C,wrappedComponentName:x,WrappedComponent:w,initMapStateToProps:S,initMapDispatchToProps:y,initMergeProps:T,areStatesEqual:o,areStatePropsEqual:d,areOwnPropsEqual:f,areMergedPropsEqual:g};function k(L){const[Y,X,W]=Z.useMemo(()=>{const{reactReduxForwardedRef:Ae,...mt}=L;return[L.context,Ae,mt]},[L]),K=Z.useMemo(()=>{let Ae=v;return Y?.Consumer,Ae},[Y,v]),P=Z.useContext(K),fe=!!L.store&&!!L.store.getState&&!!L.store.dispatch,he=!!P&&!!P.store,de=fe?L.store:P.store,j=he?P.getServerState:de.getState,le=Z.useMemo(()=>SS(de.dispatch,D),[de]),[G,be]=Z.useMemo(()=>{if(!A)return FS;const Ae=Gv(de,fe?void 0:P.subscription),mt=Ae.notifyNestedSubs.bind(Ae);return[Ae,mt]},[de,fe,P]),ge=Z.useMemo(()=>fe?P:{...P,subscription:G},[fe,P,G]),O=Z.useRef(void 0),J=Z.useRef(W),ee=Z.useRef(void 0),oe=Z.useRef(!1),ne=Z.useRef(!1),ce=Z.useRef(void 0);Su(()=>(ne.current=!0,()=>{ne.current=!1}),[]);const me=Z.useMemo(()=>()=>ee.current&&W===J.current?ee.current:le(de.getState(),W),[de,W]),Se=Z.useMemo(()=>mt=>G?JS(A,de,G,le,J,O,oe,ne,ee,be,mt):()=>{},[G]);YS(KS,[J,O,oe,W,ee,be]);let we;try{we=Z.useSyncExternalStore(Se,me,j?()=>le(j(),W):me)}catch(Ae){throw ce.current&&(Ae.message+=`
10
10
  The error may be correlated with this previous error:
11
11
  ${ce.current.stack}
12
12
 
13
- `),Ae}Su(()=>{ce.current=void 0,ee.current=void 0,O.current=we});const Be=Z.useMemo(()=>Z.createElement(w,{...we,ref:X}),[X,w,we]);return Z.useMemo(()=>A?Z.createElement(K.Provider,{value:ge},Be):Be,[K,Be,ge])}const H=Z.memo(k);if(H.WrappedComponent=w,H.displayName=k.displayName=C,h){const Y=Z.forwardRef(function(W,K){return Z.createElement(H,{...W,reactReduxForwardedRef:K})});return Y.displayName=C,Y.WrappedComponent=w,Wd(Y,w)}return Wd(H,w)}}var WS=PS;function $S(t){const{children:l,context:i,serverState:r,store:o}=t,f=Z.useMemo(()=>{const h=Gv(o);return{store:o,subscription:h,getServerState:r?()=>r:void 0}},[o,r]),d=Z.useMemo(()=>o.getState(),[o]);Su(()=>{const{subscription:h}=f;return h.onStateChange=h.notifyNestedSubs,h.trySubscribe(),d!==o.getState()&&h.notifyNestedSubs(),()=>{h.tryUnsubscribe(),h.onStateChange=void 0}},[f,d]);const g=i||dl;return Z.createElement(g.Provider,{value:f},l)}var qS=$S;function Lh(t=dl){return function(){return Z.useContext(t)}}var Fv=Lh();function Yv(t=dl){const l=t===dl?Fv:Lh(t),i=()=>{const{store:r}=l();return r};return Object.assign(i,{withTypes:()=>i}),i}var eE=Yv();function tE(t=dl){const l=t===dl?eE:Yv(t),i=()=>l().dispatch;return Object.assign(i,{withTypes:()=>i}),i}var nE=tE(),aE=(t,l)=>t===l;function lE(t=dl){const l=t===dl?Fv:Lh(t),i=(r,o={})=>{const{equalityFn:f=aE}=typeof o=="function"?{equalityFn:o}:o,d=l(),{store:g,subscription:h,getServerState:p}=d;Z.useRef(!0);const v=Z.useCallback({[r.name](y){return r(y)}}[r.name],[r]),S=aS.useSyncExternalStoreWithSelector(h.addNestedSub,g.getState,p||g.getState,v,f);return Z.useDebugValue(S),S};return Object.assign(i,{withTypes:()=>i}),i}var iE=lE();function Kv(t){var l,i,r="";if(typeof t=="string"||typeof t=="number")r+=t;else if(typeof t=="object")if(Array.isArray(t)){var o=t.length;for(l=0;l<o;l++)t[l]&&(i=Kv(t[l]))&&(r&&(r+=" "),r+=i)}else for(i in t)t[i]&&(r&&(r+=" "),r+=i);return r}function se(){for(var t,l,i=0,r="",o=arguments.length;i<o;i++)(t=arguments[i])&&(l=Kv(t))&&(r&&(r+=" "),r+=l);return r}const rE="_app_1rj0t_1",sE={app:rE},Jv="core.typing.on",Pv="core.typing.off",zh="core.message.from.guest",Wv="core.message.without.analysis.from.guest",$v="core.message.to.guest",oE="core.nlu.request.event",qv="core.event.to.guest",uE="core.chat.restart.request",cE="core.transcript.mail.request",eb="core.transcript.item.guest.reaction",jh="core.conversation.rating.from.guest",fE="core.drawer.open",dE="core.drawer.close",hE="core.guest.locale.changed";var Eu;(function(t){t.WEB_URL="web_url",t.POSTBACK="postback"})(Eu||(Eu={}));var N1;(function(t){t.GOOD="GOOD",t.BAD="BAD"})(N1||(N1={}));let pE=class{type;sender;sources;quickReplies;constructor(l,i,r=[],o=[]){this.type=l,this.sender=i,this.sources=r,this.quickReplies=o}addQuickReply(l,i){this.quickReplies.push({label:l,payload:i})}},Ju=class extends pE{text;constructor(l,i,r=[],o=[]){super(ar.TEXT,i,r,o),this.text=l}};var ar;(function(t){t.TEXT="TEXT",t.DETAIL="DETAIL",t.MARKDOWN="MARKDOWN",t.VIDEO="VIDEO",t.IMAGE="IMAGE",t.FILE="FILE",t.AUDIO="AUDIO"})(ar||(ar={}));class tb{type;id;name;avatar;constructor(l,i,r,o){this.type=l,this.id=i,this.name=r,this.avatar=o}}class gE extends tb{constructor(){super(hl.BOT,null,"Chatbot","bot.svg")}}class Bh extends tb{constructor(){super(hl.GUEST,null,"Guest","visitor.svg")}}var hl;(function(t){t.GUEST="GUEST",t.BOT="BOT",t.PERSON="PERSON"})(hl||(hl={}));const mE=t=>{const l=new Ju(t,new Bh);return{type:zh,message:l}},vE=(t,l={})=>{const i=new Ju(t,new Bh);return{type:Wv,message:i,payload:l}},bE=t=>({type:oE,event:t}),yE=(t,l,i=null,r=null)=>({type:eb,payload:{actionId:t,reaction:l,category:i,comment:r}}),nb=t=>l=>(t.payload.type!==zh&&l(vE(t.label,t.payload)),l(t.payload)),ab=t=>(l,i)=>{const{quickReplies:r}=i().chat,o=r.find(f=>t.toLocaleLowerCase().indexOf(f.label.toLocaleLowerCase())>-1);return l(o?nb({...o,label:t}):JSON.parse(JSON.stringify(mE(t))))},Uh="MESSAGE_TO_PARENT_PAGE",Hh="RESTORE_PREVIOUS_CHAT_MESSAGES",Ih="AUDIO_MESSAGE_FROM_USER",Vh="RECEIVE_SPEECH_TRANSCRIPTION",Qh="ENABLE_CONVERSATION_RATING",lb="LOAD_SOURCE_INFOS_RESPONSE",Xh="LOAD_SOURCE_INFOS_ERROR",Gh="LOAD_SOURCE_INFOS_REQUEST",Zh="CLOSE_SOURCE_INFOS",_E="webclient.get.started",ib="webclient.window.expand",rb="webclient.window.close",sb="webclient.transcript.pdf.download",SE=[Uh,Hh,Ih,Vh,Qh,Gh,Zh],EE=t=>({type:Ih,buffer:t}),wE=t=>({type:Vh,transcription:t}),TE=t=>({type:cE,payload:{parameters:{mailTo:t}}}),AE=()=>({type:sb}),CE=({rating:t})=>({type:Qh,payload:{rating:t}}),xE=(t,l)=>({type:jh,payload:{value:t,feedback:l}}),ob=t=>bE(t),OE=t=>({type:Hh,messages:t}),DE=t=>{switch(t.type){case Eu.WEB_URL:return cb(t.url);case Eu.POSTBACK:return t.payload;default:throw new Error(`unknown button type ${t.type}`)}},ub=t=>cb(t),cb=t=>({type:Uh,message:{type:"webclient.change.url",url:t}});function Jo(t){for(var l=1;l<arguments.length;l++){var i=arguments[l];for(var r in i)t[r]=i[r]}return t}var RE={read:function(t){return t[0]==='"'&&(t=t.slice(1,-1)),t.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(t){return encodeURIComponent(t).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}};function $d(t,l){function i(o,f,d){if(!(typeof document>"u")){d=Jo({},l,d),typeof d.expires=="number"&&(d.expires=new Date(Date.now()+d.expires*864e5)),d.expires&&(d.expires=d.expires.toUTCString()),o=encodeURIComponent(o).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var g="";for(var h in d)d[h]&&(g+="; "+h,d[h]!==!0&&(g+="="+d[h].split(";")[0]));return document.cookie=o+"="+t.write(f,o)+g}}function r(o){if(!(typeof document>"u"||arguments.length&&!o)){for(var f=document.cookie?document.cookie.split("; "):[],d={},g=0;g<f.length;g++){var h=f[g].split("="),p=h.slice(1).join("=");try{var v=decodeURIComponent(h[0]);if(d[v]=t.read(p,v),o===v)break}catch{}}return o?d[o]:d}}return Object.create({set:i,get:r,remove:function(o,f){i(o,"",Jo({},f,{expires:-1}))},withAttributes:function(o){return $d(this.converter,Jo({},this.attributes,o))},withConverter:function(o){return $d(Jo({},this.converter,o),this.attributes)}},{attributes:{value:Object.freeze(l)},converter:{value:Object.freeze(t)}})}var Po=$d(RE,{path:"/"});const An=[];for(let t=0;t<256;++t)An.push((t+256).toString(16).slice(1));function NE(t,l=0){return(An[t[l+0]]+An[t[l+1]]+An[t[l+2]]+An[t[l+3]]+"-"+An[t[l+4]]+An[t[l+5]]+"-"+An[t[l+6]]+An[t[l+7]]+"-"+An[t[l+8]]+An[t[l+9]]+"-"+An[t[l+10]]+An[t[l+11]]+An[t[l+12]]+An[t[l+13]]+An[t[l+14]]+An[t[l+15]]).toLowerCase()}let Od;const ME=new Uint8Array(16);function kE(){if(!Od){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");Od=crypto.getRandomValues.bind(crypto)}return Od(ME)}const LE=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),M1={randomUUID:LE};function zE(t,l,i){t=t||{};const r=t.random??t.rng?.()??kE();if(r.length<16)throw new Error("Random bytes length must be >= 16");return r[6]=r[6]&15|64,r[8]=r[8]&63|128,NE(r)}function wu(t,l,i){return M1.randomUUID&&!t?M1.randomUUID():zE(t)}const Fh=()=>jE(window.location.pathname),jE=t=>{const l=t.split("/"),i=t.endsWith("/");return l[l.length-(i?2:1)]};function Cn(t){return`Minified Redux error #${t}; visit https://redux.js.org/Errors?code=${t} for the full message or use the non-minified dev environment for full errors. `}var BE=typeof Symbol=="function"&&Symbol.observable||"@@observable",k1=BE,Dd=()=>Math.random().toString(36).substring(7).split("").join("."),UE={INIT:`@@redux/INIT${Dd()}`,REPLACE:`@@redux/REPLACE${Dd()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${Dd()}`},Tu=UE;function Yh(t){if(typeof t!="object"||t===null)return!1;let l=t;for(;Object.getPrototypeOf(l)!==null;)l=Object.getPrototypeOf(l);return Object.getPrototypeOf(t)===l||Object.getPrototypeOf(t)===null}function fb(t,l,i){if(typeof t!="function")throw new Error(Cn(2));if(typeof l=="function"&&typeof i=="function"||typeof i=="function"&&typeof arguments[3]=="function")throw new Error(Cn(0));if(typeof l=="function"&&typeof i>"u"&&(i=l,l=void 0),typeof i<"u"){if(typeof i!="function")throw new Error(Cn(1));return i(fb)(t,l)}let r=t,o=l,f=new Map,d=f,g=0,h=!1;function p(){d===f&&(d=new Map,f.forEach((w,x)=>{d.set(x,w)}))}function v(){if(h)throw new Error(Cn(3));return o}function S(w){if(typeof w!="function")throw new Error(Cn(4));if(h)throw new Error(Cn(5));let x=!0;p();const C=g++;return d.set(C,w),function(){if(x){if(h)throw new Error(Cn(6));x=!1,p(),d.delete(C),f=null}}}function y(w){if(!Yh(w))throw new Error(Cn(7));if(typeof w.type>"u")throw new Error(Cn(8));if(typeof w.type!="string")throw new Error(Cn(17));if(h)throw new Error(Cn(9));try{h=!0,o=r(o,w)}finally{h=!1}return(f=d).forEach(C=>{C()}),w}function T(w){if(typeof w!="function")throw new Error(Cn(10));r=w,y({type:Tu.REPLACE})}function A(){const w=S;return{subscribe(x){if(typeof x!="object"||x===null)throw new Error(Cn(11));function C(){const k=x;k.next&&k.next(v())}return C(),{unsubscribe:w(C)}},[k1](){return this}}}return y({type:Tu.INIT}),{dispatch:y,subscribe:S,getState:v,replaceReducer:T,[k1]:A}}function HE(t){Object.keys(t).forEach(l=>{const i=t[l];if(typeof i(void 0,{type:Tu.INIT})>"u")throw new Error(Cn(12));if(typeof i(void 0,{type:Tu.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(Cn(13))})}function db(t){const l=Object.keys(t),i={};for(let f=0;f<l.length;f++){const d=l[f];typeof t[d]=="function"&&(i[d]=t[d])}const r=Object.keys(i);let o;try{HE(i)}catch(f){o=f}return function(d={},g){if(o)throw o;let h=!1;const p={};for(let v=0;v<r.length;v++){const S=r[v],y=i[S],T=d[S],A=y(T,g);if(typeof A>"u")throw g&&g.type,new Error(Cn(14));p[S]=A,h=h||A!==T}return h=h||r.length!==Object.keys(d).length,h?p:d}}function Au(...t){return t.length===0?l=>l:t.length===1?t[0]:t.reduce((l,i)=>(...r)=>l(i(...r)))}function IE(...t){return l=>(i,r)=>{const o=l(i,r);let f=()=>{throw new Error(Cn(15))};const d={getState:o.getState,dispatch:(h,...p)=>f(h,...p)},g=t.map(h=>h(d));return f=Au(...g)(o.dispatch),{...o,dispatch:f}}}function VE(t){return Yh(t)&&"type"in t&&typeof t.type=="string"}var hb=Symbol.for("immer-nothing"),L1=Symbol.for("immer-draftable"),Qn=Symbol.for("immer-state");function Ra(t,...l){throw new Error(`[Immer] minified error nr: ${t}. Full error at: https://bit.ly/3cXEKWf`)}var oa=Object,ir=oa.getPrototypeOf,Cu="constructor",Pu="prototype",qd="configurable",xu="enumerable",cu="writable",_s="value",pl=t=>!!t&&!!t[Qn];function Na(t){return t?pb(t)||Wu(t)||!!t[L1]||!!t[Cu]?.[L1]||$u(t)||qu(t):!1}var QE=oa[Pu][Cu].toString(),z1=new WeakMap;function pb(t){if(!t||!Kh(t))return!1;const l=ir(t);if(l===null||l===oa[Pu])return!0;const i=oa.hasOwnProperty.call(l,Cu)&&l[Cu];if(i===Object)return!0;if(!er(i))return!1;let r=z1.get(i);return r===void 0&&(r=Function.toString.call(i),z1.set(i,r)),r===QE}function Ns(t,l,i=!0){Ms(t)===0?(i?Reflect.ownKeys(t):oa.keys(t)).forEach(o=>{l(o,t[o],t)}):t.forEach((r,o)=>l(o,r,t))}function Ms(t){const l=t[Qn];return l?l.type_:Wu(t)?1:$u(t)?2:qu(t)?3:0}var j1=(t,l,i=Ms(t))=>i===2?t.has(l):oa[Pu].hasOwnProperty.call(t,l),eh=(t,l,i=Ms(t))=>i===2?t.get(l):t[l],Ou=(t,l,i,r=Ms(t))=>{r===2?t.set(l,i):r===3?t.add(i):t[l]=i};function XE(t,l){return t===l?t!==0||1/t===1/l:t!==t&&l!==l}var Wu=Array.isArray,$u=t=>t instanceof Map,qu=t=>t instanceof Set,Kh=t=>typeof t=="object",er=t=>typeof t=="function",Rd=t=>typeof t=="boolean",ol=t=>t.copy_||t.base_,Jh=t=>t.modified_?t.copy_:t.base_;function th(t,l){if($u(t))return new Map(t);if(qu(t))return new Set(t);if(Wu(t))return Array[Pu].slice.call(t);const i=pb(t);if(l===!0||l==="class_only"&&!i){const r=oa.getOwnPropertyDescriptors(t);delete r[Qn];let o=Reflect.ownKeys(r);for(let f=0;f<o.length;f++){const d=o[f],g=r[d];g[cu]===!1&&(g[cu]=!0,g[qd]=!0),(g.get||g.set)&&(r[d]={[qd]:!0,[cu]:!0,[xu]:g[xu],[_s]:t[d]})}return oa.create(ir(t),r)}else{const r=ir(t);if(r!==null&&i)return{...t};const o=oa.create(r);return oa.assign(o,t)}}function Ph(t,l=!1){return ec(t)||pl(t)||!Na(t)||(Ms(t)>1&&oa.defineProperties(t,{set:Wo,add:Wo,clear:Wo,delete:Wo}),oa.freeze(t),l&&Ns(t,(i,r)=>{Ph(r,!0)},!1)),t}function GE(){Ra(2)}var Wo={[_s]:GE};function ec(t){return t===null||!Kh(t)?!0:oa.isFrozen(t)}var Du="MapSet",nh="Patches",gb={};function rr(t){const l=gb[t];return l||Ra(0,t),l}var ZE=t=>!!gb[t],Ss,mb=()=>Ss,FE=(t,l)=>({drafts_:[],parent_:t,immer_:l,canAutoFreeze_:!0,unfinalizedDrafts_:0,handledSet_:new Set,processedForPatches_:new Set,mapSetPlugin_:ZE(Du)?rr(Du):void 0});function B1(t,l){l&&(t.patchPlugin_=rr(nh),t.patches_=[],t.inversePatches_=[],t.patchListener_=l)}function ah(t){lh(t),t.drafts_.forEach(YE),t.drafts_=null}function lh(t){t===Ss&&(Ss=t.parent_)}var U1=t=>Ss=FE(Ss,t);function YE(t){const l=t[Qn];l.type_===0||l.type_===1?l.revoke_():l.revoked_=!0}function H1(t,l){l.unfinalizedDrafts_=l.drafts_.length;const i=l.drafts_[0];if(t!==void 0&&t!==i){i[Qn].modified_&&(ah(l),Ra(4)),Na(t)&&(t=I1(l,t));const{patchPlugin_:o}=l;o&&o.generateReplacementPatches_(i[Qn].base_,t,l)}else t=I1(l,i);return KE(l,t,!0),ah(l),l.patches_&&l.patchListener_(l.patches_,l.inversePatches_),t!==hb?t:void 0}function I1(t,l){if(ec(l))return l;const i=l[Qn];if(!i)return Wh(l,t.handledSet_,t);if(!tc(i,t))return l;if(!i.modified_)return i.base_;if(!i.finalized_){const{callbacks_:r}=i;if(r)for(;r.length>0;)r.pop()(t);yb(i,t)}return i.copy_}function KE(t,l,i=!1){!t.parent_&&t.immer_.autoFreeze_&&t.canAutoFreeze_&&Ph(l,i)}function vb(t){t.finalized_=!0,t.scope_.unfinalizedDrafts_--}var tc=(t,l)=>t.scope_===l,JE=[];function bb(t,l,i,r){const o=ol(t),f=t.type_;if(r!==void 0&&eh(o,r,f)===l){Ou(o,r,i,f);return}if(!t.draftLocations_){const g=t.draftLocations_=new Map;Ns(o,(h,p)=>{if(pl(p)){const v=g.get(p)||[];v.push(h),g.set(p,v)}})}const d=t.draftLocations_.get(l)??JE;for(const g of d)Ou(o,g,i,f)}function PE(t,l,i){t.callbacks_.push(function(o){const f=l;if(!f||!tc(f,o))return;o.mapSetPlugin_?.fixSetContents(f);const d=Jh(f);bb(t,f.draft_??f,d,i),yb(f,o)})}function yb(t,l){if(t.modified_&&!t.finalized_&&(t.type_===3||(t.assigned_?.size??0)>0)){const{patchPlugin_:r}=l;if(r){const o=r.getPath(t);o&&r.generatePatches_(t,o,l)}vb(t)}}function WE(t,l,i){const{scope_:r}=t;if(pl(i)){const o=i[Qn];tc(o,r)&&o.callbacks_.push(function(){fu(t);const d=Jh(o);bb(t,i,d,l)})}else Na(i)&&t.callbacks_.push(function(){const f=ol(t);eh(f,l,t.type_)===i&&r.drafts_.length>1&&(t.assigned_.get(l)??!1)===!0&&t.copy_&&Wh(eh(t.copy_,l,t.type_),r.handledSet_,r)})}function Wh(t,l,i){return!i.immer_.autoFreeze_&&i.unfinalizedDrafts_<1||pl(t)||l.has(t)||!Na(t)||ec(t)||(l.add(t),Ns(t,(r,o)=>{if(pl(o)){const f=o[Qn];if(tc(f,i)){const d=Jh(f);Ou(t,r,d,t.type_),vb(f)}}else Na(o)&&Wh(o,l,i)})),t}function $E(t,l){const i=Wu(t),r={type_:i?1:0,scope_:l?l.scope_:mb(),modified_:!1,finalized_:!1,assigned_:void 0,parent_:l,base_:t,draft_:null,copy_:null,revoke_:null,isManual_:!1,callbacks_:void 0};let o=r,f=$h;i&&(o=[r],f=Es);const{revoke:d,proxy:g}=Proxy.revocable(o,f);return r.draft_=g,r.revoke_=d,[g,r]}var $h={get(t,l){if(l===Qn)return t;const i=ol(t);if(!j1(i,l,t.type_))return qE(t,i,l);const r=i[l];if(t.finalized_||!Na(r))return r;if(r===Nd(t.base_,l)){fu(t);const o=t.type_===1?+l:l,f=rh(t.scope_,r,t,o);return t.copy_[o]=f}return r},has(t,l){return l in ol(t)},ownKeys(t){return Reflect.ownKeys(ol(t))},set(t,l,i){const r=_b(ol(t),l);if(r?.set)return r.set.call(t.draft_,i),!0;if(!t.modified_){const o=Nd(ol(t),l),f=o?.[Qn];if(f&&f.base_===i)return t.copy_[l]=i,t.assigned_.set(l,!1),!0;if(XE(i,o)&&(i!==void 0||j1(t.base_,l,t.type_)))return!0;fu(t),ih(t)}return t.copy_[l]===i&&(i!==void 0||l in t.copy_)||Number.isNaN(i)&&Number.isNaN(t.copy_[l])||(t.copy_[l]=i,t.assigned_.set(l,!0),WE(t,l,i)),!0},deleteProperty(t,l){return fu(t),Nd(t.base_,l)!==void 0||l in t.base_?(t.assigned_.set(l,!1),ih(t)):t.assigned_.delete(l),t.copy_&&delete t.copy_[l],!0},getOwnPropertyDescriptor(t,l){const i=ol(t),r=Reflect.getOwnPropertyDescriptor(i,l);return r&&{[cu]:!0,[qd]:t.type_!==1||l!=="length",[xu]:r[xu],[_s]:i[l]}},defineProperty(){Ra(11)},getPrototypeOf(t){return ir(t.base_)},setPrototypeOf(){Ra(12)}},Es={};Ns($h,(t,l)=>{Es[t]=function(){const i=arguments;return i[0]=i[0][0],l.apply(this,i)}});Es.deleteProperty=function(t,l){return Es.set.call(this,t,l,void 0)};Es.set=function(t,l,i){return $h.set.call(this,t[0],l,i,t[0])};function Nd(t,l){const i=t[Qn];return(i?ol(i):t)[l]}function qE(t,l,i){const r=_b(l,i);return r?_s in r?r[_s]:r.get?.call(t.draft_):void 0}function _b(t,l){if(!(l in t))return;let i=ir(t);for(;i;){const r=Object.getOwnPropertyDescriptor(i,l);if(r)return r;i=ir(i)}}function ih(t){t.modified_||(t.modified_=!0,t.parent_&&ih(t.parent_))}function fu(t){t.copy_||(t.assigned_=new Map,t.copy_=th(t.base_,t.scope_.immer_.useStrictShallowCopy_))}var e3=class{constructor(t){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!1,this.produce=(l,i,r)=>{if(er(l)&&!er(i)){const f=i;i=l;const d=this;return function(h=f,...p){return d.produce(h,v=>i.call(this,v,...p))}}er(i)||Ra(6),r!==void 0&&!er(r)&&Ra(7);let o;if(Na(l)){const f=U1(this),d=rh(f,l,void 0);let g=!0;try{o=i(d),g=!1}finally{g?ah(f):lh(f)}return B1(f,r),H1(o,f)}else if(!l||!Kh(l)){if(o=i(l),o===void 0&&(o=l),o===hb&&(o=void 0),this.autoFreeze_&&Ph(o,!0),r){const f=[],d=[];rr(nh).generateReplacementPatches_(l,o,{patches_:f,inversePatches_:d}),r(f,d)}return o}else Ra(1,l)},this.produceWithPatches=(l,i)=>{if(er(l))return(d,...g)=>this.produceWithPatches(d,h=>l(h,...g));let r,o;return[this.produce(l,i,(d,g)=>{r=d,o=g}),r,o]},Rd(t?.autoFreeze)&&this.setAutoFreeze(t.autoFreeze),Rd(t?.useStrictShallowCopy)&&this.setUseStrictShallowCopy(t.useStrictShallowCopy),Rd(t?.useStrictIteration)&&this.setUseStrictIteration(t.useStrictIteration)}createDraft(t){Na(t)||Ra(8),pl(t)&&(t=t3(t));const l=U1(this),i=rh(l,t,void 0);return i[Qn].isManual_=!0,lh(l),i}finishDraft(t,l){const i=t&&t[Qn];(!i||!i.isManual_)&&Ra(9);const{scope_:r}=i;return B1(r,l),H1(void 0,r)}setAutoFreeze(t){this.autoFreeze_=t}setUseStrictShallowCopy(t){this.useStrictShallowCopy_=t}setUseStrictIteration(t){this.useStrictIteration_=t}shouldUseStrictIteration(){return this.useStrictIteration_}applyPatches(t,l){let i;for(i=l.length-1;i>=0;i--){const o=l[i];if(o.path.length===0&&o.op==="replace"){t=o.value;break}}i>-1&&(l=l.slice(i+1));const r=rr(nh).applyPatches_;return pl(t)?r(t,l):this.produce(t,o=>r(o,l))}};function rh(t,l,i,r){const[o,f]=$u(l)?rr(Du).proxyMap_(l,i):qu(l)?rr(Du).proxySet_(l,i):$E(l,i);return(i?.scope_??mb()).drafts_.push(o),f.callbacks_=i?.callbacks_??[],f.key_=r,i&&r!==void 0?PE(i,f,r):f.callbacks_.push(function(h){h.mapSetPlugin_?.fixSetContents(f);const{patchPlugin_:p}=h;f.modified_&&p&&p.generatePatches_(f,[],h)}),o}function t3(t){return pl(t)||Ra(10,t),Sb(t)}function Sb(t){if(!Na(t)||ec(t))return t;const l=t[Qn];let i,r=!0;if(l){if(!l.modified_)return l.base_;l.finalized_=!0,i=th(t,l.scope_.immer_.useStrictShallowCopy_),r=l.scope_.immer_.shouldUseStrictIteration()}else i=th(t,!0);return Ns(i,(o,f)=>{Ou(i,o,Sb(f))},r),l&&(l.finalized_=!1),i}var n3=new e3,Eb=n3.produce;function wb(t){return({dispatch:i,getState:r})=>o=>f=>typeof f=="function"?f(i,r,t):o(f)}var a3=wb(),l3=wb,i3=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?Au:Au.apply(null,arguments)};function V1(t,l){function i(...r){if(l){let o=l(...r);if(!o)throw new Error(ul(0));return{type:t,payload:o.payload,..."meta"in o&&{meta:o.meta},..."error"in o&&{error:o.error}}}return{type:t,payload:r[0]}}return i.toString=()=>`${t}`,i.type=t,i.match=r=>VE(r)&&r.type===t,i}var Tb=class ps extends Array{constructor(...l){super(...l),Object.setPrototypeOf(this,ps.prototype)}static get[Symbol.species](){return ps}concat(...l){return super.concat.apply(this,l)}prepend(...l){return l.length===1&&Array.isArray(l[0])?new ps(...l[0].concat(this)):new ps(...l.concat(this))}};function Q1(t){return Na(t)?Eb(t,()=>{}):t}function $o(t,l,i){return t.has(l)?t.get(l):t.set(l,i(l)).get(l)}function r3(t){return typeof t=="boolean"}var s3=()=>function(l){const{thunk:i=!0,immutableCheck:r=!0,serializableCheck:o=!0,actionCreatorCheck:f=!0}=l??{};let d=new Tb;return i&&(r3(i)?d.push(a3):d.push(l3(i.extraArgument))),d},o3="RTK_autoBatch",X1=t=>l=>{setTimeout(l,t)},u3=(t={type:"raf"})=>l=>(...i)=>{const r=l(...i);let o=!0,f=!1,d=!1;const g=new Set,h=t.type==="tick"?queueMicrotask:t.type==="raf"?typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:X1(10):t.type==="callback"?t.queueNotification:X1(t.timeout),p=()=>{d=!1,f&&(f=!1,g.forEach(v=>v()))};return Object.assign({},r,{subscribe(v){const S=()=>o&&v(),y=r.subscribe(S);return g.add(v),()=>{y(),g.delete(v)}},dispatch(v){try{return o=!v?.meta?.[o3],f=!o,f&&(d||(d=!0,h(p))),r.dispatch(v)}finally{o=!0}}})},c3=t=>function(i){const{autoBatch:r=!0}=i??{};let o=new Tb(t);return r&&o.push(u3(typeof r=="object"?r:void 0)),o};function f3(t){const l=s3(),{reducer:i=void 0,middleware:r,devTools:o=!0,preloadedState:f=void 0,enhancers:d=void 0}=t||{};let g;if(typeof i=="function")g=i;else if(Yh(i))g=db(i);else throw new Error(ul(1));let h;typeof r=="function"?h=r(l):h=l();let p=Au;o&&(p=i3({trace:!1,...typeof o=="object"&&o}));const v=IE(...h),S=c3(v);let y=typeof d=="function"?d(S):S();const T=p(...y);return fb(g,f,T)}function Ab(t){const l={},i=[];let r;const o={addCase(f,d){const g=typeof f=="string"?f:f.type;if(!g)throw new Error(ul(28));if(g in l)throw new Error(ul(29));return l[g]=d,o},addAsyncThunk(f,d){return d.pending&&(l[f.pending.type]=d.pending),d.rejected&&(l[f.rejected.type]=d.rejected),d.fulfilled&&(l[f.fulfilled.type]=d.fulfilled),d.settled&&i.push({matcher:f.settled,reducer:d.settled}),o},addMatcher(f,d){return i.push({matcher:f,reducer:d}),o},addDefaultCase(f){return r=f,o}};return t(o),[l,i,r]}function d3(t){return typeof t=="function"}function h3(t,l){let[i,r,o]=Ab(l),f;if(d3(t))f=()=>Q1(t());else{const g=Q1(t);f=()=>g}function d(g=f(),h){let p=[i[h.type],...r.filter(({matcher:v})=>v(h)).map(({reducer:v})=>v)];return p.filter(v=>!!v).length===0&&(p=[o]),p.reduce((v,S)=>{if(S)if(pl(v)){const T=S(v,h);return T===void 0?v:T}else{if(Na(v))return Eb(v,y=>S(y,h));{const y=S(v,h);if(y===void 0){if(v===null)return v;throw Error("A case reducer on a non-draftable value must not return undefined")}return y}}return v},g)}return d.getInitialState=f,d}var p3=Symbol.for("rtk-slice-createasyncthunk");function g3(t,l){return`${t}/${l}`}function m3({creators:t}={}){const l=t?.asyncThunk?.[p3];return function(r){const{name:o,reducerPath:f=o}=r;if(!o)throw new Error(ul(11));const d=(typeof r.reducers=="function"?r.reducers(b3()):r.reducers)||{},g=Object.keys(d),h={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},p={addCase(D,k){const U=typeof D=="string"?D:D.type;if(!U)throw new Error(ul(12));if(U in h.sliceCaseReducersByType)throw new Error(ul(13));return h.sliceCaseReducersByType[U]=k,p},addMatcher(D,k){return h.sliceMatchers.push({matcher:D,reducer:k}),p},exposeAction(D,k){return h.actionCreators[D]=k,p},exposeCaseReducer(D,k){return h.sliceCaseReducersByName[D]=k,p}};g.forEach(D=>{const k=d[D],U={reducerName:D,type:g3(o,D),createNotation:typeof r.reducers=="function"};_3(k)?E3(U,k,p,l):y3(U,k,p)});function v(){const[D={},k=[],U=void 0]=typeof r.extraReducers=="function"?Ab(r.extraReducers):[r.extraReducers],H={...D,...h.sliceCaseReducersByType};return h3(r.initialState,L=>{for(let Y in H)L.addCase(Y,H[Y]);for(let Y of h.sliceMatchers)L.addMatcher(Y.matcher,Y.reducer);for(let Y of k)L.addMatcher(Y.matcher,Y.reducer);U&&L.addDefaultCase(U)})}const S=D=>D,y=new Map,T=new WeakMap;let A;function _(D,k){return A||(A=v()),A(D,k)}function w(){return A||(A=v()),A.getInitialState()}function x(D,k=!1){function U(L){let Y=L[D];return typeof Y>"u"&&k&&(Y=$o(T,U,w)),Y}function H(L=S){const Y=$o(y,k,()=>new WeakMap);return $o(Y,L,()=>{const X={};for(const[W,K]of Object.entries(r.selectors??{}))X[W]=v3(K,L,()=>$o(T,L,w),k);return X})}return{reducerPath:D,getSelectors:H,get selectors(){return H(U)},selectSlice:U}}const C={name:o,reducer:_,actions:h.actionCreators,caseReducers:h.sliceCaseReducersByName,getInitialState:w,...x(f),injectInto(D,{reducerPath:k,...U}={}){const H=k??f;return D.inject({reducerPath:H,reducer:_},U),{...C,...x(H,!0)}}};return C}}function v3(t,l,i,r){function o(f,...d){let g=l(f);return typeof g>"u"&&r&&(g=i()),t(g,...d)}return o.unwrapped=t,o}var qh=m3();function b3(){function t(l,i){return{_reducerDefinitionType:"asyncThunk",payloadCreator:l,...i}}return t.withTypes=()=>t,{reducer(l){return Object.assign({[l.name](...i){return l(...i)}}[l.name],{_reducerDefinitionType:"reducer"})},preparedReducer(l,i){return{_reducerDefinitionType:"reducerWithPrepare",prepare:l,reducer:i}},asyncThunk:t}}function y3({type:t,reducerName:l,createNotation:i},r,o){let f,d;if("reducer"in r){if(i&&!S3(r))throw new Error(ul(17));f=r.reducer,d=r.prepare}else f=r;o.addCase(t,f).exposeCaseReducer(l,f).exposeAction(l,d?V1(t,d):V1(t))}function _3(t){return t._reducerDefinitionType==="asyncThunk"}function S3(t){return t._reducerDefinitionType==="reducerWithPrepare"}function E3({type:t,reducerName:l},i,r,o){if(!o)throw new Error(ul(18));const{payloadCreator:f,fulfilled:d,pending:g,rejected:h,settled:p,options:v}=i,S=o(t,f,v);r.exposeAction(l,S),d&&r.addCase(S.fulfilled,d),g&&r.addCase(S.pending,g),h&&r.addCase(S.rejected,h),p&&r.addMatcher(S.settled,p),r.exposeCaseReducer(l,{fulfilled:d||qo,pending:g||qo,rejected:h||qo,settled:p||qo})}function qo(){}function ul(t){return`Minified Redux Toolkit error #${t}; visit https://redux-toolkit.js.org/Errors?code=${t} for the full message or use the non-minified dev environment for full errors. `}const w3={formValues:{}},Cb=qh({name:"start-screen",initialState:w3,reducers:{showStartScreen(t){t.startScreenStatus="VISIBLE",t.formValues={}},startChat(t,l){t.startScreenStatus="HIDDEN",t.formValues=l.payload.formValues},startAuthenticatedChat(t,l){t.startScreenStatus="HIDDEN",t.loginToken=l.payload.loginToken,t.loginRequestToken=void 0},requestLogin(t,l){t.loginRequestToken=l.payload.loginRequestToken,t.formValues=l.payload.formValues},loginWindowClosed(t){t.loginRequestToken=void 0}}}),{startChat:T3,startAuthenticatedChat:A3,showStartScreen:C3,requestLogin:x3,loginWindowClosed:O3}=Cb.actions,D3=Cb.reducer,xb="RESET_CHAT_STATE",Ob="TOGGLE_TRANSCRIPT_MAIL_OVERLAY",Db="SHOW_CONVERSATION_RATING_OVERLAY",Rb="HIDE_CONVERSATION_RATING_OVERLAY",Nb=()=>({type:rb}),R3=()=>({type:xb}),Mb=()=>({type:Ob}),Ru=(t,l=void 0)=>({type:Db,payload:{opener:t,defaultRating:l}}),N3=()=>({type:Rb}),G1=(t,l,i)=>(r,o)=>{try{const f=o().connection.sessionId;if(!f)throw new Error("Session ID is not available");r({type:Gh,payload:{chunkId:i}}),Z1(t,f,l,i,!1,r),Z1(t,f,l,i,!0,r)}catch(f){console.error("Error loading source infos:",f),r({type:Xh})}},Z1=(t,l,i,r,o,f)=>{const d=`/${t}/me/chat-widget/transcript/${i}/chunks/${r}?highlight=${o}`;fetch(d,{headers:{"x-bubble-chat-session-id":l}}).then(g=>{if(!g.ok)throw new Error(`HTTP error! Status: ${g.status}`);return g.json()}).then(g=>{const h={...g,chunkId:r,highlighted:o};f({type:lb,payload:h})}).catch(g=>{console.error("Error fetching source infos:",g),f({type:Xh,payload:{highlighted:o}})})},M3=()=>({type:Zh}),ep="CONNECT",tp="CONNECTING",np="CONNECTED",ap="DISCONNECTED",lp="RECONNECTED",ip="RESTORE_SESSION_ID",nc="START",ac="CLEAR_SESSION_ID",k3=[ep,tp,np,ap,lp,ip],L3=(t,l)=>({type:ep,clientName:t,querystrings:l}),z3=t=>({type:ip,sessionId:t}),j3=()=>({type:tp}),B3=()=>({type:np}),U3=()=>({type:ap}),H3=()=>({type:lp}),kb=t=>(l,i)=>{const r=i().connection,{formValues:o,loginToken:f}=i().startScreen;let d=r.sessionId;d===void 0&&(d=wu());let g=r.userId;if(g===void 0){const v=Po.get("bubble-chat-user-id")||Po.get("bubble-chat-userId")||Po.get("bf-webclient-userId");g=v||wu(),Po.set("bubble-chat-user-id",g)}const h=new URLSearchParams(i().connection.queryString||""),p=Object.fromEntries(h.entries());l({type:nc,payload:{sessionId:d,userId:g,clientName:t,loginToken:f,querystrings:{...p,...o}}})},ks=()=>(t,l)=>{const i=l().connection.sessionId||"";if(t(I3(i)),t(R3()),l().settings.enableStartScreen)t(C3());else{const r=Fh();return t(kb(r))}},I3=t=>({type:ac,payload:{sessionId:t}}),gl=nE,Lt=iE,Mt=()=>{const t=Lt(i=>i.intl.messages);return i=>t[i]||void 0};var hi=(t=>(t[t.CONNECTING=0]="CONNECTING",t[t.CONNECTED=1]="CONNECTED",t[t.RECONNECTED=2]="RECONNECTED",t[t.DISCONNECTED=3]="DISCONNECTED",t))(hi||{}),Nu=(t=>(t.GUEST="GUEST",t.BOT="BOT",t.PERSON="PERSON",t))(Nu||{});const V3="_container_q2uun_1",Q3="_chatcontent_q2uun_6",X3="_accessabilityHidden_q2uun_12",Md={container:V3,chatcontent:Q3,accessabilityHidden:X3},G3="_messageContainer_1t640_1",Z3="_messages_1t640_13",F1={messageContainer:G3,messages:Z3};var F3=Object.defineProperty,Y3=(t,l)=>{for(var i in l)F3(t,i,{get:l[i],enumerable:!0,configurable:!0,set:r=>l[i]=()=>r})},xe=32,Qe=9,On=13,Ct=10,_a=96,Ls=126,mi=91,Mu=94,Ql=62,ku=35,Qa=45,sr=61,Lu=92,rp=42,zs=95,lc=60,sp=64,zu=93,op=33,eu=38,up=58,tr=102,nr=104,Vl=119,kd=116,Y1=112,K3=115,J3=160,P3=12,ju=46,Bu=47,W3=43,$3=124,q3=123,K1=120,J1=88,ws=48,Ts=57,or=65,ur=90,As=97,Cs=122,Ma=128,ew=32,tw={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},V=tw,nw={};Y3(nw,{startsWith:()=>ut,slugify:()=>Gl,skipWhitespace:()=>bn,shouldFilterTag:()=>uh,sanitizer:()=>fp,parseFrontmatterBounds:()=>Lb,isVoidElement:()=>vs,isUnicodeWhitespace:()=>fr,isUnicodePunctuation:()=>gp,isAlnumCode:()=>dp,isASCIIWhitespace:()=>Hu,isASCIIPunctuation:()=>ow,inlineCharTypeTable:()=>Uu,includes:()=>lw,htmlAttrsToJSXProps:()=>cp,hasKeys:()=>Hb,getTag:()=>fw,getOverrideProps:()=>dw,get:()=>mp,findLineEnd:()=>ye,extractPlainText:()=>Ib,endsWith:()=>hp,decodeEntityReferences:()=>ic,charClassTable:()=>cr,applyTagFilterToText:()=>ch,VOID_ELEMENTS:()=>oh,SHOULD_RENDER_AS_BLOCK_R:()=>Bb,SANITIZE_R:()=>xs,NAMED_CODES_TO_UNICODE:()=>sh,HTML_TO_JSX_MAP:()=>jb,HTML_CHAR_CODE_R:()=>zb,ATTRIBUTES_TO_SANITIZE:()=>Ub});var aw={af:"⁡",applyfunction:"⁡",ic:"⁣",invisiblecomma:"⁣",invisibletimes:"⁢",it:"⁢",lrm:"‎",negativemediumspace:"​",negativethickspace:"​",negativethinspace:"​",negativeverythinspace:"​",nobreak:"⁠",rlm:"‏",shy:"­",zerowidthspace:"​",zwj:"‍",zwnj:"‌",downbreve:"̑",tdot:"⃛",tripledot:"⃛",dotdot:"⃜",tab:" ",newline:`
13
+ `),Ae}Su(()=>{ce.current=void 0,ee.current=void 0,O.current=we});const Be=Z.useMemo(()=>Z.createElement(w,{...we,ref:X}),[X,w,we]);return Z.useMemo(()=>A?Z.createElement(K.Provider,{value:ge},Be):Be,[K,Be,ge])}const H=Z.memo(k);if(H.WrappedComponent=w,H.displayName=k.displayName=C,h){const Y=Z.forwardRef(function(W,K){return Z.createElement(H,{...W,reactReduxForwardedRef:K})});return Y.displayName=C,Y.WrappedComponent=w,Wd(Y,w)}return Wd(H,w)}}var $S=WS;function qS(t){const{children:l,context:i,serverState:r,store:o}=t,f=Z.useMemo(()=>{const h=Gv(o);return{store:o,subscription:h,getServerState:r?()=>r:void 0}},[o,r]),d=Z.useMemo(()=>o.getState(),[o]);Su(()=>{const{subscription:h}=f;return h.onStateChange=h.notifyNestedSubs,h.trySubscribe(),d!==o.getState()&&h.notifyNestedSubs(),()=>{h.tryUnsubscribe(),h.onStateChange=void 0}},[f,d]);const g=i||dl;return Z.createElement(g.Provider,{value:f},l)}var eE=qS;function Lh(t=dl){return function(){return Z.useContext(t)}}var Fv=Lh();function Yv(t=dl){const l=t===dl?Fv:Lh(t),i=()=>{const{store:r}=l();return r};return Object.assign(i,{withTypes:()=>i}),i}var tE=Yv();function nE(t=dl){const l=t===dl?tE:Yv(t),i=()=>l().dispatch;return Object.assign(i,{withTypes:()=>i}),i}var aE=nE(),lE=(t,l)=>t===l;function iE(t=dl){const l=t===dl?Fv:Lh(t),i=(r,o={})=>{const{equalityFn:f=lE}=typeof o=="function"?{equalityFn:o}:o,d=l(),{store:g,subscription:h,getServerState:p}=d;Z.useRef(!0);const v=Z.useCallback({[r.name](y){return r(y)}}[r.name],[r]),S=lS.useSyncExternalStoreWithSelector(h.addNestedSub,g.getState,p||g.getState,v,f);return Z.useDebugValue(S),S};return Object.assign(i,{withTypes:()=>i}),i}var rE=iE();function Kv(t){var l,i,r="";if(typeof t=="string"||typeof t=="number")r+=t;else if(typeof t=="object")if(Array.isArray(t)){var o=t.length;for(l=0;l<o;l++)t[l]&&(i=Kv(t[l]))&&(r&&(r+=" "),r+=i)}else for(i in t)t[i]&&(r&&(r+=" "),r+=i);return r}function se(){for(var t,l,i=0,r="",o=arguments.length;i<o;i++)(t=arguments[i])&&(l=Kv(t))&&(r&&(r+=" "),r+=l);return r}const sE="_app_1rj0t_1",oE={app:sE},Jv="core.typing.on",Pv="core.typing.off",zh="core.message.from.guest",Wv="core.message.without.analysis.from.guest",$v="core.message.to.guest",uE="core.nlu.request.event",qv="core.event.to.guest",cE="core.chat.restart.request",fE="core.transcript.mail.request",eb="core.transcript.item.guest.reaction",jh="core.conversation.rating.from.guest",dE="core.drawer.open",hE="core.drawer.close",pE="core.guest.locale.changed";var Eu;(function(t){t.WEB_URL="web_url",t.POSTBACK="postback"})(Eu||(Eu={}));var N1;(function(t){t.GOOD="GOOD",t.BAD="BAD"})(N1||(N1={}));let gE=class{type;sender;sources;quickReplies;constructor(l,i,r=[],o=[]){this.type=l,this.sender=i,this.sources=r,this.quickReplies=o}addQuickReply(l,i){this.quickReplies.push({label:l,payload:i})}},Ju=class extends gE{text;constructor(l,i,r=[],o=[]){super(ar.TEXT,i,r,o),this.text=l}};var ar;(function(t){t.TEXT="TEXT",t.DETAIL="DETAIL",t.MARKDOWN="MARKDOWN",t.VIDEO="VIDEO",t.IMAGE="IMAGE",t.FILE="FILE",t.AUDIO="AUDIO"})(ar||(ar={}));class tb{type;id;name;avatar;constructor(l,i,r,o){this.type=l,this.id=i,this.name=r,this.avatar=o}}class mE extends tb{constructor(){super(hl.BOT,null,"Chatbot","bot.svg")}}class Bh extends tb{constructor(){super(hl.GUEST,null,"Guest","visitor.svg")}}var hl;(function(t){t.GUEST="GUEST",t.BOT="BOT",t.PERSON="PERSON"})(hl||(hl={}));const vE=t=>{const l=new Ju(t,new Bh);return{type:zh,message:l}},bE=(t,l={})=>{const i=new Ju(t,new Bh);return{type:Wv,message:i,payload:l}},yE=t=>({type:uE,event:t}),_E=(t,l,i=null,r=null)=>({type:eb,payload:{actionId:t,reaction:l,category:i,comment:r}}),nb=t=>l=>(t.payload.type!==zh&&l(bE(t.label,t.payload)),l(t.payload)),ab=t=>(l,i)=>{const{quickReplies:r}=i().chat,o=r.find(f=>t.toLocaleLowerCase().indexOf(f.label.toLocaleLowerCase())>-1);return l(o?nb({...o,label:t}):JSON.parse(JSON.stringify(vE(t))))},Uh="MESSAGE_TO_PARENT_PAGE",Hh="RESTORE_PREVIOUS_CHAT_MESSAGES",Ih="AUDIO_MESSAGE_FROM_USER",Vh="RECEIVE_SPEECH_TRANSCRIPTION",Qh="ENABLE_CONVERSATION_RATING",lb="LOAD_SOURCE_INFOS_RESPONSE",Xh="LOAD_SOURCE_INFOS_ERROR",Gh="LOAD_SOURCE_INFOS_REQUEST",Zh="CLOSE_SOURCE_INFOS",SE="webclient.get.started",ib="webclient.window.expand",rb="webclient.window.close",sb="webclient.transcript.pdf.download",EE=[Uh,Hh,Ih,Vh,Qh,Gh,Zh],wE=t=>({type:Ih,buffer:t}),TE=t=>({type:Vh,transcription:t}),AE=t=>({type:fE,payload:{parameters:{mailTo:t}}}),CE=()=>({type:sb}),xE=({rating:t})=>({type:Qh,payload:{rating:t}}),OE=(t,l)=>({type:jh,payload:{value:t,feedback:l}}),ob=t=>yE(t),DE=t=>({type:Hh,messages:t}),RE=t=>{switch(t.type){case Eu.WEB_URL:return cb(t.url);case Eu.POSTBACK:return t.payload;default:throw new Error(`unknown button type ${t.type}`)}},ub=t=>cb(t),cb=t=>({type:Uh,message:{type:"webclient.change.url",url:t}});function Jo(t){for(var l=1;l<arguments.length;l++){var i=arguments[l];for(var r in i)t[r]=i[r]}return t}var NE={read:function(t){return t[0]==='"'&&(t=t.slice(1,-1)),t.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(t){return encodeURIComponent(t).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}};function $d(t,l){function i(o,f,d){if(!(typeof document>"u")){d=Jo({},l,d),typeof d.expires=="number"&&(d.expires=new Date(Date.now()+d.expires*864e5)),d.expires&&(d.expires=d.expires.toUTCString()),o=encodeURIComponent(o).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var g="";for(var h in d)d[h]&&(g+="; "+h,d[h]!==!0&&(g+="="+d[h].split(";")[0]));return document.cookie=o+"="+t.write(f,o)+g}}function r(o){if(!(typeof document>"u"||arguments.length&&!o)){for(var f=document.cookie?document.cookie.split("; "):[],d={},g=0;g<f.length;g++){var h=f[g].split("="),p=h.slice(1).join("=");try{var v=decodeURIComponent(h[0]);if(d[v]=t.read(p,v),o===v)break}catch{}}return o?d[o]:d}}return Object.create({set:i,get:r,remove:function(o,f){i(o,"",Jo({},f,{expires:-1}))},withAttributes:function(o){return $d(this.converter,Jo({},this.attributes,o))},withConverter:function(o){return $d(Jo({},this.converter,o),this.attributes)}},{attributes:{value:Object.freeze(l)},converter:{value:Object.freeze(t)}})}var Po=$d(NE,{path:"/"});const An=[];for(let t=0;t<256;++t)An.push((t+256).toString(16).slice(1));function ME(t,l=0){return(An[t[l+0]]+An[t[l+1]]+An[t[l+2]]+An[t[l+3]]+"-"+An[t[l+4]]+An[t[l+5]]+"-"+An[t[l+6]]+An[t[l+7]]+"-"+An[t[l+8]]+An[t[l+9]]+"-"+An[t[l+10]]+An[t[l+11]]+An[t[l+12]]+An[t[l+13]]+An[t[l+14]]+An[t[l+15]]).toLowerCase()}let Od;const kE=new Uint8Array(16);function LE(){if(!Od){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");Od=crypto.getRandomValues.bind(crypto)}return Od(kE)}const zE=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),M1={randomUUID:zE};function jE(t,l,i){t=t||{};const r=t.random??t.rng?.()??LE();if(r.length<16)throw new Error("Random bytes length must be >= 16");return r[6]=r[6]&15|64,r[8]=r[8]&63|128,ME(r)}function wu(t,l,i){return M1.randomUUID&&!t?M1.randomUUID():jE(t)}const Fh=()=>BE(window.location.pathname),BE=t=>{const l=t.split("/"),i=t.endsWith("/");return l[l.length-(i?2:1)]};function Cn(t){return`Minified Redux error #${t}; visit https://redux.js.org/Errors?code=${t} for the full message or use the non-minified dev environment for full errors. `}var UE=typeof Symbol=="function"&&Symbol.observable||"@@observable",k1=UE,Dd=()=>Math.random().toString(36).substring(7).split("").join("."),HE={INIT:`@@redux/INIT${Dd()}`,REPLACE:`@@redux/REPLACE${Dd()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${Dd()}`},Tu=HE;function Yh(t){if(typeof t!="object"||t===null)return!1;let l=t;for(;Object.getPrototypeOf(l)!==null;)l=Object.getPrototypeOf(l);return Object.getPrototypeOf(t)===l||Object.getPrototypeOf(t)===null}function fb(t,l,i){if(typeof t!="function")throw new Error(Cn(2));if(typeof l=="function"&&typeof i=="function"||typeof i=="function"&&typeof arguments[3]=="function")throw new Error(Cn(0));if(typeof l=="function"&&typeof i>"u"&&(i=l,l=void 0),typeof i<"u"){if(typeof i!="function")throw new Error(Cn(1));return i(fb)(t,l)}let r=t,o=l,f=new Map,d=f,g=0,h=!1;function p(){d===f&&(d=new Map,f.forEach((w,x)=>{d.set(x,w)}))}function v(){if(h)throw new Error(Cn(3));return o}function S(w){if(typeof w!="function")throw new Error(Cn(4));if(h)throw new Error(Cn(5));let x=!0;p();const C=g++;return d.set(C,w),function(){if(x){if(h)throw new Error(Cn(6));x=!1,p(),d.delete(C),f=null}}}function y(w){if(!Yh(w))throw new Error(Cn(7));if(typeof w.type>"u")throw new Error(Cn(8));if(typeof w.type!="string")throw new Error(Cn(17));if(h)throw new Error(Cn(9));try{h=!0,o=r(o,w)}finally{h=!1}return(f=d).forEach(C=>{C()}),w}function T(w){if(typeof w!="function")throw new Error(Cn(10));r=w,y({type:Tu.REPLACE})}function A(){const w=S;return{subscribe(x){if(typeof x!="object"||x===null)throw new Error(Cn(11));function C(){const k=x;k.next&&k.next(v())}return C(),{unsubscribe:w(C)}},[k1](){return this}}}return y({type:Tu.INIT}),{dispatch:y,subscribe:S,getState:v,replaceReducer:T,[k1]:A}}function IE(t){Object.keys(t).forEach(l=>{const i=t[l];if(typeof i(void 0,{type:Tu.INIT})>"u")throw new Error(Cn(12));if(typeof i(void 0,{type:Tu.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(Cn(13))})}function db(t){const l=Object.keys(t),i={};for(let f=0;f<l.length;f++){const d=l[f];typeof t[d]=="function"&&(i[d]=t[d])}const r=Object.keys(i);let o;try{IE(i)}catch(f){o=f}return function(d={},g){if(o)throw o;let h=!1;const p={};for(let v=0;v<r.length;v++){const S=r[v],y=i[S],T=d[S],A=y(T,g);if(typeof A>"u")throw g&&g.type,new Error(Cn(14));p[S]=A,h=h||A!==T}return h=h||r.length!==Object.keys(d).length,h?p:d}}function Au(...t){return t.length===0?l=>l:t.length===1?t[0]:t.reduce((l,i)=>(...r)=>l(i(...r)))}function VE(...t){return l=>(i,r)=>{const o=l(i,r);let f=()=>{throw new Error(Cn(15))};const d={getState:o.getState,dispatch:(h,...p)=>f(h,...p)},g=t.map(h=>h(d));return f=Au(...g)(o.dispatch),{...o,dispatch:f}}}function QE(t){return Yh(t)&&"type"in t&&typeof t.type=="string"}var hb=Symbol.for("immer-nothing"),L1=Symbol.for("immer-draftable"),Qn=Symbol.for("immer-state");function Ra(t,...l){throw new Error(`[Immer] minified error nr: ${t}. Full error at: https://bit.ly/3cXEKWf`)}var oa=Object,ir=oa.getPrototypeOf,Cu="constructor",Pu="prototype",qd="configurable",xu="enumerable",cu="writable",_s="value",pl=t=>!!t&&!!t[Qn];function Na(t){return t?pb(t)||Wu(t)||!!t[L1]||!!t[Cu]?.[L1]||$u(t)||qu(t):!1}var XE=oa[Pu][Cu].toString(),z1=new WeakMap;function pb(t){if(!t||!Kh(t))return!1;const l=ir(t);if(l===null||l===oa[Pu])return!0;const i=oa.hasOwnProperty.call(l,Cu)&&l[Cu];if(i===Object)return!0;if(!er(i))return!1;let r=z1.get(i);return r===void 0&&(r=Function.toString.call(i),z1.set(i,r)),r===XE}function Ns(t,l,i=!0){Ms(t)===0?(i?Reflect.ownKeys(t):oa.keys(t)).forEach(o=>{l(o,t[o],t)}):t.forEach((r,o)=>l(o,r,t))}function Ms(t){const l=t[Qn];return l?l.type_:Wu(t)?1:$u(t)?2:qu(t)?3:0}var j1=(t,l,i=Ms(t))=>i===2?t.has(l):oa[Pu].hasOwnProperty.call(t,l),eh=(t,l,i=Ms(t))=>i===2?t.get(l):t[l],Ou=(t,l,i,r=Ms(t))=>{r===2?t.set(l,i):r===3?t.add(i):t[l]=i};function GE(t,l){return t===l?t!==0||1/t===1/l:t!==t&&l!==l}var Wu=Array.isArray,$u=t=>t instanceof Map,qu=t=>t instanceof Set,Kh=t=>typeof t=="object",er=t=>typeof t=="function",Rd=t=>typeof t=="boolean",ol=t=>t.copy_||t.base_,Jh=t=>t.modified_?t.copy_:t.base_;function th(t,l){if($u(t))return new Map(t);if(qu(t))return new Set(t);if(Wu(t))return Array[Pu].slice.call(t);const i=pb(t);if(l===!0||l==="class_only"&&!i){const r=oa.getOwnPropertyDescriptors(t);delete r[Qn];let o=Reflect.ownKeys(r);for(let f=0;f<o.length;f++){const d=o[f],g=r[d];g[cu]===!1&&(g[cu]=!0,g[qd]=!0),(g.get||g.set)&&(r[d]={[qd]:!0,[cu]:!0,[xu]:g[xu],[_s]:t[d]})}return oa.create(ir(t),r)}else{const r=ir(t);if(r!==null&&i)return{...t};const o=oa.create(r);return oa.assign(o,t)}}function Ph(t,l=!1){return ec(t)||pl(t)||!Na(t)||(Ms(t)>1&&oa.defineProperties(t,{set:Wo,add:Wo,clear:Wo,delete:Wo}),oa.freeze(t),l&&Ns(t,(i,r)=>{Ph(r,!0)},!1)),t}function ZE(){Ra(2)}var Wo={[_s]:ZE};function ec(t){return t===null||!Kh(t)?!0:oa.isFrozen(t)}var Du="MapSet",nh="Patches",gb={};function rr(t){const l=gb[t];return l||Ra(0,t),l}var FE=t=>!!gb[t],Ss,mb=()=>Ss,YE=(t,l)=>({drafts_:[],parent_:t,immer_:l,canAutoFreeze_:!0,unfinalizedDrafts_:0,handledSet_:new Set,processedForPatches_:new Set,mapSetPlugin_:FE(Du)?rr(Du):void 0});function B1(t,l){l&&(t.patchPlugin_=rr(nh),t.patches_=[],t.inversePatches_=[],t.patchListener_=l)}function ah(t){lh(t),t.drafts_.forEach(KE),t.drafts_=null}function lh(t){t===Ss&&(Ss=t.parent_)}var U1=t=>Ss=YE(Ss,t);function KE(t){const l=t[Qn];l.type_===0||l.type_===1?l.revoke_():l.revoked_=!0}function H1(t,l){l.unfinalizedDrafts_=l.drafts_.length;const i=l.drafts_[0];if(t!==void 0&&t!==i){i[Qn].modified_&&(ah(l),Ra(4)),Na(t)&&(t=I1(l,t));const{patchPlugin_:o}=l;o&&o.generateReplacementPatches_(i[Qn].base_,t,l)}else t=I1(l,i);return JE(l,t,!0),ah(l),l.patches_&&l.patchListener_(l.patches_,l.inversePatches_),t!==hb?t:void 0}function I1(t,l){if(ec(l))return l;const i=l[Qn];if(!i)return Wh(l,t.handledSet_,t);if(!tc(i,t))return l;if(!i.modified_)return i.base_;if(!i.finalized_){const{callbacks_:r}=i;if(r)for(;r.length>0;)r.pop()(t);yb(i,t)}return i.copy_}function JE(t,l,i=!1){!t.parent_&&t.immer_.autoFreeze_&&t.canAutoFreeze_&&Ph(l,i)}function vb(t){t.finalized_=!0,t.scope_.unfinalizedDrafts_--}var tc=(t,l)=>t.scope_===l,PE=[];function bb(t,l,i,r){const o=ol(t),f=t.type_;if(r!==void 0&&eh(o,r,f)===l){Ou(o,r,i,f);return}if(!t.draftLocations_){const g=t.draftLocations_=new Map;Ns(o,(h,p)=>{if(pl(p)){const v=g.get(p)||[];v.push(h),g.set(p,v)}})}const d=t.draftLocations_.get(l)??PE;for(const g of d)Ou(o,g,i,f)}function WE(t,l,i){t.callbacks_.push(function(o){const f=l;if(!f||!tc(f,o))return;o.mapSetPlugin_?.fixSetContents(f);const d=Jh(f);bb(t,f.draft_??f,d,i),yb(f,o)})}function yb(t,l){if(t.modified_&&!t.finalized_&&(t.type_===3||(t.assigned_?.size??0)>0)){const{patchPlugin_:r}=l;if(r){const o=r.getPath(t);o&&r.generatePatches_(t,o,l)}vb(t)}}function $E(t,l,i){const{scope_:r}=t;if(pl(i)){const o=i[Qn];tc(o,r)&&o.callbacks_.push(function(){fu(t);const d=Jh(o);bb(t,i,d,l)})}else Na(i)&&t.callbacks_.push(function(){const f=ol(t);eh(f,l,t.type_)===i&&r.drafts_.length>1&&(t.assigned_.get(l)??!1)===!0&&t.copy_&&Wh(eh(t.copy_,l,t.type_),r.handledSet_,r)})}function Wh(t,l,i){return!i.immer_.autoFreeze_&&i.unfinalizedDrafts_<1||pl(t)||l.has(t)||!Na(t)||ec(t)||(l.add(t),Ns(t,(r,o)=>{if(pl(o)){const f=o[Qn];if(tc(f,i)){const d=Jh(f);Ou(t,r,d,t.type_),vb(f)}}else Na(o)&&Wh(o,l,i)})),t}function qE(t,l){const i=Wu(t),r={type_:i?1:0,scope_:l?l.scope_:mb(),modified_:!1,finalized_:!1,assigned_:void 0,parent_:l,base_:t,draft_:null,copy_:null,revoke_:null,isManual_:!1,callbacks_:void 0};let o=r,f=$h;i&&(o=[r],f=Es);const{revoke:d,proxy:g}=Proxy.revocable(o,f);return r.draft_=g,r.revoke_=d,[g,r]}var $h={get(t,l){if(l===Qn)return t;const i=ol(t);if(!j1(i,l,t.type_))return e3(t,i,l);const r=i[l];if(t.finalized_||!Na(r))return r;if(r===Nd(t.base_,l)){fu(t);const o=t.type_===1?+l:l,f=rh(t.scope_,r,t,o);return t.copy_[o]=f}return r},has(t,l){return l in ol(t)},ownKeys(t){return Reflect.ownKeys(ol(t))},set(t,l,i){const r=_b(ol(t),l);if(r?.set)return r.set.call(t.draft_,i),!0;if(!t.modified_){const o=Nd(ol(t),l),f=o?.[Qn];if(f&&f.base_===i)return t.copy_[l]=i,t.assigned_.set(l,!1),!0;if(GE(i,o)&&(i!==void 0||j1(t.base_,l,t.type_)))return!0;fu(t),ih(t)}return t.copy_[l]===i&&(i!==void 0||l in t.copy_)||Number.isNaN(i)&&Number.isNaN(t.copy_[l])||(t.copy_[l]=i,t.assigned_.set(l,!0),$E(t,l,i)),!0},deleteProperty(t,l){return fu(t),Nd(t.base_,l)!==void 0||l in t.base_?(t.assigned_.set(l,!1),ih(t)):t.assigned_.delete(l),t.copy_&&delete t.copy_[l],!0},getOwnPropertyDescriptor(t,l){const i=ol(t),r=Reflect.getOwnPropertyDescriptor(i,l);return r&&{[cu]:!0,[qd]:t.type_!==1||l!=="length",[xu]:r[xu],[_s]:i[l]}},defineProperty(){Ra(11)},getPrototypeOf(t){return ir(t.base_)},setPrototypeOf(){Ra(12)}},Es={};Ns($h,(t,l)=>{Es[t]=function(){const i=arguments;return i[0]=i[0][0],l.apply(this,i)}});Es.deleteProperty=function(t,l){return Es.set.call(this,t,l,void 0)};Es.set=function(t,l,i){return $h.set.call(this,t[0],l,i,t[0])};function Nd(t,l){const i=t[Qn];return(i?ol(i):t)[l]}function e3(t,l,i){const r=_b(l,i);return r?_s in r?r[_s]:r.get?.call(t.draft_):void 0}function _b(t,l){if(!(l in t))return;let i=ir(t);for(;i;){const r=Object.getOwnPropertyDescriptor(i,l);if(r)return r;i=ir(i)}}function ih(t){t.modified_||(t.modified_=!0,t.parent_&&ih(t.parent_))}function fu(t){t.copy_||(t.assigned_=new Map,t.copy_=th(t.base_,t.scope_.immer_.useStrictShallowCopy_))}var t3=class{constructor(t){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!1,this.produce=(l,i,r)=>{if(er(l)&&!er(i)){const f=i;i=l;const d=this;return function(h=f,...p){return d.produce(h,v=>i.call(this,v,...p))}}er(i)||Ra(6),r!==void 0&&!er(r)&&Ra(7);let o;if(Na(l)){const f=U1(this),d=rh(f,l,void 0);let g=!0;try{o=i(d),g=!1}finally{g?ah(f):lh(f)}return B1(f,r),H1(o,f)}else if(!l||!Kh(l)){if(o=i(l),o===void 0&&(o=l),o===hb&&(o=void 0),this.autoFreeze_&&Ph(o,!0),r){const f=[],d=[];rr(nh).generateReplacementPatches_(l,o,{patches_:f,inversePatches_:d}),r(f,d)}return o}else Ra(1,l)},this.produceWithPatches=(l,i)=>{if(er(l))return(d,...g)=>this.produceWithPatches(d,h=>l(h,...g));let r,o;return[this.produce(l,i,(d,g)=>{r=d,o=g}),r,o]},Rd(t?.autoFreeze)&&this.setAutoFreeze(t.autoFreeze),Rd(t?.useStrictShallowCopy)&&this.setUseStrictShallowCopy(t.useStrictShallowCopy),Rd(t?.useStrictIteration)&&this.setUseStrictIteration(t.useStrictIteration)}createDraft(t){Na(t)||Ra(8),pl(t)&&(t=n3(t));const l=U1(this),i=rh(l,t,void 0);return i[Qn].isManual_=!0,lh(l),i}finishDraft(t,l){const i=t&&t[Qn];(!i||!i.isManual_)&&Ra(9);const{scope_:r}=i;return B1(r,l),H1(void 0,r)}setAutoFreeze(t){this.autoFreeze_=t}setUseStrictShallowCopy(t){this.useStrictShallowCopy_=t}setUseStrictIteration(t){this.useStrictIteration_=t}shouldUseStrictIteration(){return this.useStrictIteration_}applyPatches(t,l){let i;for(i=l.length-1;i>=0;i--){const o=l[i];if(o.path.length===0&&o.op==="replace"){t=o.value;break}}i>-1&&(l=l.slice(i+1));const r=rr(nh).applyPatches_;return pl(t)?r(t,l):this.produce(t,o=>r(o,l))}};function rh(t,l,i,r){const[o,f]=$u(l)?rr(Du).proxyMap_(l,i):qu(l)?rr(Du).proxySet_(l,i):qE(l,i);return(i?.scope_??mb()).drafts_.push(o),f.callbacks_=i?.callbacks_??[],f.key_=r,i&&r!==void 0?WE(i,f,r):f.callbacks_.push(function(h){h.mapSetPlugin_?.fixSetContents(f);const{patchPlugin_:p}=h;f.modified_&&p&&p.generatePatches_(f,[],h)}),o}function n3(t){return pl(t)||Ra(10,t),Sb(t)}function Sb(t){if(!Na(t)||ec(t))return t;const l=t[Qn];let i,r=!0;if(l){if(!l.modified_)return l.base_;l.finalized_=!0,i=th(t,l.scope_.immer_.useStrictShallowCopy_),r=l.scope_.immer_.shouldUseStrictIteration()}else i=th(t,!0);return Ns(i,(o,f)=>{Ou(i,o,Sb(f))},r),l&&(l.finalized_=!1),i}var a3=new t3,Eb=a3.produce;function wb(t){return({dispatch:i,getState:r})=>o=>f=>typeof f=="function"?f(i,r,t):o(f)}var l3=wb(),i3=wb,r3=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?Au:Au.apply(null,arguments)};function V1(t,l){function i(...r){if(l){let o=l(...r);if(!o)throw new Error(ul(0));return{type:t,payload:o.payload,..."meta"in o&&{meta:o.meta},..."error"in o&&{error:o.error}}}return{type:t,payload:r[0]}}return i.toString=()=>`${t}`,i.type=t,i.match=r=>QE(r)&&r.type===t,i}var Tb=class ps extends Array{constructor(...l){super(...l),Object.setPrototypeOf(this,ps.prototype)}static get[Symbol.species](){return ps}concat(...l){return super.concat.apply(this,l)}prepend(...l){return l.length===1&&Array.isArray(l[0])?new ps(...l[0].concat(this)):new ps(...l.concat(this))}};function Q1(t){return Na(t)?Eb(t,()=>{}):t}function $o(t,l,i){return t.has(l)?t.get(l):t.set(l,i(l)).get(l)}function s3(t){return typeof t=="boolean"}var o3=()=>function(l){const{thunk:i=!0,immutableCheck:r=!0,serializableCheck:o=!0,actionCreatorCheck:f=!0}=l??{};let d=new Tb;return i&&(s3(i)?d.push(l3):d.push(i3(i.extraArgument))),d},u3="RTK_autoBatch",X1=t=>l=>{setTimeout(l,t)},c3=(t={type:"raf"})=>l=>(...i)=>{const r=l(...i);let o=!0,f=!1,d=!1;const g=new Set,h=t.type==="tick"?queueMicrotask:t.type==="raf"?typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:X1(10):t.type==="callback"?t.queueNotification:X1(t.timeout),p=()=>{d=!1,f&&(f=!1,g.forEach(v=>v()))};return Object.assign({},r,{subscribe(v){const S=()=>o&&v(),y=r.subscribe(S);return g.add(v),()=>{y(),g.delete(v)}},dispatch(v){try{return o=!v?.meta?.[u3],f=!o,f&&(d||(d=!0,h(p))),r.dispatch(v)}finally{o=!0}}})},f3=t=>function(i){const{autoBatch:r=!0}=i??{};let o=new Tb(t);return r&&o.push(c3(typeof r=="object"?r:void 0)),o};function d3(t){const l=o3(),{reducer:i=void 0,middleware:r,devTools:o=!0,preloadedState:f=void 0,enhancers:d=void 0}=t||{};let g;if(typeof i=="function")g=i;else if(Yh(i))g=db(i);else throw new Error(ul(1));let h;typeof r=="function"?h=r(l):h=l();let p=Au;o&&(p=r3({trace:!1,...typeof o=="object"&&o}));const v=VE(...h),S=f3(v);let y=typeof d=="function"?d(S):S();const T=p(...y);return fb(g,f,T)}function Ab(t){const l={},i=[];let r;const o={addCase(f,d){const g=typeof f=="string"?f:f.type;if(!g)throw new Error(ul(28));if(g in l)throw new Error(ul(29));return l[g]=d,o},addAsyncThunk(f,d){return d.pending&&(l[f.pending.type]=d.pending),d.rejected&&(l[f.rejected.type]=d.rejected),d.fulfilled&&(l[f.fulfilled.type]=d.fulfilled),d.settled&&i.push({matcher:f.settled,reducer:d.settled}),o},addMatcher(f,d){return i.push({matcher:f,reducer:d}),o},addDefaultCase(f){return r=f,o}};return t(o),[l,i,r]}function h3(t){return typeof t=="function"}function p3(t,l){let[i,r,o]=Ab(l),f;if(h3(t))f=()=>Q1(t());else{const g=Q1(t);f=()=>g}function d(g=f(),h){let p=[i[h.type],...r.filter(({matcher:v})=>v(h)).map(({reducer:v})=>v)];return p.filter(v=>!!v).length===0&&(p=[o]),p.reduce((v,S)=>{if(S)if(pl(v)){const T=S(v,h);return T===void 0?v:T}else{if(Na(v))return Eb(v,y=>S(y,h));{const y=S(v,h);if(y===void 0){if(v===null)return v;throw Error("A case reducer on a non-draftable value must not return undefined")}return y}}return v},g)}return d.getInitialState=f,d}var g3=Symbol.for("rtk-slice-createasyncthunk");function m3(t,l){return`${t}/${l}`}function v3({creators:t}={}){const l=t?.asyncThunk?.[g3];return function(r){const{name:o,reducerPath:f=o}=r;if(!o)throw new Error(ul(11));const d=(typeof r.reducers=="function"?r.reducers(y3()):r.reducers)||{},g=Object.keys(d),h={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},p={addCase(D,k){const U=typeof D=="string"?D:D.type;if(!U)throw new Error(ul(12));if(U in h.sliceCaseReducersByType)throw new Error(ul(13));return h.sliceCaseReducersByType[U]=k,p},addMatcher(D,k){return h.sliceMatchers.push({matcher:D,reducer:k}),p},exposeAction(D,k){return h.actionCreators[D]=k,p},exposeCaseReducer(D,k){return h.sliceCaseReducersByName[D]=k,p}};g.forEach(D=>{const k=d[D],U={reducerName:D,type:m3(o,D),createNotation:typeof r.reducers=="function"};S3(k)?w3(U,k,p,l):_3(U,k,p)});function v(){const[D={},k=[],U=void 0]=typeof r.extraReducers=="function"?Ab(r.extraReducers):[r.extraReducers],H={...D,...h.sliceCaseReducersByType};return p3(r.initialState,L=>{for(let Y in H)L.addCase(Y,H[Y]);for(let Y of h.sliceMatchers)L.addMatcher(Y.matcher,Y.reducer);for(let Y of k)L.addMatcher(Y.matcher,Y.reducer);U&&L.addDefaultCase(U)})}const S=D=>D,y=new Map,T=new WeakMap;let A;function _(D,k){return A||(A=v()),A(D,k)}function w(){return A||(A=v()),A.getInitialState()}function x(D,k=!1){function U(L){let Y=L[D];return typeof Y>"u"&&k&&(Y=$o(T,U,w)),Y}function H(L=S){const Y=$o(y,k,()=>new WeakMap);return $o(Y,L,()=>{const X={};for(const[W,K]of Object.entries(r.selectors??{}))X[W]=b3(K,L,()=>$o(T,L,w),k);return X})}return{reducerPath:D,getSelectors:H,get selectors(){return H(U)},selectSlice:U}}const C={name:o,reducer:_,actions:h.actionCreators,caseReducers:h.sliceCaseReducersByName,getInitialState:w,...x(f),injectInto(D,{reducerPath:k,...U}={}){const H=k??f;return D.inject({reducerPath:H,reducer:_},U),{...C,...x(H,!0)}}};return C}}function b3(t,l,i,r){function o(f,...d){let g=l(f);return typeof g>"u"&&r&&(g=i()),t(g,...d)}return o.unwrapped=t,o}var qh=v3();function y3(){function t(l,i){return{_reducerDefinitionType:"asyncThunk",payloadCreator:l,...i}}return t.withTypes=()=>t,{reducer(l){return Object.assign({[l.name](...i){return l(...i)}}[l.name],{_reducerDefinitionType:"reducer"})},preparedReducer(l,i){return{_reducerDefinitionType:"reducerWithPrepare",prepare:l,reducer:i}},asyncThunk:t}}function _3({type:t,reducerName:l,createNotation:i},r,o){let f,d;if("reducer"in r){if(i&&!E3(r))throw new Error(ul(17));f=r.reducer,d=r.prepare}else f=r;o.addCase(t,f).exposeCaseReducer(l,f).exposeAction(l,d?V1(t,d):V1(t))}function S3(t){return t._reducerDefinitionType==="asyncThunk"}function E3(t){return t._reducerDefinitionType==="reducerWithPrepare"}function w3({type:t,reducerName:l},i,r,o){if(!o)throw new Error(ul(18));const{payloadCreator:f,fulfilled:d,pending:g,rejected:h,settled:p,options:v}=i,S=o(t,f,v);r.exposeAction(l,S),d&&r.addCase(S.fulfilled,d),g&&r.addCase(S.pending,g),h&&r.addCase(S.rejected,h),p&&r.addMatcher(S.settled,p),r.exposeCaseReducer(l,{fulfilled:d||qo,pending:g||qo,rejected:h||qo,settled:p||qo})}function qo(){}function ul(t){return`Minified Redux Toolkit error #${t}; visit https://redux-toolkit.js.org/Errors?code=${t} for the full message or use the non-minified dev environment for full errors. `}const T3={formValues:{}},Cb=qh({name:"start-screen",initialState:T3,reducers:{showStartScreen(t){t.startScreenStatus="VISIBLE",t.formValues={}},startChat(t,l){t.startScreenStatus="HIDDEN",t.formValues=l.payload.formValues},startAuthenticatedChat(t,l){t.startScreenStatus="HIDDEN",t.loginToken=l.payload.loginToken,t.loginRequestToken=void 0},requestLogin(t,l){t.loginRequestToken=l.payload.loginRequestToken,t.formValues=l.payload.formValues},loginWindowClosed(t){t.loginRequestToken=void 0}}}),{startChat:A3,startAuthenticatedChat:C3,showStartScreen:x3,requestLogin:O3,loginWindowClosed:D3}=Cb.actions,R3=Cb.reducer,xb="RESET_CHAT_STATE",Ob="TOGGLE_TRANSCRIPT_MAIL_OVERLAY",Db="SHOW_CONVERSATION_RATING_OVERLAY",Rb="HIDE_CONVERSATION_RATING_OVERLAY",Nb=()=>({type:rb}),N3=()=>({type:xb}),Mb=()=>({type:Ob}),Ru=(t,l=void 0)=>({type:Db,payload:{opener:t,defaultRating:l}}),M3=()=>({type:Rb}),G1=(t,l,i)=>(r,o)=>{try{const f=o().connection.sessionId;if(!f)throw new Error("Session ID is not available");r({type:Gh,payload:{chunkId:i}}),Z1(t,f,l,i,!1,r),Z1(t,f,l,i,!0,r)}catch(f){console.error("Error loading source infos:",f),r({type:Xh})}},Z1=(t,l,i,r,o,f)=>{const d=`/${t}/me/chat-widget/transcript/${i}/chunks/${r}?highlight=${o}`;fetch(d,{headers:{"x-bubble-chat-session-id":l}}).then(g=>{if(!g.ok)throw new Error(`HTTP error! Status: ${g.status}`);return g.json()}).then(g=>{const h={...g,chunkId:r,highlighted:o};f({type:lb,payload:h})}).catch(g=>{console.error("Error fetching source infos:",g),f({type:Xh,payload:{highlighted:o}})})},k3=()=>({type:Zh}),ep="CONNECT",tp="CONNECTING",np="CONNECTED",ap="DISCONNECTED",lp="RECONNECTED",ip="RESTORE_SESSION_ID",nc="START",ac="CLEAR_SESSION_ID",L3=[ep,tp,np,ap,lp,ip],z3=(t,l)=>({type:ep,clientName:t,querystrings:l}),j3=t=>({type:ip,sessionId:t}),B3=()=>({type:tp}),U3=()=>({type:np}),H3=()=>({type:ap}),I3=()=>({type:lp}),kb=t=>(l,i)=>{const r=i().connection,{formValues:o,loginToken:f}=i().startScreen;let d=r.sessionId;d===void 0&&(d=wu());let g=r.userId;if(g===void 0){const v=Po.get("bubble-chat-user-id")||Po.get("bubble-chat-userId")||Po.get("bf-webclient-userId");g=v||wu(),Po.set("bubble-chat-user-id",g)}const h=new URLSearchParams(i().connection.queryString||""),p=Object.fromEntries(h.entries());l({type:nc,payload:{sessionId:d,userId:g,clientName:t,loginToken:f,querystrings:{...p,...o}}})},ks=()=>(t,l)=>{const i=l().connection.sessionId||"";if(t(V3(i)),t(N3()),l().settings.enableStartScreen)t(x3());else{const r=Fh();return t(kb(r))}},V3=t=>({type:ac,payload:{sessionId:t}}),gl=aE,Lt=rE,Mt=()=>{const t=Lt(i=>i.intl.messages);return i=>t[i]||void 0};var hi=(t=>(t[t.CONNECTING=0]="CONNECTING",t[t.CONNECTED=1]="CONNECTED",t[t.RECONNECTED=2]="RECONNECTED",t[t.DISCONNECTED=3]="DISCONNECTED",t))(hi||{}),Nu=(t=>(t.GUEST="GUEST",t.BOT="BOT",t.PERSON="PERSON",t))(Nu||{});const Q3="_container_q2uun_1",X3="_chatcontent_q2uun_6",G3="_accessabilityHidden_q2uun_12",Md={container:Q3,chatcontent:X3,accessabilityHidden:G3},Z3="_messageContainer_1t640_1",F3="_messages_1t640_13",F1={messageContainer:Z3,messages:F3};var Y3=Object.defineProperty,K3=(t,l)=>{for(var i in l)Y3(t,i,{get:l[i],enumerable:!0,configurable:!0,set:r=>l[i]=()=>r})},xe=32,Qe=9,On=13,Ct=10,_a=96,Ls=126,mi=91,Mu=94,Ql=62,ku=35,Qa=45,sr=61,Lu=92,rp=42,zs=95,lc=60,sp=64,zu=93,op=33,eu=38,up=58,tr=102,nr=104,Vl=119,kd=116,Y1=112,J3=115,P3=160,W3=12,ju=46,Bu=47,$3=43,q3=124,ew=123,K1=120,J1=88,ws=48,Ts=57,or=65,ur=90,As=97,Cs=122,Ma=128,tw=32,nw={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},V=nw,aw={};K3(aw,{startsWith:()=>ut,slugify:()=>Gl,skipWhitespace:()=>bn,shouldFilterTag:()=>uh,sanitizer:()=>fp,parseFrontmatterBounds:()=>Lb,isVoidElement:()=>vs,isUnicodeWhitespace:()=>fr,isUnicodePunctuation:()=>gp,isAlnumCode:()=>dp,isASCIIWhitespace:()=>Hu,isASCIIPunctuation:()=>uw,inlineCharTypeTable:()=>Uu,includes:()=>iw,htmlAttrsToJSXProps:()=>cp,hasKeys:()=>Hb,getTag:()=>dw,getOverrideProps:()=>hw,get:()=>mp,findLineEnd:()=>ye,extractPlainText:()=>Ib,endsWith:()=>hp,decodeEntityReferences:()=>ic,charClassTable:()=>cr,applyTagFilterToText:()=>ch,VOID_ELEMENTS:()=>oh,SHOULD_RENDER_AS_BLOCK_R:()=>Bb,SANITIZE_R:()=>xs,NAMED_CODES_TO_UNICODE:()=>sh,HTML_TO_JSX_MAP:()=>jb,HTML_CHAR_CODE_R:()=>zb,ATTRIBUTES_TO_SANITIZE:()=>Ub});var lw={af:"⁡",applyfunction:"⁡",ic:"⁣",invisiblecomma:"⁣",invisibletimes:"⁢",it:"⁢",lrm:"‎",negativemediumspace:"​",negativethickspace:"​",negativethinspace:"​",negativeverythinspace:"​",nobreak:"⁠",rlm:"‏",shy:"­",zerowidthspace:"​",zwj:"‍",zwnj:"‌",downbreve:"̑",tdot:"⃛",tripledot:"⃛",dotdot:"⃜",tab:" ",newline:`
14
14
  `,emsp:" ",emsp13:" ",emsp14:" ",ensp:" ",hairsp:" ",mediumspace:" ",puncsp:" ",thinsp:" ",thinspace:" ",verythinspace:" ",nbsp:" ",nonbreakingspace:" ",numsp:" ",thickspace:"  ",oline:"‾",overbar:"‾",lowbar:"_",underbar:"_",dash:"‐",hyphen:"‐",ndash:"–",mdash:"—",horbar:"―",comma:",",semi:";",bsemi:"⁏",colon:":",Colone:"⩴",excl:"!",iexcl:"¡",quest:"?",iquest:"¿",period:".",nldr:"‥",hellip:"…",mldr:"…",centerdot:"·",middot:"·",apos:"'",lsquo:"‘",opencurlyquote:"‘",closecurlyquote:"’",rsquo:"’",rsquor:"’",lsquor:"‚",sbquo:"‚",lsaquo:"‹",rsaquo:"›",quot:'"',ldquo:"“",opencurlydoublequote:"“",closecurlydoublequote:"”",rdquo:"”",rdquor:"”",bdquo:"„",ldquor:"„",laquo:"«",raquo:"»",lpar:"(",rpar:")",lbrack:"[",lsqb:"[",rbrack:"]",rsqb:"]",lbrace:"{",lcub:"{",rbrace:"}",rcub:"}",lceil:"⌈",leftceiling:"⌈",rceil:"⌉",rightceiling:"⌉",leftfloor:"⌊",lfloor:"⌊",rfloor:"⌋",rightfloor:"⌋",lopar:"⦅",ropar:"⦆",lbrke:"⦋",rbrke:"⦌",lbrkslu:"⦍",rbrksld:"⦎",lbrksld:"⦏",rbrkslu:"⦐",langd:"⦑",rangd:"⦒",lparlt:"⦓",rpargt:"⦔",gtlpar:"⦕",ltrpar:"⦖",leftdoublebracket:"⟦",lobrk:"⟦",rightdoublebracket:"⟧",robrk:"⟧",lang:"⟨",langle:"⟨",leftanglebracket:"⟨",rang:"⟩",rangle:"⟩",rightanglebracket:"⟩",Lang:"⟪",Rang:"⟫",loang:"⟬",roang:"⟭",lbbrk:"❲",rbbrk:"❳",Verbar:"‖",Vert:"‖",sect:"§",para:"¶",commat:"@",ast:"*",midast:"*",sol:"/",bsol:"\\",amp:"&",num:"#",percnt:"%",permil:"‰",pertenk:"‱",dagger:"†",Dagger:"‡",ddagger:"‡",bull:"•",bullet:"•",hybull:"⁃",prime:"′",Prime:"″",tprime:"‴",qprime:"⁗",backprime:"‵",bprime:"‵",caret:"⁁",diacriticalgrave:"`",grave:"`",acute:"´",diacriticalacute:"´",diacriticaltilde:"˜",tilde:"˜",hat:"^",macr:"¯",strns:"¯",breve:"˘",diacriticaldot:"˙",dot:"˙",die:"¨",Dot:"¨",doubledot:"¨",uml:"¨",ring:"˚",dblac:"˝",diacriticaldoubleacute:"˝",cedil:"¸",cedilla:"¸",ogon:"˛",circ:"ˆ",caron:"ˇ",hacek:"ˇ",deg:"°",copy:"©",circledr:"®",reg:"®",copysr:"℗",weierp:"℘",wp:"℘",rx:"℞",mho:"℧",iiota:"℩",larr:"←",leftarrow:"←",shortleftarrow:"←",slarr:"←",nlarr:"↚",nleftarrow:"↚",rarr:"→",rightarrow:"→",shortrightarrow:"→",srarr:"→",nrarr:"↛",nrightarrow:"↛",shortuparrow:"↑",uarr:"↑",uparrow:"↑",darr:"↓",downarrow:"↓",shortdownarrow:"↓",harr:"↔",leftrightarrow:"↔",nharr:"↮",nleftrightarrow:"↮",updownarrow:"↕",varr:"↕",nwarr:"↖",nwarrow:"↖",upperleftarrow:"↖",nearr:"↗",nearrow:"↗",upperrightarrow:"↗",lowerrightarrow:"↘",searr:"↘",searrow:"↘",lowerleftarrow:"↙",swarr:"↙",swarrow:"↙",rarrw:"↝",rightsquigarrow:"↝",nrarrw:"↝̸",Larr:"↞",twoheadleftarrow:"↞",Uarr:"↟",Rarr:"↠",twoheadrightarrow:"↠",Darr:"↡",larrtl:"↢",leftarrowtail:"↢",rarrtl:"↣",rightarrowtail:"↣",leftteearrow:"↤",mapstoleft:"↤",mapstoup:"↥",upteearrow:"↥",map:"↦",mapsto:"↦",rightteearrow:"↦",downteearrow:"↧",mapstodown:"↧",hookleftarrow:"↩",larrhk:"↩",hookrightarrow:"↪",rarrhk:"↪",larrlp:"↫",looparrowleft:"↫",looparrowright:"↬",rarrlp:"↬",harrw:"↭",leftrightsquigarrow:"↭",lsh:"↰",rsh:"↱",ldsh:"↲",rdsh:"↳",crarr:"↵",cularr:"↶",curvearrowleft:"↶",curarr:"↷",curvearrowright:"↷",circlearrowleft:"↺",olarr:"↺",circlearrowright:"↻",orarr:"↻",leftharpoonup:"↼",leftvector:"↼",lharu:"↼",downleftvector:"↽",leftharpoondown:"↽",lhard:"↽",rightupvector:"↾",uharr:"↾",upharpoonright:"↾",leftupvector:"↿",uharl:"↿",upharpoonleft:"↿",rharu:"⇀",rightharpoonup:"⇀",rightvector:"⇀",downrightvector:"⇁",rhard:"⇁",rightharpoondown:"⇁",dharr:"⇂",downharpoonright:"⇂",rightdownvector:"⇂",dharl:"⇃",downharpoonleft:"⇃",leftdownvector:"⇃",rightarrowleftarrow:"⇄",rightleftarrows:"⇄",rlarr:"⇄",udarr:"⇅",uparrowdownarrow:"⇅",leftarrowrightarrow:"⇆",leftrightarrows:"⇆",lrarr:"⇆",leftleftarrows:"⇇",llarr:"⇇",upuparrows:"⇈",uuarr:"⇈",rightrightarrows:"⇉",rrarr:"⇉",ddarr:"⇊",downdownarrows:"⇊",leftrightharpoons:"⇋",lrhar:"⇋",reverseequilibrium:"⇋",equilibrium:"⇌",rightleftharpoons:"⇌",rlhar:"⇌",doubleleftarrow:"⇐",lArr:"⇐",Leftarrow:"⇐",nlArr:"⇍",nLeftarrow:"⇍",doubleuparrow:"⇑",uArr:"⇑",Uparrow:"⇑",doublerightarrow:"⇒",implies:"⇒",rArr:"⇒",Rightarrow:"⇒",nrArr:"⇏",nRightarrow:"⇏",dArr:"⇓",doubledownarrow:"⇓",Downarrow:"⇓",doubleleftrightarrow:"⇔",hArr:"⇔",iff:"⇔",Leftrightarrow:"⇔",nhArr:"⇎",nLeftrightarrow:"⇎",doubleupdownarrow:"⇕",Updownarrow:"⇕",vArr:"⇕",nwArr:"⇖",neArr:"⇗",seArr:"⇘",swArr:"⇙",laarr:"⇚",lleftarrow:"⇚",raarr:"⇛",rrightarrow:"⇛",zigrarr:"⇝",larrb:"⇤",leftarrowbar:"⇤",rarrb:"⇥",rightarrowbar:"⇥",downarrowuparrow:"⇵",duarr:"⇵",loarr:"⇽",roarr:"⇾",hoarr:"⇿",forall:"∀",comp:"∁",complement:"∁",part:"∂",partiald:"∂",npart:"∂̸",exist:"∃",exists:"∃",nexist:"∄",nexists:"∄",notexists:"∄",empty:"∅",emptyset:"∅",emptyv:"∅",varnothing:"∅",del:"∇",nabla:"∇",element:"∈",in:"∈",isin:"∈",isinv:"∈",notelement:"∉",notin:"∉",notinva:"∉",ni:"∋",niv:"∋",reverseelement:"∋",suchthat:"∋",notni:"∌",notniva:"∌",notreverseelement:"∌",backepsilon:"϶",bepsi:"϶",prod:"∏",product:"∏",coprod:"∐",coproduct:"∐",sum:"∑",plus:"+",plusminus:"±",plusmn:"±",pm:"±",div:"÷",divide:"÷",times:"×",lt:"<",nless:"≮",nlt:"≮",notless:"≮",nvlt:"<⃒",equals:"=",ne:"≠",notequal:"≠",bne:"=⃥",equal:"⩵",gt:">",ngt:"≯",ngtr:"≯",notgreater:"≯",nvgt:">⃒",not:"¬",verbar:"|",vert:"|",verticalline:"|",brvbar:"¦",minus:"−",minusplus:"∓",mnplus:"∓",mp:"∓",dotplus:"∔",plusdo:"∔",frasl:"⁄",backslash:"∖",setminus:"∖",setmn:"∖",smallsetminus:"∖",ssetmn:"∖",lowast:"∗",compfn:"∘",smallcircle:"∘",radic:"√",sqrt:"√",prop:"∝",proportional:"∝",propto:"∝",varpropto:"∝",vprop:"∝",infin:"∞",angrt:"∟",ang:"∠",angle:"∠",nang:"∠⃒",angmsd:"∡",measuredangle:"∡",angsph:"∢",mid:"∣",shortmid:"∣",smid:"∣",verticalbar:"∣",nmid:"∤",notverticalbar:"∤",nshortmid:"∤",nsmid:"∤",doubleverticalbar:"∥",par:"∥",parallel:"∥",shortparallel:"∥",spar:"∥",notdoubleverticalbar:"∦",npar:"∦",nparallel:"∦",nshortparallel:"∦",nspar:"∦",and:"∧",wedge:"∧",or:"∨",vee:"∨",cap:"∩",caps:"∩︀",cup:"∪",cups:"∪︀",int:"∫",integral:"∫",Int:"∬",iiint:"∭",tint:"∭",iiiint:"⨌",qint:"⨌",conint:"∮",contourintegral:"∮",oint:"∮",Conint:"∯",doublecontourintegral:"∯",cconint:"∰",cwint:"∱",clockwisecontourintegral:"∲",cwconint:"∲",awconint:"∳",counterclockwisecontourintegral:"∳",there4:"∴",therefore:"∴",becaus:"∵",because:"∵",ratio:"∶",Colon:"∷",proportion:"∷",dotminus:"∸",minusd:"∸",mddot:"∺",homtht:"∻",sim:"∼",thicksim:"∼",thksim:"∼",Tilde:"∼",nottilde:"≁",nsim:"≁",nvsim:"∼⃒",backsim:"∽",bsim:"∽",race:"∽̱",ac:"∾",mstpos:"∾",ace:"∾̳",acd:"∿",verticaltilde:"≀",wr:"≀",wreath:"≀",eqsim:"≂",equaltilde:"≂",esim:"≂",nesim:"≂̸",notequaltilde:"≂̸",sime:"≃",simeq:"≃",tildeequal:"≃",nottildeequal:"≄",nsime:"≄",nsimeq:"≄",cong:"≅",tildefullequal:"≅",ncong:"≇",nottildefullequal:"≇",simne:"≆",ap:"≈",approx:"≈",asymp:"≈",thickapprox:"≈",thkap:"≈",tildetilde:"≈",nap:"≉",napprox:"≉",nottildetilde:"≉",ape:"≊",approxeq:"≊",apid:"≋",napid:"≋̸",backcong:"≌",bcong:"≌",asympeq:"≍",CupCap:"≍",notcupcap:"≭",nvap:"≍⃒",bump:"≎",Bumpeq:"≎",humpdownhump:"≎",nbump:"≎̸",nothumpdownhump:"≎̸",bumpe:"≏",bumpeq:"≏",humpequal:"≏",nbumpe:"≏̸",nothumpequal:"≏̸",doteq:"≐",dotequal:"≐",esdot:"≐",nedot:"≐̸",doteqdot:"≑",eDot:"≑",efdot:"≒",fallingdotseq:"≒",erdot:"≓",risingdotseq:"≓",assign:"≔",colone:"≔",coloneq:"≔",ecolon:"≕",eqcolon:"≕",ecir:"≖",eqcirc:"≖",circeq:"≗",cire:"≗",wedgeq:"≙",veeeq:"≚",triangleq:"≜",trie:"≜",equest:"≟",questeq:"≟",congruent:"≡",equiv:"≡",nequiv:"≢",notcongruent:"≢",bnequiv:"≡⃥",le:"≤",leq:"≤",nle:"≰",nleq:"≰",notlessequal:"≰",nvle:"≤⃒",ge:"≥",geq:"≥",greaterequal:"≥",nge:"≱",ngeq:"≱",notgreaterequal:"≱",nvge:"≥⃒",lE:"≦",leqq:"≦",lessfullequal:"≦",nlE:"≦̸",nleqq:"≦̸",gE:"≧",geqq:"≧",greaterfullequal:"≧",ngE:"≧̸",ngeqq:"≧̸",notgreaterfullequal:"≧̸",lnE:"≨",lneqq:"≨",lvertneqq:"≨︀",lvne:"≨︀",gnE:"≩",gneqq:"≩",gvertneqq:"≩︀",gvne:"≩︀",ll:"≪",Lt:"≪",nestedlessless:"≪",nltv:"≪̸",notlessless:"≪̸",nLt:"≪⃒",gg:"≫",Gt:"≫",nestedgreatergreater:"≫",ngtv:"≫̸",notgreatergreater:"≫̸",nGt:"≫⃒",between:"≬",twixt:"≬",lesssim:"≲",lesstilde:"≲",lsim:"≲",nlsim:"≴",notlesstilde:"≴",greatertilde:"≳",gsim:"≳",gtrsim:"≳",ngsim:"≵",notgreatertilde:"≵",lessgreater:"≶",lessgtr:"≶",lg:"≶",notlessgreater:"≸",ntlg:"≸",gl:"≷",greaterless:"≷",gtrless:"≷",notgreaterless:"≹",ntgl:"≹",pr:"≺",prec:"≺",precedes:"≺",notprecedes:"⊀",npr:"⊀",nprec:"⊀",sc:"≻",succ:"≻",succeeds:"≻",notsucceeds:"⊁",nsc:"⊁",nsucc:"⊁",prcue:"≼",preccurlyeq:"≼",precedesslantequal:"≼",notprecedesslantequal:"⋠",nprcue:"⋠",sccue:"≽",succcurlyeq:"≽",succeedsslantequal:"≽",notsucceedsslantequal:"⋡",nsccue:"⋡",precedestilde:"≾",precsim:"≾",prsim:"≾",scsim:"≿",succeedstilde:"≿",succsim:"≿",notsucceedstilde:"≿̸",sub:"⊂",subset:"⊂",nsub:"⊄",notsubset:"⊂⃒",nsubset:"⊂⃒",vnsub:"⊂⃒",sup:"⊃",superset:"⊃",supset:"⊃",nsup:"⊅",notsuperset:"⊃⃒",nsupset:"⊃⃒",vnsup:"⊃⃒",sube:"⊆",subseteq:"⊆",subsetequal:"⊆",notsubsetequal:"⊈",nsube:"⊈",nsubseteq:"⊈",supe:"⊇",supersetequal:"⊇",supseteq:"⊇",notsupersetequal:"⊉",nsupe:"⊉",nsupseteq:"⊉",subne:"⊊",subsetneq:"⊊",varsubsetneq:"⊊︀",vsubne:"⊊︀",supne:"⊋",supsetneq:"⊋",varsupsetneq:"⊋︀",vsupne:"⊋︀",cupdot:"⊍",unionplus:"⊎",uplus:"⊎",sqsub:"⊏",sqsubset:"⊏",squaresubset:"⊏",notsquaresubset:"⊏̸",sqsup:"⊐",sqsupset:"⊐",squaresuperset:"⊐",notsquaresuperset:"⊐̸",sqsube:"⊑",sqsubseteq:"⊑",squaresubsetequal:"⊑",notsquaresubsetequal:"⋢",nsqsube:"⋢",sqsupe:"⊒",sqsupseteq:"⊒",squaresupersetequal:"⊒",notsquaresupersetequal:"⋣",nsqsupe:"⋣",sqcap:"⊓",sqcaps:"⊓︀",squareintersection:"⊓",sqcup:"⊔",sqcups:"⊔︀",squareunion:"⊔",circleplus:"⊕",oplus:"⊕",circleminus:"⊖",ominus:"⊖",circletimes:"⊗",otimes:"⊗",osol:"⊘",circledot:"⊙",odot:"⊙",circledcirc:"⊚",ocir:"⊚",circledast:"⊛",oast:"⊛",circleddash:"⊝",odash:"⊝",boxplus:"⊞",plusb:"⊞",boxminus:"⊟",minusb:"⊟",boxtimes:"⊠",timesb:"⊠",dotsquare:"⊡",sdotb:"⊡",righttee:"⊢",vdash:"⊢",nvdash:"⊬",dashv:"⊣",lefttee:"⊣",downtee:"⊤",top:"⊤",bot:"⊥",bottom:"⊥",perp:"⊥",uptee:"⊥",models:"⊧",doublerighttee:"⊨",vDash:"⊨",nvDash:"⊭",Vdash:"⊩",nVdash:"⊮",vvdash:"⊪",VDash:"⊫",nVDash:"⊯",prurel:"⊰",lefttriangle:"⊲",vartriangleleft:"⊲",vltri:"⊲",nltri:"⋪",notlefttriangle:"⋪",ntriangleleft:"⋪",righttriangle:"⊳",vartriangleright:"⊳",vrtri:"⊳",notrighttriangle:"⋫",nrtri:"⋫",ntriangleright:"⋫",lefttriangleequal:"⊴",ltrie:"⊴",trianglelefteq:"⊴",nltrie:"⋬",notlefttriangleequal:"⋬",ntrianglelefteq:"⋬",nvltrie:"⊴⃒",righttriangleequal:"⊵",rtrie:"⊵",trianglerighteq:"⊵",notrighttriangleequal:"⋭",nrtrie:"⋭",ntrianglerighteq:"⋭",nvrtrie:"⊵⃒",origof:"⊶",imof:"⊷",multimap:"⊸",mumap:"⊸",hercon:"⊹",intcal:"⊺",intercal:"⊺",veebar:"⊻",barvee:"⊽",angrtvb:"⊾",lrtri:"⊿",bigwedge:"⋀",Wedge:"⋀",xwedge:"⋀",bigvee:"⋁",Vee:"⋁",xvee:"⋁",bigcap:"⋂",intersection:"⋂",xcap:"⋂",bigcup:"⋃",union:"⋃",xcup:"⋃",diam:"⋄",diamond:"⋄",sdot:"⋅",sstarf:"⋆",Star:"⋆",divideontimes:"⋇",divonx:"⋇",bowtie:"⋈",ltimes:"⋉",rtimes:"⋊",leftthreetimes:"⋋",lthree:"⋋",rightthreetimes:"⋌",rthree:"⋌",backsimeq:"⋍",bsime:"⋍",curlyvee:"⋎",cuvee:"⋎",curlywedge:"⋏",cuwed:"⋏",Sub:"⋐",Subset:"⋐",Sup:"⋑",Supset:"⋑",Cap:"⋒",Cup:"⋓",fork:"⋔",pitchfork:"⋔",epar:"⋕",lessdot:"⋖",ltdot:"⋖",gtdot:"⋗",gtrdot:"⋗",Ll:"⋘",nll:"⋘̸",Gg:"⋙",ggg:"⋙",ngg:"⋙̸",leg:"⋚",lesg:"⋚︀",lesseqgtr:"⋚",lessequalgreater:"⋚",gel:"⋛",gesl:"⋛︀",greaterequalless:"⋛",gtreqless:"⋛",cuepr:"⋞",curlyeqprec:"⋞",cuesc:"⋟",curlyeqsucc:"⋟",lnsim:"⋦",gnsim:"⋧",precnsim:"⋨",prnsim:"⋨",scnsim:"⋩",succnsim:"⋩",vellip:"⋮",ctdot:"⋯",utdot:"⋰",dtdot:"⋱",disin:"⋲",isinsv:"⋳",isins:"⋴",isindot:"⋵",notindot:"⋵̸",notinvc:"⋶",notinvb:"⋷",isine:"⋹",notine:"⋹̸",nisd:"⋺",xnis:"⋻",nis:"⋼",notnivc:"⋽",notnivb:"⋾",barwed:"⌅",barwedge:"⌅",Barwed:"⌆",doublebarwedge:"⌆",drcrop:"⌌",dlcrop:"⌍",urcrop:"⌎",ulcrop:"⌏",bnot:"⌐",profline:"⌒",profsurf:"⌓",telrec:"⌕",target:"⌖",ulcorn:"⌜",ulcorner:"⌜",urcorn:"⌝",urcorner:"⌝",dlcorn:"⌞",llcorner:"⌞",drcorn:"⌟",lrcorner:"⌟",frown:"⌢",sfrown:"⌢",smile:"⌣",ssmile:"⌣",cylcty:"⌭",profalar:"⌮",topbot:"⌶",ovbar:"⌽",solbar:"⌿",angzarr:"⍼",lmoust:"⎰",lmoustache:"⎰",rmoust:"⎱",rmoustache:"⎱",overbracket:"⎴",tbrk:"⎴",bbrk:"⎵",underbracket:"⎵",bbrktbrk:"⎶",overparenthesis:"⏜",underparenthesis:"⏝",overbrace:"⏞",underbrace:"⏟",trpezium:"⏢",elinters:"⏧",blank:"␣",boxh:"─",horizontalline:"─",boxv:"│",boxdr:"┌",boxdl:"┐",boxur:"└",boxul:"┘",boxvr:"├",boxvl:"┤",boxhd:"┬",boxhu:"┴",boxvh:"┼",boxH:"═",boxV:"║",boxdR:"╒",boxDr:"╓",boxDR:"╔",boxdL:"╕",boxDl:"╖",boxDL:"╗",boxuR:"╘",boxUr:"╙",boxUR:"╚",boxuL:"╛",boxUl:"╜",boxUL:"╝",boxvR:"╞",boxVr:"╟",boxVR:"╠",boxvL:"╡",boxVl:"╢",boxVL:"╣",boxHd:"╤",boxhD:"╥",boxHD:"╦",boxHu:"╧",boxhU:"╨",boxHU:"╩",boxvH:"╪",boxVh:"╫",boxVH:"╬",uhblk:"▀",lhblk:"▄",block:"█",blk14:"░",blk12:"▒",blk34:"▓",squ:"□",square:"□",blacksquare:"▪",filledverysmallsquare:"▪",squarf:"▪",squf:"▪",emptyverysmallsquare:"▫",rect:"▭",marker:"▮",fltns:"▱",bigtriangleup:"△",xutri:"△",blacktriangle:"▴",utrif:"▴",triangle:"▵",utri:"▵",blacktriangleright:"▸",rtrif:"▸",rtri:"▹",triangleright:"▹",bigtriangledown:"▽",xdtri:"▽",blacktriangledown:"▾",dtrif:"▾",dtri:"▿",triangledown:"▿",blacktriangleleft:"◂",ltrif:"◂",ltri:"◃",triangleleft:"◃",loz:"◊",lozenge:"◊",cir:"○",tridot:"◬",bigcirc:"◯",xcirc:"◯",ultri:"◸",urtri:"◹",lltri:"◺",emptysmallsquare:"◻",filledsmallsquare:"◼",bigstar:"★",starf:"★",star:"☆",phone:"☎",female:"♀",male:"♂",spades:"♠",spadesuit:"♠",clubs:"♣",clubsuit:"♣",hearts:"♥",heartsuit:"♥",diamondsuit:"♦",diams:"♦",sung:"♪",check:"✓",checkmark:"✓",cross:"✗",malt:"✠",maltese:"✠",sext:"✶",verticalseparator:"❘",bsolhsub:"⟈",suphsol:"⟉",longleftarrow:"⟵",xlarr:"⟵",longrightarrow:"⟶",xrarr:"⟶",longleftrightarrow:"⟷",xharr:"⟷",doublelongleftarrow:"⟸",Longleftarrow:"⟸",xlArr:"⟸",doublelongrightarrow:"⟹",Longrightarrow:"⟹",xrArr:"⟹",doublelongleftrightarrow:"⟺",Longleftrightarrow:"⟺",xhArr:"⟺",longmapsto:"⟼",xmap:"⟼",dzigrarr:"⟿",nvlarr:"⤂",nvrarr:"⤃",nvharr:"⤄",Map:"⤅",lbarr:"⤌",bkarow:"⤍",lBarr:"⤎",dbkarow:"⤏",rBarr:"⤏",drbkarow:"⤐",rbarr:"⤐",RBarr:"⤐",ddotrahd:"⤑",uparrowbar:"⤒",downarrowbar:"⤓",Rarrtl:"⤖",latail:"⤙",ratail:"⤚",lAtail:"⤛",rAtail:"⤜",larrfs:"⤝",rarrfs:"⤞",larrbfs:"⤟",rarrbfs:"⤠",nwarhk:"⤣",nearhk:"⤤",hksearow:"⤥",searhk:"⤥",hkswarow:"⤦",swarhk:"⤦",nwnear:"⤧",nesear:"⤨",toea:"⤨",seswar:"⤩",tosa:"⤩",swnwar:"⤪",rarrc:"⤳",nrarrc:"⤳̸",cudarrr:"⤵",ldca:"⤶",rdca:"⤷",cudarrl:"⤸",larrpl:"⤹",curarrm:"⤼",cularrp:"⤽",rarrpl:"⥅",harrcir:"⥈",uarrocir:"⥉",lurdshar:"⥊",ldrushar:"⥋",leftrightvector:"⥎",rightupdownvector:"⥏",downleftrightvector:"⥐",leftupdownvector:"⥑",leftvectorbar:"⥒",rightvectorbar:"⥓",rightupvectorbar:"⥔",rightdownvectorbar:"⥕",downleftvectorbar:"⥖",downrightvectorbar:"⥗",leftupvectorbar:"⥘",leftdownvectorbar:"⥙",leftteevector:"⥚",rightteevector:"⥛",rightupteevector:"⥜",rightdownteevector:"⥝",downleftteevector:"⥞",downrightteevector:"⥟",leftupteevector:"⥠",leftdownteevector:"⥡",lhar:"⥢",uhar:"⥣",rhar:"⥤",dhar:"⥥",luruhar:"⥦",ldrdhar:"⥧",ruluhar:"⥨",rdldhar:"⥩",lharul:"⥪",llhard:"⥫",rharul:"⥬",lrhard:"⥭",udhar:"⥮",upequilibrium:"⥮",duhar:"⥯",reverseupequilibrium:"⥯",roundimplies:"⥰",erarr:"⥱",simrarr:"⥲",larrsim:"⥳",rarrsim:"⥴",rarrap:"⥵",ltlarr:"⥶",gtrarr:"⥸",subrarr:"⥹",suplarr:"⥻",lfisht:"⥼",rfisht:"⥽",ufisht:"⥾",dfisht:"⥿",vzigzag:"⦚",vangrt:"⦜",angrtvbd:"⦝",ange:"⦤",range:"⦥",dwangle:"⦦",uwangle:"⦧",angmsdaa:"⦨",angmsdab:"⦩",angmsdac:"⦪",angmsdad:"⦫",angmsdae:"⦬",angmsdaf:"⦭",angmsdag:"⦮",angmsdah:"⦯",bemptyv:"⦰",demptyv:"⦱",cemptyv:"⦲",raemptyv:"⦳",laemptyv:"⦴",ohbar:"⦵",omid:"⦶",opar:"⦷",operp:"⦹",olcross:"⦻",odsold:"⦼",olcir:"⦾",ofcir:"⦿",olt:"⧀",ogt:"⧁",cirscir:"⧂",cirE:"⧃",solb:"⧄",bsolb:"⧅",boxbox:"⧉",trisb:"⧍",rtriltri:"⧎",lefttrianglebar:"⧏",notlefttrianglebar:"⧏̸",righttrianglebar:"⧐",notrighttrianglebar:"⧐̸",iinfin:"⧜",infintie:"⧝",nvinfin:"⧞",eparsl:"⧣",smeparsl:"⧤",eqvparsl:"⧥",blacklozenge:"⧫",lozf:"⧫",ruledelayed:"⧴",dsol:"⧶",bigodot:"⨀",xodot:"⨀",bigoplus:"⨁",xoplus:"⨁",bigotimes:"⨂",xotime:"⨂",biguplus:"⨄",xuplus:"⨄",bigsqcup:"⨆",xsqcup:"⨆",fpartint:"⨍",cirfnint:"⨐",awint:"⨑",rppolint:"⨒",scpolint:"⨓",npolint:"⨔",pointint:"⨕",quatint:"⨖",intlarhk:"⨗",pluscir:"⨢",plusacir:"⨣",simplus:"⨤",plusdu:"⨥",plussim:"⨦",plustwo:"⨧",mcomma:"⨩",minusdu:"⨪",loplus:"⨭",roplus:"⨮",Cross:"⨯",timesd:"⨰",timesbar:"⨱",smashp:"⨳",lotimes:"⨴",rotimes:"⨵",otimesas:"⨶",Otimes:"⨷",odiv:"⨸",triplus:"⨹",triminus:"⨺",tritime:"⨻",intprod:"⨼",iprod:"⨼",amalg:"⨿",capdot:"⩀",ncup:"⩂",ncap:"⩃",capand:"⩄",cupor:"⩅",cupcap:"⩆",capcup:"⩇",cupbrcap:"⩈",capbrcup:"⩉",cupcup:"⩊",capcap:"⩋",ccups:"⩌",ccaps:"⩍",ccupssm:"⩐",And:"⩓",Or:"⩔",andand:"⩕",oror:"⩖",orslope:"⩗",andslope:"⩘",andv:"⩚",orv:"⩛",andd:"⩜",ord:"⩝",wedbar:"⩟",sdote:"⩦",simdot:"⩪",congdot:"⩭",ncongdot:"⩭̸",easter:"⩮",apacir:"⩯",apE:"⩰",nape:"⩰̸",eplus:"⩱",pluse:"⩲",Esim:"⩳",ddotseq:"⩷",eddot:"⩷",equivdd:"⩸",ltcir:"⩹",gtcir:"⩺",ltquest:"⩻",gtquest:"⩼",leqslant:"⩽",les:"⩽",lessslantequal:"⩽",nleqslant:"⩽̸",nles:"⩽̸",notlessslantequal:"⩽̸",geqslant:"⩾",ges:"⩾",greaterslantequal:"⩾",ngeqslant:"⩾̸",nges:"⩾̸",notgreaterslantequal:"⩾̸",lesdot:"⩿",gesdot:"⪀",lesdoto:"⪁",gesdoto:"⪂",lesdotor:"⪃",gesdotol:"⪄",lap:"⪅",lessapprox:"⪅",gap:"⪆",gtrapprox:"⪆",lne:"⪇",lneq:"⪇",gne:"⪈",gneq:"⪈",lnap:"⪉",lnapprox:"⪉",gnap:"⪊",gnapprox:"⪊",lEg:"⪋",lesseqqgtr:"⪋",gEl:"⪌",gtreqqless:"⪌",lsime:"⪍",gsime:"⪎",lsimg:"⪏",gsiml:"⪐",lge:"⪑",gle:"⪒",lesges:"⪓",gesles:"⪔",els:"⪕",eqslantless:"⪕",egs:"⪖",eqslantgtr:"⪖",elsdot:"⪗",egsdot:"⪘",el:"⪙",eg:"⪚",siml:"⪝",simg:"⪞",simle:"⪟",simge:"⪠",lessless:"⪡",notnestedlessless:"⪡̸",greatergreater:"⪢",notnestedgreatergreater:"⪢̸",glj:"⪤",gla:"⪥",ltcc:"⪦",gtcc:"⪧",lescc:"⪨",gescc:"⪩",smt:"⪪",lat:"⪫",smte:"⪬",smtes:"⪬︀",late:"⪭",lates:"⪭︀",bumpE:"⪮",pre:"⪯",precedesequal:"⪯",preceq:"⪯",notprecedesequal:"⪯̸",npre:"⪯̸",npreceq:"⪯̸",sce:"⪰",succeedsequal:"⪰",succeq:"⪰",notsucceedsequal:"⪰̸",nsce:"⪰̸",nsucceq:"⪰̸",prE:"⪳",scE:"⪴",precneqq:"⪵",prne:"⪵",scne:"⪶",succneqq:"⪶",prap:"⪷",precapprox:"⪷",scap:"⪸",succapprox:"⪸",precnapprox:"⪹",prnap:"⪹",scnap:"⪺",succnapprox:"⪺",Pr:"⪻",Sc:"⪼",subdot:"⪽",supdot:"⪾",subplus:"⪿",supplus:"⫀",submult:"⫁",supmult:"⫂",subedot:"⫃",supedot:"⫄",subE:"⫅",subseteqq:"⫅",nsubE:"⫅̸",nsubseteqq:"⫅̸",supE:"⫆",supseteqq:"⫆",nsupE:"⫆̸",nsupseteqq:"⫆̸",subsim:"⫇",supsim:"⫈",subnE:"⫋",subsetneqq:"⫋",varsubsetneqq:"⫋︀",vsubnE:"⫋︀",supnE:"⫌",supsetneqq:"⫌",varsupsetneqq:"⫌︀",vsupnE:"⫌︀",csub:"⫏",csup:"⫐",csube:"⫑",csupe:"⫒",subsup:"⫓",supsub:"⫔",subsub:"⫕",supsup:"⫖",suphsub:"⫗",supdsub:"⫘",forkv:"⫙",topfork:"⫚",mlcp:"⫛",Dashv:"⫤",doublelefttee:"⫤",vdashl:"⫦",barv:"⫧",vbar:"⫨",vbarv:"⫩",Vbar:"⫫",Not:"⫬",bNot:"⫭",rnmid:"⫮",cirmid:"⫯",midcir:"⫰",topcir:"⫱",nhpar:"⫲",parsim:"⫳",parsl:"⫽",nparsl:"⫽⃥",flat:"♭",natur:"♮",natural:"♮",sharp:"♯",curren:"¤",cent:"¢",dollar:"$",pound:"£",yen:"¥",euro:"€",sup1:"¹",frac12:"½",half:"½",frac13:"⅓",frac14:"¼",frac15:"⅕",frac16:"⅙",frac18:"⅛",sup2:"²",frac23:"⅔",frac25:"⅖",sup3:"³",frac34:"¾",frac35:"⅗",frac38:"⅜",frac45:"⅘",frac56:"⅚",frac58:"⅝",frac78:"⅞",afr:"𝔞",aopf:"𝕒",ascr:"𝒶",Afr:"𝔄",Aopf:"𝔸",Ascr:"𝒜",ordf:"ª",aacute:"á",Aacute:"Á",agrave:"à",Agrave:"À",abreve:"ă",Abreve:"Ă",acirc:"â",Acirc:"Â",aring:"å",angst:"Å",Aring:"Å",auml:"ä",Auml:"Ä",atilde:"ã",Atilde:"Ã",aogon:"ą",Aogon:"Ą",amacr:"ā",Amacr:"Ā",aelig:"Æ",AElig:"Æ",bfr:"𝔟",bopf:"𝕓",bscr:"𝒷",bernou:"ℬ",bernoullis:"ℬ",Bfr:"𝔅",Bopf:"𝔹",Bscr:"ℬ",cfr:"𝔠",copf:"𝕔",cscr:"𝒸",cayleys:"ℭ",Cfr:"ℭ",complexes:"ℂ",Copf:"ℂ",Cscr:"𝒞",cacute:"ć",Cacute:"Ć",ccirc:"ĉ",Ccirc:"Ĉ",ccaron:"č",Ccaron:"Č",cdot:"ċ",Cdot:"Ċ",ccedil:"ç",Ccedil:"Ç",incare:"℅",dfr:"𝔡",differentiald:"ⅆ",dopf:"𝕕",dscr:"𝒹",capitaldifferentiald:"ⅅ",dd:"ⅅ",DD:"ⅅ",Dfr:"𝔇",Dopf:"𝔻",Dscr:"𝒟",dcaron:"ď",Dcaron:"Ď",dstrok:"đ",Dstrok:"Đ",eth:"ð",ETH:"Ð",ee:"ⅇ",efr:"𝔢",eopf:"𝕖",escr:"ℯ",exponentiale:"ⅇ",Efr:"𝔈",Eopf:"𝔼",Escr:"ℰ",expectation:"ℰ",eacute:"é",Eacute:"É",egrave:"è",Egrave:"È",ecirc:"ê",Ecirc:"Ê",ecaron:"ě",Ecaron:"Ě",euml:"ë",Euml:"Ë",edot:"ė",Edot:"Ė",eogon:"ę",Eogon:"Ę",emacr:"ē",Emacr:"Ē",ffr:"𝔣",fopf:"𝕗",fscr:"𝒻",Ffr:"𝔉",Fopf:"𝔽",fouriertrf:"ℱ",Fscr:"ℱ",fflig:"ff",ffilig:"ffi",ffllig:"ffl",filig:"fi",fjlig:"fj",fllig:"fl",fnof:"ƒ",gfr:"𝔤",gopf:"𝕘",gscr:"ℊ",Gfr:"𝔊",Gopf:"𝔾",Gscr:"𝒢",gacute:"ǵ",gbreve:"ğ",Gbreve:"Ğ",gcirc:"ĝ",Gcirc:"Ĝ",gdot:"ġ",Gdot:"Ġ",gcedil:"Ģ",hfr:"𝔥",hopf:"𝕙",hscr:"𝒽",planckh:"ℎ",hamilt:"ℋ",Hfr:"ℌ",hilbertspace:"ℋ",Hopf:"ℍ",Hscr:"ℋ",poincareplane:"ℌ",quaternions:"ℍ",hcirc:"ĥ",Hcirc:"Ĥ",hbar:"ℏ",hslash:"ℏ",hstrok:"ħ",planck:"ℏ",plankv:"ℏ",Hstrok:"Ħ",ifr:"𝔦",ii:"ⅈ",imaginaryi:"ⅈ",iopf:"𝕚",iscr:"𝒾",Ifr:"ℑ",im:"ℑ",image:"ℑ",imagline:"ℐ",imagpart:"ℑ",Iopf:"𝕀",Iscr:"ℐ",iacute:"í",Iacute:"Í",igrave:"ì",Igrave:"Ì",icirc:"î",Icirc:"Î",iuml:"ï",Iuml:"Ï",itilde:"ĩ",Itilde:"Ĩ",idot:"İ",iogon:"į",Iogon:"Į",imacr:"ī",Imacr:"Ī",ijlig:"IJ",IJlig:"IJ",imath:"ı",inodot:"ı",jfr:"𝔧",jopf:"𝕛",jscr:"𝒿",Jfr:"𝔍",Jopf:"𝕁",Jscr:"𝒥",jcirc:"ĵ",Jcirc:"Ĵ",jmath:"ȷ",kfr:"𝔨",kopf:"𝕜",kscr:"𝓀",Kfr:"𝔎",Kopf:"𝕂",Kscr:"𝒦",kcedil:"ķ",Kcedil:"Ķ",ell:"ℓ",lfr:"𝔩",lopf:"𝕝",lscr:"𝓁",lagran:"ℒ",laplacetrf:"ℒ",Lfr:"𝔏",Lopf:"𝕃",Lscr:"ℒ",lacute:"ĺ",Lacute:"Ĺ",lcaron:"ľ",Lcaron:"Ľ",lcedil:"ļ",Lcedil:"Ļ",lstrok:"ł",Lstrok:"Ł",lmidot:"ŀ",Lmidot:"Ŀ",mfr:"𝔪",mopf:"𝕞",mscr:"𝓂",mellintrf:"ℳ",Mfr:"𝔐",Mopf:"𝕄",Mscr:"ℳ",phmmat:"ℳ",nfr:"𝔫",nopf:"𝕟",nscr:"𝓃",naturals:"ℕ",Nfr:"𝔑",Nopf:"ℕ",Nscr:"𝒩",nacute:"ń",Nacute:"Ń",ncaron:"ň",Ncaron:"Ň",ntilde:"ñ",Ntilde:"Ñ",ncedil:"ņ",Ncedil:"Ņ",numero:"№",eng:"ŋ",ENG:"Ŋ",ofr:"𝔬",oopf:"𝕠",order:"ℴ",orderof:"ℴ",oscr:"ℴ",Ofr:"𝔒",Oopf:"𝕆",Oscr:"𝒪",ordm:"º",oacute:"ó",Oacute:"Ó",ograve:"ò",Ograve:"Ò",ocirc:"ô",Ocirc:"Ô",ouml:"ö",Ouml:"Ö",odblac:"ő",Odblac:"Ő",otilde:"õ",Otilde:"Õ",oslash:"ø",Oslash:"Ø",omacr:"ō",Omacr:"Ō",oelig:"Œ",OElig:"Œ",pfr:"𝔭",popf:"𝕡",pscr:"𝓅",Pfr:"𝔓",Popf:"ℙ",primes:"ℙ",Pscr:"𝒫",qfr:"𝔮",qopf:"𝕢",qscr:"𝓆",Qfr:"𝔔",Qopf:"ℚ",Qscr:"𝒬",rationals:"ℚ",kgreen:"ĸ",rfr:"𝔯",ropf:"𝕣",rscr:"𝓇",re:"ℜ",real:"ℜ",realine:"ℛ",realpart:"ℜ",reals:"ℝ",Rfr:"ℜ",Ropf:"ℝ",Rscr:"ℛ",racute:"ŕ",Racute:"Ŕ",rcaron:"ř",Rcaron:"Ř",rcedil:"ŗ",Rcedil:"Ŗ",sfr:"𝔰",sopf:"𝕤",sscr:"𝓈",Sfr:"𝔖",Sopf:"𝕊",Sscr:"𝒮",circleds:"Ⓢ",os:"Ⓢ",sacute:"ś",Sacute:"Ś",scirc:"ŝ",Scirc:"Ŝ",scaron:"š",Scaron:"Š",scedil:"ş",Scedil:"Ş",szlig:"ß",tfr:"𝔱",topf:"𝕥",tscr:"𝓉",Tfr:"𝔗",Topf:"𝕋",Tscr:"𝒯",tcaron:"ť",Tcaron:"Ť",tcedil:"ţ",Tcedil:"Ţ",trade:"™",tstrok:"ŧ",Tstrok:"Ŧ",ufr:"𝔲",uopf:"𝕦",uscr:"𝓊",Ufr:"𝔘",Uopf:"𝕌",Uscr:"𝒰",uacute:"ú",Uacute:"Ú",ugrave:"ù",Ugrave:"Ù",ubreve:"ŭ",Ubreve:"Ŭ",ucirc:"û",Ucirc:"Û",uring:"ů",Uring:"Ů",uuml:"ü",Uuml:"Ü",udblac:"ű",Udblac:"Ű",utilde:"ũ",Utilde:"Ũ",uogon:"ų",Uogon:"Ų",umacr:"ū",Umacr:"Ū",vfr:"𝔳",vopf:"𝕧",vscr:"𝓋",Vfr:"𝔙",Vopf:"𝕍",Vscr:"𝒱",wfr:"𝔴",wopf:"𝕨",wscr:"𝓌",Wfr:"𝔚",Wopf:"𝕎",Wscr:"𝒲",wcirc:"ŵ",Wcirc:"Ŵ",xfr:"𝔵",xopf:"𝕩",xscr:"𝓍",Xfr:"𝔛",Xopf:"𝕏",Xscr:"𝒳",yfr:"𝔶",yopf:"𝕪",yscr:"𝓎",Yfr:"𝔜",Yopf:"𝕐",Yscr:"𝒴",yacute:"ý",Yacute:"Ý",ycirc:"ŷ",Ycirc:"Ŷ",yuml:"ÿ",Yuml:"Ÿ",zfr:"𝔷",zopf:"𝕫",zscr:"𝓏",integers:"ℤ",zeetrf:"ℨ",Zfr:"ℨ",Zopf:"ℤ",Zscr:"𝒵",zacute:"ź",Zacute:"Ź",zcaron:"ž",Zcaron:"Ž",zdot:"ż",Zdot:"Ż",imped:"Ƶ",thorn:"þ",THORN:"Þ",napos:"ʼn",alpha:"α",Alpha:"Α",beta:"β",Beta:"Β",gamma:"γ",Gamma:"Γ",delta:"δ",Delta:"Δ",epsi:"ε",epsilon:"ε",epsiv:"ϵ",straightepsilon:"ϵ",varepsilon:"ϵ",Epsilon:"Ε",digamma:"ϝ",gammad:"ϝ",Gammad:"Ϝ",zeta:"ζ",Zeta:"Ζ",eta:"η",Eta:"Η",theta:"θ",thetasym:"ϑ",thetav:"ϑ",vartheta:"ϑ",Theta:"Θ",iota:"ι",Iota:"Ι",kappa:"κ",kappav:"ϰ",varkappa:"ϰ",Kappa:"Κ",lambda:"λ",Lambda:"Λ",mu:"μ",micro:"µ",Mu:"Μ",nu:"ν",Nu:"Ν",xi:"ξ",Xi:"Ξ",omicron:"ο",Omicron:"Ο",pi:"π",piv:"ϖ",varpi:"ϖ",Pi:"Π",rho:"ρ",rhov:"ϱ",varrho:"ϱ",Rho:"Ρ",sigma:"σ",Sigma:"Σ",sigmaf:"ς",sigmav:"ς",varsigma:"ς",tau:"τ",Tau:"Τ",upsi:"υ",upsilon:"υ",Upsilon:"Υ",Upsi:"ϒ",upsih:"ϒ",phi:"φ",phiv:"ϕ",straightphi:"ϕ",varphi:"ϕ",Phi:"Φ",chi:"χ",Chi:"Χ",psi:"ψ",Psi:"Ψ",omega:"ω",ohm:"Ω",Omega:"Ω",acy:"а",Acy:"А",bcy:"б",Bcy:"Б",vcy:"в",Vcy:"В",gcy:"г",Gcy:"Г",gjcy:"Ѓ",GJcy:"Ѓ",dcy:"д",Dcy:"Д",djcy:"Ђ",DJcy:"Ђ",iecy:"Е",IEcy:"Е",iocy:"Ё",IOcy:"Ё",jukcy:"є",Jukcy:"Є",zhcy:"Ж",ZHcy:"Ж",zcy:"з",Zcy:"З",dscy:"Ѕ",DScy:"Ѕ",icy:"и",Icy:"И",iukcy:"і",Iukcy:"І",yicy:"Ї",YIcy:"Ї",jcy:"й",Jcy:"Й",jsercy:"ј",Jsercy:"Ј",kcy:"к",Kcy:"К",kjcy:"Ќ",KJcy:"Ќ",lcy:"л",Lcy:"Л",ljcy:"Љ",LJcy:"Љ",mcy:"м",Mcy:"М",ncy:"н",Ncy:"Н",njcy:"Њ",NJcy:"Њ",ocy:"о",Ocy:"О",pcy:"п",Pcy:"П",rcy:"р",Rcy:"Р",scy:"с",Scy:"С",tcy:"т",Tcy:"Т",tshcy:"ћ",TSHcy:"Ћ",ucy:"у",Ucy:"У",ubrcy:"ў",Ubrcy:"Ў",fcy:"ф",Fcy:"Ф",khcy:"Х",KHcy:"Х",tscy:"Ц",TScy:"Ц",chcy:"Ч",CHcy:"Ч",dzcy:"Џ",DZcy:"Џ",shcy:"Ш",SHcy:"Ш",shchcy:"щ",SHCHcy:"Щ",hardcy:"ъ",HARDcy:"Ъ",ycy:"ы",Ycy:"Ы",softcy:"ь",SOFTcy:"Ь",ecy:"э",Ecy:"Э",yucy:"Ю",YUcy:"Ю",yacy:"Я",YAcy:"Я",alefsym:"ℵ",aleph:"ℵ",beth:"ℶ",gimel:"ℷ",daleth:"ℸ"};function Lb(t){if(!ut(t,"---"))return null;let l=3;for(;l<t.length&&(t[l]===" "||t[l]===" ");)l++;if(l>=t.length||t[l]!==`
15
15
  `)return null;l++;let i=!1;for(;l<t.length;){let r=l;for(;l<t.length&&t[l]!==`
16
- `;)l++;if(l>=t.length)break;let o=l++;if(ut(t,"---",r))return{endPos:l,hasValidYaml:i};let f=t.indexOf(":",r);f!==-1&&f<o&&(i=!0)}return null}var sh=aw,zb=/&([a-zA-Z0-9]+|#[0-9]{1,7}|#x[0-9a-fA-F]{1,6});/gi,jb={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"};function cp(t){var l={};for(var i in t){var r=i.toLowerCase(),o=jb[r];l[o||i]=t[i]}return l}var Bb=/(\n|^[-*]\s|^#|^ {2,}|^-{2,}|^>\s)/;function ic(t){return t.indexOf("&")===-1?t:t.replace(zb,(l,i)=>{let r=sh[i]||sh[i.toLowerCase()];if(r)return r;if(i[0]==="#"){let o=i[1]==="x"||i[1]==="X"?parseInt(i.slice(2),16):parseInt(i.slice(1),10);return o===0||o>=55296&&o<=57343||o>1114111?"�":o<=65535?String.fromCharCode(o):String.fromCharCode(55296+(o-65536>>10),56320+(o-65536&1023))}return l})}var xs=/(javascript|vbscript|data(?!:image)):/i;function fp(t){if(xs.test(t))return null;if(t.indexOf("%")===-1)return t;try{let l=decodeURIComponent(t).replace(/[^A-Za-z0-9/:]/g,"");if(xs.test(l))return null}catch{return null}return t}var zn={},Xn,qt;Xn=[192,193,194,195,196,197,224,225,226,227,228,229,230,198];for(qt=0;qt<Xn.length;qt++)zn[Xn[qt]]="a";zn[231]=zn[199]="c";zn[240]=zn[208]="d";Xn=[200,201,202,203,233,232,234,235];for(qt=0;qt<Xn.length;qt++)zn[Xn[qt]]="e";Xn=[207,239,206,238,205,237,204,236];for(qt=0;qt<Xn.length;qt++)zn[Xn[qt]]="i";zn[209]=zn[241]="n";Xn=[248,216,339,338,213,245,212,244,211,243,210,242];for(qt=0;qt<Xn.length;qt++)zn[Xn[qt]]="o";Xn=[220,252,219,251,218,250,217,249];for(qt=0;qt<Xn.length;qt++)zn[Xn[qt]]="u";zn[376]=zn[255]=zn[221]=zn[253]="y";function dp(t){return t>=ws&&t<=Ts||t>=or&&t<=ur||t>=As&&t<=Cs}function Gl(t){for(var l=[],i=0;i<t.length;i++){var r=t.charCodeAt(i);if(dp(r))r>=or&&r<=ur?l.push(String.fromCharCode(r+ew)):l.push(t[i]);else if(r===xe||r===Qa)l.push("-");else{var o=zn[r];o&&l.push(o)}}return l.join("")}function lw(t,l){return t.indexOf(l)!==-1}function ut(t,l,i){return t.startsWith(l,i)}function hp(t,l,i){return t.startsWith(l,(i===void 0?t.length:i)-l.length)}var oh=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","animateTransform","set"]);function vs(t){let l=t.toLowerCase();if(oh.has(l))return!0;let i=l.indexOf(":");return i!==-1?(l=l.slice(i+1),oh.has(l)):!1}var Ub=["src","href","data","formAction","srcDoc","action"],pp=1,pi=2,P1=1,iw=2,rw=3,sw=4,cr=(function(){let t=new Uint8Array(128),l;for(t[Qe]=t[Ct]=t[P3]=t[On]=t[xe]=pp,l=op;l<=Bu;l++)t[l]=pi;for(l=up;l<=sp;l++)t[l]=pi;for(l=mi;l<=_a;l++)t[l]=pi;for(l=q3;l<=Ls;l++)t[l]=pi;return t})(),Uu=(function(){let t=new Uint8Array(128);return t[Lu]=iw,t[mi]=sw,t[rp]=t[zs]=t[Ls]=t[sr]=rw,t[_a]=t[lc]=t[sp]=t[zu]=t[Ct]=t[xe]=t[op]=P1,t[tr]=t[nr]=t[Vl]=P1,t})();function ow(t){return t<Ma&&(cr[t]&pi)!==0}function Hu(t){return t<Ma&&(cr[t]&pp)!==0}var uw=/[\p{P}\p{S}]/u,cw=new RegExp("\\p{Zs}","u");function fr(t){if(!t)return!0;let l=t.charCodeAt(0);return l<Ma?(cr[l]&pp)!==0:cw.test(t)}function gp(t){if(typeof t=="number")return t<Ma&&(cr[t]&pi)!==0;if(!t)return!1;let l=t.charCodeAt(0);return l<Ma?(cr[l]&pi)!==0:uw.test(t)}function ye(t,l){let i=t.indexOf(`
17
- `,l);return i!==-1?i:t.length}function bn(t,l,i){let r=i??t.length;for(;l<r&&(t[l]===" "||t[l]===" ");)l++;return l}function Hb(t){if(!t)return!1;for(var l in t)return!0;return!1}function mp(t,l,i){for(var r=t,o=l.split("."),f=0;f<o.length&&(r=r?.[o[f]],r!==void 0);)f++;return r||i}function fw(t,l){if(!l)return t;let i=mp(l,t,void 0);return typeof i=="string"?i:typeof i=="object"&&i.component?i.component:t}function dw(t,l){if(!l)return{};let i=mp(l,t,void 0);return typeof i=="object"&&i.props?i.props:{}}function Ib(t,l){for(var i="",r=0,o=t.length;r<o;r++){var f=t[r],d=f.type;if(d===l.text||d===l.codeInline){var g=f.text;g&&(i+=g)}else d===l.textFormatted||d===l.link?f.children&&(i+=Ib(f.children,l)):d===l.image&&f.alt&&(i+=f.alt)}return i}function uh(t){var l=t.toLowerCase();return l==="title"||l==="textarea"||l==="style"||l==="xmp"||l==="iframe"||l==="noembed"||l==="noframes"||l==="script"||l==="plaintext"}function ch(t){return t.replace(/<(\/?)(title|textarea|style|xmp|iframe|noembed|noframes|script|plaintext)(\s|>|\/)/gi,function(l,i,r,o){return"&lt;"+i+r+o})}function hw(t){console.warn(t)}function lr(t,l,i,r){for(var o=ie(i),f=t.length,d=r??f-l,g=0;g<d&&l+g<f&&ie(t,l+g)===o;)g++;return g}function W1(t,l,i,r,o){if(o===0?i>=r:l<=r)return!1;let f=o===0?t[i]:t[l-1],d=o===0?l>0?t[l-1]:null:i<t.length?t[i]:null;var g=ie(f);if(g<Ma?Hu(g):fr(f))return!1;var h=d?ie(d):null,p=d===null||d===`
18
- `||d==="\r"||(h!==null?h<Ma?Hu(h):fr(d):!0),v=Xu(g,f);return!v||p?!0:d?Xu(ie(d),d):!1}function Iu(t){for(var l="",i=0;i<t.length;)if(t[i]==="\\"&&i+1<t.length){var r=t[i+1];l+=gp(ie(r))?r:"\\"+r,i+=2}else l+=t[i++];return ic(l)}function We(t,l){return l+(l<t.length?1:0)}function pw(t,l){if(t>=Ma)return 0;var i=Uu[t];return l&&i===1&&(t===tr||t===nr||t===Vl)?0:i}function gw(t,l,i,r,o,f){if(!i.length||i[i.length-1].type!==V.blockQuote)return null;let d=bn(r,0,r.length);if(d>=r.length||r[d]!==">")return null;let g=Kb(t,l,o,f);if(!g)return null;let h=i[i.length-1],p=g;return p.children&&h.children.push(...p.children),p.endPos}function Vu(t,l,i,r){return{type:V.heading,level:t,children:l,id:r(i)}}var fh=/\\(.)/g,mw=/\s+#+\s*$/,vp=/^(?:(\d{1,9})([.)])\s+(.*)$|(\d{1,9})([.)])\s*$|([-*+])\s+(.*)$|([-*+])\s*$)/,dh=/^(\d{1,9})([.)])(\s+|$)/,hh=/^([*+\-])(\s+|$)/,Vb=/^<([a-z][^ >/\n\r]*) ?([^>]*?)>/i,vw=/^<([a-z][^ >/]*) ?(?:[^>/]+[^/]|)>/i,ie=function(t,l=0){return t.charCodeAt(l)},Qu=function(t){return dp(ie(t))},ph=function(t){return Hu(ie(t))},xn=function(t){return t===" "||t===" "},Xu=function(t,l){return gp(t<Ma?t:l)},bw=function(t){var l=ie(t);return Qu(t)||l===Qa||l===zs||l===up||l===ju};function gh(t,l){var i=t.length;if(l>=i)return null;var r=ie(t[l]);if(!gi(r))return null;for(var o=l,f=l;f<i;){var d=ie(t[f]);if(d>=As&&d<=Cs||d>=or&&d<=ur||d>=ws&&d<=Ts||d===Qa)f++;else{var g=ie(t[f]);if(g===xe||g===Qe||g===Ct||g===On||g===Ql||g===Bu)break;return null}}if(f===o)return null;for(var h=t.slice(o,f),p=0;p<h.length;p++){var d=ie(h[p]);if(!(d>=As&&d<=Cs||d>=or&&d<=ur||d>=ws&&d<=Ts||d===Qa))return null}return{tagName:h,tagLower:h.toLowerCase(),nextPos:f}}function dr(t,l){var i=gu(t,l);return!i||i.kind!=="tag"?null:{tagName:i.tagName||"",tagLower:i.tagNameLower||"",attrs:i.attrs||"",endPos:i.endPos,isClosing:i.isClosing||!1,isSelfClosing:i.isSelfClosing||!1,hasNewline:i.hasNewline,hasSpaceBeforeSlash:!1,whitespaceBeforeAttrs:i.whitespaceBeforeAttrs||""}}function yw(t,l,i){for(var r=1,o=l;r>0&&o<t.length;){var f=t.indexOf("<",o);if(f===-1)return null;var d=dr(t,f);if(!d){o=f+1;continue}if(d.isClosing&&d.tagLower===i&&--r===0)return[f,d.endPos];!d.isClosing&&!d.isSelfClosing&&d.tagLower===i&&r++,o=d.endPos}return null}var _w=/^\{.*\}$/,Qb=/\n\n/,Xb=/^(\s{0,3}#[#\s]|\s{0,3}[-*+]\s|\s{0,3}\d+\.\s|\s{0,3}>\s|\s{0,3}```)/m,Sw=/<\/?(?:pre|script|style|textarea)\b/i,Ew=/^<[A-Z]/,ww=/\n$/,Tw=new Set(["#",">","-","*","+","`","|","0","1","2","3","4","5","6","7","8","9"]);function Aw(t,l,i,r){let o=l;for(;o<i;){if(t[o]==="\\"&&o+1<i){o+=2;continue}if(t[o]===r)return o;o++}return-1}function $1(t,l){var i=l.indexOf(":");if(i>0){var r=l.slice(i+1).trim(),o=r.length;if(o>=2){var f=r[0];(f==='"'||f==="'")&&r[o-1]===f&&(r=r.slice(1,-1))}t.push([l.slice(0,i).trim(),r])}}function Cw(t){var l=[];if(!t)return l;for(var i="",r=0,o="",f=0;f<t.length;f++){var d=t[f];if(d==='"'||d==="'")o?d===o&&(o="",r--):(o=d,r++);else if(d==="("&&hp(i,"url"))r++;else if(d===")"&&r>0)r--;else if(d===";"&&r===0){$1(l,i),i="";continue}i+=d}return $1(l,i),l}function xw(t,l,i,r){return l==="style"?Cw(i).reduce(function(o,[f,d]){let g=r(d,t,f);return g!=null&&(o[f.replace(/(-[a-z])/g,h=>h[1].toUpperCase())]=g),o},{}):Ub.indexOf(l)!==-1?r(i&&i.replace(fh,"$1"),t,l):(i.match(_w)&&(i=i.slice(1,i.length-1),i=i&&i.replace(fh,"$1")),i==="true"?!0:i==="false"?!1:i)}function di(t,l,i,r){let o={};if(!t||!t.trim())return o;let f=[],d=0,g=t.length;for(;d<g;){for(;d<g&&xn(t[d]);)d++;if(d>=g)break;let S=d;for(;d<g&&bw(t[d]);)d++;if(d===S){d++;continue}let y=t.slice(S,d);for(;d<g&&xn(t[d]);)d++;if(d>=g||t[d]!=="="){f.push(y);continue}for(d++;d<g&&xn(t[d]);)d++;if(d>=g){f.push(y+"=");break}let T=d,A=t[d];if(A==='"'||A==="'")for(d++;d<g;){if(t[d]===A){if(d+1>=g){d++;break}let _=t[d+1];if(xn(_)||_==="/"){d++;break}}d++}else if(A==="{"){let _=1;for(d++;d<g&&_>0;){if(t[d]==="{")_++;else if(t[d]==="}"&&(_--,_===0)){d++;break}d++}}else for(;d<g&&!xn(t[d]);)d++;f.push(y+"="+t.slice(T,d))}if(!f?.length)return o;let h=l.toLowerCase(),p=i.length>0&&i[0]>="A"&&i[0]<="Z";for(let S=0;S<f.length;S++){let y=f[S],T=y.indexOf("=");if(T!==-1){let A=y.slice(0,T).trim(),_=A.toLowerCase();if(_==="ref")continue;let w=p?A:_,x=y.slice(T+1).trim(),C=(D=>{let k=D[0];return(k==='"'||k==="'")&&D.length>=2&&D[D.length-1]===k?D.slice(1,-1):D})(x);if(_==="href"&&h==="a"||_==="src"&&h==="img"){let D=r.sanitizer(C,h,_);if(D==null){hw(`Stripped unsafe ${_} on <${i}>`);continue}o[w]=D}else{let D=xw(h,_,C,r.sanitizer);o[w]=D}}else y!=="style"&&(o[p?y:y.toLowerCase()]=!0)}if(t.indexOf("%")!==-1)try{if(xs.test(decodeURIComponent(t)))for(var v in o)delete o[v]}catch{}else if(xs.test(t))for(var v in o)delete o[v];return o}var Os=function(t){return Tw.has(t)};function Ow(t,l,i){let r=l+1;for(;r<t.length&&t[r]!=="]";){if(t[r]==="\\"&&r+1<t.length){r+=2;continue}r++}if(r>=t.length)return{shouldSkip:!1,newPos:0};let o=l+1,f=r,d=o<f&&(t[o]===`
16
+ `;)l++;if(l>=t.length)break;let o=l++;if(ut(t,"---",r))return{endPos:l,hasValidYaml:i};let f=t.indexOf(":",r);f!==-1&&f<o&&(i=!0)}return null}var sh=lw,zb=/&([a-zA-Z0-9]+|#[0-9]{1,7}|#x[0-9a-fA-F]{1,6});/gi,jb={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"};function cp(t){var l={};for(var i in t){var r=i.toLowerCase(),o=jb[r];l[o||i]=t[i]}return l}var Bb=/(\n|^[-*]\s|^#|^ {2,}|^-{2,}|^>\s)/;function ic(t){return t.indexOf("&")===-1?t:t.replace(zb,(l,i)=>{let r=sh[i]||sh[i.toLowerCase()];if(r)return r;if(i[0]==="#"){let o=i[1]==="x"||i[1]==="X"?parseInt(i.slice(2),16):parseInt(i.slice(1),10);return o===0||o>=55296&&o<=57343||o>1114111?"�":o<=65535?String.fromCharCode(o):String.fromCharCode(55296+(o-65536>>10),56320+(o-65536&1023))}return l})}var xs=/(javascript|vbscript|data(?!:image)):/i;function fp(t){if(xs.test(t))return null;if(t.indexOf("%")===-1)return t;try{let l=decodeURIComponent(t).replace(/[^A-Za-z0-9/:]/g,"");if(xs.test(l))return null}catch{return null}return t}var zn={},Xn,qt;Xn=[192,193,194,195,196,197,224,225,226,227,228,229,230,198];for(qt=0;qt<Xn.length;qt++)zn[Xn[qt]]="a";zn[231]=zn[199]="c";zn[240]=zn[208]="d";Xn=[200,201,202,203,233,232,234,235];for(qt=0;qt<Xn.length;qt++)zn[Xn[qt]]="e";Xn=[207,239,206,238,205,237,204,236];for(qt=0;qt<Xn.length;qt++)zn[Xn[qt]]="i";zn[209]=zn[241]="n";Xn=[248,216,339,338,213,245,212,244,211,243,210,242];for(qt=0;qt<Xn.length;qt++)zn[Xn[qt]]="o";Xn=[220,252,219,251,218,250,217,249];for(qt=0;qt<Xn.length;qt++)zn[Xn[qt]]="u";zn[376]=zn[255]=zn[221]=zn[253]="y";function dp(t){return t>=ws&&t<=Ts||t>=or&&t<=ur||t>=As&&t<=Cs}function Gl(t){for(var l=[],i=0;i<t.length;i++){var r=t.charCodeAt(i);if(dp(r))r>=or&&r<=ur?l.push(String.fromCharCode(r+tw)):l.push(t[i]);else if(r===xe||r===Qa)l.push("-");else{var o=zn[r];o&&l.push(o)}}return l.join("")}function iw(t,l){return t.indexOf(l)!==-1}function ut(t,l,i){return t.startsWith(l,i)}function hp(t,l,i){return t.startsWith(l,(i===void 0?t.length:i)-l.length)}var oh=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","animateTransform","set"]);function vs(t){let l=t.toLowerCase();if(oh.has(l))return!0;let i=l.indexOf(":");return i!==-1?(l=l.slice(i+1),oh.has(l)):!1}var Ub=["src","href","data","formAction","srcDoc","action"],pp=1,pi=2,P1=1,rw=2,sw=3,ow=4,cr=(function(){let t=new Uint8Array(128),l;for(t[Qe]=t[Ct]=t[W3]=t[On]=t[xe]=pp,l=op;l<=Bu;l++)t[l]=pi;for(l=up;l<=sp;l++)t[l]=pi;for(l=mi;l<=_a;l++)t[l]=pi;for(l=ew;l<=Ls;l++)t[l]=pi;return t})(),Uu=(function(){let t=new Uint8Array(128);return t[Lu]=rw,t[mi]=ow,t[rp]=t[zs]=t[Ls]=t[sr]=sw,t[_a]=t[lc]=t[sp]=t[zu]=t[Ct]=t[xe]=t[op]=P1,t[tr]=t[nr]=t[Vl]=P1,t})();function uw(t){return t<Ma&&(cr[t]&pi)!==0}function Hu(t){return t<Ma&&(cr[t]&pp)!==0}var cw=/[\p{P}\p{S}]/u,fw=new RegExp("\\p{Zs}","u");function fr(t){if(!t)return!0;let l=t.charCodeAt(0);return l<Ma?(cr[l]&pp)!==0:fw.test(t)}function gp(t){if(typeof t=="number")return t<Ma&&(cr[t]&pi)!==0;if(!t)return!1;let l=t.charCodeAt(0);return l<Ma?(cr[l]&pi)!==0:cw.test(t)}function ye(t,l){let i=t.indexOf(`
17
+ `,l);return i!==-1?i:t.length}function bn(t,l,i){let r=i??t.length;for(;l<r&&(t[l]===" "||t[l]===" ");)l++;return l}function Hb(t){if(!t)return!1;for(var l in t)return!0;return!1}function mp(t,l,i){for(var r=t,o=l.split("."),f=0;f<o.length&&(r=r?.[o[f]],r!==void 0);)f++;return r||i}function dw(t,l){if(!l)return t;let i=mp(l,t,void 0);return typeof i=="string"?i:typeof i=="object"&&i.component?i.component:t}function hw(t,l){if(!l)return{};let i=mp(l,t,void 0);return typeof i=="object"&&i.props?i.props:{}}function Ib(t,l){for(var i="",r=0,o=t.length;r<o;r++){var f=t[r],d=f.type;if(d===l.text||d===l.codeInline){var g=f.text;g&&(i+=g)}else d===l.textFormatted||d===l.link?f.children&&(i+=Ib(f.children,l)):d===l.image&&f.alt&&(i+=f.alt)}return i}function uh(t){var l=t.toLowerCase();return l==="title"||l==="textarea"||l==="style"||l==="xmp"||l==="iframe"||l==="noembed"||l==="noframes"||l==="script"||l==="plaintext"}function ch(t){return t.replace(/<(\/?)(title|textarea|style|xmp|iframe|noembed|noframes|script|plaintext)(\s|>|\/)/gi,function(l,i,r,o){return"&lt;"+i+r+o})}function pw(t){console.warn(t)}function lr(t,l,i,r){for(var o=ie(i),f=t.length,d=r??f-l,g=0;g<d&&l+g<f&&ie(t,l+g)===o;)g++;return g}function W1(t,l,i,r,o){if(o===0?i>=r:l<=r)return!1;let f=o===0?t[i]:t[l-1],d=o===0?l>0?t[l-1]:null:i<t.length?t[i]:null;var g=ie(f);if(g<Ma?Hu(g):fr(f))return!1;var h=d?ie(d):null,p=d===null||d===`
18
+ `||d==="\r"||(h!==null?h<Ma?Hu(h):fr(d):!0),v=Xu(g,f);return!v||p?!0:d?Xu(ie(d),d):!1}function Iu(t){for(var l="",i=0;i<t.length;)if(t[i]==="\\"&&i+1<t.length){var r=t[i+1];l+=gp(ie(r))?r:"\\"+r,i+=2}else l+=t[i++];return ic(l)}function We(t,l){return l+(l<t.length?1:0)}function gw(t,l){if(t>=Ma)return 0;var i=Uu[t];return l&&i===1&&(t===tr||t===nr||t===Vl)?0:i}function mw(t,l,i,r,o,f){if(!i.length||i[i.length-1].type!==V.blockQuote)return null;let d=bn(r,0,r.length);if(d>=r.length||r[d]!==">")return null;let g=Kb(t,l,o,f);if(!g)return null;let h=i[i.length-1],p=g;return p.children&&h.children.push(...p.children),p.endPos}function Vu(t,l,i,r){return{type:V.heading,level:t,children:l,id:r(i)}}var fh=/\\(.)/g,vw=/\s+#+\s*$/,vp=/^(?:(\d{1,9})([.)])\s+(.*)$|(\d{1,9})([.)])\s*$|([-*+])\s+(.*)$|([-*+])\s*$)/,dh=/^(\d{1,9})([.)])(\s+|$)/,hh=/^([*+\-])(\s+|$)/,Vb=/^<([a-z][^ >/\n\r]*) ?([^>]*?)>/i,bw=/^<([a-z][^ >/]*) ?(?:[^>/]+[^/]|)>/i,ie=function(t,l=0){return t.charCodeAt(l)},Qu=function(t){return dp(ie(t))},ph=function(t){return Hu(ie(t))},xn=function(t){return t===" "||t===" "},Xu=function(t,l){return gp(t<Ma?t:l)},yw=function(t){var l=ie(t);return Qu(t)||l===Qa||l===zs||l===up||l===ju};function gh(t,l){var i=t.length;if(l>=i)return null;var r=ie(t[l]);if(!gi(r))return null;for(var o=l,f=l;f<i;){var d=ie(t[f]);if(d>=As&&d<=Cs||d>=or&&d<=ur||d>=ws&&d<=Ts||d===Qa)f++;else{var g=ie(t[f]);if(g===xe||g===Qe||g===Ct||g===On||g===Ql||g===Bu)break;return null}}if(f===o)return null;for(var h=t.slice(o,f),p=0;p<h.length;p++){var d=ie(h[p]);if(!(d>=As&&d<=Cs||d>=or&&d<=ur||d>=ws&&d<=Ts||d===Qa))return null}return{tagName:h,tagLower:h.toLowerCase(),nextPos:f}}function dr(t,l){var i=gu(t,l);return!i||i.kind!=="tag"?null:{tagName:i.tagName||"",tagLower:i.tagNameLower||"",attrs:i.attrs||"",endPos:i.endPos,isClosing:i.isClosing||!1,isSelfClosing:i.isSelfClosing||!1,hasNewline:i.hasNewline,hasSpaceBeforeSlash:!1,whitespaceBeforeAttrs:i.whitespaceBeforeAttrs||""}}function _w(t,l,i){for(var r=1,o=l;r>0&&o<t.length;){var f=t.indexOf("<",o);if(f===-1)return null;var d=dr(t,f);if(!d){o=f+1;continue}if(d.isClosing&&d.tagLower===i&&--r===0)return[f,d.endPos];!d.isClosing&&!d.isSelfClosing&&d.tagLower===i&&r++,o=d.endPos}return null}var Sw=/^\{.*\}$/,Qb=/\n\n/,Xb=/^(\s{0,3}#[#\s]|\s{0,3}[-*+]\s|\s{0,3}\d+\.\s|\s{0,3}>\s|\s{0,3}```)/m,Ew=/<\/?(?:pre|script|style|textarea)\b/i,ww=/^<[A-Z]/,Tw=/\n$/,Aw=new Set(["#",">","-","*","+","`","|","0","1","2","3","4","5","6","7","8","9"]);function Cw(t,l,i,r){let o=l;for(;o<i;){if(t[o]==="\\"&&o+1<i){o+=2;continue}if(t[o]===r)return o;o++}return-1}function $1(t,l){var i=l.indexOf(":");if(i>0){var r=l.slice(i+1).trim(),o=r.length;if(o>=2){var f=r[0];(f==='"'||f==="'")&&r[o-1]===f&&(r=r.slice(1,-1))}t.push([l.slice(0,i).trim(),r])}}function xw(t){var l=[];if(!t)return l;for(var i="",r=0,o="",f=0;f<t.length;f++){var d=t[f];if(d==='"'||d==="'")o?d===o&&(o="",r--):(o=d,r++);else if(d==="("&&hp(i,"url"))r++;else if(d===")"&&r>0)r--;else if(d===";"&&r===0){$1(l,i),i="";continue}i+=d}return $1(l,i),l}function Ow(t,l,i,r){return l==="style"?xw(i).reduce(function(o,[f,d]){let g=r(d,t,f);return g!=null&&(o[f.replace(/(-[a-z])/g,h=>h[1].toUpperCase())]=g),o},{}):Ub.indexOf(l)!==-1?r(i&&i.replace(fh,"$1"),t,l):(i.match(Sw)&&(i=i.slice(1,i.length-1),i=i&&i.replace(fh,"$1")),i==="true"?!0:i==="false"?!1:i)}function di(t,l,i,r){let o={};if(!t||!t.trim())return o;let f=[],d=0,g=t.length;for(;d<g;){for(;d<g&&xn(t[d]);)d++;if(d>=g)break;let S=d;for(;d<g&&yw(t[d]);)d++;if(d===S){d++;continue}let y=t.slice(S,d);for(;d<g&&xn(t[d]);)d++;if(d>=g||t[d]!=="="){f.push(y);continue}for(d++;d<g&&xn(t[d]);)d++;if(d>=g){f.push(y+"=");break}let T=d,A=t[d];if(A==='"'||A==="'")for(d++;d<g;){if(t[d]===A){if(d+1>=g){d++;break}let _=t[d+1];if(xn(_)||_==="/"){d++;break}}d++}else if(A==="{"){let _=1;for(d++;d<g&&_>0;){if(t[d]==="{")_++;else if(t[d]==="}"&&(_--,_===0)){d++;break}d++}}else for(;d<g&&!xn(t[d]);)d++;f.push(y+"="+t.slice(T,d))}if(!f?.length)return o;let h=l.toLowerCase(),p=i.length>0&&i[0]>="A"&&i[0]<="Z";for(let S=0;S<f.length;S++){let y=f[S],T=y.indexOf("=");if(T!==-1){let A=y.slice(0,T).trim(),_=A.toLowerCase();if(_==="ref")continue;let w=p?A:_,x=y.slice(T+1).trim(),C=(D=>{let k=D[0];return(k==='"'||k==="'")&&D.length>=2&&D[D.length-1]===k?D.slice(1,-1):D})(x);if(_==="href"&&h==="a"||_==="src"&&h==="img"){let D=r.sanitizer(C,h,_);if(D==null){pw(`Stripped unsafe ${_} on <${i}>`);continue}o[w]=D}else{let D=Ow(h,_,C,r.sanitizer);o[w]=D}}else y!=="style"&&(o[p?y:y.toLowerCase()]=!0)}if(t.indexOf("%")!==-1)try{if(xs.test(decodeURIComponent(t)))for(var v in o)delete o[v]}catch{}else if(xs.test(t))for(var v in o)delete o[v];return o}var Os=function(t){return Aw.has(t)};function Dw(t,l,i){let r=l+1;for(;r<t.length&&t[r]!=="]";){if(t[r]==="\\"&&r+1<t.length){r+=2;continue}r++}if(r>=t.length)return{shouldSkip:!1,newPos:0};let o=l+1,f=r,d=o<f&&(t[o]===`
19
19
  `||t[o]==="\r"),g=f>o&&(t[f-1]===`
20
20
  `||t[f-1]==="\r"),h=r+1;if(h=bn(t,h),h>=t.length||t[h]!==":")return{shouldSkip:!1,newPos:0};if((d||g)&&i){let p=h+1;for(p=bn(t,p),p<t.length&&t[p]===`
21
21
  `&&(p=bn(t,p+1));p<t.length&&t[p]!==`
22
- `;)p++;return p<t.length&&p++,{shouldSkip:!0,newPos:p}}return Dw(t,h)}function Dw(t,l){let i=l+1;for(i=bn(t,i),i<t.length&&t[i]===`
22
+ `;)p++;return p<t.length&&p++,{shouldSkip:!0,newPos:p}}return Rw(t,h)}function Rw(t,l){let i=l+1;for(i=bn(t,i),i<t.length&&t[i]===`
23
23
  `&&(i=bn(t,i+1));i<t.length&&t[i]!==`
24
24
  `;)i++;if(i>=t.length)return{shouldSkip:!1,newPos:0};i++;let r=bn(t,i);if(r>=t.length||t[r]!=='"'&&t[r]!=="'")return{shouldSkip:!1,newPos:0};let o=t[r],f=r+1;for(;f<t.length&&t[f]!==o&&t[f]!==`
25
25
  `;){if(t[f]==="\\"&&f+1<t.length){f+=2;continue}f++}if(f>=t.length||t[f]!==o)return{shouldSkip:!1,newPos:0};let d=bn(t,f+1);return d<t.length&&t[d]!==`
26
- `&&t[d]!=="\r"?{shouldSkip:!0,newPos:i}:{shouldSkip:!1,newPos:0}}function Gb(t){for(var l=0;l<t.length;l++){var i=t[l];if(i.type===V.link)return!0;if(i.type===V.textFormatted){var r=i;if(r.children&&Gb(r.children))return!0}}return!1}function mh(t){for(var l="",i=0,r=t.length;i<r;i++){var o=t[i],f=o.type;if(f===V.text)l+=o.text;else if(f===V.image){var d=o;d.alt&&(l+=d.alt)}else if(f===V.textFormatted){var g=o;g.children&&(l+=mh(g.children))}else if(f===V.link){var h=o;h.children&&(l+=mh(h.children))}}return l}var Rw=new Set([" "," ","\r",`
27
- `,"\f","\v"]);function vi(t,l,i,r,o){for(var f=[],d=[],g=[],h=l,p=l,v=o.disableAutoLink||r.inAnchor,S=!1,y=!!r.inAnchor,T=!!o.disableParsingRawHTML,A=function(rn,sn){if(!y){var Kt=zd(t,h,r,o,"<");if(Kt)return _(h),f.push(Kt),h=Kt.endPos,p=h,!0}if(T)return!1;var Bt=sc(t,h,r,o);if(Bt)return _(h),f.push(Bt),h=Bt.endPos,p=h,!0;var Pe=dr(t,h);if(!Pe)return!1;var Bn=h+(Pe.isClosing?2:1);if(Bn>=t.length||xn(t[Bn]))return!1;var Mn=t.indexOf(">",h+1);if(Mn!==-1){var Ut=h+1,De=Mn-Ut;if(De>=7){var et=ut(t,"http://",Ut);if(et||ut(t,"https://",Ut)){for(var pn=Ut;pn<Mn;pn++)if(xn(t[pn]))return!1}}}var Fn=ie(t,Bn);if(gi(Fn)&&Bn+1<t.length&&t[Bn+1]===":"||Pe.isClosing&&Pe.attrs.trim().length)return!1;if(Pe.attrs.length)for(var on=!1,wa="",ze=0;ze<Pe.attrs.length;ze++){var ue=Pe.attrs[ze];if(on&&ue===wa)on=!1;else if(!on&&(ue==='"'||ue==="'"))on=!0,wa=ue;else if(ue==="*"||ue==="#"||ue==="!"){for(var R=ze+1;R<Pe.attrs.length&&Pe.attrs[R]!=="="&&Pe.attrs[R]!==" "&&Pe.attrs[R]!==" ";)R++;if(R<Pe.attrs.length&&Pe.attrs[R]==="=")return!1}}var $={type:V.htmlBlock,tag:Pe.tagName,attrs:{},children:[],text:t.slice(h,Pe.endPos),noInnerParse:!0,endPos:Pe.endPos};return _(h),f.push($),h=$.endPos,p=h,!0},_=function(rn){if(rn>p){var sn=t.slice(p,rn);f.push({type:V.text,text:S?ic(sn):sn}),p=rn,S=!1}};h<i;){var w=ie(t,h),x=pw(w,v);if(x===0){for(w===eu&&(S=!0),h++;h<i&&(w=ie(t,h),!(w>=Ma));){w===eu&&(S=!0);var C=Uu[w];if(C!==0){if(v&&C===1&&(w===tr||w===nr||w===Vl)){h++;continue}break}h++}continue}if(w===_a){for(var D=h,k=0;h+k<i&&ie(t,h+k)===_a;)k++;if(k>0){for(var U=h+k,H=-1,L=U;L<i;){for(;L<i&&ie(t,L)!==_a;)L++;if(L>=i)break;for(var Y=0;L+Y<i&&ie(t,L+Y)===_a;)Y++;Y>k&&(Y=k);var X=L+Y;if(Y===k&&(L<=U||ie(t,L-1)!==_a)&&(X>=i||ie(t,X)!==_a)){H=L,L=X;break}L++}if(H!==-1){for(var W=t.slice(U,H),K=!1,P=0;P<W.length;P++){var fe=ie(W,P);if(fe===Ct||fe===On){K=!0;break}}var he=W;if(K&&(he=W.replace(/\r\n/g," ").replace(/\r/g," ").replace(/\n/g," ")),he.length>0){var de=ie(he,0),j=ie(he,he.length-1);if(de===xe&&j===xe){for(var le=1;le<he.length-1;le++)if(ie(he,le)!==xe){he=he.slice(1,he.length-1);break}}}_(D),f.push({type:V.codeInline,text:he}),h=L,p=h;continue}h=U;continue}}if(!y&&!v&&(w===tr||w===nr||w===Vl)){var G=null,be=h+1<i?ie(t,h+1):0,ge=h+2<i?ie(t,h+2):0,O=h+3<i?ie(t,h+3):0,J=h+4<i?ie(t,h+4):0,ee=h+5<i?ie(t,h+5):0;if(w===nr&&be===kd&&ge===kd&&O===Y1?G="h":w===Vl&&be===Vl&&ge===Vl&&O===ju?G="w":w===tr&&be===kd&&ge===Y1&&O===up&&J===Bu&&ee===Bu&&(G="f"),G){var oe=zd(t,h,r,o,G);if(oe){_(h),f.push(oe),h=oe.endPos,p=h;continue}}}if(!y&&!v&&w===sp){var ne=zd(t,h,r,o,"@");if(ne&&"emailStart"in ne){for(var{emailStart:ce,endPos:me}=ne,Se=[],X=d.length-1;X>=0;X--){var we=d[X];we.sourcePos>=ce&&we.sourcePos<me&&(we.nodeIndex>=0&&we.nodeIndex<f.length&&(f.splice(we.nodeIndex,1),Se.push(we.nodeIndex)),d.splice(X,1))}if(ce<p){for(var L=f.length-1;L>=0;L--)if(f[L].type===V.text){f.splice(L,1),Se.push(L);break}p=ce}if(Se.length){Se.sort(function(rn,sn){return rn-sn});for(var Be=0,St=0;St<d.length;St++){for(var we=d[St];Be<Se.length&&Se[Be]<we.nodeIndex;)Be++;we.nodeIndex-=Be}}_(ce),f.push(ne),h=me,p=h;continue}}if(!(w===lc&&A())){if(w===Lu){if(h+1<i&&ie(t,h+1)===Ct){for(var Ae=h+2;Ae<i&&ie(t,Ae)===xe;)Ae++;if(Ae>=i){h++;continue}for(_(h),f.push({type:V.breakLine}),h+=2;h<i&&ie(t,h)===xe;)h++;p=h;continue}var mt=h+1<i?t[h+1]:"";if(mt&&"!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~".indexOf(mt)!==-1){_(h),f.push({type:V.text,text:mt==="&"?"&​":mt}),h+=2,p=h;continue}}if(w===mi){if(!y){if(h+1<i&&t[h+1]==="^"){for(var Tt=h+2;Tt<i&&t[Tt]!=="]";)Tt++;if(Tt<i){var Oe=t.slice(h+2,Tt);_(h),f.push({type:V.footnoteReference,target:`#${o.slugify(Oe)}`,text:Oe}),h=Tt+1,p=h;continue}}if(r.inList&&h+2<i&&ie(t,h+2)===zu){var ct=ie(t,h+1);if(ct===xe||ct===K1||ct===J1){_(h),f.push({type:V.gfmTask,completed:ct===K1||ct===J1}),h+=3,p=h;continue}}}var tn=!1;if(h>l&&t[h-1]==="!"){for(var _n=0,Xe=h-2;Xe>=l&&t[Xe]==="\\";Xe--)_n++;if((_n&1)===0&&(tn=!0,p<h-1&&_(h-1),f.length>0&&f[f.length-1].type===V.text)){var Ft=f[f.length-1];Ft.text.endsWith("!")&&(Ft.text=Ft.text.slice(0,-1),!Ft.text&&f.pop())}}tn||_(h),p=h+1,(!y||tn)&&g.push({type:tn?"image":"link",pos:tn?h-1:h,resultIdx:f.length,inAnchor:y}),h++;continue}if(w===zu&&g.length>0){var xt=g[g.length-1],nn=xt.pos+(xt.type==="image"?2:1),Et=h;_(h);var st=h+1,Dn=bp(f,xt),Qt=xt.type==="link"&&Gb(Dn),Rt=!1;if(!Qt&&st<i&&t[st]==="("){var zt=Lw(t,st+1);if(zt){q1(f,d,g,xt,nn,Et,o.sanitizer(Iu(zt.target),"a","href"),zt.title?Iu(zt.title):void 0),h=zt.endPos,p=h;continue}}var cn=r.refs||{},fn=null,ua=h;if(st<i&&t[st]==="["){for(var nt=st+1,L=nt;L<i&&t[L]!=="]";)L++;L<i&&(fn=t.slice(nt,L),ua=L,Rt=!0)}(!Rt||fn==="")&&(fn=t.slice(nn,Et));var dn=Fb(fn);if(!Qt&&cn&&cn[dn]){var vt=cn[dn];q1(f,d,g,xt,nn,Et,vt.target,vt.title),h=ua+1,p=h;continue}var ft=xt.resultIdx;g.pop(),f.length=ft,xt.type==="image"&&f.push({type:V.text,text:"!"}),f.push({type:V.text,text:"["},...Dn,{type:V.text,text:"]"});for(var P=0;P<d.length;P++)d[P].nodeIndex>=ft&&d[P].nodeIndex++;h++,p=h;continue}if(w===rp||w===zs||w===Ls||w===sr){var Je=t[h],qe=h,an=lr(t,h,Je);if((Je==="~"||Je==="=")&&an!==2){h++;continue}var hn=qe+an,jt=W1(t,qe,hn,i,0),at=W1(t,qe,hn,l,1),Yt=jt,At=at;if(Je==="_"&&jt&&at){if(qe>0){var Rn=t[qe-1],Nn=ie(Rn);Yt=Xu(Nn,Rn)}if(hn<i){var dt=t[hn],ln=ie(dt);At=Xu(ln,dt)}}_(qe),d.push({nodeIndex:f.length,type:Je,length:an,canOpen:Yt,canClose:At,active:!0,sourcePos:qe,inAnchor:y}),f.push({type:V.text,text:t.slice(qe,qe+an)}),h=qe+an,p=h;continue}if(w===Ct){for(var Xe=h-1,ca=0;Xe>=p&&ie(t,Xe)===xe;)ca++,Xe--;if(ca>=2){for(var Ae=h+1;Ae<i&&ie(t,Ae)===xe;)Ae++;if(Ae>=i){_(Xe+1),h=i,p=i;continue}for(_(Xe+1),f.push({type:V.breakLine}),h++;h<i&&ie(t,h)===xe;)h++;p=h;continue}var jn=h>p?ie(t,h-1):0,ct=h+1<i?ie(t,h+1):0,fa=h>p&&jn===xe&&ct===xe?h-1:h;_(fa),f.push({type:V.text,text:`
28
- `}),p=h+1,h>l&&jn===xe&&p<i&&ie(t,p)===xe&&p++,h=p;continue}for(w===eu&&(S=!0),h++;h<i;){var w=ie(t,h);if(w>=Ma)break;w===eu&&(S=!0);var C=Uu[w];if(C===0){h++;continue}if(C===1&&(w===tr||w===nr||w===Vl)&&v){h++;continue}break}}}if(_(h),d.length&&qb(f,d),g.length){g.sort(function(rn,sn){return rn.resultIdx-sn.resultIdx});for(var L=0;L<g.length;L++)f.splice(g[L].resultIdx+L,0,{type:V.text,text:g[L].type==="image"?"![":"["})}return f}function Nw(t,l,i,r,o){for(var f=!1,d=0;d<l.length;d++)if(l[d].sourcePos>=r&&l[d].sourcePos<o){f=!0;break}if(f){for(var g=bp(t,i),h=[],d=0;d<l.length;d++){var p=l[d];p.sourcePos>=r&&p.sourcePos<o&&h.push({nodeIndex:p.nodeIndex-i.resultIdx,type:p.type,length:p.length,canOpen:p.canOpen,canClose:p.canClose,active:p.active,sourcePos:p.sourcePos,inAnchor:p.inAnchor})}qb(g,h),t.length=i.resultIdx;for(var v=0;v<g.length;v++)t.push(g[v]);for(var S=[],d=0;d<l.length;d++)(l[d].sourcePos<r||l[d].sourcePos>=o)&&S.push(l[d]);l.length=0;for(var v=0;v<S.length;v++)l.push(S[v])}}function Mw(t,l,i,r){return t.type==="link"?{type:V.link,target:i,title:r,children:l}:{type:V.image,target:i||"",alt:mh(l),title:r}}function bp(t,l){return t.slice(l.resultIdx)}function q1(t,l,i,r,o,f,d,g){Nw(t,l,r,o,f);var h=bp(t,r);i.pop(),t.length=r.resultIdx,t.push(Mw(r,h,d,g))}function kw(t,l,i){let r=bn(t,l),o=r<t.length&&t[r]==="<";o&&r++;let f=r;if(o&&r<t.length&&t[r]===">")return{target:"",endPos:r+1,hadSpace:!1};let d,g;var h=!1;if(o){for(g=r;g<t.length&&t[g]!==">";){let S=t[g];if(S===`
26
+ `&&t[d]!=="\r"?{shouldSkip:!0,newPos:i}:{shouldSkip:!1,newPos:0}}function Gb(t){for(var l=0;l<t.length;l++){var i=t[l];if(i.type===V.link)return!0;if(i.type===V.textFormatted){var r=i;if(r.children&&Gb(r.children))return!0}}return!1}function mh(t){for(var l="",i=0,r=t.length;i<r;i++){var o=t[i],f=o.type;if(f===V.text)l+=o.text;else if(f===V.image){var d=o;d.alt&&(l+=d.alt)}else if(f===V.textFormatted){var g=o;g.children&&(l+=mh(g.children))}else if(f===V.link){var h=o;h.children&&(l+=mh(h.children))}}return l}var Nw=new Set([" "," ","\r",`
27
+ `,"\f","\v"]);function vi(t,l,i,r,o){for(var f=[],d=[],g=[],h=l,p=l,v=o.disableAutoLink||r.inAnchor,S=!1,y=!!r.inAnchor,T=!!o.disableParsingRawHTML,A=function(rn,sn){if(!y){var Kt=zd(t,h,r,o,"<");if(Kt)return _(h),f.push(Kt),h=Kt.endPos,p=h,!0}if(T)return!1;var Bt=sc(t,h,r,o);if(Bt)return _(h),f.push(Bt),h=Bt.endPos,p=h,!0;var Pe=dr(t,h);if(!Pe)return!1;var Bn=h+(Pe.isClosing?2:1);if(Bn>=t.length||xn(t[Bn]))return!1;var Mn=t.indexOf(">",h+1);if(Mn!==-1){var Ut=h+1,De=Mn-Ut;if(De>=7){var et=ut(t,"http://",Ut);if(et||ut(t,"https://",Ut)){for(var pn=Ut;pn<Mn;pn++)if(xn(t[pn]))return!1}}}var Fn=ie(t,Bn);if(gi(Fn)&&Bn+1<t.length&&t[Bn+1]===":"||Pe.isClosing&&Pe.attrs.trim().length)return!1;if(Pe.attrs.length)for(var on=!1,wa="",ze=0;ze<Pe.attrs.length;ze++){var ue=Pe.attrs[ze];if(on&&ue===wa)on=!1;else if(!on&&(ue==='"'||ue==="'"))on=!0,wa=ue;else if(ue==="*"||ue==="#"||ue==="!"){for(var R=ze+1;R<Pe.attrs.length&&Pe.attrs[R]!=="="&&Pe.attrs[R]!==" "&&Pe.attrs[R]!==" ";)R++;if(R<Pe.attrs.length&&Pe.attrs[R]==="=")return!1}}var $={type:V.htmlBlock,tag:Pe.tagName,attrs:{},children:[],text:t.slice(h,Pe.endPos),noInnerParse:!0,endPos:Pe.endPos};return _(h),f.push($),h=$.endPos,p=h,!0},_=function(rn){if(rn>p){var sn=t.slice(p,rn);f.push({type:V.text,text:S?ic(sn):sn}),p=rn,S=!1}};h<i;){var w=ie(t,h),x=gw(w,v);if(x===0){for(w===eu&&(S=!0),h++;h<i&&(w=ie(t,h),!(w>=Ma));){w===eu&&(S=!0);var C=Uu[w];if(C!==0){if(v&&C===1&&(w===tr||w===nr||w===Vl)){h++;continue}break}h++}continue}if(w===_a){for(var D=h,k=0;h+k<i&&ie(t,h+k)===_a;)k++;if(k>0){for(var U=h+k,H=-1,L=U;L<i;){for(;L<i&&ie(t,L)!==_a;)L++;if(L>=i)break;for(var Y=0;L+Y<i&&ie(t,L+Y)===_a;)Y++;Y>k&&(Y=k);var X=L+Y;if(Y===k&&(L<=U||ie(t,L-1)!==_a)&&(X>=i||ie(t,X)!==_a)){H=L,L=X;break}L++}if(H!==-1){for(var W=t.slice(U,H),K=!1,P=0;P<W.length;P++){var fe=ie(W,P);if(fe===Ct||fe===On){K=!0;break}}var he=W;if(K&&(he=W.replace(/\r\n/g," ").replace(/\r/g," ").replace(/\n/g," ")),he.length>0){var de=ie(he,0),j=ie(he,he.length-1);if(de===xe&&j===xe){for(var le=1;le<he.length-1;le++)if(ie(he,le)!==xe){he=he.slice(1,he.length-1);break}}}_(D),f.push({type:V.codeInline,text:he}),h=L,p=h;continue}h=U;continue}}if(!y&&!v&&(w===tr||w===nr||w===Vl)){var G=null,be=h+1<i?ie(t,h+1):0,ge=h+2<i?ie(t,h+2):0,O=h+3<i?ie(t,h+3):0,J=h+4<i?ie(t,h+4):0,ee=h+5<i?ie(t,h+5):0;if(w===nr&&be===kd&&ge===kd&&O===Y1?G="h":w===Vl&&be===Vl&&ge===Vl&&O===ju?G="w":w===tr&&be===kd&&ge===Y1&&O===up&&J===Bu&&ee===Bu&&(G="f"),G){var oe=zd(t,h,r,o,G);if(oe){_(h),f.push(oe),h=oe.endPos,p=h;continue}}}if(!y&&!v&&w===sp){var ne=zd(t,h,r,o,"@");if(ne&&"emailStart"in ne){for(var{emailStart:ce,endPos:me}=ne,Se=[],X=d.length-1;X>=0;X--){var we=d[X];we.sourcePos>=ce&&we.sourcePos<me&&(we.nodeIndex>=0&&we.nodeIndex<f.length&&(f.splice(we.nodeIndex,1),Se.push(we.nodeIndex)),d.splice(X,1))}if(ce<p){for(var L=f.length-1;L>=0;L--)if(f[L].type===V.text){f.splice(L,1),Se.push(L);break}p=ce}if(Se.length){Se.sort(function(rn,sn){return rn-sn});for(var Be=0,St=0;St<d.length;St++){for(var we=d[St];Be<Se.length&&Se[Be]<we.nodeIndex;)Be++;we.nodeIndex-=Be}}_(ce),f.push(ne),h=me,p=h;continue}}if(!(w===lc&&A())){if(w===Lu){if(h+1<i&&ie(t,h+1)===Ct){for(var Ae=h+2;Ae<i&&ie(t,Ae)===xe;)Ae++;if(Ae>=i){h++;continue}for(_(h),f.push({type:V.breakLine}),h+=2;h<i&&ie(t,h)===xe;)h++;p=h;continue}var mt=h+1<i?t[h+1]:"";if(mt&&"!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~".indexOf(mt)!==-1){_(h),f.push({type:V.text,text:mt==="&"?"&​":mt}),h+=2,p=h;continue}}if(w===mi){if(!y){if(h+1<i&&t[h+1]==="^"){for(var Tt=h+2;Tt<i&&t[Tt]!=="]";)Tt++;if(Tt<i){var Oe=t.slice(h+2,Tt);_(h),f.push({type:V.footnoteReference,target:`#${o.slugify(Oe)}`,text:Oe}),h=Tt+1,p=h;continue}}if(r.inList&&h+2<i&&ie(t,h+2)===zu){var ct=ie(t,h+1);if(ct===xe||ct===K1||ct===J1){_(h),f.push({type:V.gfmTask,completed:ct===K1||ct===J1}),h+=3,p=h;continue}}}var tn=!1;if(h>l&&t[h-1]==="!"){for(var _n=0,Xe=h-2;Xe>=l&&t[Xe]==="\\";Xe--)_n++;if((_n&1)===0&&(tn=!0,p<h-1&&_(h-1),f.length>0&&f[f.length-1].type===V.text)){var Ft=f[f.length-1];Ft.text.endsWith("!")&&(Ft.text=Ft.text.slice(0,-1),!Ft.text&&f.pop())}}tn||_(h),p=h+1,(!y||tn)&&g.push({type:tn?"image":"link",pos:tn?h-1:h,resultIdx:f.length,inAnchor:y}),h++;continue}if(w===zu&&g.length>0){var xt=g[g.length-1],nn=xt.pos+(xt.type==="image"?2:1),Et=h;_(h);var st=h+1,Dn=bp(f,xt),Qt=xt.type==="link"&&Gb(Dn),Rt=!1;if(!Qt&&st<i&&t[st]==="("){var zt=zw(t,st+1);if(zt){q1(f,d,g,xt,nn,Et,o.sanitizer(Iu(zt.target),"a","href"),zt.title?Iu(zt.title):void 0),h=zt.endPos,p=h;continue}}var cn=r.refs||{},fn=null,ua=h;if(st<i&&t[st]==="["){for(var nt=st+1,L=nt;L<i&&t[L]!=="]";)L++;L<i&&(fn=t.slice(nt,L),ua=L,Rt=!0)}(!Rt||fn==="")&&(fn=t.slice(nn,Et));var dn=Fb(fn);if(!Qt&&cn&&cn[dn]){var vt=cn[dn];q1(f,d,g,xt,nn,Et,vt.target,vt.title),h=ua+1,p=h;continue}var ft=xt.resultIdx;g.pop(),f.length=ft,xt.type==="image"&&f.push({type:V.text,text:"!"}),f.push({type:V.text,text:"["},...Dn,{type:V.text,text:"]"});for(var P=0;P<d.length;P++)d[P].nodeIndex>=ft&&d[P].nodeIndex++;h++,p=h;continue}if(w===rp||w===zs||w===Ls||w===sr){var Je=t[h],qe=h,an=lr(t,h,Je);if((Je==="~"||Je==="=")&&an!==2){h++;continue}var hn=qe+an,jt=W1(t,qe,hn,i,0),at=W1(t,qe,hn,l,1),Yt=jt,At=at;if(Je==="_"&&jt&&at){if(qe>0){var Rn=t[qe-1],Nn=ie(Rn);Yt=Xu(Nn,Rn)}if(hn<i){var dt=t[hn],ln=ie(dt);At=Xu(ln,dt)}}_(qe),d.push({nodeIndex:f.length,type:Je,length:an,canOpen:Yt,canClose:At,active:!0,sourcePos:qe,inAnchor:y}),f.push({type:V.text,text:t.slice(qe,qe+an)}),h=qe+an,p=h;continue}if(w===Ct){for(var Xe=h-1,ca=0;Xe>=p&&ie(t,Xe)===xe;)ca++,Xe--;if(ca>=2){for(var Ae=h+1;Ae<i&&ie(t,Ae)===xe;)Ae++;if(Ae>=i){_(Xe+1),h=i,p=i;continue}for(_(Xe+1),f.push({type:V.breakLine}),h++;h<i&&ie(t,h)===xe;)h++;p=h;continue}var jn=h>p?ie(t,h-1):0,ct=h+1<i?ie(t,h+1):0,fa=h>p&&jn===xe&&ct===xe?h-1:h;_(fa),f.push({type:V.text,text:`
28
+ `}),p=h+1,h>l&&jn===xe&&p<i&&ie(t,p)===xe&&p++,h=p;continue}for(w===eu&&(S=!0),h++;h<i;){var w=ie(t,h);if(w>=Ma)break;w===eu&&(S=!0);var C=Uu[w];if(C===0){h++;continue}if(C===1&&(w===tr||w===nr||w===Vl)&&v){h++;continue}break}}}if(_(h),d.length&&ey(f,d),g.length){g.sort(function(rn,sn){return rn.resultIdx-sn.resultIdx});for(var L=0;L<g.length;L++)f.splice(g[L].resultIdx+L,0,{type:V.text,text:g[L].type==="image"?"![":"["})}return f}function Mw(t,l,i,r,o){for(var f=!1,d=0;d<l.length;d++)if(l[d].sourcePos>=r&&l[d].sourcePos<o){f=!0;break}if(f){for(var g=bp(t,i),h=[],d=0;d<l.length;d++){var p=l[d];p.sourcePos>=r&&p.sourcePos<o&&h.push({nodeIndex:p.nodeIndex-i.resultIdx,type:p.type,length:p.length,canOpen:p.canOpen,canClose:p.canClose,active:p.active,sourcePos:p.sourcePos,inAnchor:p.inAnchor})}ey(g,h),t.length=i.resultIdx;for(var v=0;v<g.length;v++)t.push(g[v]);for(var S=[],d=0;d<l.length;d++)(l[d].sourcePos<r||l[d].sourcePos>=o)&&S.push(l[d]);l.length=0;for(var v=0;v<S.length;v++)l.push(S[v])}}function kw(t,l,i,r){return t.type==="link"?{type:V.link,target:i,title:r,children:l}:{type:V.image,target:i||"",alt:mh(l),title:r}}function bp(t,l){return t.slice(l.resultIdx)}function q1(t,l,i,r,o,f,d,g){Mw(t,l,r,o,f);var h=bp(t,r);i.pop(),t.length=r.resultIdx,t.push(kw(r,h,d,g))}function Lw(t,l,i){let r=bn(t,l),o=r<t.length&&t[r]==="<";o&&r++;let f=r;if(o&&r<t.length&&t[r]===">")return{target:"",endPos:r+1,hadSpace:!1};let d,g;var h=!1;if(o){for(g=r;g<t.length&&t[g]!==">";){let S=t[g];if(S===`
29
29
  `||S==="\r"||S==="<")return null;if(S==="\\"){g+=2;continue}g++}if(g>=t.length||t[g]!==">")return null;g++;let p=f;for(;p<g-1&&xn(t[p]);)p++;let v=g-1;for(;v>p&&xn(t[v-1]);)v--;d=t.slice(p,v),r=g}else{let p=0;for(g=r;g<t.length;){let v=t[g];if(v===" "||v===" "||v===`
30
30
  `){h=!0;break}if(v==="("){if(g>0&&t[g-1]==="\\"){g++;continue}p++,g++;continue}if(v===")"){if(g>0&&t[g-1]==="\\"){g++;continue}if(p===0)break;p--,g++;continue}g++}d=t.slice(f,g),r=g}return{target:d,endPos:r,hadSpace:h}}function ev(t,l,i,r){let o=l,f=0;for(;o<t.length;){let g=t[o];if(xn(g))o++;else if(g===`
31
- `){if(f>=1)break;f++,o++}else{if(fr(g))break;break}}if(i&&!r&&(o>=t.length||t[o]!=='"'&&t[o]!=="'"&&t[o]!=="("))return{title:void 0,endPos:o};let d;if(o<t.length){let g=t[o];if(g==='"'||g==="'"){o++;let h=o;for(;o<t.length&&t[o]!==g;)t[o]==="\\"&&o++,o++;o<t.length&&(d=t.slice(h,o),o++)}else if(g==="("){o++;let h=o,p=1;for(;o<t.length&&p>0;)t[o]==="\\"&&o+1<t.length?o++:t[o]==="("?p++:t[o]===")"&&p--,o++;p===0&&(d=t.slice(h,o-1))}}return o=bn(t,o),{title:d,endPos:o}}function Lw(t,l,i){let r=kw(t,l);if(!r)return null;let o=l;o=bn(t,o);let f=o<t.length&&t[o]==="<";if(f&&r.target===""&&r.endPos===o+2){let g=ev(t,r.endPos,!1,f);return g.endPos>=t.length||t[g.endPos]!==")"?null:{target:"",title:g.title,endPos:g.endPos+1}}let d=ev(t,r.endPos,r.hadSpace,f);return d.endPos>=t.length||t[d.endPos]!==")"?null:{target:r.target,title:d.title,endPos:d.endPos+1}}function gi(t){return t>=or&&t<=ur||t>=As&&t<=Cs}function Zb(t){let l=t.indexOf(":");if(l<2||l>32)return!1;let i=ie(t);if(!gi(i))return!1;for(let r=1;r<l;r++){let o=t[r];if(ie(o),!Qu(o)&&o!=="+"&&o!=="."&&o!=="-")return!1}return!0}function tv(t,l,i){return l===0?!0:(i?`
31
+ `){if(f>=1)break;f++,o++}else{if(fr(g))break;break}}if(i&&!r&&(o>=t.length||t[o]!=='"'&&t[o]!=="'"&&t[o]!=="("))return{title:void 0,endPos:o};let d;if(o<t.length){let g=t[o];if(g==='"'||g==="'"){o++;let h=o;for(;o<t.length&&t[o]!==g;)t[o]==="\\"&&o++,o++;o<t.length&&(d=t.slice(h,o),o++)}else if(g==="("){o++;let h=o,p=1;for(;o<t.length&&p>0;)t[o]==="\\"&&o+1<t.length?o++:t[o]==="("?p++:t[o]===")"&&p--,o++;p===0&&(d=t.slice(h,o-1))}}return o=bn(t,o),{title:d,endPos:o}}function zw(t,l,i){let r=Lw(t,l);if(!r)return null;let o=l;o=bn(t,o);let f=o<t.length&&t[o]==="<";if(f&&r.target===""&&r.endPos===o+2){let g=ev(t,r.endPos,!1,f);return g.endPos>=t.length||t[g.endPos]!==")"?null:{target:"",title:g.title,endPos:g.endPos+1}}let d=ev(t,r.endPos,r.hadSpace,f);return d.endPos>=t.length||t[d.endPos]!==")"?null:{target:r.target,title:d.title,endPos:d.endPos+1}}function gi(t){return t>=or&&t<=ur||t>=As&&t<=Cs}function Zb(t){let l=t.indexOf(":");if(l<2||l>32)return!1;let i=ie(t);if(!gi(i))return!1;for(let r=1;r<l;r++){let o=t[r];if(ie(o),!Qu(o)&&o!=="+"&&o!=="."&&o!=="-")return!1}return!0}function tv(t,l,i){return l===0?!0:(i?`
32
32
  \r*_~(`:`
33
- *_~(`).indexOf(t[l-1])!==-1}function tu(t,l,i,r,o){let f=r(t,"a","href");return f?{type:V.link,target:f,children:[{type:V.text,text:l}],endPos:i,...o!==void 0?{emailStart:o}:{}}:null}function Ld(t,l,i,r,o){if(i.inAnchor||o!==2&&r.disableAutoLink)return null;if(o===2){if(t[l]!=="<")return null;let _=l+1;for(;_<t.length&&t[_]!==">";){let Y=ie(t,_);if(Y===xe||Y===Qe||Y===Ct||Y===On||Y<xe)return null;_++}if(_>=t.length||t[_]!==">")return null;let w=t.slice(l+1,_);if(!w.length)return null;let x=w.indexOf("\\")!==-1,C=Zb(w),D=ut(w,"http://")||ut(w,"https://"),k=!1;if(!C&&!D&&w.length>=7){let Y=w[0];if(Y==="m"||Y==="M"){let X=w.toLowerCase();if(ut(X,"mailto:")){k=!0;let W=X.indexOf(":"),K=w.slice(W+1);return tu("mailto:"+K,w,_+1,r.sanitizer)}}}let U=!x&&w.indexOf("@")!==-1&&w.indexOf("//")===-1&&!C;if(!D&&!k&&!U&&!C)return null;let H=w,L=w;return!k&&!C&&!D&&U&&(H="mailto:"+w),tu(H,L,_+1,r.sanitizer)}if(o===1){let _=l;for(;_>0&&(Qu(t[_-1])||".+-_".indexOf(t[_-1])!==-1);)_--;if(_>=l||!tv(t,_,!0))return null;let w=l+1,x=!1;for(;w<t.length;){let D=t[w];if(D===".")x=!0,w++;else if(Qu(D)||D==="-"||D==="_")w++;else break}if(!x||w<=l+1)return null;for(;w>l+1&&t[w-1]===".";)w--;if(w>l+1&&(t[w-1]==="-"||t[w-1]==="_"))return null;if(w-(l+1)<1e4){if(t.indexOf(".",l+1)>=w||t.indexOf(".",l+1)===-1)return null}else if(t.slice(l+1,w).indexOf(".")===-1)return null;let C=t.slice(_,w);return tu("mailto:"+C,C,w,r.sanitizer,_)}let f=ut(t,"http://",l)||ut(t,"https://",l),d=!f&&ut(t,"ftp://",l),g=!f&&!d&&ut(t,"www.",l);if(!(f||d||g)||!tv(t,l,!1))return null;for(var h=l+(f?ie(t,l+4)===K3?8:7:d?6:4),p=h;h<t.length;){let _=ie(t,h);if(_===xe||_===Qe||_===Ct||_===lc||_===Ql)break;h++}if(h<=p)return null;let v=h;for(;v>p;){let _=t[v-1];if(v>p+1&&t[v-2]==="\\")break;if(_==="?"||_==="!"||_==="."||_===","||_===":"||_==="*"||_==="_"||_==="~")v--;else if(_===";"){let w=v-2;for(;w>=p&&t[w]!=="&"&&t[w]!==" ";)w--;if(w>=p&&t[w]==="&"){let x=t.slice(w+1,v-1);if(x.length>=2&&x.length<=10&&/^[a-zA-Z0-9]+$/.test(x)&&(x==="lt"||x==="gt"||x.length>=3&&(ut(x,"amp")||ut(x,"apos")||ut(x,"quot")||ut(x,"nbsp")||/^[a-z]{3,10}$/.test(x))))break;v=w;break}v--}else if(_===")"){let w=0,x=0;for(let C=p;C<v;C++)t[C]==="("&&w++,t[C]===")"&&x++;if(x>w)v--;else break}else break}if(h=v,h<=p)return null;for(var S=p,y=-1,T=-1;S<h;){let _=ie(t,S);if(_>=or&&_<=ur||_>=As&&_<=Cs||_>=ws&&_<=Ts||_===Qa||_===zs||_===ju){_===ju&&(T=y,y=S),S++;continue}break}if(S===p||y===-1)return null;T===-1&&(T=p-1);for(let _=T+1;_<y;_++)if(t[_]==="_")return null;for(let _=y+1;_<S;_++)if(t[_]==="_")return null;let A=t.slice(l,h);return tu(g?"http://"+A:A,A,h,r.sanitizer)}function zd(t,l,i,r,o){return o==="<"?Ld(t,l,i,r,2):o==="h"||o==="f"||o==="w"?Ld(t,l,i,r,0):o==="@"?Ld(t,l,i,r,1):null}function Fb(t){var l=t.trim(),i=l.replace(/[\s\t\n\r]+/g," ");return i.indexOf("ẞ")!==-1?i.replace(/\u1E9E/g,"ss").toLowerCase():i.toLowerCase()}function zw(t,l,i){if(l+3>=t.length||t[l]!=="[")return null;let r=t[l+1];return r!==" "&&r!=="x"&&r!=="X"||t[l+2]!=="]"?null:{type:V.gfmTask,completed:r.toLowerCase()==="x",endPos:l+3}}function yp(t,l,i,r){let{inline:o,inList:f,inBlockQuote:d}=l;r.inline!==void 0&&(l.inline=r.inline),r.list!==void 0&&(l.inList=r.list),r.inBlockQuote!==void 0&&(l.inBlockQuote=r.inBlockQuote);let g=_p(t,l,i);return l.inline=o,l.inList=f,l.inBlockQuote=d,g}function js(t,l,i,r,o){return rc(r,!0,()=>vi(t,l,i,r,o))}function Bs(t,l,i,r){var o=t[l];if(o===void 0)return null;var f=l,d=null,g=o,h=null,p=ie(o),v=p===xe||p===Qe;if(v){if(h=ye(t,l),d=$e(t,l,h),f=l+d.charCount,f>=t.length)return du(t,l);g=t[f]}var S=d?d.spaceEquivalent:0;if(S>=4)return v?du(t,l):null;var y=ie(g);if(y===Ql){var T=Kb(t,l,i,r);if(T)return T}else{if(y===zs)return Gu(t,l);if(y===Qa||y===rp||y===W3){var A=Gu(t,l);if(A)return A;var _=_h(t,l,i,r);if(_)return _}else if(y>=ws&&y<=Ts){var _=_h(t,l,i,r);if(_)return _}else{if(y===ku)return jw(t,f,i,r);if(y===mi)return hr(t,f,i,r,f+1<t.length&&ie(t,f+1)===Mu);if(y===lc&&!r.disableParsingRawHTML)return sc(t,f,i,r);if(y===_a||y===Ls){if(h||(h=ye(t,l)),d||(d=$e(t,l,h)),d.spaceEquivalent<=3)return Sp(t,f,i,r)}else if(y===$3)return Iw(t,l,i,r)}}return v?du(t,l):null}function _p(t,l,i){let r=[],o=0;for(;o<t.length;){for(;o<t.length&&t[o]===`
33
+ *_~(`).indexOf(t[l-1])!==-1}function tu(t,l,i,r,o){let f=r(t,"a","href");return f?{type:V.link,target:f,children:[{type:V.text,text:l}],endPos:i,...o!==void 0?{emailStart:o}:{}}:null}function Ld(t,l,i,r,o){if(i.inAnchor||o!==2&&r.disableAutoLink)return null;if(o===2){if(t[l]!=="<")return null;let _=l+1;for(;_<t.length&&t[_]!==">";){let Y=ie(t,_);if(Y===xe||Y===Qe||Y===Ct||Y===On||Y<xe)return null;_++}if(_>=t.length||t[_]!==">")return null;let w=t.slice(l+1,_);if(!w.length)return null;let x=w.indexOf("\\")!==-1,C=Zb(w),D=ut(w,"http://")||ut(w,"https://"),k=!1;if(!C&&!D&&w.length>=7){let Y=w[0];if(Y==="m"||Y==="M"){let X=w.toLowerCase();if(ut(X,"mailto:")){k=!0;let W=X.indexOf(":"),K=w.slice(W+1);return tu("mailto:"+K,w,_+1,r.sanitizer)}}}let U=!x&&w.indexOf("@")!==-1&&w.indexOf("//")===-1&&!C;if(!D&&!k&&!U&&!C)return null;let H=w,L=w;return!k&&!C&&!D&&U&&(H="mailto:"+w),tu(H,L,_+1,r.sanitizer)}if(o===1){let _=l;for(;_>0&&(Qu(t[_-1])||".+-_".indexOf(t[_-1])!==-1);)_--;if(_>=l||!tv(t,_,!0))return null;let w=l+1,x=!1;for(;w<t.length;){let D=t[w];if(D===".")x=!0,w++;else if(Qu(D)||D==="-"||D==="_")w++;else break}if(!x||w<=l+1)return null;for(;w>l+1&&t[w-1]===".";)w--;if(w>l+1&&(t[w-1]==="-"||t[w-1]==="_"))return null;if(w-(l+1)<1e4){if(t.indexOf(".",l+1)>=w||t.indexOf(".",l+1)===-1)return null}else if(t.slice(l+1,w).indexOf(".")===-1)return null;let C=t.slice(_,w);return tu("mailto:"+C,C,w,r.sanitizer,_)}let f=ut(t,"http://",l)||ut(t,"https://",l),d=!f&&ut(t,"ftp://",l),g=!f&&!d&&ut(t,"www.",l);if(!(f||d||g)||!tv(t,l,!1))return null;for(var h=l+(f?ie(t,l+4)===J3?8:7:d?6:4),p=h;h<t.length;){let _=ie(t,h);if(_===xe||_===Qe||_===Ct||_===lc||_===Ql)break;h++}if(h<=p)return null;let v=h;for(;v>p;){let _=t[v-1];if(v>p+1&&t[v-2]==="\\")break;if(_==="?"||_==="!"||_==="."||_===","||_===":"||_==="*"||_==="_"||_==="~")v--;else if(_===";"){let w=v-2;for(;w>=p&&t[w]!=="&"&&t[w]!==" ";)w--;if(w>=p&&t[w]==="&"){let x=t.slice(w+1,v-1);if(x.length>=2&&x.length<=10&&/^[a-zA-Z0-9]+$/.test(x)&&(x==="lt"||x==="gt"||x.length>=3&&(ut(x,"amp")||ut(x,"apos")||ut(x,"quot")||ut(x,"nbsp")||/^[a-z]{3,10}$/.test(x))))break;v=w;break}v--}else if(_===")"){let w=0,x=0;for(let C=p;C<v;C++)t[C]==="("&&w++,t[C]===")"&&x++;if(x>w)v--;else break}else break}if(h=v,h<=p)return null;for(var S=p,y=-1,T=-1;S<h;){let _=ie(t,S);if(_>=or&&_<=ur||_>=As&&_<=Cs||_>=ws&&_<=Ts||_===Qa||_===zs||_===ju){_===ju&&(T=y,y=S),S++;continue}break}if(S===p||y===-1)return null;T===-1&&(T=p-1);for(let _=T+1;_<y;_++)if(t[_]==="_")return null;for(let _=y+1;_<S;_++)if(t[_]==="_")return null;let A=t.slice(l,h);return tu(g?"http://"+A:A,A,h,r.sanitizer)}function zd(t,l,i,r,o){return o==="<"?Ld(t,l,i,r,2):o==="h"||o==="f"||o==="w"?Ld(t,l,i,r,0):o==="@"?Ld(t,l,i,r,1):null}function Fb(t){var l=t.trim(),i=l.replace(/[\s\t\n\r]+/g," ");return i.indexOf("ẞ")!==-1?i.replace(/\u1E9E/g,"ss").toLowerCase():i.toLowerCase()}function jw(t,l,i){if(l+3>=t.length||t[l]!=="[")return null;let r=t[l+1];return r!==" "&&r!=="x"&&r!=="X"||t[l+2]!=="]"?null:{type:V.gfmTask,completed:r.toLowerCase()==="x",endPos:l+3}}function yp(t,l,i,r){let{inline:o,inList:f,inBlockQuote:d}=l;r.inline!==void 0&&(l.inline=r.inline),r.list!==void 0&&(l.inList=r.list),r.inBlockQuote!==void 0&&(l.inBlockQuote=r.inBlockQuote);let g=_p(t,l,i);return l.inline=o,l.inList=f,l.inBlockQuote=d,g}function js(t,l,i,r,o){return rc(r,!0,()=>vi(t,l,i,r,o))}function Bs(t,l,i,r){var o=t[l];if(o===void 0)return null;var f=l,d=null,g=o,h=null,p=ie(o),v=p===xe||p===Qe;if(v){if(h=ye(t,l),d=$e(t,l,h),f=l+d.charCount,f>=t.length)return du(t,l);g=t[f]}var S=d?d.spaceEquivalent:0;if(S>=4)return v?du(t,l):null;var y=ie(g);if(y===Ql){var T=Kb(t,l,i,r);if(T)return T}else{if(y===zs)return Gu(t,l);if(y===Qa||y===rp||y===$3){var A=Gu(t,l);if(A)return A;var _=_h(t,l,i,r);if(_)return _}else if(y>=ws&&y<=Ts){var _=_h(t,l,i,r);if(_)return _}else{if(y===ku)return Bw(t,f,i,r);if(y===mi)return hr(t,f,i,r,f+1<t.length&&ie(t,f+1)===Mu);if(y===lc&&!r.disableParsingRawHTML)return sc(t,f,i,r);if(y===_a||y===Ls){if(h||(h=ye(t,l)),d||(d=$e(t,l,h)),d.spaceEquivalent<=3)return Sp(t,f,i,r)}else if(y===q3)return qb(t,l,i,r)}}return v?du(t,l):null}function _p(t,l,i){let r=[],o=0;for(;o<t.length;){for(;o<t.length&&t[o]===`
34
34
  `;)o++;if(o>=t.length)break;var f=t[o];if(l.inList&&r.length>0){var d=r[r.length-1];if(d?.type===V.paragraph){var g=d,h=ie(f);if(h===Qa||h===sr||h===xe||h===Qe){var p=ye(t,o),v=t.slice(o,p),S=$e(t,o,p);if(S.spaceEquivalent<4){var y=v.slice(S.charCount).trim();if($b(r,y,i)){o=p+(p<t.length&&t[p]===`
35
35
  `?1:0);continue}}}}}var T=Bs(t,o,l,i);if(T){r.push(T),o=T.endPos;continue}var A=Yb(t,o,l,i);if(A){r.push(A),o=A.endPos;continue}var _=t.slice(o).trim();if(_){if(l.inBlockQuote&&r.length>0){let D=function(k){if(k.type===V.blockQuote){var U=k;if(U.children&&U.children.length>0){var H=U.children[U.children.length-1];if(H.type===V.paragraph)return H}}else if(k.type===V.orderedList||k.type===V.unorderedList){var L=k;if(L.items&&L.items.length>0){var Y=L.items[L.items.length-1];if(Y&&Y.length>0){var X=Y[Y.length-1],W=D(X);if(W)return W}}}return null};for(var w=r.length-1;w>=0;w--){var g=D(r[w]);if(g){var C=vh(t,o,l,i);if(C){var x=C;g.children&&x.children&&g.children.push({type:V.text,text:`
36
- `},...x.children),o=C.endPos;continue}}}}var C=vh(t,o,l,i);if(C){r.push(C),o=C.endPos;continue}}o++}return r}function jw(t,l,i,r){if(i.inline)return null;let o=ye(t,l),f=$e(t,l,o,3);if(f.spaceEquivalent>3&&!i.inList)return null;var d=l+f.charCount;if(d>=t.length||t[d]!=="#")return null;let g=lr(t,d,"#",6);if(d+=g,d>=t.length)return null;let h=t[d];if(h===`
37
- `||h==="\r"){let T=ye(t,d);return{...Vu(g,[],"",r.slugify),endPos:T+(T<t.length?1:0)}}if(h!==" "&&h!==" ")return null;let p=d,v=ye(t,p);var S=t.slice(p,v).replace(mw,"").trim();let y=js(S,0,S.length,i,r);return{...Vu(g,y,S,r.slugify),endPos:v+(v<t.length?1:0)}}function Yb(t,l,i,r){if(i.inline||i.inBlockQuote||i.inList)return null;let o=ye(t,l);if(o>=t.length)return null;let f=o+1,d=-1,g=null;for(var h=0;f<t.length&&h<10;h++){let W=ye(t,f);if(W>=t.length)break;for(var p=f;p<W&&(ie(t,p)===xe||ie(t,p)===Qe||ie(t,p)===On);)p++;if(p>=W)break;for(var v=0,S=f;S<W&&v<3&&ie(t,S)===xe;)v++,S++;if(S<W){let K=ie(t,S);if(K===sr||K===Qa){let P=t[S];for(var y=0,T=!1,A=S;A<W;){let fe=ie(t,A);if(fe===K){if(T){y=0;break}y++}else if(fe===xe||fe===Qe)T=!0;else{y=0;break}A++}if(y>=1){d=W,g=P;break}}}f=W+1}if(!g)return null;let _=ie(t,l);if(_===ku||_===Ql||t[l]==="|")return null;let w=l;for(var x=l,C=!1;x<f;){let W=ye(t,x);if(W>=f)break;for(var D=x;D<W&&(ie(t,D)===xe||ie(t,D)===Qe||ie(t,D)===On);)D++;D<W&&(C=!0,w=W),x=W+1}if(!C)return null;let k=t.slice(l,w);for(var U=0,H=k.length;U<H&&(k.charCodeAt(U)===xe||k.charCodeAt(U)===Qe||k.charCodeAt(U)===On||k.charCodeAt(U)===Ct);)U++;for(;H>U&&(k.charCodeAt(H-1)===xe||k.charCodeAt(H-1)===Qe||k.charCodeAt(H-1)===On||k.charCodeAt(H-1)===Ct);)H--;let L=k.slice(U,H);if(!L)return null;let Y=g==="="?1:2,X=js(L,0,L.length,i,r);return{...Vu(Y,X,L,r.slugify),endPos:d+(d<t.length?1:0)}}function vh(t,l,i,r){if(i.inline)return null;let o=l,f=t.length;for(;o<f;){let ce=ye(t,o),me=!0;for(let Oe=o;Oe<ce;Oe++){let ct=ie(t,Oe);if(ct!==xe&&ct!==Qe&&ct!==On){me=!1;break}}if(me){o=ce;break}if(ce>=f){o=f;break}let Se=ce+1;if(Se>=f){o=f;break}let we=ye(t,Se),Be=!0,St="";for(let Oe=Se;Oe<we;Oe++){let ct=ie(t,Oe);if(ct!==xe&&ct!==Qe&&ct!==On){Be=!1,St===""&&(St=t[Oe]);break}}if(Be){o=ce;break}let Ae=!1,mt=$e(t,Se,we),Tt=mt.spaceEquivalent===4&&mt.charCount===4;if(St==="<"&&!Tt&&!r.disableParsingRawHTML){let Oe=Se,ct=0;for(;Oe<we&&ct<3;){let tn=ie(t,Oe);if(tn===xe||tn===Qe)ct++,Oe++;else break}if(Oe<we&&t[Oe]==="<"){var d=sc(t,Oe,{...i,inline:!1},r);d&&(Ae=!("canInterruptParagraph"in d)||d.canInterruptParagraph)}}if(Tt)Ae=!1;else if(!Ae&&St&&Os(St))if(St==="["){let Oe=Se;Oe+1>=f||t[Oe+1]!=="^"?Ae=!1:Ae=!0}else if(St==="*"||St==="+")if(Gu(t,Se))Ae=!0;else{let Oe=Se+1<f?t[Se+1]:"";Oe&&xn(Oe)?Ae=!0:Ae=!1}else{let Oe=Bs(t,Se,i,r);Oe&&(Oe.type===V.codeBlock?$e(t,Se,we).spaceEquivalent>=4?Ae=!1:Ae=!0:Oe.type===V.unorderedList||Oe.type===V.orderedList?Oe.type===V.orderedList?Ae=Oe.start===1:Ae=!0:St==="-"?(o>l,Ae=!0):Oe.type===V.ref?Ae=!1:Ae=!0)}if(Ae){o=ce;break}o=ce+1}if(o<=l)return null;for(var g=l,h=o;g<h;){let ce=ie(t,g);if(ce===xe||ce===Qe)g++;else break}let p=ye(t,g);var v=h>p,S;if(!v)S=t.slice(g,h);else{for(var y=[],T=g,A=0;T<h;){var _=ye(t,T);if(_>h&&(_=h),A===0)y.push(t.slice(T,_));else{for(var w=0;w<4&&T+w<_&&ie(t,T+w)===xe;)w++;var x=w===4?T+4:T;y.push(t.slice(x,_))}_<h&&ie(t,_)===Ct?(y.push(`
36
+ `},...x.children),o=C.endPos;continue}}}}var C=vh(t,o,l,i);if(C){r.push(C),o=C.endPos;continue}}o++}return r}function Bw(t,l,i,r){if(i.inline)return null;let o=ye(t,l),f=$e(t,l,o,3);if(f.spaceEquivalent>3&&!i.inList)return null;var d=l+f.charCount;if(d>=t.length||t[d]!=="#")return null;let g=lr(t,d,"#",6);if(d+=g,d>=t.length)return null;let h=t[d];if(h===`
37
+ `||h==="\r"){let T=ye(t,d);return{...Vu(g,[],"",r.slugify),endPos:T+(T<t.length?1:0)}}if(h!==" "&&h!==" ")return null;let p=d,v=ye(t,p);var S=t.slice(p,v).replace(vw,"").trim();let y=js(S,0,S.length,i,r);return{...Vu(g,y,S,r.slugify),endPos:v+(v<t.length?1:0)}}function Yb(t,l,i,r){if(i.inline||i.inBlockQuote||i.inList)return null;let o=ye(t,l);if(o>=t.length)return null;let f=o+1,d=-1,g=null;for(var h=0;f<t.length&&h<10;h++){let W=ye(t,f);if(W>=t.length)break;for(var p=f;p<W&&(ie(t,p)===xe||ie(t,p)===Qe||ie(t,p)===On);)p++;if(p>=W)break;for(var v=0,S=f;S<W&&v<3&&ie(t,S)===xe;)v++,S++;if(S<W){let K=ie(t,S);if(K===sr||K===Qa){let P=t[S];for(var y=0,T=!1,A=S;A<W;){let fe=ie(t,A);if(fe===K){if(T){y=0;break}y++}else if(fe===xe||fe===Qe)T=!0;else{y=0;break}A++}if(y>=1){d=W,g=P;break}}}f=W+1}if(!g)return null;let _=ie(t,l);if(_===ku||_===Ql||t[l]==="|")return null;let w=l;for(var x=l,C=!1;x<f;){let W=ye(t,x);if(W>=f)break;for(var D=x;D<W&&(ie(t,D)===xe||ie(t,D)===Qe||ie(t,D)===On);)D++;D<W&&(C=!0,w=W),x=W+1}if(!C)return null;let k=t.slice(l,w);for(var U=0,H=k.length;U<H&&(k.charCodeAt(U)===xe||k.charCodeAt(U)===Qe||k.charCodeAt(U)===On||k.charCodeAt(U)===Ct);)U++;for(;H>U&&(k.charCodeAt(H-1)===xe||k.charCodeAt(H-1)===Qe||k.charCodeAt(H-1)===On||k.charCodeAt(H-1)===Ct);)H--;let L=k.slice(U,H);if(!L)return null;let Y=g==="="?1:2,X=js(L,0,L.length,i,r);return{...Vu(Y,X,L,r.slugify),endPos:d+(d<t.length?1:0)}}function vh(t,l,i,r){if(i.inline)return null;let o=l,f=t.length;for(;o<f;){let ce=ye(t,o),me=!0;for(let Oe=o;Oe<ce;Oe++){let ct=ie(t,Oe);if(ct!==xe&&ct!==Qe&&ct!==On){me=!1;break}}if(me){o=ce;break}if(ce>=f){o=f;break}let Se=ce+1;if(Se>=f){o=f;break}let we=ye(t,Se),Be=!0,St="";for(let Oe=Se;Oe<we;Oe++){let ct=ie(t,Oe);if(ct!==xe&&ct!==Qe&&ct!==On){Be=!1,St===""&&(St=t[Oe]);break}}if(Be){o=ce;break}let Ae=!1,mt=$e(t,Se,we),Tt=mt.spaceEquivalent===4&&mt.charCount===4;if(St==="<"&&!Tt&&!r.disableParsingRawHTML){let Oe=Se,ct=0;for(;Oe<we&&ct<3;){let tn=ie(t,Oe);if(tn===xe||tn===Qe)ct++,Oe++;else break}if(Oe<we&&t[Oe]==="<"){var d=sc(t,Oe,{...i,inline:!1},r);d&&(Ae=!("canInterruptParagraph"in d)||d.canInterruptParagraph)}}if(Tt)Ae=!1;else if(!Ae&&St&&Os(St))if(St==="["){let Oe=Se;Oe+1>=f||t[Oe+1]!=="^"?Ae=!1:Ae=!0}else if(St==="*"||St==="+")if(Gu(t,Se))Ae=!0;else{let Oe=Se+1<f?t[Se+1]:"";Oe&&xn(Oe)?Ae=!0:Ae=!1}else{let Oe=Bs(t,Se,i,r);Oe&&(Oe.type===V.codeBlock?$e(t,Se,we).spaceEquivalent>=4?Ae=!1:Ae=!0:Oe.type===V.unorderedList||Oe.type===V.orderedList?Oe.type===V.orderedList?Ae=Oe.start===1:Ae=!0:St==="-"?(o>l,Ae=!0):Oe.type===V.ref?Ae=!1:Ae=!0)}if(Ae){o=ce;break}o=ce+1}if(o<=l)return null;for(var g=l,h=o;g<h;){let ce=ie(t,g);if(ce===xe||ce===Qe)g++;else break}let p=ye(t,g);var v=h>p,S;if(!v)S=t.slice(g,h);else{for(var y=[],T=g,A=0;T<h;){var _=ye(t,T);if(_>h&&(_=h),A===0)y.push(t.slice(T,_));else{for(var w=0;w<4&&T+w<_&&ie(t,T+w)===xe;)w++;var x=w===4?T+4:T;y.push(t.slice(x,_))}_<h&&ie(t,_)===Ct?(y.push(`
38
38
  `),T=_+1):T=h,A++}S=y.join("")}for(var C=S.length;C>0;){var D=S.charCodeAt(C-1);if(D===xe||D===Qe)C--;else break}C<S.length&&(S=S.slice(0,C));let k=!1;for(let ce=0;ce<S.length;ce++){let me=S.charCodeAt(ce);if(me!==xe&&me!==Qe&&me!==Ct&&me!==On){k=!0;break}}if(!k)return null;for(var U=S,H=o,L=-1,Y=o-1;Y>=g;){if(ie(t,Y)===Ct){L=Y;break}Y--}if(L>=0){for(var X=!1,W=g;W<L;W++){let ce=ie(t,W);if(ce!==xe&&ce!==Qe&&ce!==Ct&&ce!==On){X=!0;break}}if(!X){for(var K=L+1;K<t.length;){let ce=ie(t,K);if(ce===xe||ce===Qe)K++;else break}var P=K-(L+1);if(P<4&&K<t.length&&t[K]==="["){var fe={...i,inline:!1},he=hr(t,K,fe,r,!1);if(he){for(var de=0,Y=g;Y<=L;){let me=t.indexOf(`
39
39
  `,Y);if(me===-1||me>L)break;de++,Y=me+1}var j=0,le=0;for(Y=0;Y<S.length;){let me=S.indexOf(`
40
- `,Y);if(me===-1)break;if(le++,le===de){j=me+1;break}Y=me+1}j>0&&(U=S.slice(0,j-1)),H=he.endPos,i.refs=fe.refs}}}}let G=js(U,0,U.length,i,r);var be={type:V.paragraph,children:G,endPos:H};if(G.length>0){for(var ge=[],O=G.length-1;O>=0;O--){var J=G[O];if(J.type===V.htmlSelfClosing&&J.isClosingTag===!0)ge.push(O);else if(J.type===V.text){var ee=J;if(ee.text&&ee.text.trim().length>0)break}else break}if(ge.length>=3){var oe=ge[ge.length-1],ne=G.slice(oe+1);G.splice(oe+1),be.removedClosingTags=ne}}return be}function Bw(t,l){if(l!==0)return null;let i=Lb(t);return i?.hasValidYaml?{type:V.frontmatter,text:t.slice(0,i.endPos-1),endPos:i.endPos}:null}function Gu(t,l,i,r){let o=ye(t,l),f=$e(t,l,o,3);if(f.spaceEquivalent>3)return null;var d=l+f.charCount;if(d>=o)return null;let g=t[d];if(g!=="-"&&g!=="*"&&g!=="_")return null;for(var h=0,p=d;p<o;){var v=t[p];if(v===g)h++;else if(v!==" "&&v!==" ")return null;p++}return h<3?null:{type:V.breakThematic,endPos:We(t,o)}}function $e(t,l,i,r){let o=0,f=0,d=l;for(;d<i;){var g=ie(t,d);if(g!==xe&&g!==Qe||r!==void 0&&o>=r)break;g===Qe?o+=4-o%4:o+=1,f++,d++}return{spaceEquivalent:o,charCount:f}}function nv(t,l,i,r){let o=0,f=0,d=r;for(let S=l;S<i&&f<4;S++){var g=ie(t,S);if(g===Qe){let y=4-d%4;if(f+=y,o++,d+=y,f>=4)break}else if(g===xe){if(f++,o++,d++,f>=4)break}else break}let h=t.slice(l+o,i);for(var p=0,v=l;v<i&&(t[v]===" "&&p++,!(p>=2));v++);return p>=2&&ut(h," ")&&r>0&&(h=" "+h.slice(1)),h}function du(t,l,i){let r=ye(t,l),o=$e(t,l,r);if(o.spaceEquivalent<4)return null;let f=o.spaceEquivalent,d=ye(t,l+o.charCount),g=l,h=0;for(var p=g-1;p>=0&&t[p]!==`
40
+ `,Y);if(me===-1)break;if(le++,le===de){j=me+1;break}Y=me+1}j>0&&(U=S.slice(0,j-1)),H=he.endPos,i.refs=fe.refs}}}}let G=js(U,0,U.length,i,r);var be={type:V.paragraph,children:G,endPos:H};if(G.length>0){for(var ge=[],O=G.length-1;O>=0;O--){var J=G[O];if(J.type===V.htmlSelfClosing&&J.isClosingTag===!0)ge.push(O);else if(J.type===V.text){var ee=J;if(ee.text&&ee.text.trim().length>0)break}else break}if(ge.length>=3){var oe=ge[ge.length-1],ne=G.slice(oe+1);G.splice(oe+1),be.removedClosingTags=ne}}return be}function Uw(t,l){if(l!==0)return null;let i=Lb(t);return i?.hasValidYaml?{type:V.frontmatter,text:t.slice(0,i.endPos-1),endPos:i.endPos}:null}function Gu(t,l,i,r){let o=ye(t,l),f=$e(t,l,o,3);if(f.spaceEquivalent>3)return null;var d=l+f.charCount;if(d>=o)return null;let g=t[d];if(g!=="-"&&g!=="*"&&g!=="_")return null;for(var h=0,p=d;p<o;){var v=t[p];if(v===g)h++;else if(v!==" "&&v!==" ")return null;p++}return h<3?null:{type:V.breakThematic,endPos:We(t,o)}}function $e(t,l,i,r){let o=0,f=0,d=l;for(;d<i;){var g=ie(t,d);if(g!==xe&&g!==Qe||r!==void 0&&o>=r)break;g===Qe?o+=4-o%4:o+=1,f++,d++}return{spaceEquivalent:o,charCount:f}}function nv(t,l,i,r){let o=0,f=0,d=r;for(let S=l;S<i&&f<4;S++){var g=ie(t,S);if(g===Qe){let y=4-d%4;if(f+=y,o++,d+=y,f>=4)break}else if(g===xe){if(f++,o++,d++,f>=4)break}else break}let h=t.slice(l+o,i);for(var p=0,v=l;v<i&&(t[v]===" "&&p++,!(p>=2));v++);return p>=2&&ut(h," ")&&r>0&&(h=" "+h.slice(1)),h}function du(t,l,i){let r=ye(t,l),o=$e(t,l,r);if(o.spaceEquivalent<4)return null;let f=o.spaceEquivalent,d=ye(t,l+o.charCount),g=l,h=0;for(var p=g-1;p>=0&&t[p]!==`
41
41
  `&&t[p]!=="\r";)p--;for(p++;p<g;)t[p]===" "?h=h+4-h%4:h++,p++;let v=nv(t,g,d,h),S=We(t,d);if(S>=t.length)return v.trim()?{type:V.codeBlock,text:v,endPos:S}:null;var y=[];y.push(v);let T=S;for(;T<t.length;){let _=ye(t,T);if(ka(t,T,_)){let w=_+1;if(w<t.length){let x=ye(t,w),C=$e(t,w,x),D=t[w+C.charCount];if(D&&D!==`
42
42
  `&&(C.spaceEquivalent<4||D===">"&&C.spaceEquivalent<f))break}y.push(`
43
43
  `)}else{if($e(t,T,_).spaceEquivalent<4)break;let w=nv(t,T,_,0);y.push(`
44
- `),y.push(w)}T=We(t,_)}let A=y.join("");return A=A.replace(ww,""),A.trim()?{type:V.codeBlock,text:A,endPos:T}:null}function Sp(t,l,i,r){let o=t[l];if(o!=="`"&&o!=="~")return null;let f=lr(t,l,o);if(f<3)return null;let d=l;for(;d>0&&ie(t,d-1)!==Ct;)d--;let g=$e(t,d,l),h=g.spaceEquivalent,p=h;if(h===4&&g.charCount===4&&(h=0,p=4),h>=4)return null;let v=bn(t,l+f),S=ye(t,v),y=t.slice(v,S).trim();if(o==="`"&&y.indexOf("`")!==-1)return null;y=y.replace(fh,"$1");let T=y.indexOf(" "),A=T>0?y.slice(0,T):y,_=T>0?y.slice(T+1).trim():"",w=_&&/=\s*["']/.test(_)?di(_,"code","code",r):void 0,x=We(t,S),C=x;for(;C<t.length;){let H=ye(t,C),L=C,Y=0;for(;L<H;){let X=ie(t,L);if(X===xe){if(Y++,L++,Y>=4)break}else if(X===Qe){if(Y+=4-Y%4,L++,Y>=4)break}else break}if(Y<4){let X=lr(t,L,o,H-L);if(X>=f){let W=L+X;for(;W<H;){let K=ie(t,W);if(K===xe||K===Qe)W++;else break}if(W===H)break}}else if(p===4&&h===0&&Y===4){let X=lr(t,L,o,H-L);if(X>=f&&ka(t,L+X,H))break}C=We(t,H)}let D=C>x&&t[C-1]===`
45
- `?C-1:C,k=t.slice(x,D);p&&(k=bh(k,p));let U=C<t.length?We(t,ye(t,C)):C;return{type:V.codeBlock,text:k,lang:A,attrs:w,endPos:U}}function Uw(t,l,i){for(var r=0;r<t.length;r++)if(!ph(t[r])){let f=yp(t,l,i,{inline:!1,inBlockQuote:!0});for(var o=0;o<f.length;o++){let d=f[o];"endPos"in d&&delete d.endPos}return f}return[]}function Kb(t,l,i,r){if(i.inline)return null;let o=l;for(;o<t.length&&(t[o]===" "||t[o]===" ");)o++;if(o>=t.length||t[o]!==">")return null;let f=l;for(var d=[],g=void 0,h=-1,p=!1,v=null,S=null,y=0,T=!1;f<t.length;){let U=ye(t,f),H=f;for(;H<U&&(t[H]===" "||t[H]===" ");)H++;if(H<U&&t[H]===">"){let L=H+1;L<U&&t[L]===" "&&L++;let Y=$e(t,L,U).spaceEquivalent>=4,X=!1,W=null,K=0;if(L<U){let fe=t[L];if(fe==="`"||fe==="~"){let he=0,de=L;for(;de<U&&t[de]===fe&&he<20;)he++,de++;he>=3&&(X=!0,W=fe,K=he)}}p&&v==="fenced"&&W===S&&K>=y?(p=!1,v=null,S=null,y=0):(Y||X)&&(p=!0,v=Y?"indented":"fenced",S=W,y=K);var A=!Y&&!X;if(A){for(var _=L;_<U;_++)if(!ph(t[_])){A=!1;break}}T=A,h===-1&&!A&&(h=d.length);let P=H+1;if(P<U&&t[P]===" "){d.push(" ");let fe=4;for(let he=P+1;he<U;he++){let de=t[he];var w=ie(de);if(w===Qe){let j=4-fe%4;j===1?d.push(" "):j===2?d.push(" "):j===3?d.push(" "):d.push(" ".repeat(j)),fe+=j}else d.push(de),fe++}U<t.length&&d.push(`
44
+ `),y.push(w)}T=We(t,_)}let A=y.join("");return A=A.replace(Tw,""),A.trim()?{type:V.codeBlock,text:A,endPos:T}:null}function Sp(t,l,i,r){let o=t[l];if(o!=="`"&&o!=="~")return null;let f=lr(t,l,o);if(f<3)return null;let d=l;for(;d>0&&ie(t,d-1)!==Ct;)d--;let g=$e(t,d,l),h=g.spaceEquivalent,p=h;if(h===4&&g.charCount===4&&(h=0,p=4),h>=4)return null;let v=bn(t,l+f),S=ye(t,v),y=t.slice(v,S).trim();if(o==="`"&&y.indexOf("`")!==-1)return null;y=y.replace(fh,"$1");let T=y.indexOf(" "),A=T>0?y.slice(0,T):y,_=T>0?y.slice(T+1).trim():"",w=_&&/=\s*["']/.test(_)?di(_,"code","code",r):void 0,x=We(t,S),C=x;for(;C<t.length;){let H=ye(t,C),L=C,Y=0;for(;L<H;){let X=ie(t,L);if(X===xe){if(Y++,L++,Y>=4)break}else if(X===Qe){if(Y+=4-Y%4,L++,Y>=4)break}else break}if(Y<4){let X=lr(t,L,o,H-L);if(X>=f){let W=L+X;for(;W<H;){let K=ie(t,W);if(K===xe||K===Qe)W++;else break}if(W===H)break}}else if(p===4&&h===0&&Y===4){let X=lr(t,L,o,H-L);if(X>=f&&ka(t,L+X,H))break}C=We(t,H)}let D=C>x&&t[C-1]===`
45
+ `?C-1:C,k=t.slice(x,D);p&&(k=bh(k,p));let U=C<t.length?We(t,ye(t,C)):C;return{type:V.codeBlock,text:k,lang:A,attrs:w,endPos:U}}function Hw(t,l,i){for(var r=0;r<t.length;r++)if(!ph(t[r])){let f=yp(t,l,i,{inline:!1,inBlockQuote:!0});for(var o=0;o<f.length;o++){let d=f[o];"endPos"in d&&delete d.endPos}return f}return[]}function Kb(t,l,i,r){if(i.inline)return null;let o=l;for(;o<t.length&&(t[o]===" "||t[o]===" ");)o++;if(o>=t.length||t[o]!==">")return null;let f=l;for(var d=[],g=void 0,h=-1,p=!1,v=null,S=null,y=0,T=!1;f<t.length;){let U=ye(t,f),H=f;for(;H<U&&(t[H]===" "||t[H]===" ");)H++;if(H<U&&t[H]===">"){let L=H+1;L<U&&t[L]===" "&&L++;let Y=$e(t,L,U).spaceEquivalent>=4,X=!1,W=null,K=0;if(L<U){let fe=t[L];if(fe==="`"||fe==="~"){let he=0,de=L;for(;de<U&&t[de]===fe&&he<20;)he++,de++;he>=3&&(X=!0,W=fe,K=he)}}p&&v==="fenced"&&W===S&&K>=y?(p=!1,v=null,S=null,y=0):(Y||X)&&(p=!0,v=Y?"indented":"fenced",S=W,y=K);var A=!Y&&!X;if(A){for(var _=L;_<U;_++)if(!ph(t[_])){A=!1;break}}T=A,h===-1&&!A&&(h=d.length);let P=H+1;if(P<U&&t[P]===" "){d.push(" ");let fe=4;for(let he=P+1;he<U;he++){let de=t[he];var w=ie(de);if(w===Qe){let j=4-fe%4;j===1?d.push(" "):j===2?d.push(" "):j===3?d.push(" "):d.push(" ".repeat(j)),fe+=j}else d.push(de),fe++}U<t.length&&d.push(`
46
46
  `)}else{let fe=P;fe<U&&t[fe]===" "&&fe++,d.push(t.slice(fe,U)),U<t.length&&d.push(`
47
47
  `)}}else{for(var x=!0,_=f;_<U;_++)if(!ph(t[_])){x=!1;break}if(x||p)break;if($e(t,f,U).spaceEquivalent===0){let L=Bs(t,f,i,r);if(L&&L.type!==V.ref&&L.type!==V.codeBlock||T)break}d.push(t.slice(f,U)),U<t.length&&d.push(`
48
48
  `)}f=We(t,U)}if(f===l)return null;d.length>0&&d[d.length-1]===`
49
49
  `&&d.pop();let C=d.join("");if(C.length>=4&&C.charCodeAt(0)===mi&&C.charCodeAt(1)===op){let U=C.indexOf(`]
50
- `,2);U>2&&(g=C.slice(2,U),C=C.slice(U+2))}let D=Uw(C,i,r),k={type:V.blockQuote,children:D,endPos:f};return g&&(k.alert=g),k}function bh(t,l){return t.split(`
50
+ `,2);U>2&&(g=C.slice(2,U),C=C.slice(U+2))}let D=Hw(C,i,r),k={type:V.blockQuote,children:D,endPos:f};return g&&(k.alert=g),k}function bh(t,l){return t.split(`
51
51
  `).map(function(i){if(i.length===0)return i;let r=l,o=0,f=0,d=0;for(;f<i.length&&o<r;)if(i[f]===" ")o++,d++,f++;else if(i[f]===" "){let g=4-d%4;if(o+g<=r)o+=g,d+=g,f++;else{let h=r-o,p=Math.max(0,g-h);return" ".repeat(p)+i.slice(f+1)}}else break;return i.slice(f)}).join(`
52
52
  `)}function hu(t,l,i,r,o=!0){let f=(o?`
53
53
  `:"")+t,d=js(f,0,f.length,i,r);l.length>0&&l[l.length-1].type===V.paragraph?l[l.length-1].children.push(...d):l.push(...d)}function gs(t){return t.some(function(l){return l.type===V.codeBlock||l.type===V.paragraph||l.type===V.blockQuote||l.type===V.orderedList||l.type===V.unorderedList||l.type===V.heading})}function av(t){return!!t.match(vp)}function Jb(t){if(t.length===0)return t;var l=t[t.length-1];return(l.type===V.orderedList||l.type===V.unorderedList)&&l.items?.length>0?Jb(l.items.slice(-1)[0]):t}function yh(t,l,i,r,o,f,d){if(!ut(o,"["))return null;var g={inline:!1,refs:f.refs||{}},h=hr(t,l+r.charCount,g,d,!1);return h?h.endPos:null}function lv(t,l,i,r){return t.length!==1||!i||t[0].length!==0?!1:!!(l||!l&&r.trim()==="")}function iv(t,l){var i=t.index||0;return l?i+t[1].length+t[2].length+1:i+t[1].length+1}function Zu(t,l,i,r,o){for(var f=0,d=r+o,g=l;g<i&&f<4;){var h=ie(t,g);if(h===xe)f++,d++;else if(h===Qe){var p=4-d%4;if(f+p>4)break;f+=p,d+=p}else break;g++}return{contentStartColumn:d,contentStartPos:g}}function jd(t){var l=t.match(vp);return l?l[1]?{match:[t,l[1],l[2],l[3]],ordered:!0,listItemRegex:dh}:l[4]?{match:[t,l[4],l[5],""],ordered:!0,listItemRegex:dh}:l[6]?{match:[t,l[6],l[7]],ordered:!1,listItemRegex:hh}:l[8]?{match:[t,l[8],""],ordered:!1,listItemRegex:hh}:null:null}function Il(t,l,i,r,o,f,d){if(l.spaceEquivalent!==f)return!1;var g=t.match(d);if(g)return i?g[2]===o:g[1]===r;var h=t.match(vp);return h?i?h[4]&&h[5]===o:h[8]===r:!1}function Pb(t,l,i,r){for(var o=l,f=i,d=l[0];f<t.length;){var g=ye(t,f),h=t.slice(f,g),p=ut(h," ".repeat(r))?h.slice(r):h;if(ut(p.trim(),d)&&lr(p.trim(),0,d)>=3)return{content:o,endPos:We(t,g)};o+=`
54
- `+p,f=We(t,g)}return{content:o,endPos:f}}function nu(t,l,i,r,o,f,d,g,h,p,v,S,y){var T=p?void 0:h[1],A=p?h[2]:void 0,_=p?dh:hh,w=v;if(!v)for(var x=We(t,f),C=x;C<t.length;){var D=ye(t,C),k=t.slice(C,D),U=$e(t,C,D),H=U.spaceEquivalent;if(ka(t,C,D)){var L=We(t,D);if(L<t.length){var Y=ye(t,L),X=$e(t,L,Y),W=X.spaceEquivalent,fe=iv(h,p),he=o+g+fe,de=Zu(t,he,f,d,fe),j=de.contentStartColumn;if(W+1>j){w=!0;break}}break}else if(H<=d){var K=k.slice(U.charCount),P=K.match(_);if(P&&(p?P[2]===A:P[1]===T))break}C=We(t,D)}var fe=iv(h,p),he=o+g+fe,de=Zu(t,he,f,d,fe),j=de.contentStartColumn,le=r,G=We(t,f);if(ut(r,"```")||ut(r,"~~~")){var be=p?h[1].length+h[2].length+1:h[1].length+1,ge=Pb(t,r,G,be);le=ge.content,G=ge.endPos}return l.push(Wb(le,w,S,y)),i.push(j),{newCurrentPos:G,itemHasBlankLine:w}}function rv(t,l,i,r,o,f){if(o>r||f.disableParsingRawHTML)return!1;let d=l+i;return d>=t.length||t[d]!=="<"?!1:Hw(t,d)}function Hw(t,l){if(l>=t.length||t[l]!=="<")return!1;let i=t.length,r=l+1;if(r<i&&t[r]==="/"&&r++,r>=i)return!1;let o=ie(t,r);if(!gi(o))return!1;for(r++;r<i;){let d=t[r],g=ie(t,r);if(d===">"||d===" "||d===" "||d===`
55
- `||d==="\r"||d==="/")break;if(d==="-"||d==="_"||gi(g)||g>=48&&g<=57)r++;else return!1}let f=0;for(;r<i;){let d=t[r],g=ie(t,r);if(f===1)d==='"'&&(f=0),r++;else if(f===2)d==="'"&&(f=0),r++;else if(d==='"')f=1,r++;else if(d==="'")f=2,r++;else{if(d===">")return!0;if(d==="/"&&r+1<i&&t[r+1]===">")return!0;if(g===10||g===13)return!1;r++}}return!1}function sv(t,l,i,r,o,f,d,g,h,p,v,S){let y=r,T=!1;for(;y<t.length;){let A=ye(t,y),_=$e(t,y,A),w=_.spaceEquivalent;if(ka(t,y,A)){T=!0,y=We(t,A);continue}let x=t.slice(y+_.charCount,A);if(w<=o&&Il(x,_,f,d,g,o,h))break;if(w>=i){if(S&&T){let D=yh(t,y,A,_,x,p,v);if(D){y=D,T=!1;continue}}let C=pu(t,y,A,_,i-1,i,l,T,p,v,void 0);if(C.processed){y=C.newPos,T=C.wasBlank;continue}}else break}return y}function ov(t,l,i,r){let o=yp(t,i,r,{inline:!1,list:!0});if(o.length>0)return!l&&o.length===1&&o[0].type===V.paragraph?o[0].children:o;let f=rc(i,!0,()=>vi(t,0,t.length,i,r));return l&&f.length>0?[{type:V.paragraph,children:f}]:f}function Wb(t,l,i,r){let o=zw(t,0);if(!(o&&(o.endPos>=t.length||t[o.endPos]===" ")))return ov(t,l,i,r);let f=o.endPos<t.length?o.endPos+1:o.endPos,d=t.slice(f),g=ov(d,l,i,r),h=[o];return o.endPos<t.length&&h.push({type:V.text,text:" "}),h.push(...g),h}function uv(t,l){if(!t[0])return!1;let i=t[0].indexOf(l);if(i===-1)return!1;let r=i+l.length;if(r>=t[0].length)return!1;let o=t[0][r];return o?ie(o)===J3:!1}function $b(t,l,i){if(t.length===0)return!1;let r=t[t.length-1],o=l.trim();if(!ut(o,"=")&&!ut(o,"-")||o.length<1||!/^[=-]+[ \t]*$/.test(o))return!1;let f=[],d="";if(r.type===V.paragraph){let h=r;f=h.children,d=h.children.map(p=>p.type===V.text?p.text:"").join("").trim()}else if(r.type===V.text){let h=[],p=t.length-1;for(;p>=0&&t[p].type===V.text;)h.unshift(t[p]),p--;h.length>0&&(f=h,d=h.map(v=>v.text).join("").trim())}if(!d)return!1;let g=o[0]==="="?1:2;if(r.type===V.paragraph)t.pop();else if(r.type===V.text)for(;t.length>0&&t[t.length-1].type===V.text;)t.pop();return t.push(Vu(g,f,d,i.slugify)),!0}function pu(t,l,i,r,o,f,d,g,h,p,v,S){let y=r.spaceEquivalent,T=t.slice(l+r.charCount,i);if(y>=o+4){let x=du(t,l);if(x){let C=x,D=bh(C.text||"",f);return d.push({...C,text:D}),{processed:!0,newPos:C.endPos,wasBlank:!1}}}let A=y-(f-1);if(y+1>=f&&A<=3){let x=l+r.charCount;if(x<i){let C=t[x];if(C==="`"||C==="~"){let D=Sp(t,x,h,p);if(D){let k=D,U=bh(k.text||"",f-1);return d.push({...k,text:U,endPos:k.endPos}),{processed:!0,newPos:k.endPos,wasBlank:!1}}}}}if(T.length>0&&(T[0]==="-"||T[0]==="*"||T[0]==="+"||T[0]>="0"&&T[0]<="9")&&/^([-*+]|\d{1,9}[.)])\s+/.test(T)){let x=js(T,0,T.length,h,p);return d.push({type:V.text,text:`
56
- `},...x),{processed:!0,newPos:We(t,i),wasBlank:!1}}let _=gw(t,l,d,T,h,p);if(_!==null)return{processed:!0,newPos:_,wasBlank:!1};let w=yp(T,h,p,{inline:!1,list:!0});if(w.length>0){if(v&&w[0].type===V.paragraph){let x=w[0];d.push({type:V.text,text:`
54
+ `+p,f=We(t,g)}return{content:o,endPos:f}}function nu(t,l,i,r,o,f,d,g,h,p,v,S,y){var T=p?void 0:h[1],A=p?h[2]:void 0,_=p?dh:hh,w=v;if(!v)for(var x=We(t,f),C=x;C<t.length;){var D=ye(t,C),k=t.slice(C,D),U=$e(t,C,D),H=U.spaceEquivalent;if(ka(t,C,D)){var L=We(t,D);if(L<t.length){var Y=ye(t,L),X=$e(t,L,Y),W=X.spaceEquivalent,fe=iv(h,p),he=o+g+fe,de=Zu(t,he,f,d,fe),j=de.contentStartColumn;if(W+1>j){w=!0;break}}break}else if(H<=d){var K=k.slice(U.charCount),P=K.match(_);if(P&&(p?P[2]===A:P[1]===T))break}C=We(t,D)}var fe=iv(h,p),he=o+g+fe,de=Zu(t,he,f,d,fe),j=de.contentStartColumn,le=r,G=We(t,f);if(ut(r,"```")||ut(r,"~~~")){var be=p?h[1].length+h[2].length+1:h[1].length+1,ge=Pb(t,r,G,be);le=ge.content,G=ge.endPos}return l.push(Wb(le,w,S,y)),i.push(j),{newCurrentPos:G,itemHasBlankLine:w}}function rv(t,l,i,r,o,f){if(o>r||f.disableParsingRawHTML)return!1;let d=l+i;return d>=t.length||t[d]!=="<"?!1:Iw(t,d)}function Iw(t,l){if(l>=t.length||t[l]!=="<")return!1;let i=t.length,r=l+1;if(r<i&&t[r]==="/"&&r++,r>=i)return!1;let o=ie(t,r);if(!gi(o))return!1;for(r++;r<i;){let d=t[r],g=ie(t,r);if(d===">"||d===" "||d===" "||d===`
55
+ `||d==="\r"||d==="/")break;if(d==="-"||d==="_"||gi(g)||g>=48&&g<=57)r++;else return!1}let f=0;for(;r<i;){let d=t[r],g=ie(t,r);if(f===1)d==='"'&&(f=0),r++;else if(f===2)d==="'"&&(f=0),r++;else if(d==='"')f=1,r++;else if(d==="'")f=2,r++;else{if(d===">")return!0;if(d==="/"&&r+1<i&&t[r+1]===">")return!0;if(g===10||g===13)return!1;r++}}return!1}function sv(t,l,i,r,o,f,d,g,h,p,v,S){let y=r,T=!1;for(;y<t.length;){let A=ye(t,y),_=$e(t,y,A),w=_.spaceEquivalent;if(ka(t,y,A)){T=!0,y=We(t,A);continue}let x=t.slice(y+_.charCount,A);if(w<=o&&Il(x,_,f,d,g,o,h))break;if(w>=i){if(S&&T){let D=yh(t,y,A,_,x,p,v);if(D){y=D,T=!1;continue}}let C=pu(t,y,A,_,i-1,i,l,T,p,v,void 0);if(C.processed){y=C.newPos,T=C.wasBlank;continue}}else break}return y}function ov(t,l,i,r){let o=yp(t,i,r,{inline:!1,list:!0});if(o.length>0)return!l&&o.length===1&&o[0].type===V.paragraph?o[0].children:o;let f=rc(i,!0,()=>vi(t,0,t.length,i,r));return l&&f.length>0?[{type:V.paragraph,children:f}]:f}function Wb(t,l,i,r){let o=jw(t,0);if(!(o&&(o.endPos>=t.length||t[o.endPos]===" ")))return ov(t,l,i,r);let f=o.endPos<t.length?o.endPos+1:o.endPos,d=t.slice(f),g=ov(d,l,i,r),h=[o];return o.endPos<t.length&&h.push({type:V.text,text:" "}),h.push(...g),h}function uv(t,l){if(!t[0])return!1;let i=t[0].indexOf(l);if(i===-1)return!1;let r=i+l.length;if(r>=t[0].length)return!1;let o=t[0][r];return o?ie(o)===P3:!1}function $b(t,l,i){if(t.length===0)return!1;let r=t[t.length-1],o=l.trim();if(!ut(o,"=")&&!ut(o,"-")||o.length<1||!/^[=-]+[ \t]*$/.test(o))return!1;let f=[],d="";if(r.type===V.paragraph){let h=r;f=h.children,d=h.children.map(p=>p.type===V.text?p.text:"").join("").trim()}else if(r.type===V.text){let h=[],p=t.length-1;for(;p>=0&&t[p].type===V.text;)h.unshift(t[p]),p--;h.length>0&&(f=h,d=h.map(v=>v.text).join("").trim())}if(!d)return!1;let g=o[0]==="="?1:2;if(r.type===V.paragraph)t.pop();else if(r.type===V.text)for(;t.length>0&&t[t.length-1].type===V.text;)t.pop();return t.push(Vu(g,f,d,i.slugify)),!0}function pu(t,l,i,r,o,f,d,g,h,p,v,S){let y=r.spaceEquivalent,T=t.slice(l+r.charCount,i);if(y>=o+4){let x=du(t,l);if(x){let C=x,D=bh(C.text||"",f);return d.push({...C,text:D}),{processed:!0,newPos:C.endPos,wasBlank:!1}}}let A=y-(f-1);if(y+1>=f&&A<=3){let x=l+r.charCount;if(x<i){let C=t[x];if(C==="`"||C==="~"){let D=Sp(t,x,h,p);if(D){let k=D,U=bh(k.text||"",f-1);return d.push({...k,text:U,endPos:k.endPos}),{processed:!0,newPos:k.endPos,wasBlank:!1}}}if(C==="|"){let D=qb(t,x,h,p);if(D){let k=D;return d.push(k),{processed:!0,newPos:k.endPos,wasBlank:!1}}}}}if(T.length>0&&(T[0]==="-"||T[0]==="*"||T[0]==="+"||T[0]>="0"&&T[0]<="9")&&/^([-*+]|\d{1,9}[.)])\s+/.test(T)){let x=js(T,0,T.length,h,p);return d.push({type:V.text,text:`
56
+ `},...x),{processed:!0,newPos:We(t,i),wasBlank:!1}}let _=mw(t,l,d,T,h,p);if(_!==null)return{processed:!0,newPos:_,wasBlank:!1};let w=yp(T,h,p,{inline:!1,list:!0});if(w.length>0){if(v&&w[0].type===V.paragraph){let x=w[0];d.push({type:V.text,text:`
57
57
  `},...x.children),w.length>1&&d.push(...w.slice(1))}else if(!g&&w[0].type===V.paragraph&&d.length>0){let x=d[d.length-1],C=w[0];x.type===V.paragraph?x.children.push({type:V.text,text:`
58
- `},...C.children):x.type===V.heading?d.push(...C.children):gs(d)?d.push(...w):d.push({type:V.text,text:" "},...C.children),w.length>1&&d.push(...w.slice(1))}else d.push(...w);return{processed:!0,newPos:We(t,i),wasBlank:!1}}if(g){let x=rc(h,!0,()=>vi(T,0,T.length,h,p));d.push({type:V.paragraph,children:x})}else hu(T,d,h,p);return{processed:!0,newPos:We(t,i),wasBlank:!1}}function _h(t,l,i,r){if(i.inline)return null;var o=i.inList;if(i.inList=!0,l>0){var f=ie(t,l-1);if(f!==Ct&&f!==On)return i.inList=o,null}var d=ye(t,l),g=$e(t,l,d);if(g.spaceEquivalent>3&&!i.inList)return i.inList=o,null;var h=t.slice(l,d),p=g.charCount,v=h.slice(p),S=jd(v);if(!S)return i.inList=o,null;var{match:y,ordered:T,listItemRegex:A}=S,_=g.spaceEquivalent,w=T?parseInt(y[1],10):void 0,x=T?y[2]:void 0,C=T?void 0:y[1],D=T?y[3]==="":y[2]==="";function k(ze,ue){if(ze===0)return!0;var R=ie(t,ze-1);if(R!==Ct)return!1;if(!ue)return!0;for(var $=ze-2;$>=0;){var re=ie(t,$);if(re!==xe&&re!==Qe)break;$--}return $<0||ie(t,$)===Ct}if(D&&!k(l,!0))return i.inList=o,null;if(T&&w!==1&&!k(l,!1)||!T&&uv(y,C))return null;var U=y.index||0,H=T?U+y[1].length+y[2].length+1:D?U+y[1].length:U+y[1].length+1,L=l+p+H,Y=Zu(t,L,d,_,H),X=Y.contentStartColumn,W=_+U+y[1].length,K=T?W+y[2].length+1:D?W:W+1,P=[],fe=[];function he(ze,ue,R){return R?ze>=ue:ze>ue}function de(){return P[P.length-1]}function j(){return fe[fe.length-1]??X}function le(ze,ue){let R=Jb(ue),$=i.inList;i.inList=!0;let re=_h(t,ze,i,r);return i.inList=$,re?(R.push(re),re):null}for(var G=We(t,d),be=G,ge=!1;be<t.length;){var O=ye(t,be),J=t.slice(be,O);if(J.trim()===""){for(var ee=We(t,O);ee<t.length;){var oe=ie(t,ee);if(oe!==Ct){if(!Rw.has(t[ee]))break}ee++}var ne=ye(t,ee),ce=t.slice(ee,ne),me=$e(t,ee,ne),Se=ce.slice(me.charCount);if(Il(Se,me,T,C,x,_,A))ge=!0;else{var we=yh(t,ee,ne,me,Se,i,r);if(we){for(var Be=we;Be<t.length&&ie(t,Be)===Ct;)Be++;if(Be<t.length){var St=ye(t,Be),Ae=t.slice(Be,St),mt=$e(t,Be,St),Tt=Ae.slice(mt.charCount);Il(Tt,mt,T,C,x,_,A)&&(ge=!0)}}}break}var Oe=$e(t,be,O),ct=J.slice(Oe.charCount),tn=jd(ct);if(!tn)break;var _n=tn.match;if(T){if(_n[2]!==x)break}else if(_n[1]!==C)break;be=We(t,O)}var Xe=T?y[3]:y[2];Xe=Xe.trimStart();for(var Ft=l+p+(y.index||0),xt=T?Ft+y[1].length+y[2].length:Ft+y[1].length,nn=xt;nn<t.length;){var oe=ie(t,nn);if(oe!==xe&&oe!==Qe)break;nn++}for(var Et=0,st=xt;st<d;){var oe=ie(t,st);if(oe===Qe)Et+=4-Et%4;else if(oe===xe)Et++;else break;st++}var Dn=!1;if(xt<t.length&&ie(t,xt)===Qe){for(var Qt=1,Rt=xt+1;Rt<t.length&&ie(t,Rt)===Qe;)Qt++,Rt++;Qt>=2&&(Xe=" "+Xe,Dn=!0)}T||(D=D&&Et===0),Et>=4&&!Dn&&(Xe=" ".repeat(Et-1)+Xe.trimStart()),Xe.trim();let zt=ge;if(!ge&&G<t.length)for(var cn=G;cn<t.length;){var fn=ye(t,cn),ua=t.slice(cn,fn);if(ka(t,cn,fn)){for(var nt=We(t,fn);nt<t.length;){var dn=ye(t,nt);if(ka(t,nt,dn))nt=We(t,dn);else break}if(nt<t.length){var vt=$e(t,nt,t.length),ft=vt.spaceEquivalent;if(ft>=_){for(var Je=t.slice(nt,ye(t,nt)),qe=Je.slice(vt.charCount).match(A),an=qe&&(T?qe[2]===x:qe[1]===C),hn=null,jt=G;jt<cn;jt=ye(t,jt)+1){var at=ye(t,jt),Yt=$e(t,jt,at),At=t.slice(jt,at).slice(Yt.charCount).match(A),Rn=At&&Yt.spaceEquivalent>_&&Yt.spaceEquivalent>=X&&(T?At[2]===x:At[1]===C);if(Rn){var Nn=Yt.spaceEquivalent+1,dt=T?Nn+At[1].length+At[2].length+1:Nn+At[1].length+1,ln=jt+Yt.charCount+At[0].length,ca=Zu(t,ln,at,Nn,dt-Nn);hn=ca.contentStartColumn;break}}var jn=Et>=5?K:X;!an&&ft>=jn&&(hn===null||ft+1<hn)&&(zt=!0)}}break}var fa=$e(t,cn,fn),rn=fa.spaceEquivalent,sn=ua.slice(fa.charCount),Kt=sn.match(A),Bt=Kt&&(T?Kt[2]===x:Kt[1]===C);if(Bt&&rn<=_)break;cn=We(t,fn)}var Pe=Xe;if(ut(Xe,"```")||ut(Xe,"~~~")){var Bn=T?y[1].length+y[2].length+1:y[1].length+1,Mn=Pb(t,Xe,G,Bn);Pe=Mn.content,G=Mn.endPos}var Ut=!D&&Xe.trim()===""&&Et>0&&Et<5;if(Ut&&!zt)for(var l=G;l<t.length;){var d=ye(t,l),h=t.slice(l,d);if(h.trim()==="")break;var g=$e(t,l,d);if(g.spaceEquivalent<K)break;var v=h.slice(g.charCount);if(g.spaceEquivalent<=_&&Il(v,g,T,C,x,_,A))break;Pe+=`
59
- `+v,G=l=We(t,d)}if(P.push(Wb(Pe,zt,i,r)),fe.push(X),zt&&(Et>=5||Ut)){let ze=de();G=sv(t,ze,K,G,_,T,C,x,A,i,r,!0)}else if(!zt){let ze=K-1;for(;G<t.length;){let ue=ye(t,G),R=t.slice(G,ue),$=$e(t,G,ue),re=$.spaceEquivalent,Ee=R.slice($.charCount);if(R.trim()===""||re<=_&&Il(Ee,$,T,C,x,_,A)||av(Ee)&&re>_||re<ze)break;let Ge=de(),pe=pu(t,G,ue,$,ze,X,Ge,!1,i,r,!0);if(pe.processed)G=pe.newPos;else break}}for(var De=!1;G<t.length;){let ze=ye(t,G),ue=t.slice(G,ze),R=$e(t,G,ze),$=R.charCount,re=R.spaceEquivalent;if(ue.trim()==="")ge=!0,De=!0,G=We(t,ze);else if(re<_){let Ee=ue.slice($);if(Ee.startsWith("<")&&rv(t,G,$,_,re,r))break;let Ge=Ee.trim();if(Ge.length>0&&P.length>0&&!Os(Ge[0])&&!Il(Ee,R,T,C,x,_,A)){let pe=de();if(pe.length>0){let ht=pe[pe.length-1];if(ht.type===V.paragraph||ht.type===V.text){hu(Ee,pe,i,r),De=!1,G=We(t,ze);continue}}}break}else{let Ee=ue.slice($);if(P.length>0){let Re=fe[P.length-1]||X;if(re+1>=Re&&!Il(Ee,R,T,C,x,_,A)){let lt=de();if(lt.length>0&&$b(lt,Ee,r)){G=We(t,ze);continue}}}if(Gu(t,G))break;if(De){let Re=yh(t,G,ze,R,Ee,i,r);if(Re){G=Re,De=!1;continue}}if(re<=_){if(Ee.startsWith("<")&&rv(t,G,$,_,re,r))break;if(!Il(Ee,R,T,C,x,_,A)){if(re===_&&!De){let Re=Ee.trim();if(Re.length>0&&!Os(Re[0])){let lt=Bs(t,G,i,r);if(lt&&lt.type!==V.paragraph)break;let tt=de();if(tt.length>0&&!gs(tt)){hu(Ee,tt,i,r,!1),De=!1,G=We(t,ze);continue}}}break}}if(lv(P,D,De,Xe))break;let Ge=jd(Ee),pe=Ge?Ge.match:null,ht=pe&&(T?pe[2]===x:pe[1]===C);if(ht&&re>3&&De)break;if(ht&&re<=_+3){if(re>=4&&De)break;if(re===_){let Re=T?pe[3]:pe[2];if(Re=Re.trimStart(),G=nu(t,P,fe,Re,G,ze,re,$,pe,T,ge,i,r).newCurrentPos,De=!1,Re.trim()===""){let lt=P[P.length-1],tt=j();G=sv(t,lt,tt,G,_,T,C,x,A,i,r)}continue}if(re>_){if(De){let Ne=T?pe[3]:pe[2];Ne=Ne.trimStart(),G=nu(t,P,fe,Ne,G,ze,re,$,pe,T,ge,i,r).newCurrentPos,De=!1;continue}let Re=de(),lt=re+1,tt=he(lt,j(),gs(Re));if(tt){let Ne=le(G,Re);if(Ne){G=Ne.endPos,De=!1;continue}}if(!tt&&ht){let Ne=T?pe[3]:pe[2];if(Ne=Ne.trimStart(),!ge){let kt=We(t,ze);for(;kt<t.length;){let Xt=ye(t,kt),La=t.slice(kt,Xt),He=$e(t,kt,Xt),Yn=He.spaceEquivalent;if(La.trim()===""){let gn=We(t,Xt);if(gn<t.length){let kn=$e(t,gn,t.length).spaceEquivalent,za=re+(T?pe[1].length+pe[2].length+1:pe[1].length+1);if(kn+1>za)break}break}else if(Yn<=_){let gn=La.slice(He.charCount).match(A);if(gn&&(T?gn[2]===x:gn[1]===C)&&Yn<=_)break}kt=We(t,Xt)}}G=nu(t,P,fe,Ne,G,ze,re,$,pe,T,ge,i,r).newCurrentPos,De=!1;continue}else if(!tt&&!ht)break;{let Ne=de(),kt=Ne.length===0;if(kt&&lv(P,D,De,Xe))break;let Xt=Ne.some(He=>He.type===V.codeBlock||He.type===V.paragraph||He.type===V.blockQuote||He.type===V.orderedList||He.type===V.unorderedList||He.type===V.heading),La=kt&&P.length===1?K:X;if(Xt?re>=La:re>La){let He=pu(t,G,ze,R,La,X,de(),De,i,r,void 0);if(He.processed){De=He.wasBlank,G=He.newPos;continue}}else break}}else if(re===_){if(!T&&pe&&uv(pe,pe[1]))break;let Re=T?pe[3]:pe[2];Re=Re.trimStart(),G=nu(t,P,fe,Re,G,ze,_,$,pe,T,ge,i,r).newCurrentPos,De=!1}}else if(re>_){let Re=de();if(av(Ee)){let tt=re+1;if(he(tt,j(),gs(Re))){let Ne=le(G,Re);if(Ne){G=Ne.endPos,De=!1;continue}}if(re-_>3){let Ne=Re.length>0?Re[Re.length-1]:null;if(Ne&&(Ne.type===V.paragraph||Ne.type===V.text)){hu(Ee,Re,i,r),De=!1,G=We(t,ze);continue}}else break}else{let tt=le(G,Re);if(tt){G=tt.endPos,De=!1;continue}}let lt=X;if(gs(Re)?re>=lt-1:re>lt-1){let tt=pu(t,G,ze,R,lt-1,X,de(),De,i,r,void 0);if(tt.processed){De=tt.wasBlank,G=tt.newPos;continue}}else break}else break}}if(ge&&P.length>1&&P[0].length>0&&P[0][0].type!==V.paragraph){for(var et=1;et<P.length;et++)if(P[et].length>0&&P[et][0].type===V.paragraph){for(var pn=!1,Fn=0;Fn<P[0].length;Fn++){var on=P[0][Fn].type;if(on===V.codeBlock||on===V.heading||on===V.blockQuote||on===V.orderedList||on===V.unorderedList||on===V.htmlBlock||on===V.breakThematic){pn=!0;break}}pn||(P[0]=[{type:V.paragraph,children:P[0]}]);break}}let wa=T?{type:V.orderedList,items:P,ordered:!0,start:w}:{type:V.unorderedList,items:P,ordered:!1};return i.inList=o,{...wa,endPos:G}}function Iw(t,l,i,r){if(i.inline)return null;let o=[],f=l;for(;f<t.length;){let A=ye(t,f);if(ka(t,f,A))break;let _=t.slice(f,A).trim();if(!(_.indexOf("|")!==-1||o.length>=3&&_&&!Os(_[0])))break;o.push(_),f=We(t,A)}if(o.length<2)return null;let d=A=>A[0]==="|"&&A[A.length-1]==="|"?A.slice(1,-1):A,g=A=>{let _=[],w="",x=!1;for(let C=0;C<A.length;C++){let D=A[C];D==="\\"&&C+1<A.length&&A[C+1]==="|"?(w+="|",C++):D==="`"?(x=!x,w+=D):D==="|"&&!x?(_.push(w.trim()),w=""):w+=D}return _.push(w.trim()),_},h=g(d(o[0]));if(!h.length)return null;let p=g(d(o[1]));if(p.length!==h.length||p.some(A=>!/^:?-+:?$/.test(A)))return null;let v=p.map(A=>{let _=A[0]===":",w=A[A.length-1]===":";return _&&w?"center":_?"left":w?"right":null}),S=A=>rc(i,!0,()=>A.map(_=>vi(_,0,_.length,i,r))),y=S(h),T=o.slice(2).map(A=>{let _=A.indexOf("|")!==-1?g(d(A)):[A.trim()],w=h.length;for(;_.length<w;)_.push("");return _.length=w,S(_)});return{type:V.table,header:y,cells:T,align:v,endPos:f}}var Vw=["div","p","section","article","aside","nav","header","footer","main","h1","h2","h3","h4","h5","h6","blockquote","ul","ol","li","dl","dt","dd","table","thead","tbody","tfoot","tr","td","th","form","fieldset","hr","pre","details","summary","figure","figcaption"],Qw=new Set(["pre","script","style","textarea"]);function bs(t){return Vw.indexOf(t.toLowerCase())!==-1}function Ds(t){return Qw.has(t)}function ka(t,l,i){for(var r=l;r<i;r++){let o=ie(t,r);if(o!==xe&&o!==Qe&&o!==On)return!1}return!0}function rc(t,l,i){let r=t.inline;t.inline=l;try{return i()}finally{t.inline=r}}function Bd(t,l,i){for(var r=l;r<i;){var o=ye(t,r);if(ka(t,r,o))return r;r=o+(o<i?1:0)}return i}function Ud(t,l,i){return{type:V.htmlComment,text:t,endPos:l,...i}}function $i(t,l,i,r,o,f,d,g){var h=l;if(g&&g.forceBlock&&l&&!f){var p=new RegExp("^<"+t.toLowerCase()+"(\\s[^>]*)?>$","i");p.test(l.trim())&&(h="")}return{type:V.htmlBlock,tag:t,attrs:r||{},rawAttrs:o,children:[],text:h,noInnerParse:!0,isClosingTag:f,canInterruptParagraph:d,endPos:i}}function ys(t){let l=Xb.test(t),i=Qb.test(t),r=Sw.test(t);return l||i&&!r}function cv(t,l,i,r,o,f,d,g,h,p){if(!g.inHTML&&!g.inline&&!hp(o,`
58
+ `},...C.children):x.type===V.heading?d.push(...C.children):gs(d)?d.push(...w):d.push({type:V.text,text:" "},...C.children),w.length>1&&d.push(...w.slice(1))}else d.push(...w);return{processed:!0,newPos:We(t,i),wasBlank:!1}}if(g){let x=rc(h,!0,()=>vi(T,0,T.length,h,p));d.push({type:V.paragraph,children:x})}else hu(T,d,h,p);return{processed:!0,newPos:We(t,i),wasBlank:!1}}function _h(t,l,i,r){if(i.inline)return null;var o=i.inList;if(i.inList=!0,l>0){var f=ie(t,l-1);if(f!==Ct&&f!==On)return i.inList=o,null}var d=ye(t,l),g=$e(t,l,d);if(g.spaceEquivalent>3&&!i.inList)return i.inList=o,null;var h=t.slice(l,d),p=g.charCount,v=h.slice(p),S=jd(v);if(!S)return i.inList=o,null;var{match:y,ordered:T,listItemRegex:A}=S,_=g.spaceEquivalent,w=T?parseInt(y[1],10):void 0,x=T?y[2]:void 0,C=T?void 0:y[1],D=T?y[3]==="":y[2]==="";function k(ze,ue){if(ze===0)return!0;var R=ie(t,ze-1);if(R!==Ct)return!1;if(!ue)return!0;for(var $=ze-2;$>=0;){var re=ie(t,$);if(re!==xe&&re!==Qe)break;$--}return $<0||ie(t,$)===Ct}if(D&&!k(l,!0))return i.inList=o,null;if(T&&w!==1&&!k(l,!1)||!T&&uv(y,C))return null;var U=y.index||0,H=T?U+y[1].length+y[2].length+1:D?U+y[1].length:U+y[1].length+1,L=l+p+H,Y=Zu(t,L,d,_,H),X=Y.contentStartColumn,W=_+U+y[1].length,K=T?W+y[2].length+1:D?W:W+1,P=[],fe=[];function he(ze,ue,R){return R?ze>=ue:ze>ue}function de(){return P[P.length-1]}function j(){return fe[fe.length-1]??X}function le(ze,ue){let R=Jb(ue),$=i.inList;i.inList=!0;let re=_h(t,ze,i,r);return i.inList=$,re?(R.push(re),re):null}for(var G=We(t,d),be=G,ge=!1;be<t.length;){var O=ye(t,be),J=t.slice(be,O);if(J.trim()===""){for(var ee=We(t,O);ee<t.length;){var oe=ie(t,ee);if(oe!==Ct){if(!Nw.has(t[ee]))break}ee++}var ne=ye(t,ee),ce=t.slice(ee,ne),me=$e(t,ee,ne),Se=ce.slice(me.charCount);if(Il(Se,me,T,C,x,_,A))ge=!0;else{var we=yh(t,ee,ne,me,Se,i,r);if(we){for(var Be=we;Be<t.length&&ie(t,Be)===Ct;)Be++;if(Be<t.length){var St=ye(t,Be),Ae=t.slice(Be,St),mt=$e(t,Be,St),Tt=Ae.slice(mt.charCount);Il(Tt,mt,T,C,x,_,A)&&(ge=!0)}}}break}var Oe=$e(t,be,O),ct=J.slice(Oe.charCount),tn=jd(ct);if(!tn)break;var _n=tn.match;if(T){if(_n[2]!==x)break}else if(_n[1]!==C)break;be=We(t,O)}var Xe=T?y[3]:y[2];Xe=Xe.trimStart();for(var Ft=l+p+(y.index||0),xt=T?Ft+y[1].length+y[2].length:Ft+y[1].length,nn=xt;nn<t.length;){var oe=ie(t,nn);if(oe!==xe&&oe!==Qe)break;nn++}for(var Et=0,st=xt;st<d;){var oe=ie(t,st);if(oe===Qe)Et+=4-Et%4;else if(oe===xe)Et++;else break;st++}var Dn=!1;if(xt<t.length&&ie(t,xt)===Qe){for(var Qt=1,Rt=xt+1;Rt<t.length&&ie(t,Rt)===Qe;)Qt++,Rt++;Qt>=2&&(Xe=" "+Xe,Dn=!0)}T||(D=D&&Et===0),Et>=4&&!Dn&&(Xe=" ".repeat(Et-1)+Xe.trimStart()),Xe.trim();let zt=ge;if(!ge&&G<t.length)for(var cn=G;cn<t.length;){var fn=ye(t,cn),ua=t.slice(cn,fn);if(ka(t,cn,fn)){for(var nt=We(t,fn);nt<t.length;){var dn=ye(t,nt);if(ka(t,nt,dn))nt=We(t,dn);else break}if(nt<t.length){var vt=$e(t,nt,t.length),ft=vt.spaceEquivalent;if(ft>=_){for(var Je=t.slice(nt,ye(t,nt)),qe=Je.slice(vt.charCount).match(A),an=qe&&(T?qe[2]===x:qe[1]===C),hn=null,jt=G;jt<cn;jt=ye(t,jt)+1){var at=ye(t,jt),Yt=$e(t,jt,at),At=t.slice(jt,at).slice(Yt.charCount).match(A),Rn=At&&Yt.spaceEquivalent>_&&Yt.spaceEquivalent>=X&&(T?At[2]===x:At[1]===C);if(Rn){var Nn=Yt.spaceEquivalent+1,dt=T?Nn+At[1].length+At[2].length+1:Nn+At[1].length+1,ln=jt+Yt.charCount+At[0].length,ca=Zu(t,ln,at,Nn,dt-Nn);hn=ca.contentStartColumn;break}}var jn=Et>=5?K:X;!an&&ft>=jn&&(hn===null||ft+1<hn)&&(zt=!0)}}break}var fa=$e(t,cn,fn),rn=fa.spaceEquivalent,sn=ua.slice(fa.charCount),Kt=sn.match(A),Bt=Kt&&(T?Kt[2]===x:Kt[1]===C);if(Bt&&rn<=_)break;cn=We(t,fn)}var Pe=Xe;if(ut(Xe,"```")||ut(Xe,"~~~")){var Bn=T?y[1].length+y[2].length+1:y[1].length+1,Mn=Pb(t,Xe,G,Bn);Pe=Mn.content,G=Mn.endPos}var Ut=!D&&Xe.trim()===""&&Et>0&&Et<5;if(Ut&&!zt)for(var l=G;l<t.length;){var d=ye(t,l),h=t.slice(l,d);if(h.trim()==="")break;var g=$e(t,l,d);if(g.spaceEquivalent<K)break;var v=h.slice(g.charCount);if(g.spaceEquivalent<=_&&Il(v,g,T,C,x,_,A))break;Pe+=`
59
+ `+v,G=l=We(t,d)}if(P.push(Wb(Pe,zt,i,r)),fe.push(X),zt&&(Et>=5||Ut)){let ze=de();G=sv(t,ze,K,G,_,T,C,x,A,i,r,!0)}else if(!zt){let ze=K-1;for(;G<t.length;){let ue=ye(t,G),R=t.slice(G,ue),$=$e(t,G,ue),re=$.spaceEquivalent,Ee=R.slice($.charCount);if(R.trim()===""||re<=_&&Il(Ee,$,T,C,x,_,A)||av(Ee)&&re>_||re<ze)break;let Ge=de(),pe=pu(t,G,ue,$,ze,X,Ge,!1,i,r,!0);if(pe.processed)G=pe.newPos;else break}}for(var De=!1;G<t.length;){let ze=ye(t,G),ue=t.slice(G,ze),R=$e(t,G,ze),$=R.charCount,re=R.spaceEquivalent;if(ue.trim()==="")ge=!0,De=!0,G=We(t,ze);else if(re<_){let Ee=ue.slice($);if(Ee.startsWith("<")&&rv(t,G,$,_,re,r))break;let Ge=Ee.trim();if(Ge.length>0&&P.length>0&&!Os(Ge[0])&&!Il(Ee,R,T,C,x,_,A)){let pe=de();if(pe.length>0){let ht=pe[pe.length-1];if(ht.type===V.paragraph||ht.type===V.text){hu(Ee,pe,i,r),De=!1,G=We(t,ze);continue}}}break}else{let Ee=ue.slice($);if(P.length>0){let Re=fe[P.length-1]||X;if(re+1>=Re&&!Il(Ee,R,T,C,x,_,A)){let lt=de();if(lt.length>0&&$b(lt,Ee,r)){G=We(t,ze);continue}}}if(Gu(t,G))break;if(De){let Re=yh(t,G,ze,R,Ee,i,r);if(Re){G=Re,De=!1;continue}}if(re<=_){if(Ee.startsWith("<")&&rv(t,G,$,_,re,r))break;if(!Il(Ee,R,T,C,x,_,A)){if(re===_&&!De){let Re=Ee.trim();if(Re.length>0&&!Os(Re[0])){let lt=Bs(t,G,i,r);if(lt&&lt.type!==V.paragraph)break;let tt=de();if(tt.length>0&&!gs(tt)){hu(Ee,tt,i,r,!1),De=!1,G=We(t,ze);continue}}}break}}if(lv(P,D,De,Xe))break;let Ge=jd(Ee),pe=Ge?Ge.match:null,ht=pe&&(T?pe[2]===x:pe[1]===C);if(ht&&re>3&&De)break;if(ht&&re<=_+3){if(re>=4&&De)break;if(re===_){let Re=T?pe[3]:pe[2];if(Re=Re.trimStart(),G=nu(t,P,fe,Re,G,ze,re,$,pe,T,ge,i,r).newCurrentPos,De=!1,Re.trim()===""){let lt=P[P.length-1],tt=j();G=sv(t,lt,tt,G,_,T,C,x,A,i,r)}continue}if(re>_){if(De){let Ne=T?pe[3]:pe[2];Ne=Ne.trimStart(),G=nu(t,P,fe,Ne,G,ze,re,$,pe,T,ge,i,r).newCurrentPos,De=!1;continue}let Re=de(),lt=re+1,tt=he(lt,j(),gs(Re));if(tt){let Ne=le(G,Re);if(Ne){G=Ne.endPos,De=!1;continue}}if(!tt&&ht){let Ne=T?pe[3]:pe[2];if(Ne=Ne.trimStart(),!ge){let kt=We(t,ze);for(;kt<t.length;){let Xt=ye(t,kt),La=t.slice(kt,Xt),He=$e(t,kt,Xt),Yn=He.spaceEquivalent;if(La.trim()===""){let gn=We(t,Xt);if(gn<t.length){let kn=$e(t,gn,t.length).spaceEquivalent,za=re+(T?pe[1].length+pe[2].length+1:pe[1].length+1);if(kn+1>za)break}break}else if(Yn<=_){let gn=La.slice(He.charCount).match(A);if(gn&&(T?gn[2]===x:gn[1]===C)&&Yn<=_)break}kt=We(t,Xt)}}G=nu(t,P,fe,Ne,G,ze,re,$,pe,T,ge,i,r).newCurrentPos,De=!1;continue}else if(!tt&&!ht)break;{let Ne=de(),kt=Ne.length===0;if(kt&&lv(P,D,De,Xe))break;let Xt=Ne.some(He=>He.type===V.codeBlock||He.type===V.paragraph||He.type===V.blockQuote||He.type===V.orderedList||He.type===V.unorderedList||He.type===V.heading),La=kt&&P.length===1?K:X;if(Xt?re>=La:re>La){let He=pu(t,G,ze,R,La,X,de(),De,i,r,void 0);if(He.processed){De=He.wasBlank,G=He.newPos;continue}}else break}}else if(re===_){if(!T&&pe&&uv(pe,pe[1]))break;let Re=T?pe[3]:pe[2];Re=Re.trimStart(),G=nu(t,P,fe,Re,G,ze,_,$,pe,T,ge,i,r).newCurrentPos,De=!1}}else if(re>_){let Re=de();if(av(Ee)){let tt=re+1;if(he(tt,j(),gs(Re))){let Ne=le(G,Re);if(Ne){G=Ne.endPos,De=!1;continue}}if(re-_>3){let Ne=Re.length>0?Re[Re.length-1]:null;if(Ne&&(Ne.type===V.paragraph||Ne.type===V.text)){hu(Ee,Re,i,r),De=!1,G=We(t,ze);continue}}else break}else{let tt=le(G,Re);if(tt){G=tt.endPos,De=!1;continue}}let lt=X;if(gs(Re)?re>=lt-1:re>lt-1){let tt=pu(t,G,ze,R,lt-1,X,de(),De,i,r,void 0);if(tt.processed){De=tt.wasBlank,G=tt.newPos;continue}}else break}else break}}if(ge&&P.length>1&&P[0].length>0&&P[0][0].type!==V.paragraph){for(var et=1;et<P.length;et++)if(P[et].length>0&&P[et][0].type===V.paragraph){for(var pn=!1,Fn=0;Fn<P[0].length;Fn++){var on=P[0][Fn].type;if(on===V.codeBlock||on===V.heading||on===V.blockQuote||on===V.orderedList||on===V.unorderedList||on===V.htmlBlock||on===V.breakThematic){pn=!0;break}}pn||(P[0]=[{type:V.paragraph,children:P[0]}]);break}}let wa=T?{type:V.orderedList,items:P,ordered:!0,start:w}:{type:V.unorderedList,items:P,ordered:!1};return i.inList=o,{...wa,endPos:G}}function qb(t,l,i,r){if(i.inline)return null;let o=[],f=l;for(;f<t.length;){let A=ye(t,f);if(ka(t,f,A))break;let _=t.slice(f,A).trim();if(!(_.indexOf("|")!==-1||o.length>=3&&_&&!Os(_[0])))break;o.push(_),f=We(t,A)}if(o.length<2)return null;let d=A=>A[0]==="|"&&A[A.length-1]==="|"?A.slice(1,-1):A,g=A=>{let _=[],w="",x=!1;for(let C=0;C<A.length;C++){let D=A[C];D==="\\"&&C+1<A.length&&A[C+1]==="|"?(w+="|",C++):D==="`"?(x=!x,w+=D):D==="|"&&!x?(_.push(w.trim()),w=""):w+=D}return _.push(w.trim()),_},h=g(d(o[0]));if(!h.length)return null;let p=g(d(o[1]));if(p.length!==h.length||p.some(A=>!/^:?-+:?$/.test(A)))return null;let v=p.map(A=>{let _=A[0]===":",w=A[A.length-1]===":";return _&&w?"center":_?"left":w?"right":null}),S=A=>rc(i,!0,()=>A.map(_=>vi(_,0,_.length,i,r))),y=S(h),T=o.slice(2).map(A=>{let _=A.indexOf("|")!==-1?g(d(A)):[A.trim()],w=h.length;for(;_.length<w;)_.push("");return _.length=w,S(_)});return{type:V.table,header:y,cells:T,align:v,endPos:f}}var Vw=["div","p","section","article","aside","nav","header","footer","main","h1","h2","h3","h4","h5","h6","blockquote","ul","ol","li","dl","dt","dd","table","thead","tbody","tfoot","tr","td","th","form","fieldset","hr","pre","details","summary","figure","figcaption"],Qw=new Set(["pre","script","style","textarea"]);function bs(t){return Vw.indexOf(t.toLowerCase())!==-1}function Ds(t){return Qw.has(t)}function ka(t,l,i){for(var r=l;r<i;r++){let o=ie(t,r);if(o!==xe&&o!==Qe&&o!==On)return!1}return!0}function rc(t,l,i){let r=t.inline;t.inline=l;try{return i()}finally{t.inline=r}}function Bd(t,l,i){for(var r=l;r<i;){var o=ye(t,r);if(ka(t,r,o))return r;r=o+(o<i?1:0)}return i}function Ud(t,l,i){return{type:V.htmlComment,text:t,endPos:l,...i}}function $i(t,l,i,r,o,f,d,g){var h=l;if(g&&g.forceBlock&&l&&!f){var p=new RegExp("^<"+t.toLowerCase()+"(\\s[^>]*)?>$","i");p.test(l.trim())&&(h="")}return{type:V.htmlBlock,tag:t,attrs:r||{},rawAttrs:o,children:[],text:h,noInnerParse:!0,isClosingTag:f,canInterruptParagraph:d,endPos:i}}function ys(t){let l=Xb.test(t),i=Qb.test(t),r=Ew.test(t);return l||i&&!r}function cv(t,l,i,r,o,f,d,g,h,p){if(!g.inHTML&&!g.inline&&!hp(o,`
60
60
  `)){let ne=f,ce=d.length;for(;ne<ce;){let me=ye(d,ne);if(ka(d,ne,me))break;let Se=d.slice(ne,me).trim();if(Se.length>0&&Os(Se[0])){let we=sc(d,ne,g,p);if(we){ne=we.endPos;continue}let Be=dr(d,ne);if(Be){ne=Be.endPos;continue}return null}ne=We(d,me)}}let v=l,S=Ds(v);var y=!S&&!vs(l),T=void 0;if(o){var A=o.indexOf(">");if(A!==-1){var _=o.slice(0,A+1);_.indexOf(`
61
61
  `)!==-1&&(T=_);for(var w=A,x=1;x<A;x++){var C=_[x];if(C===" "||C===" "||C===`
62
62
  `||C===">"){w=x;break}}i=_.slice(w,A)}}var D=i.replace(/^[\s\n\r\t]+/,""),k=di(D,l,t,p),U={...k},H=!1,L=!1;if(y&&r.length>0){var Y="</"+v,X=r.indexOf(Y);if(X>=0){for(var W=X+Y.length;W<r.length&&(r[W]===" "||r[W]===" ");)W++;if(W<r.length&&r[W]===">"){var K=r.slice(0,X);ys(K)?(r=K,L=!0):H=!0}}if(!L){var P=r.length-1;if(r[P]===`
@@ -68,7 +68,7 @@ ${ce.current.stack}
68
68
  `||X==="\r")&&(D=!0),C++,Y=!0;else if(X==='"'||X==="'")k=!0,U=X,C++,Y=!0;else if(X===`
69
69
  `||X==="\r"){D=!0,C++,Y=!0;var W=ye(t,C);if(W===C)break;H=W}else if(X===">"){C++,L=!0;break}else C++,Y=!0}if(L)break;if(!Y&&C>=H){var K=ye(t,H+1);if(K<=H)break;H=K}else if(C>=H&&H<T){var K=ye(t,H+1);if(K<=H)break;H=K}else break}if(!D&&L)return null;C>=A&&A<T&&(C=A);var P=x?"type6":"type7",fe=C,he=Bd(t,A+1,T),de=t.slice(fe,he),j=l+1<t.length&&t[l+1]==="/";if(P==="type7"&&de.trim()===""){var le=t.slice(l,he),G=ye(le,0);G<le.length&&G++;var be=le.slice(0,G);return $i(Xt,be,he,{},void 0,j,!1,r)}var ge=t.slice(l,he);return $i(Xt,ge,he,{},void 0,j,P==="type6",r)}}return null}if(!y)return null;if(p!==-1){var O=t.slice(l+1,p);if((ut(O,"http://")||ut(O,"https://"))&&(O.indexOf(" ")!==-1||O.indexOf(" ")!==-1))return null}var Se=l+(y.isClosing?2:1);if(Se<t.length){var J=t[Se],ee=ie(J);if((ee>=97&&ee<=122||ee>=65&&ee<=90)&&Se+1<t.length&&t[Se+1]===":")return null}if(y.isClosing){var oe=y.attrs.trim();if(oe.length>0)return null;if(!i.inline){for(var T=t.length,A=ye(t,l),fe=y.endPos,ne=fe;ne<A&&(t[ne]===" "||t[ne]===" "||t[ne]==="\r");)ne++;var ce=ne>=A||t[ne]==="<"&&(function(){var gr=dr(t,ne);return gr&&bs(gr.tagLower)})();if(ce){var he=Bd(t,A+1,T),de=t.slice(fe,he);de.length>0&&de[0]===`
70
70
  `&&(de=de.slice(1));let ml=y.tagLower||y.tagName.toLowerCase();return $i(y.tagName,de,he,di(y.whitespaceBeforeAttrs+y.attrs,ml,y.tagName,r),y.whitespaceBeforeAttrs+y.attrs,!0,!1)}}var me=t.slice(l,y.endPos);return{type:V.htmlSelfClosing,tag:y.tagName,attrs:{},endPos:y.endPos,isClosingTag:!0,rawText:me}}var Se=l+(y.isClosing?2:1);if(Se<t.length){var we=t[Se];if(we===" "||we===" "||we===`
71
- `||we==="\r")return null}var Be=y.tagLower,St=vs(y.tagName);let Ae=y.tagName.length>0&&y.tagName[0]>="A"&&y.tagName[0]<="Z";if(y.isSelfClosing||St&&Be!=="a"){if(y.hasNewline&&!Ae||!i.inHTML&&!i.inline&&!Ae)return null;var mt=y.attrs.replace(/\/\s*$/,""),Tt=di(mt,Be,y.tagName,r),me=i.inline?t.slice(l,y.endPos):void 0;let Un={type:V.htmlSelfClosing,tag:y.tagName,attrs:Tt,endPos:y.endPos};return me!==void 0&&(Un.rawText=me),Un}if(i.inline){var Oe=y.attrs.replace(/\/\s*$/,""),ct=y.whitespaceBeforeAttrs+Oe,tn=di(Oe,Be,y.tagName,r),_n={...tn},Xe=y.endPos,Ft=[];if(!vs(y.tagName)){var xt=yw(t,y.endPos,Be);if(xt!==null){var nn=t.slice(y.endPos,xt[0]);nn&&(i.inHTML&&Vb.test(nn)||ys(nn)?Ft=_p(nn,{...i,inline:!1,inHTML:!0,inAnchor:i.inAnchor||Be==="a"},r):Ft=vi(nn,0,nn.length,{...i,inline:!0,inAnchor:i.inAnchor||Be==="a"},r)),Xe=xt[1]}}return{type:V.htmlBlock,tag:y.tagName,attrs:_n,rawAttrs:ct,children:Ft,noInnerParse:!1,endPos:Xe}}if(!i.inline){for(var T=t.length,A=ye(t,l),Et=y.tagLower,st=Ds(Et),Dn=!st&&bs(y.tagName),Qt=!1,Rt=l;Rt<y.endPos;){if(t[Rt]===">"){Qt=!0;break}Rt++}for(var ne=y.endPos;ne<A&&(t[ne]===" "||t[ne]===" ");)ne++;var zt=ne>=A||t[ne]===`
71
+ `||we==="\r")return null}var Be=y.tagLower,St=vs(y.tagName);let Ae=y.tagName.length>0&&y.tagName[0]>="A"&&y.tagName[0]<="Z";if(y.isSelfClosing||St&&Be!=="a"){if(y.hasNewline&&!Ae||!i.inHTML&&!i.inline&&!Ae)return null;var mt=y.attrs.replace(/\/\s*$/,""),Tt=di(mt,Be,y.tagName,r),me=i.inline?t.slice(l,y.endPos):void 0;let Un={type:V.htmlSelfClosing,tag:y.tagName,attrs:Tt,endPos:y.endPos};return me!==void 0&&(Un.rawText=me),Un}if(i.inline){var Oe=y.attrs.replace(/\/\s*$/,""),ct=y.whitespaceBeforeAttrs+Oe,tn=di(Oe,Be,y.tagName,r),_n={...tn},Xe=y.endPos,Ft=[];if(!vs(y.tagName)){var xt=_w(t,y.endPos,Be);if(xt!==null){var nn=t.slice(y.endPos,xt[0]);nn&&(i.inHTML&&Vb.test(nn)||ys(nn)?Ft=_p(nn,{...i,inline:!1,inHTML:!0,inAnchor:i.inAnchor||Be==="a"},r):Ft=vi(nn,0,nn.length,{...i,inline:!0,inAnchor:i.inAnchor||Be==="a"},r)),Xe=xt[1]}}return{type:V.htmlBlock,tag:y.tagName,attrs:_n,rawAttrs:ct,children:Ft,noInnerParse:!1,endPos:Xe}}if(!i.inline){for(var T=t.length,A=ye(t,l),Et=y.tagLower,st=Ds(Et),Dn=!st&&bs(y.tagName),Qt=!1,Rt=l;Rt<y.endPos;){if(t[Rt]===">"){Qt=!0;break}Rt++}for(var ne=y.endPos;ne<A&&(t[ne]===" "||t[ne]===" ");)ne++;var zt=ne>=A||t[ne]===`
72
72
  `||t[ne]==="\r"||Dn&&ne<A||!Qt;if(st&&Qt&&!y.isClosing){var{tagName:cn,endPos:fn,attrs:ua}=y,nt=fn;t[nt]===`
73
73
  `&&nt++;for(var dn=nt,vt=nt,ft=1,Je=Et.length+1;ft>0;){var qe=t.indexOf("<",nt);if(qe===-1){vt=T,nt=T;break}var an=-1,hn=-1;if(t[qe+1]==="/")hn=qe;else if(qe+Je+1<=T&&(t[qe+1]===Et[0]||t[qe+1]===cn[0])){var jt=t.substring(qe+1,qe+Je);jt.toLowerCase()===Et&&(t[qe+Je]===" "||t[qe+Je]===">")&&(an=qe)}if(an===-1&&hn===-1){nt=qe+1;continue}if(an!==-1&&(hn===-1||an<hn))nt=an+Je+1,ft++;else{for(var at=hn+2;at<T;){var Yt=t[at];if(Yt!==" "&&Yt!==" "&&Yt!==`
74
74
  `&&Yt!=="\r")break;at++}if(at+Et.length>T)break;var At=t.substring(at,at+Et.length);if(At.toLowerCase()!==Et){nt=at;continue}for(at+=Et.length;at<T;){var Rn=t[at];if(Rn!==" "&&Rn!==" "&&Rn!==`
@@ -106,26 +106,26 @@ ${ce.current.stack}
106
106
  `?(g.push(`
107
107
  `),h=A+1):h=f,p++}let S=g.join("");o&&(S=S.replace(/\n$/,""));for(var y=S.length;y>0;){var T=S[y-1];if(T===`
108
108
  `||T===" ")y--;else break}return y<S.length&&(S=S.slice(0,y)),{endPos:r,target:S,title:void 0}}function hr(t,l,i,r,o){if(t[l]!=="[")return null;var f=l+1<t.length&&t[l+1]==="^";if(o?!f:f)return null;for(var d=l;d>0&&t[d-1]!==`
109
- `;)d--;if($e(t,d,l).spaceEquivalent>=4||i.inline)return null;var g=l+(o?2:1),h=t.length,p=Aw(t,g,h,"]");if(p===-1)return null;var v=t.slice(g,p);if(v.length>999)return null;for(var S=!1,y=!1,T=!1,A=0;A<v.length;A++){var _=v[A];if(_==="\\"&&A+1<v.length){A++;continue}var w=ie(_);w===mi||w===zu?y=!0:w===Ct||w===On?T=!0:w!==xe&&w!==Qe&&(S=!0)}if(!S||y)return null;var x=p+1;if(T){var C=ie(t,g),D=ie(t,p-1);if(C===Ct||C===On||D===Ct||D===On||x>=h||t[x]!==":")return null}else if((x>=h||t[x]!==":")&&(x=bn(t,x),x<h&&ie(t,x)===Ct&&(x=bn(t,x+1)),x>=h||t[x]!==":"))return null;x++;for(var k=0;x<h;){var U=ie(t,x);if(U===Ct){if(++k>1)break;x=bn(t,x+1)}else if(U===xe||U===Qe)x++;else break}let H=o?Zw(t,x):Gw(t,x,k);if(!H)return null;let L=Fb(v),Y=i.refs||{},X=o?`^${L}`:L;return Y[X]||(Y[X]={target:Iu(H.target.trim()),title:H.title?Iu(H.title):void 0},i.refs=Y),{type:o?V.footnote:V.ref,endPos:H.endPos}}function qb(t,l,i){for(var r=[],o=0;o<l.length;){var f=l[o];if(!f||f.type!=="*"&&f.type!=="_"&&f.type!=="~"&&f.type!=="="){o++;continue}if(!f.canClose||!f.active){o++;continue}for(var d=f.type==="*"?0:f.type==="_"?1:f.type==="~"?2:3,g=d*6+f.length%3*2+(f.canOpen?1:0),h=r[g]!==void 0?r[g]:-1,p=-1,v=f.type,S=f.inAnchor,y=f.canOpen,T=f.length,A=T%3,_=o-1;_>h;_--){var w=l[_];if(!(!w||!w.active||w.type!==v||!w.canOpen||w.inAnchor!==S)){var x=w.length;if(!y&&!w.canClose||A===0||(x+T)%3!==0){p=_;break}}}if(p>=0){var C=l[p],x=C.length,D=x>=2&&T>=2,k=D?2:1;if(k>x||k>T){o++;continue}var U=C.nodeIndex,H=f.nodeIndex,L=U+1,Y=H,X=t.slice(L,Y);if(X.length>0){var W=Y-L;t.splice(L,W);for(var K=0;K<l.length;K++)l[K].nodeIndex>L&&(l[K].nodeIndex-=W);H>L&&(H-=W)}var P=C.type==="~"?"del":C.type==="="?"mark":D?"strong":"em",fe={type:V.textFormatted,tag:P,children:X},he=t[U];if(!he||!he.text){C.active=f.active=!1;continue}var de=he.text.length<=k;if(de){t.splice(U,1);for(var K=0;K<l.length;K++)l[K].nodeIndex>U&&l[K].nodeIndex--;H>U&&H--}else he.text=he.text.slice(k);var j=t[H];if(!j||!j.text){C.active=f.active=!1;continue}var le=j.text.length<=k;if(le){t.splice(H,1);for(var K=0;K<l.length;K++)l[K].nodeIndex>H&&l[K].nodeIndex--}else j.text=j.text.slice(k);var G=de?U<H?H-1:U:U+1;(G<0||G>t.length)&&(G=G<0?0:t.length),t.splice(G,0,fe);for(var K=0;K<l.length;K++)l[K].nodeIndex>=G&&l[K].nodeIndex++;for(var K=p+1;K<o;K++)l[K].active=!1;de?C.active=!1:(C.length-=k,C.length===0&&(C.active=!1)),le?(f.active=!1,o++):(f.length-=k,f.length===0&&(f.active=!1,o++))}else r[g]=o-1,!f.canOpen&&(f.active=!1),o++}for(var be=0,_=0;_<l.length;_++)l[_].active&&(l[be++]=l[_]);l.length=be}function Ep(t,l,i){var r=[],o=0,f=-3,d=f;if(l.inline)return vi(t,0,t.length,l,i);if(o===0&&t.startsWith("---")){var g=Bw(t,o);g&&(r.push(g),o=g.endPos)}for(;o<t.length;){for(;o<t.length&&t[o]===`
109
+ `;)d--;if($e(t,d,l).spaceEquivalent>=4||i.inline)return null;var g=l+(o?2:1),h=t.length,p=Cw(t,g,h,"]");if(p===-1)return null;var v=t.slice(g,p);if(v.length>999)return null;for(var S=!1,y=!1,T=!1,A=0;A<v.length;A++){var _=v[A];if(_==="\\"&&A+1<v.length){A++;continue}var w=ie(_);w===mi||w===zu?y=!0:w===Ct||w===On?T=!0:w!==xe&&w!==Qe&&(S=!0)}if(!S||y)return null;var x=p+1;if(T){var C=ie(t,g),D=ie(t,p-1);if(C===Ct||C===On||D===Ct||D===On||x>=h||t[x]!==":")return null}else if((x>=h||t[x]!==":")&&(x=bn(t,x),x<h&&ie(t,x)===Ct&&(x=bn(t,x+1)),x>=h||t[x]!==":"))return null;x++;for(var k=0;x<h;){var U=ie(t,x);if(U===Ct){if(++k>1)break;x=bn(t,x+1)}else if(U===xe||U===Qe)x++;else break}let H=o?Zw(t,x):Gw(t,x,k);if(!H)return null;let L=Fb(v),Y=i.refs||{},X=o?`^${L}`:L;return Y[X]||(Y[X]={target:Iu(H.target.trim()),title:H.title?Iu(H.title):void 0},i.refs=Y),{type:o?V.footnote:V.ref,endPos:H.endPos}}function ey(t,l,i){for(var r=[],o=0;o<l.length;){var f=l[o];if(!f||f.type!=="*"&&f.type!=="_"&&f.type!=="~"&&f.type!=="="){o++;continue}if(!f.canClose||!f.active){o++;continue}for(var d=f.type==="*"?0:f.type==="_"?1:f.type==="~"?2:3,g=d*6+f.length%3*2+(f.canOpen?1:0),h=r[g]!==void 0?r[g]:-1,p=-1,v=f.type,S=f.inAnchor,y=f.canOpen,T=f.length,A=T%3,_=o-1;_>h;_--){var w=l[_];if(!(!w||!w.active||w.type!==v||!w.canOpen||w.inAnchor!==S)){var x=w.length;if(!y&&!w.canClose||A===0||(x+T)%3!==0){p=_;break}}}if(p>=0){var C=l[p],x=C.length,D=x>=2&&T>=2,k=D?2:1;if(k>x||k>T){o++;continue}var U=C.nodeIndex,H=f.nodeIndex,L=U+1,Y=H,X=t.slice(L,Y);if(X.length>0){var W=Y-L;t.splice(L,W);for(var K=0;K<l.length;K++)l[K].nodeIndex>L&&(l[K].nodeIndex-=W);H>L&&(H-=W)}var P=C.type==="~"?"del":C.type==="="?"mark":D?"strong":"em",fe={type:V.textFormatted,tag:P,children:X},he=t[U];if(!he||!he.text){C.active=f.active=!1;continue}var de=he.text.length<=k;if(de){t.splice(U,1);for(var K=0;K<l.length;K++)l[K].nodeIndex>U&&l[K].nodeIndex--;H>U&&H--}else he.text=he.text.slice(k);var j=t[H];if(!j||!j.text){C.active=f.active=!1;continue}var le=j.text.length<=k;if(le){t.splice(H,1);for(var K=0;K<l.length;K++)l[K].nodeIndex>H&&l[K].nodeIndex--}else j.text=j.text.slice(k);var G=de?U<H?H-1:U:U+1;(G<0||G>t.length)&&(G=G<0?0:t.length),t.splice(G,0,fe);for(var K=0;K<l.length;K++)l[K].nodeIndex>=G&&l[K].nodeIndex++;for(var K=p+1;K<o;K++)l[K].active=!1;de?C.active=!1:(C.length-=k,C.length===0&&(C.active=!1)),le?(f.active=!1,o++):(f.length-=k,f.length===0&&(f.active=!1,o++))}else r[g]=o-1,!f.canOpen&&(f.active=!1),o++}for(var be=0,_=0;_<l.length;_++)l[_].active&&(l[be++]=l[_]);l.length=be}function Ep(t,l,i){var r=[],o=0,f=-3,d=f;if(l.inline)return vi(t,0,t.length,l,i);if(o===0&&t.startsWith("---")){var g=Uw(t,o);g&&(r.push(g),o=g.endPos)}for(;o<t.length;){for(;o<t.length&&t[o]===`
110
110
  `;)o++;if(o>=t.length)break;d=f;let S=t[o],y=Bs(t,o,l,i);if(y){if(y.type===V.codeBlock){var h=S==="`"||S==="~";if(!h&&(S===" "||S===" ")){let C=ye(t,o),D=$e(t,o,C);h=D.spaceEquivalent<=3&&o+D.charCount<t.length&&(t[o+D.charCount]==="`"||t[o+D.charCount]==="~")}}if(y.type===V.htmlComment){r.push(y);let C=o;o=y.endPos;let D=ye(t,C);if(o<D){let k=t.slice(o,D);k.trim().length>0&&r.push({type:V.text,text:k}),o=D,o<t.length&&t[o]===`
111
- `&&o++}continue}if(y.type===V.htmlBlock||y.type===V.htmlSelfClosing){if(!(y.type===V.htmlSelfClosing&&y.isClosingTag===!0&&!l.inline&&!l.inHTML)){r.push(y),o=y.endPos;continue}}else{r.push(y),o=y.endPos;continue}}let T=d!==f?d:o;if(d===f){if(xn(S)){let x=ye(t,o),C=$e(t,o,x),D=o+C.charCount;C.spaceEquivalent<=3&&D<t.length&&t[D]==="["?T=D:T=-1}else S==="["?T=o:T=-1;d=T}if(T>=0&&T+1<t.length&&t[T+1]==="^"&&(T=-1),T>=0){let x=hr(t,T,l,i,!1);if(x){r.push(x),o=x.endPos;continue}let C=Ow(t,T,o===0);if(C.shouldSkip){o=C.newPos;continue}}let A=Yb(t,o,l,i);if(A){r.push(A),o=A.endPos;continue}let _=o;if(xn(t[_])){let x=ye(t,o),C=$e(t,o,x);_=o+C.charCount}if(_<t.length&&t[_]==="["&&_+1<t.length&&t[_+1]==="^"){let x=hr(t,_,l,i,!0);if(x){o=x.endPos;continue}}let w=vh(t,o,l,i);if(w){r.push(w),o=w.endPos;continue}o++}let p=l.refs||{},v={};for(let S in p)v[S]=p[S];return Hb(v)?[{type:V.refCollection,refs:v},...r]:r}function ey(t,l,i){var r=0,o=!0;let f=t.length;for(;r<f;){for(var d=0;r<f&&ie(t,r)===Ct;)d++,r++;if(r>=f)break;d>0&&(o=!0);let D=ie(t,r);if(D===_a||D===Ls){var g=Sp(t,r,{},i);if(g){r=g.endPos,o=!0;continue}}for(var h=r,p=0;h<f&&p<4;){let k=ie(t,h);if(k===xe)p++,h++;else if(k===Qe)p+=4-p%4,h++;else break}if(p<4&&h<f&&ie(t,h)===mi&&o)if(h+1<f&&ie(t,h+1)===Mu){o=!1;var x=ye(t,r);r=x>=f?f:x+1;continue}else{var v=hr(t,h,{inline:!1,refs:l},i,!1);if(v){r=v.endPos,o=!0;continue}var x=ye(t,r),S=t.indexOf(":",h+1);if(S===-1||S>=x){var y=$e(t,r,x);!ka(t,r,x)&&D!==ku&&D!==Ql&&D!==Qa&&D!==sr&&y.spaceEquivalent<4&&(o=!1)}r=x>=f?f:x+1;continue}if(D===Ql&&o){for(var T=r,A=[];T<f;){for(var x=ye(t,T),_=T;_<x;){let U=ie(t,_);if(U===xe||U===Qe)_++;else break}if(_>=x||ie(t,_)!==Ql)break;var w=_+1;w<x&&(ie(t,w)===xe||ie(t,w)===Qe)&&w++,A.push(t.slice(w,x)),T=x+1}if(A.length){ey(A.join(`
112
- `),l,i),r=T,o=!0;continue}}var x=ye(t,r);if(x>=f)r=f;else{var C=ka(t,r,x),y=$e(t,r,x);r=x+1,o=D===ku||D===Ql||D===Qa||D===sr||C||y.spaceEquivalent>=4}}}var Fw=/^\n+/;function Yw(t){let l=!1;for(let r=0;r<t.length;r++){let o=t.charCodeAt(r);if(o>127||o===Lu||o===_a){l=!0;break}}if(!l)return t;let i="";for(let r=0;r<t.length;r++){let o=t[r];if(o==="%"&&r+2<t.length&&/[0-9A-Fa-f]/.test(t[r+1])&&/[0-9A-Fa-f]/.test(t[r+2]))i+=t[r]+t[r+1]+t[r+2],r+=2;else if(o.charCodeAt(0)===Lu)i+="%5C";else if(o.charCodeAt(0)===_a)i+="%60";else{let f=o.charCodeAt(0);i+=f>127?encodeURIComponent(o):o}}return i}function Kw(t,l,i,r,o,f,d,g){switch(t.type){case V.blockQuote:{let p={key:i.key};return t.alert&&(p.className="markdown-alert-"+f(t.alert.toLowerCase(),Gl),t.children.unshift({attrs:{},children:[{type:V.text,text:t.alert}],noInnerParse:!0,type:V.htmlBlock,tag:"header"})),r("blockquote",p,l(t.children,i))}case V.breakLine:return r("br",{key:i.key});case V.breakThematic:return r("hr",{key:i.key});case V.frontmatter:return g.preserveFrontmatter?r("pre",{key:i.key},t.text):null;case V.codeBlock:let h=t.lang?ic(t.lang):"";return r("pre",{key:i.key},r("code",{...cp(t.attrs||{}),className:h?`language-${h} lang-${h}`:""},t.text));case V.codeInline:return r("code",{key:i.key},t.text);case V.footnoteReference:return r("a",{key:i.key,href:o(t.target,"a","href")},r("sup",{key:i.key},t.text));case V.gfmTask:return r("input",{checked:t.completed,key:i.key,readOnly:!0,type:"checkbox"});case V.heading:return r(`h${t.level}`,{id:t.id,key:i.key},l(t.children,i));case V.htmlBlock:{let p=t;if(g.tagfilter&&uh(p.tag)){let v;if("rawText"in p&&typeof p.rawText=="string")v=p.rawText;else{let S="";if(p.attrs)for(let[y,T]of Object.entries(p.attrs))T===!0?S+=` ${y}`:T!=null&&T!==!1&&(S+=` ${y}="${String(T)}"`);v=`<${p.tag}${S}>`}return r("span",{key:i.key},v)}if(p.text&&p.noInnerParse){let v=function(C){if(C.type===V.htmlSelfClosing&&"isClosingTag"in C&&C.isClosingTag)return[];if(C.type===V.paragraph){let D=C.children;return D?D.flatMap(v):[]}return C.type===V.text?C.text?.trim()?[C]:[]:C.type===V.htmlBlock&&C.children?[{...C,children:C.children?.flatMap(v)}]:[C]},S=p.tag.toLowerCase(),y=Ds(S),T=/<[a-z][^>]{0,100}>/i.test(p.text),A=/<\/?pre\b/i.test(p.text);if(y&&!T){let C=p.text.replace(new RegExp("\\s*</"+S+">\\s*$","i"),"");return g.tagfilter&&(C=ch(C)),r(t.tag,{key:i.key,...t.attrs},C)}if(A){let C=g.tagfilter?ch(p.text):p.text;return r(t.tag,{key:i.key,...t.attrs,dangerouslySetInnerHTML:{__html:C}})}let _={slugify:C=>f(C,Gl),sanitizer:o,tagfilter:!0},w=p.text.replace(/>\s+</g,"><").replace(/\n+/g," ").trim();if(new RegExp(`^<${p.tag}(\\s[^>]*)?>(\\s*</${p.tag}>)?$`,"i").test(w))return r(t.tag,{key:i.key,...t.attrs});let x=Ep(w,{inline:!1,refs:d,inHTML:!1},_);return r(t.tag,{key:i.key,...t.attrs},l(x.flatMap(v),i))}return r(t.tag,{key:i.key,...t.attrs},t.children?l(t.children,i):"")}case V.htmlSelfClosing:{let p=t;if(g.tagfilter&&uh(p.tag)){let v;if("rawText"in p&&typeof p.rawText=="string")v=p.rawText;else{let S="";if(p.attrs)for(let[y,T]of Object.entries(p.attrs))T===!0?S+=` ${y}`:T!=null&&T!==!1&&(S+=` ${y}="${String(T)}"`);v=`<${p.tag}${S} />`}return r("span",{key:i.key},v)}return r(t.tag,{key:i.key,...t.attrs})}case V.image:return r("img",{key:i.key,alt:t.alt&&t.alt.length>0?t.alt:void 0,title:t.title||void 0,src:o(t.target,"img","src")});case V.link:{let p={key:i.key};return t.target!=null&&(p.href=Yw(t.target)),t.title&&(p.title=t.title),r("a",p,l(t.children,i))}case V.table:{let p=t;return r("table",{key:i.key},r("thead",null,r("tr",null,p.header.map(function(v,S){return r("th",{key:S,style:p.align[S]==null?{}:{textAlign:p.align[S]}},l(v,i))}))),r("tbody",null,p.cells.map(function(v,S){return r("tr",{key:S},v.map(function(y,T){return r("td",{key:T,style:p.align[T]==null?{}:{textAlign:p.align[T]}},l(y,i))}))})))}case V.text:return t.text;case V.textFormatted:return r(t.tag,{key:i.key},l(t.children,i));case V.orderedList:case V.unorderedList:{let p=t.type===V.orderedList?"ol":"ul";return r(p,{key:i.key,start:t.type===V.orderedList?t.start:void 0},t.items.map(function(v,S){return r("li",{key:S},l(v,i))}))}case V.paragraph:return r("p",{key:i.key},l(t.children,i));case V.ref:return null;default:return null}}var Jw=(t,l,i,r,o,f)=>{let d=(p,v,S)=>{let y=()=>Kw(p,v,S,l,i,r,o,f);return t?t(y,p,v,S):y()},g=p=>p.map(v=>"text"in v?v.text:""),h=(p,v={})=>{let S=(v.renderDepth||0)+1;if(S>2500)return g(p);v.renderDepth=S;let y=v.key,T=[],A=!1;for(let _=0;_<p.length;_++){v.key=_;let w=d(p[_],h,v),x=typeof w=="string";if(x&&A)T[T.length-1]+=w;else if(w!==null)if(Array.isArray(w))for(let C=0;C<w.length;C++)T.push(w[C]);else T.push(w);A=x}return v.key=y,v.renderDepth=S-1,T};return h},Pw=(...t)=>t.filter(Boolean).join(" "),Sh=(t,l,i)=>{let r=t,o=l.split("."),f=0;for(;f<o.length&&(r=r?.[o[f]],r!==void 0);)f++;return r||i},Ww=(t,l)=>{let i=Sh(l,t,void 0);return i?typeof i=="function"||typeof i=="object"&&"render"in i?i:Sh(l,`${t}.component`,t):t};function $w(t,l){let i={...l||{}};i.overrides=i.overrides||{};let r=i.slugify||Gl,o=i.sanitizer||fp,f=i.createElement||Z.createElement,d=w=>ty(w,{...i,wrapper:null});function g(w,x,...C){let D=Sh(i.overrides,`${w}.props`,{}),k=cp(x||{});if(d)for(let[U,H]of Object.entries(k))typeof H=="string"&&H.length>0&&H[0]==="<"&&(vw.test(H)||Ew.test(H)||dr(H,0))&&(k[U]=d(H.trim()));return f(Ww(w,i.overrides),{...k,...D,className:Pw(k?.className,D.className)||void 0},...C)}let h=[];for(let w=0;w<t.length;w++){let x=t[w];if(x.type===V.htmlBlock&&"text"in x&&x.text&&/<\/?pre\b/i.test(x.text)&&w+1<t.length&&t[w+1].type===V.paragraph&&"removedClosingTags"in t[w+1]&&t[w+1].removedClosingTags){let C=function(H){let L="";for(let Y of H){let X=Y.type;if(X===V.text)L+=Y.text;else if(X===V.htmlSelfClosing&&"rawText"in Y&&Y.rawText)L+=Y.rawText;else if(X===V.textFormatted){let W=Y,K=W.tag==="em"?"_":W.tag==="strong"?"**":"";L+=K+C(W.children)+K}else"children"in Y&&Y.children&&(L+=C(Y.children))}return L},D=x,k=t[w+1],U=C(k.children);k.removedClosingTags&&(U+=k.removedClosingTags.filter(H=>H.type===V.htmlSelfClosing&&"rawText"in H&&H.rawText&&H.rawText.indexOf(`</${D.tag}>`)===-1).map(H=>H.type===V.htmlSelfClosing&&"rawText"in H&&H.rawText||"").join("")),D.text+=`
113
- `+U,w++}h.push(x)}t=h;let p={...i,slugify:w=>r(w,Gl),sanitizer:o,tagfilter:i.tagfilter!==!1},v=t[0]&&t[0].type===V.refCollection?t[0].refs:{},S=Jw(i.renderRule,g,o,r,v,i),y=S(t,{inline:i.forceInline,refs:v}),T=[];for(let w in v)w.charCodeAt(0)===Mu&&T.push({identifier:w,footnote:v[w].target});if(T.length&&y.push(g("footer",{key:"footer"},T.map(function(w){let x=w.identifier.charCodeAt(0)===Mu?w.identifier.slice(1):w.identifier,C=Ep(w.footnote,{inline:!0,refs:v},p);return g("div",{id:r(x,Gl),key:w.identifier},x+": ",S(C,{inline:!0,refs:v}))}))),i.wrapper===null)return y;let A=i.wrapper||(i.forceInline?"span":"div"),_;if(y.length>1||i.forceWrapper)_=y;else return y.length===1?y[0]:null;return f(A,{key:"outer",...i.wrapperProps},_)}function ty(t="",l={}){let i={...l||{}};i.overrides=i.overrides||{};let r=i.slugify||Gl,o=i.sanitizer||fp;function f(g){let h=i.forceInline||!i.forceBlock&&!Bb.test(g),p={...i,slugify:y=>r(y,Gl),sanitizer:o,tagfilter:i.tagfilter!==!1};h||ey(g,d,p);let v=g;if(!h){let y=v.length;for(;y>0&&(v[y-1]===`
111
+ `&&o++}continue}if(y.type===V.htmlBlock||y.type===V.htmlSelfClosing){if(!(y.type===V.htmlSelfClosing&&y.isClosingTag===!0&&!l.inline&&!l.inHTML)){r.push(y),o=y.endPos;continue}}else{r.push(y),o=y.endPos;continue}}let T=d!==f?d:o;if(d===f){if(xn(S)){let x=ye(t,o),C=$e(t,o,x),D=o+C.charCount;C.spaceEquivalent<=3&&D<t.length&&t[D]==="["?T=D:T=-1}else S==="["?T=o:T=-1;d=T}if(T>=0&&T+1<t.length&&t[T+1]==="^"&&(T=-1),T>=0){let x=hr(t,T,l,i,!1);if(x){r.push(x),o=x.endPos;continue}let C=Dw(t,T,o===0);if(C.shouldSkip){o=C.newPos;continue}}let A=Yb(t,o,l,i);if(A){r.push(A),o=A.endPos;continue}let _=o;if(xn(t[_])){let x=ye(t,o),C=$e(t,o,x);_=o+C.charCount}if(_<t.length&&t[_]==="["&&_+1<t.length&&t[_+1]==="^"){let x=hr(t,_,l,i,!0);if(x){o=x.endPos;continue}}let w=vh(t,o,l,i);if(w){r.push(w),o=w.endPos;continue}o++}let p=l.refs||{},v={};for(let S in p)v[S]=p[S];return Hb(v)?[{type:V.refCollection,refs:v},...r]:r}function ty(t,l,i){var r=0,o=!0;let f=t.length;for(;r<f;){for(var d=0;r<f&&ie(t,r)===Ct;)d++,r++;if(r>=f)break;d>0&&(o=!0);let D=ie(t,r);if(D===_a||D===Ls){var g=Sp(t,r,{},i);if(g){r=g.endPos,o=!0;continue}}for(var h=r,p=0;h<f&&p<4;){let k=ie(t,h);if(k===xe)p++,h++;else if(k===Qe)p+=4-p%4,h++;else break}if(p<4&&h<f&&ie(t,h)===mi&&o)if(h+1<f&&ie(t,h+1)===Mu){o=!1;var x=ye(t,r);r=x>=f?f:x+1;continue}else{var v=hr(t,h,{inline:!1,refs:l},i,!1);if(v){r=v.endPos,o=!0;continue}var x=ye(t,r),S=t.indexOf(":",h+1);if(S===-1||S>=x){var y=$e(t,r,x);!ka(t,r,x)&&D!==ku&&D!==Ql&&D!==Qa&&D!==sr&&y.spaceEquivalent<4&&(o=!1)}r=x>=f?f:x+1;continue}if(D===Ql&&o){for(var T=r,A=[];T<f;){for(var x=ye(t,T),_=T;_<x;){let U=ie(t,_);if(U===xe||U===Qe)_++;else break}if(_>=x||ie(t,_)!==Ql)break;var w=_+1;w<x&&(ie(t,w)===xe||ie(t,w)===Qe)&&w++,A.push(t.slice(w,x)),T=x+1}if(A.length){ty(A.join(`
112
+ `),l,i),r=T,o=!0;continue}}var x=ye(t,r);if(x>=f)r=f;else{var C=ka(t,r,x),y=$e(t,r,x);r=x+1,o=D===ku||D===Ql||D===Qa||D===sr||C||y.spaceEquivalent>=4}}}var Fw=/^\n+/;function Yw(t){let l=!1;for(let r=0;r<t.length;r++){let o=t.charCodeAt(r);if(o>127||o===Lu||o===_a){l=!0;break}}if(!l)return t;let i="";for(let r=0;r<t.length;r++){let o=t[r];if(o==="%"&&r+2<t.length&&/[0-9A-Fa-f]/.test(t[r+1])&&/[0-9A-Fa-f]/.test(t[r+2]))i+=t[r]+t[r+1]+t[r+2],r+=2;else if(o.charCodeAt(0)===Lu)i+="%5C";else if(o.charCodeAt(0)===_a)i+="%60";else{let f=o.charCodeAt(0);i+=f>127?encodeURIComponent(o):o}}return i}function Kw(t,l,i,r,o,f,d,g){switch(t.type){case V.blockQuote:{let p={key:i.key};return t.alert&&(p.className="markdown-alert-"+f(t.alert.toLowerCase(),Gl),t.children.unshift({attrs:{},children:[{type:V.text,text:t.alert}],noInnerParse:!0,type:V.htmlBlock,tag:"header"})),r("blockquote",p,l(t.children,i))}case V.breakLine:return r("br",{key:i.key});case V.breakThematic:return r("hr",{key:i.key});case V.frontmatter:return g.preserveFrontmatter?r("pre",{key:i.key},t.text):null;case V.codeBlock:let h=t.lang?ic(t.lang):"";return r("pre",{key:i.key},r("code",{...cp(t.attrs||{}),className:h?`language-${h} lang-${h}`:""},t.text));case V.codeInline:return r("code",{key:i.key},t.text);case V.footnoteReference:return r("a",{key:i.key,href:o(t.target,"a","href")},r("sup",{key:i.key},t.text));case V.gfmTask:return r("input",{checked:t.completed,key:i.key,readOnly:!0,type:"checkbox"});case V.heading:return r(`h${t.level}`,{id:t.id,key:i.key},l(t.children,i));case V.htmlBlock:{let p=t;if(g.tagfilter&&uh(p.tag)){let v;if("rawText"in p&&typeof p.rawText=="string")v=p.rawText;else{let S="";if(p.attrs)for(let[y,T]of Object.entries(p.attrs))T===!0?S+=` ${y}`:T!=null&&T!==!1&&(S+=` ${y}="${String(T)}"`);v=`<${p.tag}${S}>`}return r("span",{key:i.key},v)}if(p.text&&p.noInnerParse){let v=function(C){if(C.type===V.htmlSelfClosing&&"isClosingTag"in C&&C.isClosingTag)return[];if(C.type===V.paragraph){let D=C.children;return D?D.flatMap(v):[]}return C.type===V.text?C.text?.trim()?[C]:[]:C.type===V.htmlBlock&&C.children?[{...C,children:C.children?.flatMap(v)}]:[C]},S=p.tag.toLowerCase(),y=Ds(S),T=/<[a-z][^>]{0,100}>/i.test(p.text),A=/<\/?pre\b/i.test(p.text);if(y&&!T){let C=p.text.replace(new RegExp("\\s*</"+S+">\\s*$","i"),"");return g.tagfilter&&(C=ch(C)),r(t.tag,{key:i.key,...t.attrs},C)}if(A){let C=g.tagfilter?ch(p.text):p.text;return r(t.tag,{key:i.key,...t.attrs,dangerouslySetInnerHTML:{__html:C}})}let _={slugify:C=>f(C,Gl),sanitizer:o,tagfilter:!0},w=p.text.replace(/>\s+</g,"><").replace(/\n+/g," ").trim();if(new RegExp(`^<${p.tag}(\\s[^>]*)?>(\\s*</${p.tag}>)?$`,"i").test(w))return r(t.tag,{key:i.key,...t.attrs});let x=Ep(w,{inline:!1,refs:d,inHTML:!1},_);return r(t.tag,{key:i.key,...t.attrs},l(x.flatMap(v),i))}return r(t.tag,{key:i.key,...t.attrs},t.children?l(t.children,i):"")}case V.htmlSelfClosing:{let p=t;if(g.tagfilter&&uh(p.tag)){let v;if("rawText"in p&&typeof p.rawText=="string")v=p.rawText;else{let S="";if(p.attrs)for(let[y,T]of Object.entries(p.attrs))T===!0?S+=` ${y}`:T!=null&&T!==!1&&(S+=` ${y}="${String(T)}"`);v=`<${p.tag}${S} />`}return r("span",{key:i.key},v)}return r(t.tag,{key:i.key,...t.attrs})}case V.image:return r("img",{key:i.key,alt:t.alt&&t.alt.length>0?t.alt:void 0,title:t.title||void 0,src:o(t.target,"img","src")});case V.link:{let p={key:i.key};return t.target!=null&&(p.href=Yw(t.target)),t.title&&(p.title=t.title),r("a",p,l(t.children,i))}case V.table:{let p=t;return r("table",{key:i.key},r("thead",null,r("tr",null,p.header.map(function(v,S){return r("th",{key:S,style:p.align[S]==null?{}:{textAlign:p.align[S]}},l(v,i))}))),r("tbody",null,p.cells.map(function(v,S){return r("tr",{key:S},v.map(function(y,T){return r("td",{key:T,style:p.align[T]==null?{}:{textAlign:p.align[T]}},l(y,i))}))})))}case V.text:return t.text;case V.textFormatted:return r(t.tag,{key:i.key},l(t.children,i));case V.orderedList:case V.unorderedList:{let p=t.type===V.orderedList?"ol":"ul";return r(p,{key:i.key,start:t.type===V.orderedList?t.start:void 0},t.items.map(function(v,S){return r("li",{key:S},l(v,i))}))}case V.paragraph:return r("p",{key:i.key},l(t.children,i));case V.ref:return null;default:return null}}var Jw=(t,l,i,r,o,f)=>{let d=(p,v,S)=>{let y=()=>Kw(p,v,S,l,i,r,o,f);return t?t(y,p,v,S):y()},g=p=>p.map(v=>"text"in v?v.text:""),h=(p,v={})=>{let S=(v.renderDepth||0)+1;if(S>2500)return g(p);v.renderDepth=S;let y=v.key,T=[],A=!1;for(let _=0;_<p.length;_++){v.key=_;let w=d(p[_],h,v),x=typeof w=="string";if(x&&A)T[T.length-1]+=w;else if(w!==null)if(Array.isArray(w))for(let C=0;C<w.length;C++)T.push(w[C]);else T.push(w);A=x}return v.key=y,v.renderDepth=S-1,T};return h},Pw=(...t)=>t.filter(Boolean).join(" "),Sh=(t,l,i)=>{let r=t,o=l.split("."),f=0;for(;f<o.length&&(r=r?.[o[f]],r!==void 0);)f++;return r||i},Ww=(t,l)=>{let i=Sh(l,t,void 0);return i?typeof i=="function"||typeof i=="object"&&"render"in i?i:Sh(l,`${t}.component`,t):t};function $w(t,l){let i={...l||{}};i.overrides=i.overrides||{};let r=i.slugify||Gl,o=i.sanitizer||fp,f=i.createElement||Z.createElement,d=w=>ny(w,{...i,wrapper:null});function g(w,x,...C){let D=Sh(i.overrides,`${w}.props`,{}),k=cp(x||{});if(d)for(let[U,H]of Object.entries(k))typeof H=="string"&&H.length>0&&H[0]==="<"&&(bw.test(H)||ww.test(H)||dr(H,0))&&(k[U]=d(H.trim()));return f(Ww(w,i.overrides),{...k,...D,className:Pw(k?.className,D.className)||void 0},...C)}let h=[];for(let w=0;w<t.length;w++){let x=t[w];if(x.type===V.htmlBlock&&"text"in x&&x.text&&/<\/?pre\b/i.test(x.text)&&w+1<t.length&&t[w+1].type===V.paragraph&&"removedClosingTags"in t[w+1]&&t[w+1].removedClosingTags){let C=function(H){let L="";for(let Y of H){let X=Y.type;if(X===V.text)L+=Y.text;else if(X===V.htmlSelfClosing&&"rawText"in Y&&Y.rawText)L+=Y.rawText;else if(X===V.textFormatted){let W=Y,K=W.tag==="em"?"_":W.tag==="strong"?"**":"";L+=K+C(W.children)+K}else"children"in Y&&Y.children&&(L+=C(Y.children))}return L},D=x,k=t[w+1],U=C(k.children);k.removedClosingTags&&(U+=k.removedClosingTags.filter(H=>H.type===V.htmlSelfClosing&&"rawText"in H&&H.rawText&&H.rawText.indexOf(`</${D.tag}>`)===-1).map(H=>H.type===V.htmlSelfClosing&&"rawText"in H&&H.rawText||"").join("")),D.text+=`
113
+ `+U,w++}h.push(x)}t=h;let p={...i,slugify:w=>r(w,Gl),sanitizer:o,tagfilter:i.tagfilter!==!1},v=t[0]&&t[0].type===V.refCollection?t[0].refs:{},S=Jw(i.renderRule,g,o,r,v,i),y=S(t,{inline:i.forceInline,refs:v}),T=[];for(let w in v)w.charCodeAt(0)===Mu&&T.push({identifier:w,footnote:v[w].target});if(T.length&&y.push(g("footer",{key:"footer"},T.map(function(w){let x=w.identifier.charCodeAt(0)===Mu?w.identifier.slice(1):w.identifier,C=Ep(w.footnote,{inline:!0,refs:v},p);return g("div",{id:r(x,Gl),key:w.identifier},x+": ",S(C,{inline:!0,refs:v}))}))),i.wrapper===null)return y;let A=i.wrapper||(i.forceInline?"span":"div"),_;if(y.length>1||i.forceWrapper)_=y;else return y.length===1?y[0]:null;return f(A,{key:"outer",...i.wrapperProps},_)}function ny(t="",l={}){let i={...l||{}};i.overrides=i.overrides||{};let r=i.slugify||Gl,o=i.sanitizer||fp;function f(g){let h=i.forceInline||!i.forceBlock&&!Bb.test(g),p={...i,slugify:y=>r(y,Gl),sanitizer:o,tagfilter:i.tagfilter!==!1};h||ty(g,d,p);let v=g;if(!h){let y=v.length;for(;y>0&&(v[y-1]===`
114
114
  `||v[y-1]==="\r");)y--;v=v.slice(0,y),v=`${v.replace(Fw,"")}
115
115
 
116
- `}let S=Ep(h?g:v,{inline:h,refs:d},p);return $w(S,{...p,forceInline:h})}let d={};return f(t)}var qw=({children:t,options:l,...i})=>ty(t??"",{...l,wrapperProps:{...l?.wrapperProps,...i}}),cl=qw;const eT="_generalConditionsContainer_55hjg_1",tT="_generalConditions_55hjg_1",nT="_generalConditionsHeader_55hjg_15",aT="_generalConditionsBody_55hjg_26",lT="_generalConditionsAccept_55hjg_35",is={generalConditionsContainer:eT,generalConditions:tT,generalConditionsHeader:nT,generalConditionsBody:aT,generalConditionsAccept:lT},iT=()=>b.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"currentColor",viewBox:"0 0 256 256",children:b.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"})}),rT=()=>b.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"currentColor",viewBox:"0 0 256 256",children:b.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"})}),sT="general-conditions.header",oT="general-conditions.body",fv="general-conditions.accept-conditions-note",uT=()=>{const t=Mt(),[l,i]=Z.useState(!1),r=()=>i(!l),o=g=>{g.key==="ArrowDown"||g.key==="ArrowRight"?i(!0):g.key==="ArrowUp"||g.key==="ArrowLeft"||g.key==="Escape"?i(!1):(g.key==="Enter"||g.key==="Space"||g.key===" ")&&r()},f=t(sT),d=t(fv);return b.jsxs("div",{className:se(is.generalConditionsContainer,"chat__generalConditions"),children:[!!f?.length&&b.jsxs("div",{className:is.generalConditions,children:[b.jsxs("div",{role:"button",onClick:r,onKeyDown:o,tabIndex:0,className:se(is.generalConditionsHeader,"chat__generalConditions__header"),"aria-controls":"general-conditions-body","aria-expanded":l?"true":"false","aria-pressed":l?"true":"false",children:[b.jsx(cl,{children:f}),l?b.jsx(rT,{}):b.jsx(iT,{})]}),b.jsx("div",{className:se(is.generalConditionsBody,"chat__generalConditions__body"),id:"general-conditions-body",role:"region",tabIndex:-1,children:l&&b.jsx(cl,{children:t(oT)||""})})]}),!!d?.length&&b.jsx("div",{className:se(is.generalConditionsAccept,"chat__generalConditions__accept"),tabIndex:0,children:b.jsx(cl,{children:t(fv)||""})})]})},cT="_messageContainer_1rxi5_1",fT="_message_1rxi5_1",dT="_messageBot_1rxi5_14",hT="_messageBotLast_1rxi5_45",pT="_avatar_1rxi5_45",gT="_messageBotFirst_1rxi5_54",mT="_messageBotAnimated_1rxi5_67",vT="_messageGuest_1rxi5_78",bT="_messageGuestFirst_1rxi5_84",yT="_messageGuestLast_1rxi5_90",_T="_botAvatar_1rxi5_104",ST="_agentAvatar_1rxi5_108",ET="_bubble_1rxi5_112",wT="_bubbleContent_1rxi5_118",TT="_bubbleLeft_1rxi5_132",AT="_leftText_1rxi5_143",CT="_bubbleRight_1rxi5_150",xT="_rightText_1rxi5_160",OT="_sourceInfoReference_1rxi5_192",DT="_sourceInfoReferenceActive_1rxi5_204",ke={messageContainer:cT,message:fT,messageBot:dT,messageBotLast:hT,avatar:pT,messageBotFirst:gT,messageBotAnimated:mT,messageGuest:vT,messageGuestFirst:bT,messageGuestLast:yT,botAvatar:_T,agentAvatar:ST,bubble:ET,bubbleContent:wT,bubbleLeft:TT,leftText:AT,bubbleRight:CT,rightText:xT,sourceInfoReference:OT,sourceInfoReferenceActive:DT},wp=(t,l)=>{Z.useEffect(()=>{const i=r=>{t.current&&!t.current.contains(r.target)&&l()};return document.addEventListener("mousedown",i),()=>document.removeEventListener("mousedown",i)},[t,l])};function RT(t,l){let i=null,r=null;const o=(...f)=>{r=f,i&&clearTimeout(i),i=setTimeout(()=>{t(...r),i=null,r=null},l)};return o.flush=()=>{i&&r&&(clearTimeout(i),t(...r),i=null,r=null)},o}function NT(t,l){let i=0,r=null;return((...o)=>{const f=Date.now(),d=f-i;d>=l?(i=f,t(...o)):(r&&clearTimeout(r),r=setTimeout(()=>{i=Date.now(),t(...o)},l-d))})}const MT="_container_131ib_1",kT="_categoryContainer_131ib_13",LT="_categoryButton_131ib_20",zT="_active_131ib_35",jT="_commentTextarea_131ib_44",rs={container:MT,categoryContainer:kT,categoryButton:LT,active:zT,commentTextarea:jT},BT=(t,l,i)=>{Z.useEffect(()=>{if(t){const r=()=>{const f=["button:not([disabled])","textarea:not([disabled])",'[tabindex]:not([tabindex="-1"])',"a[href]","input:not([disabled])","select:not([disabled])"].join(","),d=l.current?Array.from(l.current.querySelectorAll(f)):[],g=i.current?Array.from(i.current.querySelectorAll(f)):[];return[...d,...g]},o=f=>{if(f.key==="Tab"){const d=r();if(d.length>0){const g=d[0],h=d[d.length-1],p=document.activeElement;!f.shiftKey&&p===h?(f.preventDefault(),g.focus()):f.shiftKey&&p===g&&(f.preventDefault(),h.focus())}}};return document.addEventListener("keydown",o,!0),()=>{document.removeEventListener("keydown",o,!0)}}},[t,l,i])},UT=({open:t,actionsRef:l,reaction:i,onReaction:r})=>{const o=Mt(),f=Z.useRef(null),d=RT(p=>{r({...i,comment:p})},300);Z.useEffect(()=>()=>d.flush(),[d]),BT(t,l,f);const g=p=>{r({...i,category:i.category===p?void 0:p})},h=p=>d(p.target.value);return t?b.jsxs("div",{ref:f,className:rs.container,role:"dialog","aria-modal":"true","aria-labelledby":"bad-reaction-title",children:[b.jsx("h2",{id:"bad-reaction-title",children:o("bot-bubble.reaction.say-more")}),b.jsx("div",{className:rs.categoryContainer,role:"radiogroup",children:["WRONG_INFORMATION","MISSING_INFORMATION","OLD_INFORMATION","UNCLEAR","OFF_TOPIC"].map(p=>b.jsx("button",{className:se(rs.categoryButton,i?.category===p&&rs.active),onClick:()=>g(p),"aria-pressed":i?.category===p,"aria-label":o(`bot-bubble.reaction.category.${p}`),tabIndex:0,role:"radio",children:o(`bot-bubble.reaction.category.${p}`)},p))}),b.jsx("textarea",{id:"comment",name:"comment",placeholder:o("bot-bubble.reaction.comment"),defaultValue:i?.comment,onChange:h,className:rs.commentTextarea,rows:3,"aria-label":o("bot-bubble.reaction.comment")})]}):null},HT="_botMessageActionContainer_18fjb_1",IT="_alwaysVisible_18fjb_15",VT="_active_18fjb_19",QT="_botMessageActionInnerContainer_18fjb_27",XT="_header_18fjb_52",GT="_botMessageActions_18fjb_57",ZT="_reported_18fjb_68",FT="_action_18fjb_72",YT="_wave_18fjb_86",KT="_anyReport_18fjb_156",JT="_closeButton_18fjb_172",Vt={botMessageActionContainer:HT,alwaysVisible:IT,active:VT,botMessageActionInnerContainer:QT,header:XT,botMessageActions:GT,reported:ZT,action:FT,wave:YT,anyReport:KT,closeButton:JT},PT=({isSubmitting:t,onClick:l})=>{const i=Mt();return b.jsx("button",{className:se(Vt.action,Vt.closeButton,"tooltip--bottom-left"),"aria-label":i("bot-bubble.reaction.close"),"data-title":i("bot-bubble.reaction.close"),tabIndex:0,onClick:l,children:b.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",children:t?b.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"}):b.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"})})})},WT=({alwaysVisible:t,senderType:l,reaction:i,botMessageRef:r,message:o,animated:f,onReaction:d})=>{const g=Mt(),[h,p]=Z.useState(!1),[v,S]=Z.useState(!1),[y,T]=Z.useState(!1),A=Z.useRef(null),_=Z.useRef(null);wp(A,()=>{T(!1)});const w=H=>{H.key==="Escape"&&T(!1)};Z.useEffect(()=>(document.addEventListener("keydown",w),()=>{document.removeEventListener("keydown",w)}),[]),Z.useEffect(()=>{y&&A.current?.scrollIntoView({behavior:"smooth",block:"nearest",inline:"nearest"})},[y]);const x=H=>{_.current&&clearTimeout(_.current),S(!0),d(H),_.current=setTimeout(()=>{S(!1)},1e3)},C=Z.useCallback(async()=>{if(r.current)try{p(!0);const H=r.current.innerHTML,L=r.current.innerText;await navigator.clipboard.write([new ClipboardItem({"text/html":new Blob([H],{type:"text/html"}),"text/plain":new Blob([L],{type:"text/plain"})})]),await new Promise(Y=>setTimeout(Y,1500))}finally{p(!1)}},[r]),D=()=>{T(!1),d(i?.type==="GOOD"?null:{type:"GOOD"})},k=()=>{d({...o.reaction,type:"BAD"}),T(!y)},U=H=>L=>{(L.key==="Enter"||L.key===" ")&&H()};return b.jsx("div",{ref:A,className:se(Vt.botMessageActionContainer,t&&Vt.alwaysVisible,y&&Vt.active),children:b.jsxs("div",{className:se(Vt.botMessageActionInnerContainer,t&&Vt.alwaysVisible,y&&Vt.active,i&&Vt.reported),role:"group",children:[b.jsxs("div",{className:Vt.header,children:[b.jsxs("div",{className:se(Vt.botMessageActions,i&&Vt.reported),children:[l===Nu.BOT&&b.jsx("button",{className:se(Vt.action,f&&Vt.wave,i?.type&&Vt.anyReport,i?.type==="GOOD"&&Vt.reported,"tooltip--top-right"),tabIndex:0,"aria-label":g(i?.type==="GOOD"?"bot-bubble.reaction.remove":"bot-bubble.reaction.good"),"aria-pressed":i?.type==="GOOD","data-title":g(i?.type==="GOOD"?"bot-bubble.reaction.remove":"bot-bubble.reaction.good"),onPointerDown:D,onKeyDown:U(D),children:b.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",children:i?.type==="GOOD"?b.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"}):b.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"})})}),l===Nu.BOT&&b.jsx("button",{className:se(Vt.action,f&&Vt.wave,i?.type&&Vt.anyReport,i?.type==="BAD"&&Vt.reported,"tooltip--top-right"),tabIndex:0,"aria-label":g("bot-bubble.reaction.bad"),"aria-pressed":i?.type==="BAD","data-title":g("bot-bubble.reaction.bad"),onPointerDown:k,onKeyDown:U(k),children:b.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",children:i?.type==="BAD"?b.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"}):b.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"})})}),b.jsx("button",{className:se(Vt.action,f&&Vt.wave,"tooltip--top-right"),style:{visibility:y?"hidden":"visible"},tabIndex:0,"aria-label":g("bot-bubble.copy"),"data-title":g("bot-bubble.copy"),onClick:C,children:b.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",children:h?b.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"}):b.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"})})})]}),y&&b.jsx(PT,{isSubmitting:v,onClick:()=>T(!1)})]}),o.reaction&&b.jsx(UT,{open:y,actionsRef:A,reaction:o.reaction,onReaction:x})]})})},ny=Z.forwardRef(({message:t,isAnimated:l,isFirstMessage:i,isLastMessage:r,isFirstMessageBySender:o,isLastMessageBySender:f,children:d,onReaction:g},h)=>{const p=Mt(),v=Z.useRef(null),S=t.sender.type===hl.BOT;return b.jsxs("li",{ref:h,className:se(ke.message,ke.messageBot,r&&ke.lastMessage,o&&ke.messageBotFirst,f&&ke.messageBotLast,"chat__bubbleContainer",l&&ke.messageBotAnimated,l&&"chat__bubbleContainer--animated",S?"chat__botBubbleContainer":"chat__agentBubbleContainer",o&&"chat__bubbleContainer--first",f&&"chat__bubbleContainer--last"),children:[b.jsx("img",{className:se(ke.avatar,S?ke.botAvatar:ke.agentAvatar,"chat__avatar",S?"chat__botAvatar":"chat__agentAvatar"),src:`${t.sender.avatar}`,alt:S?"Bot":"Agent",referrerPolicy:"no-referrer"}),b.jsxs("div",{className:ke.messageContainer,children:[b.jsx("div",{ref:v,className:se(ke.bubble,ke.bubbleLeft,"chat__bubble",S?"chat__botBubble":"chat__agentBubble"),tabIndex:0,"aria-label":p(S?"bot-bubble.label":"agent-bubble.label"),children:b.jsx("div",{className:se(ke.leftText),children:d})}),g&&b.jsx(WT,{alwaysVisible:r&&f,senderType:t.sender.type,reaction:t.reaction,message:t,botMessageRef:v,animated:i,onReaction:g})]})]})}),$T="_sourceList_1sc0q_1",qT="_source_1sc0q_1",e6="_label_1sc0q_39",Hd={sourceList:$T,source:qT,label:e6},ay=t=>b.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",...t,children:b.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"})}),ly=t=>b.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",...t,children:b.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"})}),iy=t=>b.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",...t,children:b.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"})}),ry=t=>b.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",...t,children:b.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"})}),t6=({type:t,...l})=>{switch(t){case"WEBSITE":return b.jsx(ry,{...l});case"PDF":return b.jsx(iy,{...l});case"DOCX":return b.jsx(ay,{...l});default:return b.jsx(ly,{...l})}},Tp=({sources:t,onLinkClick:l})=>{const i=Mt(),r=f=>()=>{l(f.url)},o=f=>d=>{(d.key==="Enter"||d.key===" ")&&l(f.url)};return t.length?b.jsx("ul",{className:Hd.sourceList,"aria-label":i("bot-bubble.sources"),children:t.map(f=>b.jsx("li",{className:Hd.source,children:b.jsxs("a",{role:"button",tabIndex:0,"aria-label":`${i("bot-bubble.source.open")}: ${f.label}`,onClick:r(f),onKeyDown:o(f),children:[b.jsx(t6,{type:f.type,"aria-hidden":"true"}),b.jsx("div",{className:Hd.label,children:f.label})]})},f.url))}):null},n6="_button_3ui4g_1",a6="_buttonDefault_3ui4g_13",l6="_buttonPrimary_3ui4g_28",Rs={button:n6,buttonDefault:a6,buttonPrimary:l6},oc=({className:t,children:l,...i})=>b.jsx("button",{className:se(Rs.button,t),type:"button",role:"button",...i,children:l}),i6="_title_137pi_1",r6="_buttons_137pi_6",s6="_button_137pi_6",o6="_imageContainer_137pi_29",u6="_image_137pi_29",c6="_video_container_137pi_44",f6="_video_137pi_44",d6="_only_137pi_58",sa={title:i6,buttons:r6,button:s6,imageContainer:o6,image:u6,video_container:c6,video:f6,only:d6},h6=({buttons:t,onButtonClick:l})=>b.jsx("div",{className:se(sa.buttons,"chat__bubbleButtons"),children:t.map((i,r)=>b.jsx(oc,{className:se(sa.button,"chat__bubbleButton"),onClick:()=>l(i),children:i.title},r))}),dv="newtab#",sy=({markdown:t,markdownOptions:l={},onLinkClick:i})=>{const r=f=>d=>(d.preventDefault(),f&&i(f),!1),o=({title:f,href:d,children:g})=>d.indexOf(dv)===0?b.jsx("a",{href:d.slice(dv.length),title:f,target:"_blank",rel:"noopener noreferrer",children:g}):b.jsx("a",{onClick:r(d),title:f,href:d,children:g});return b.jsx(cl,{options:{...l,overrides:{a:o}},children:t})},p6=({text:t,onLinkClick:l})=>t?b.jsx("div",{children:b.jsx(sy,{markdown:t,onLinkClick:l})}):null,g6=({title:t})=>t?b.jsx("h1",{className:sa.title,children:t}):null,m6=({title:t,text:l,buttons:i,onButtonClick:r,onLinkClick:o})=>t?.length||l?.length||i?.length?b.jsxs("div",{className:se(ke.bubbleContent),children:[b.jsx(g6,{title:t}),b.jsx(p6,{text:l,onLinkClick:o}),b.jsx(h6,{buttons:i,onButtonClick:r})]}):null,v6=({alt:t,imageUrl:l,itemUrl:i,hasBody:r})=>l?i?i.indexOf("youtube.com")>-1?b.jsx("div",{className:sa.video_container,children:b.jsx("iframe",{className:se(sa.video,{[sa.only]:!r}),title:"Youtube",width:"100%",src:i+"?rel=0",frameBorder:"0",allowFullScreen:!0})}):b.jsx("a",{href:i,target:"_blank",rel:"noopener noreferrer",children:b.jsx("div",{className:sa.imageContainer,children:b.jsx("img",{className:se(sa.image,{[sa.only]:!r}),src:l,alt:t})})}):b.jsx("div",{className:sa.imageContainer,children:b.jsx("img",{className:se(sa.image,{[sa.only]:!r}),src:l,alt:t})}):null,b6=({title:t,text:l,imageUrl:i,itemUrl:r,buttons:o,sources:f,onButtonClick:d,onLinkClick:g})=>{const h=!!t?.length||!!l?.length||!!o?.length;return b.jsxs("div",{className:se(sa.detailMessage),children:[b.jsx(v6,{hasBody:h,imageUrl:i,itemUrl:r,alt:t||""}),h&&b.jsx(m6,{title:t,text:l,buttons:o,onLinkClick:g,onButtonClick:d}),b.jsx(Tp,{sources:f,onLinkClick:g})]})},y6=Z.forwardRef(({isFirstMessageBySender:t,isLastMessageBySender:l,children:i},r)=>{const o=Mt();return b.jsx("li",{ref:r,className:se(ke.message,ke.messageGuest,t&&ke.messageGuestFirst,l&&ke.messageGuestLast,"chat__bubbleContainer","chat__guestBubbleContainer",t&&"chat__bubbleContainer--first",l&&"chat__bubbleContainer--last"),children:b.jsx("div",{className:se(ke.bubble,ke.bubbleRight,"chat__bubble","chat__guestBubble"),tabIndex:0,"aria-label":o("guest-bubble.label"),children:b.jsx("div",{className:se(ke.rightText),children:i})})})}),Ap=()=>Z.useMemo(()=>Fh(),[]),_6="_markdown_nw7vg_1",oy={markdown:_6},au="source-info-reference",S6=({actionId:t,markdown:l,sources:i,onLinkClick:r})=>{const o=Ap(),f=gl(),d=E6(),g=Lt(v=>{const S=v.chat.sourceInfos;if(S?.type==="loaded"||S?.type==="loading")return S.chunkId}),h=v=>S=>{const y=S.key;(y==="ArrowDown"||y==="ArrowRight"||y==="Enter"||y===" "||y==="Space")&&(S.stopPropagation(),f(G1(o,t,v)))},p=v=>()=>{f(G1(o,t,v))};return Z.useLayoutEffect(()=>{document.querySelectorAll(`.${au}`).forEach(v=>{const S=v.previousSibling;S&&S.nodeType===Node.TEXT_NODE&&S.textContent?.endsWith(" ")&&S.textContent?.trim().length&&v.classList.add(`${au}--before-space`);const y=v.nextSibling;y&&y.nodeType===Node.TEXT_NODE&&y.textContent?.startsWith(" ")&&y.textContent?.trim().length&&v.classList.add(`${au}--after-space`)})},[l]),b.jsxs("div",{className:ke.bubbleContent,children:[b.jsx("div",{className:oy.markdown,children:b.jsx(sy,{markdown:l,onLinkClick:r,markdownOptions:{renderRule(v,S,y,T){if(S.type===V.footnoteReference){const A=S.text===g;return b.jsx("span",{className:se(ke.sourceInfoReference,A&&ke.sourceInfoReferenceActive,au),children:b.jsx("a",{type:"button",tabIndex:0,onClick:p(S.text),onKeyDown:h(S.text),children:d(S.text)})},T.key)}return v()}}})}),b.jsx(Tp,{sources:i,onLinkClick:r})]})},E6=()=>{const t=[];return i=>{const r=t.indexOf(i);return r>-1?r+1:(t.push(i),t.length)}},w6="_text_gp0s0_1",T6="_command_gp0s0_5",hv={text:w6,command:T6},A6=({text:t,commands:l=[]})=>{const i=l.find(o=>t.startsWith(`/${o}`)),r=i?t.slice(i.length+1):t;return b.jsxs("div",{children:[i&&b.jsxs("code",{className:hv.command,children:["/",i]}),r.split(`
117
- `).map((o,f)=>b.jsxs("span",{className:hv.text,children:[o,b.jsx("br",{})]},f))]})},C6=({text:t,commands:l,sources:i,onLinkClick:r})=>b.jsxs("div",{className:ke.bubbleContent,children:[b.jsx(A6,{text:t,commands:l}),b.jsx(Tp,{sources:i,onLinkClick:r})]}),x6=Z.forwardRef(({message:t,commands:l,isFirstMessage:i,isLastMessage:r,isFirstMessageBySender:o,isLastMessageBySender:f,onReaction:d,onButtonClick:g,onLinkClick:h},p)=>{const v=O6(t._id,t,l,g,h),S=y=>{d(t._id,y)};switch(t.sender.type){case hl.GUEST:return b.jsx(y6,{ref:p,isFirstMessageBySender:o,isLastMessageBySender:f,children:v});default:return b.jsx(ny,{ref:p,message:t,isAnimated:!1,isFirstMessage:i,isLastMessage:r,isFirstMessageBySender:o,isLastMessageBySender:f,onReaction:S,children:v})}}),O6=(t,l,i,r,o)=>{switch(l.type){case ar.TEXT:{const f=l;return b.jsx(C6,{text:f.text,commands:i,sources:l.sources||[],onLinkClick:o})}case ar.DETAIL:{const f=l;return b.jsx(b6,{title:f.title,text:f.text,imageUrl:f.imageUrl,itemUrl:f.itemUrl,buttons:f.buttons,sources:l.sources||[],onButtonClick:r,onLinkClick:o})}case ar.MARKDOWN:{const f=l;return b.jsx(S6,{actionId:t,markdown:f.markdown,sources:f.sources||[],onLinkClick:o})}}},D6=(t,l)=>t.message._id===l.message._id&&t.message.reaction===l.message.reaction&&t.isFirstMessage===l.isFirstMessage&&t.isLastMessage===l.isLastMessage&&t.isFirstMessageBySender===l.isFirstMessageBySender&&t.isLastMessageBySender===l.isLastMessageBySender,R6=Vv.memo(x6,D6),N6="_ticontainer_xg0dn_1",M6="_tiblock_xg0dn_5",k6="_tidot_xg0dn_12",ss={ticontainer:N6,tiblock:M6,tidot:k6},L6=({isTyping:t=!1})=>b.jsx("div",{className:ss.ticontainer,children:b.jsx("div",{className:ss.tiblock,children:t?b.jsxs(b.Fragment,{children:[b.jsx("div",{className:se(ss.tidot,"chat__typingIndicator")}),b.jsx("div",{className:se(ss.tidot,"chat__typingIndicator")}),b.jsx("div",{className:se(ss.tidot,"chat__typingIndicator")})]}):null})}),z6=Object.assign({_id:"typing-indicator"},new Ju("",new gE)),j6=({messages:t,isBotTyping:l,commands:i,onTranscriptItemReaction:r,onButtonClick:o,onLinkClick:f})=>{const d=Z.useRef(0),g=Z.useRef(!0),h=Z.useRef(null),p=Z.useRef(null),v=Z.useRef(null),S=Lt(A=>A.settings.enableGeneralConditions);Z.useLayoutEffect(()=>{if(t.length&&h.current&&(d.current<t.length||l)){if(p.current){const A=p.current.offsetTop;h.current.scrollTop=A}else if(v.current){const A=v.current.offsetTop;h.current.scrollTop=A}g.current&&(g.current=!1),d.current=t.length}},[t,g,l]);let y;const T=t.length;return b.jsxs("div",{ref:h,className:se(F1.messageContainer,"chat__messageContainer"),style:{scrollBehavior:t.length&&g.current?"auto":"smooth"},id:"MessageContainer",role:"log","aria-live":"polite",children:[S&&b.jsx(uT,{}),b.jsxs("ul",{className:F1.messages,children:[t.map((A,_)=>{const w=B6(A,y),x=U6(A,_,t,l);y=A.sender.type;const C=_+1===T,D=_===0,k=A._id||`added-${_}`;return b.jsx(R6,{ref:C?v:null,message:A,commands:i,isFirstMessage:D,isLastMessage:C,isFirstMessageBySender:w,isLastMessageBySender:x,onButtonClick:o,onLinkClick:f,onReaction:r},C&&!l?"last":k)}),l&&b.jsx(ny,{ref:p,message:z6,isFirstMessage:!1,isLastMessage:!1,isAnimated:!0,isFirstMessageBySender:y!==hl.BOT,isLastMessageBySender:!0,children:b.jsx(L6,{isTyping:!0})},"last")]})]})},B6=(t,l)=>!l||l!==t.sender.type,U6=(t,l,i,r)=>{const o=t.sender.type,f=i.length;return l+1===f?!(o===hl.BOT&&r):o!==i.at(l+1)?.sender.type},H6="_bottomSheet_jp8dl_1",I6="_bottomSheetOpen_jp8dl_15",V6="_bottomSheetClose_jp8dl_20",fl={bottomSheet:H6,bottomSheetOpen:I6,bottomSheetClose:V6},Q6="_container_xc2nx_1",pv={container:Q6},X6=({contentUrl:t})=>{const l=Lt(f=>f.connection.sessionId),[i,r]=Z.useState(!1);Z.useEffect(()=>{r(f=>f||!!t)},[t]);const o=Z.useMemo(()=>{if(t&&l){const f=new URL(t,document.baseURI);return f.searchParams.set("sessionId",l),f.toString()}else return},[t,l]);return b.jsx("div",{className:se(pv.container,fl.bottomSheet,{[fl.bottomSheetOpen]:!!t,[fl.bottomSheetClose]:i&&!t}),children:o&&b.jsx("iframe",{title:"Drawer",id:"form-drawer",src:o,className:pv.iframe})})},G6="_container_vvbth_1",Z6={container:G6},F6=({title:t,href:l,children:i})=>b.jsx("a",{href:l,title:t,target:"_blank",rel:"noopener noreferrer",children:i}),Y6=()=>{const l=Mt()("powered-by");return l&&l.length?b.jsx("div",{className:se(Z6.container,"chat__poweredBy"),children:b.jsx(cl,{options:{overrides:{a:F6}},children:l})}):null},uy=({className:t,children:l,...i})=>b.jsx(oc,{className:se(Rs.buttonDefault,t),type:"button",...i,children:l}),Fu=({className:t,children:l,...i})=>b.jsx(oc,{className:se(Rs.buttonPrimary,t),...i,children:l}),K6="_container_h23mk_1",J6="_formContainer_h23mk_17",P6="_emailInput_h23mk_22",W6="_description_h23mk_52",$6="_actions_h23mk_57",q6="_validationError_h23mk_67",eA="_submitted_h23mk_74",oi={container:K6,formContainer:J6,emailInput:P6,description:W6,actions:$6,validationError:q6,submitted:eA},tA=({visible:t,onEmailExport:l,onClose:i})=>{const r=Mt(),[o,f]=Z.useState(void 0),[d,g]=Z.useState(!1),[h,p]=Z.useState(void 0),v=Z.useRef(null);Z.useEffect(()=>{t?(v.current?.focus(),g(!1),f(t)):o===!0&&f(!1)},[t,o]);const S=T=>{T.preventDefault(),h&&h.length>0&&(l(h),g(!0),setTimeout(i,3*1e3))},y=T=>{const A=T.target.value.trim(),_=/^\w+([.-]?\w+)*@\w+([.-]?\w+)*(\.\w{2,3})+$/.test(A);p(_?A:"")};return b.jsxs("div",{className:se(oi.container,fl.bottomSheet,{[fl.bottomSheetOpen]:o===!0,[fl.bottomSheetClose]:o===!1}),children:[b.jsx("h2",{children:r("export-transcript.email.title")}),b.jsx(cl,{className:oi.description,children:r("export-transcript.email.description")||""}),b.jsxs("form",{onSubmit:S,className:oi.formContainer,children:[b.jsxs("div",{children:[b.jsx("input",{disabled:d,ref:v,type:"email",placeholder:r("export-transcript.email.placeholder"),className:oi.emailInput,onChange:y}),h?.length===0?b.jsx("div",{className:oi.validationError,children:r("export-transcript.email.invalid")}):null]}),b.jsxs("div",{className:oi.actions,children:[b.jsx(uy,{onClick:i,children:r("export-transcript.email.cancel")}),b.jsx(Fu,{type:"submit",disabled:d||h===void 0||h.length===0,children:r("export-transcript.email.send")})]})]}),d&&b.jsx("div",{className:oi.submitted,children:r("export-transcript.email.success")})]})},nA="_inputContainer_fi5ao_1",aA={inputContainer:nA},lA="_blockUserInput_pot9c_1",iA={blockUserInput:lA},rA=({visible:t})=>{const l=Mt();return t?b.jsx("div",{className:se(iA.blockUserInput,"chat__blockUserInput"),children:l("block-user-input.title")}):null},sA="_commandsDropdown_fmklx_1",oA="_commands_fmklx_1",uA="_command_fmklx_1",cA="_commandActive_fmklx_49",lu={commandsDropdown:sA,commands:oA,command:uA,commandActive:cA},fA=(t,l,i,r,o)=>{Z.useEffect(()=>{const f=d=>{if(t.length)switch(d.key){case"Enter":i(t[l]);break;case"ArrowUp":r(g=>g>0?g-1:t.length-1);break;case"ArrowDown":r(g=>g<t.length-1?g+1:0);break;case"Escape":o([]);break}};return document.addEventListener("keydown",f),()=>{document.removeEventListener("keydown",f)}},[t,l,i,r,o])},dA=({text:t,commands:l,onSelectCommand:i,onVisibilityChange:r})=>{const o=Z.useRef(null),f=Mt(),[d,g]=Z.useState([]),[h,p]=Z.useState(gv(l)),[v,S]=Z.useState(0),y=T=>i(`/${T}`);return wp(o,()=>g([])),fA(d,v,y,S,g),Z.useEffect(()=>{p(gv(l))},[l]),Z.useEffect(()=>{const T=t.length||0;T===0||T>h||!t.startsWith("/")?g([]):g(l.filter(hA(t))),S(0)},[l,t,h]),Z.useEffect(()=>{r(!!d.length)},[d,r]),d.length?b.jsx("div",{ref:o,className:lu.commandsDropdown,children:b.jsx("ul",{id:"command-list",className:lu.commands,role:"listbox",children:d.map((T,A)=>b.jsxs("li",{className:se([lu.command,v===A&&lu.commandActive]),role:"option",onClick:()=>y(T),onMouseOver:()=>S(A),children:[b.jsxs("h1",{children:["/",T]}),b.jsx("p",{children:f(`commands.${T}`)})]},T))})}):null},gv=t=>Math.max(...t.map(l=>l.length+1)),hA=t=>l=>{const i=`/${l}`;return i.startsWith(t)&&i.length>=t.length},pA="_callToActionContainer_d8izj_1",gA="_callToActionTitle_d8izj_23",mA="_rateOverlay_d8izj_30",vA="_body_d8izj_52",bA="_footer_d8izj_60",yA="_actions_d8izj_75",_A="_bubbles_d8izj_89",SA="_stars_d8izj_191",EA="_starsSmall_d8izj_205",wA="_starsLarge_d8izj_211",TA="_star_d8izj_191",AA="_starReadonly_d8izj_225",CA="_starIcon_d8izj_235",xA="_starsDescriptionContainer_d8izj_253",OA="_starsDescription_d8izj_253",Vn={callToActionContainer:pA,callToActionTitle:gA,rateOverlay:mA,body:vA,footer:bA,actions:yA,bubbles:_A,stars:SA,starsSmall:EA,starsLarge:wA,star:TA,starReadonly:AA,starIcon:CA,starsDescriptionContainer:xA,starsDescription:OA},DA=({value:t,index:l,count:i,readonly:r,onHover:o,onClick:f})=>{const d=g=>{f&&g.key==="Enter"&&f()};return b.jsx("li",{className:se(Vn.star,{[Vn.starReadonly]:r},"chat__conversationRating__star"),children:b.jsx("div",{role:"radio","aria-checked":t>l?"true":"false","aria-posinset":l+1,"aria-setsize":i,tabIndex:0,onMouseOver:o,onKeyDown:d,onClick:f,children:b.jsx("span",{role:"img","aria-label":"Star",className:se(Vn.starIcon),children:b.jsx("svg",{viewBox:"64 64 896 896",focusable:"false","data-icon":"star",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",children:b.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"})})})})})},mv=5,cy=({value:t,size:l,readonly:i=!1,onChange:r})=>{const[o,f]=Z.useState(void 0),d=()=>{f(void 0)},g=p=>()=>{if(!i){const v=p+1;f(v)}},h=p=>()=>{r&&!i&&(r(p===0&&t===1?0:p+1),f(void 0))};return b.jsx("ul",{tabIndex:0,role:"radiogroup",className:se(Vn.stars,{[Vn.starsSmall]:l==="small",[Vn.starsLarge]:l==="large"},"chat__conversationRating__stars",{chat__conversationRating__stars__small:l==="small",chat__conversationRating__stars__large:l==="large"}),onMouseOut:d,children:Array(mv).fill(0).map((p,v)=>b.jsx(DA,{value:o===void 0?t:o,index:v,count:mv,readonly:i,onHover:g(v),onClick:h(v)},v))})},RA=({visible:t,onRate:l})=>{const i=Mt();return t?b.jsxs("div",{className:se(Vn.callToActionContainer,"chat__conversationRating__callToAction"),children:[b.jsx("div",{className:se(Vn.callToActionTitle,"chat__conversationRating__callToAction__title"),children:i("conversation-rating.call-to-action.title")}),b.jsx(cy,{value:0,size:"small",onChange:l})]}):null},Id=({isFirstMessageBySender:t,isLastMessageBySender:l,children:i})=>b.jsxs("div",{className:se(ke.message,ke.messageBot,t&&ke.messageBotFirst,l&&ke.messageBotLast,"chat__bubbleContainer","chat__botBubbleContainer",t&&"chat__bubbleContainer--first",l&&"chat__bubbleContainer--last"),children:[b.jsx("img",{className:se(ke.avatar,ke.botAvatar),src:"bot.svg",alt:"Bot"}),b.jsx("div",{className:se(ke.bubble,ke.bubbleLeft,"chat__bubble","chat__botBubble"),children:b.jsx("div",{className:se(ke.leftText,ke.bubbleContent),children:i})})]}),NA=({children:t})=>b.jsx("div",{className:se(ke.message,ke.messageGuest,ke.messageGuestFirst,ke.messageGuestLast,"chat__bubbleContainer","chat__guestBubbleContainer","chat__bubbleContainer--first","chat__bubbleContainer--last"),children:b.jsx("div",{className:se(ke.bubble,ke.bubbleRight,"chat__bubble","chat__guestBubble"),children:b.jsx("div",{className:se(ke.rightText,ke.bubbleContent),children:t})})}),MA=()=>{const t=Mt(),l=gl(),i=Lt(w=>w.chat.conversationRating),[r,o]=Z.useState(i.rating?.value||0),[f,d]=Z.useState(void 0),[g,h]=Z.useState(void 0),[p,v]=Z.useState({submitted:!1,feedback:""}),S=Z.useRef(null),[y,T]=Z.useState(!1);Z.useEffect(()=>{i.opener?(v({submitted:!1,feedback:""}),h(!0)):g===!0&&h(!1)},[i.opener,g]),Z.useEffect(()=>{o(i.rating?.value||0)},[i.rating?.value,i.opener]),Z.useEffect(()=>{S.current&&(S.current.value=i.rating?.feedback||"")},[i.rating?.feedback]),Z.useEffect(()=>{const w=r>0?t(`conversation-rating.overlay.bot-message.rate-feedback.value-${r}`):void 0;d(w?.length?w:void 0)},[r,t]),Z.useEffect(()=>{p.submitted?setTimeout(()=>T(!0),p.feedback.length?500:0):T(!1)},[p]);const A=w=>{w.preventDefault();const x=S.current?.value?.trim()||"";l(xE(r,x)),v({submitted:!0,feedback:x})},_=()=>{i.opener==="CLOSE_CHAT"?l(Nb()):i.opener==="RESTART_CHAT"?l(ks()):l(N3())};return b.jsx("div",{className:se(Vn.rateOverlay,fl.bottomSheet,"chat__conversationRating__overlay",{[fl.bottomSheetOpen]:g===!0,[fl.bottomSheetClose]:g===!1}),children:b.jsxs("form",{onSubmit:A,children:[b.jsxs("div",{className:se(Vn.body,"chat__conversationRating__overlay__body"),children:[b.jsx("div",{}),b.jsx("div",{className:se(Vn.bubbles),children:i.opener&&b.jsxs(b.Fragment,{children:[b.jsxs(Id,{isFirstMessageBySender:!0,isLastMessageBySender:!f,children:[b.jsx("h2",{children:t("conversation-rating.overlay.title")}),b.jsxs("div",{className:se(Vn.starsDescriptionContainer),children:[b.jsx(cy,{value:r,size:"large",readonly:p.submitted,onChange:o}),b.jsxs("div",{className:se(Vn.starsDescription),children:[b.jsx("div",{children:t("conversation-rating.overlay.star.very-bad")}),b.jsx("div",{children:t("conversation-rating.overlay.star.very-good")})]})]})]}),f&&b.jsx(Id,{isFirstMessageBySender:!1,isLastMessageBySender:!y||!!p.feedback.length,children:b.jsx("div",{children:f})}),!!p.feedback.length&&b.jsx(NA,{children:p.feedback}),y&&b.jsx(Id,{isFirstMessageBySender:!!p.feedback.length,isLastMessageBySender:!0,children:b.jsx("div",{children:t("conversation-rating.overlay.bot-message.submit-feedback")})})]})})]}),b.jsxs("div",{className:se(Vn.footer,"chat__conversationRating__overlay__footer"),children:[!p.submitted&&b.jsx("input",{ref:S,defaultValue:i.rating?.feedback||"",placeholder:t("conversation-rating.overlay.guest-feedback.input-placeholder")}),b.jsxs("div",{className:se(Vn.actions,"chat__conversationRating__overlay__footer__actions"),children:[p.submitted?b.jsx(Fu,{type:"button",disabled:!r,onClick:_,children:i.opener==="CLOSE_CHAT"?t("conversation-rating.overlay.action.close-chat"):i.opener==="RESTART_CHAT"?t("conversation-rating.overlay.action.restart-chat"):t("conversation-rating.overlay.action.back-to-chat")},"close-button"):b.jsx(Fu,{type:"submit",disabled:!r,children:t("conversation-rating.overlay.action.submit")},"submit-button"),i.opener!=="CHAT"&&!p.submitted&&b.jsx(uy,{onClick:_,children:i.opener==="CLOSE_CHAT"?t("conversation-rating.overlay.action.close-chat"):i.opener==="RESTART_CHAT"?t("conversation-rating.overlay.action.restart-chat"):t("conversation-rating.overlay.action.cancel")})]})]})]})})},kA=({numberOfMessagesFromGuest:t})=>{const l=gl(),i=Lt(f=>f.chat.conversationRating),r=f=>{l(Ru("CHAT",f))},o=!i.rating?.value&&t>=1;return i.enabled?b.jsxs(b.Fragment,{children:[b.jsx(RA,{visible:o,onRate:r}),b.jsx(MA,{})]}):null},LA=Z.memo(kA),zA="_inputWrapper_m3q4d_1",jA="_withOpenCommands_m3q4d_13",BA="_actions_m3q4d_18",UA="_messageInputWrapper_m3q4d_53",HA="_messageInput_m3q4d_53",IA="_buttons_m3q4d_78",VA="_button_m3q4d_78",ui={inputWrapper:zA,withOpenCommands:jA,actions:BA,messageInputWrapper:UA,messageInput:HA,buttons:IA,button:VA},QA="_audioRecorder_g845f_1",XA="_audioButton_g845f_6",GA="_recorderIcon_g845f_37",ZA="_spinning_g845f_60",ci={audioRecorder:QA,audioButton:XA,recorderIcon:GA,spinning:ZA},vv=2048,Yu=16e3;class FA extends Vv.Component{audioInput=null;volume=null;leftchannel=[];recorder=null;recordingLength=0;sampleRate=null;mediaStream=null;constructor(l){super(l),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(l){this.mediaStream=l,this.leftchannel.length=0,this.recordingLength=0,this.initRecording(l)}initRecording(l){const i=window.AudioContext||window.webkitAudioContext,r=new i;this.sampleRate=r.sampleRate,this.volume=r.createGain(),this.audioInput=r.createMediaStreamSource(l),this.audioInput.connect(this.volume),this.recorder=r.createScriptProcessor(vv,1,1),this.recorder.onaudioprocess=this.processRecordingInput,this.volume.connect(this.recorder),this.recorder.connect(r.destination)}processRecordingInput(l){if(this.state.recordingState==="connecting"&&this.setState({recordingState:"recording"}),this.state.recordingState!=="none"){const i=l.inputBuffer.getChannelData(0);this.leftchannel.push(new Float32Array(i)),this.recordingLength+=vv}}handleClickSubmitAudio(){const l=KA(this.leftchannel,this.recordingLength),i=JA(l,this.sampleRate||0),r=YA(i);this.props.onAudioRecorded(r),this.handleClickStopAudio()}handleClickStopAudio(){this.setState({recordingState:"none"}),this.audioInput?.disconnect(),this.volume?.disconnect(),this.recorder?.disconnect(),this.mediaStream&&this.mediaStream?.getAudioTracks().forEach(l=>{l.stop()})}render(){return b.jsxs("div",{className:ci.audioRecorder,children:[this.state.recordingState==="none"&&b.jsx("button",{className:se(ci.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:b.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",children:[b.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"}),b.jsx("path",{d:"M0 0h24v24H0z",fill:"none"})]})}),this.state.recordingState==="connecting"&&b.jsxs("svg",{className:ci.spinning,xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",children:[b.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"}),b.jsx("path",{d:"M0 0h24v24H0z",fill:"none"})]}),this.state.recordingState==="recording"&&b.jsxs("div",{className:ci.audioRecorder,children:[b.jsx("button",{className:se(ci.audioButton),onClick:this.handleClickStopAudio,"aria-label":this.props.translate("message-input.actions.stop-audio-recording.label"),tabIndex:0,children:b.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",children:[b.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"}),b.jsx("path",{d:"M0 0h24v24H0z",fill:"none"})]})}),b.jsx("div",{className:ci.recorderIcon}),b.jsx("button",{className:se(ci.audioButton),type:"submit",onClick:this.handleClickSubmitAudio,"aria-label":this.props.translate("message-input.actions.submit-audio-recording.label"),tabIndex:0,autoFocus:!0,children:b.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",children:[b.jsx("path",{d:"M0 0h24v24H0z",fill:"none"}),b.jsx("path",{d:"M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"})]})})]})]})}}const YA=t=>{const l=new ArrayBuffer(44+t.length*2),i=new DataView(l);iu(i,0,"RIFF"),i.setUint32(4,44+t.length*2,!0),iu(i,8,"WAVE"),iu(i,12,"fmt "),i.setUint32(16,16,!0),i.setUint16(20,1,!0),i.setUint16(22,1,!0),i.setUint32(24,Yu,!0),i.setUint32(28,Yu*4,!0),i.setUint16(32,4,!0),i.setUint16(34,16,!0),iu(i,36,"data"),i.setUint32(40,t.length*2,!0);const r=t.length;let o=44;const f=1;for(let d=0;d<r;d++)i.setInt16(o,t[d]*(32767*f),!0),o+=2;return new Blob([i],{type:"audio/wav"})},iu=(t,l,i)=>{for(let r=0;r<i.length;r++)t.setUint8(l+r,i.charCodeAt(r))},KA=(t,l)=>{const i=new Float32Array(l);let r=0;const o=t.length;for(let f=0;f<o;f++){const d=t[f];i.set(d,r),r+=d.length}return i},JA=(t,l)=>{if(Yu===l)return t;const i=l/Yu,r=Math.round(t.length/i),o=new Float32Array(r);let f=0,d=0;for(;f<o.length;){const g=Math.round((f+1)*i);let h=0,p=0;for(let v=d;v<g&&v<t.length;v++)h+=t[v],p++;o[f]=h/p,f++,d=g}return o},PA=({onClick:t})=>{const l=Mt();return b.jsxs("button",{onClick:t,type:"button","aria-label":l("message-input.actions.command.label"),children:[b.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",fill:"#000000",viewBox:"0 0 256 256",children:[b.jsx("rect",{x:"32",y:"32",width:"192",height:"192",rx:"16",ry:"16",fill:"none",stroke:"currentColor","stroke-width":"16"}),b.jsx("line",{x1:"80",y1:"176",x2:"176",y2:"80",stroke:"currentColor","stroke-width":"16","stroke-linecap":"round"})]}),b.jsx("span",{children:l("message-input.actions.command.label")})]})},WA=({disabled:t,textInput:l,commandsVisible:i,hasCommands:r,onTextInput:o,onTextInputSubmit:f,onAudioRecorded:d})=>{const g=Mt(),h=Z.useRef(null),{enableSpeechSupport:p}=Lt(_=>_.settings);Z.useEffect(()=>{h.current?.focus()},[l]);const v=()=>{const _=h.current;_&&l.trim().length>=1&&f(l.trim())&&(_.value="",_.style.height="",_.focus())},S=_=>{_.preventDefault(),v()},y=_=>{const w=_.target.value;o(w),_.target.style.height="";const{scrollHeight:x}=_.target;_.target.style.height=`${x>150?150:x}px`},T=_=>{_.code==="Enter"&&!_.shiftKey?(_.repeat||v(),_.preventDefault()):i&&(_.code==="ArrowUp"||_.code==="ArrowDown")&&_.preventDefault()},A=()=>{l.startsWith("/")?o(""):o("/")};return b.jsxs("form",{className:se(ui.inputWrapper,i&&ui.withOpenCommands,"chat__textInput"),onSubmit:S,children:[b.jsxs("div",{className:ui.messageInputWrapper,children:[b.jsx("textarea",{id:"user_input",ref:h,className:ui.messageInput,tabIndex:0,placeholder:g("message-input-placeholder"),value:l,onChange:y,onKeyDown:T,"aria-label":g("message-input-label"),"aria-controls":r?"command-list":void 0,"aria-haspopup":r?"listbox":void 0}),r&&b.jsx("div",{className:ui.actions,children:b.jsx(PA,{onClick:A})})]}),b.jsx("div",{className:se(ui.buttons,"chat__buttons"),children:l.length||!p||navigator.mediaDevices===void 0?b.jsx("button",{className:se(ui.button,"chat__button"),type:"submit","aria-label":g("message-input.actions.submit.label"),"data-title":g("message-input.actions.submit.label"),tabIndex:0,disabled:t,children:b.jsx("svg",{viewBox:"64 64 896 896",focusable:"false",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",children:b.jsx("path",{d:"M931.4 498.9L94.9 79.5c-3.4-1.7-7.3-2.1-11-1.2a15.99 15.99 0 00-11.7 19.3l86.2 352.2c1.3 5.3 5.2 9.6 10.4 11.3l147.7 50.7-147.6 50.7c-5.2 1.8-9.1 6-10.3 11.3L72.2 926.5c-.9 3.7-.5 7.6 1.2 10.9 3.9 7.9 13.5 11.1 21.5 7.2l836.5-417c3.1-1.5 5.6-4.1 7.2-7.1 3.9-8 .7-17.6-7.2-21.6zM170.8 826.3l50.3-205.6 295.2-101.3c2.3-.8 4.2-2.6 5-5 1.4-4.2-.8-8.7-5-10.2L221.1 403 171 198.2l628 314.9-628.2 313.2z"})})}):p&&navigator.mediaDevices!==void 0&&b.jsx(FA,{translate:g,onAudioRecorded:d})})]})},$A="_quickReplies_83npe_1",qA="_quickReply_83npe_9",bv={quickReplies:$A,quickReply:qA},e8=({quickReplies:t,onQuickReplyClick:l})=>t.length?b.jsx("div",{className:se(bv.quickReplies,"chat__quickReplies"),children:t.map(i=>b.jsx(oc,{tabIndex:0,className:se(bv.quickReply,"chat__button","chat__quickReply"),onClick:()=>l(i),children:i.label},i.label))}):null,yv=5e3,t8=1e3,n8=({isBotTyping:t,quickReplies:l,numberOfMessagesFromGuest:i,commands:r,onTextInput:o,onQuickReplyClick:f,onAudioRecorded:d})=>{const[g,h]=Z.useState(""),[p,v]=Z.useState(!1),[S,y]=Z.useState(!1),T=Z.useRef(0),A=Z.useRef(0);Z.useEffect(()=>{if(p&&!t){const x=T.current?Date.now()-T.current:0;x>yv?v(!1):setTimeout(()=>{v(!1)},yv-x)}},[p,t]),Z.useEffect(()=>{p&&(T.current=Date.now())},[p]);const _=x=>{const C=Date.now()-A.current<t8;return S?!1:t||C?(v(!0),!1):(o(x),h(""),A.current=Date.now(),!0)},w=x=>{h(x+" ")};return b.jsxs("div",{className:se(aA.inputContainer),children:[b.jsx(e8,{quickReplies:l,onQuickReplyClick:f}),b.jsx(rA,{visible:p}),!p&&b.jsx(LA,{numberOfMessagesFromGuest:i}),!!r?.length&&b.jsx(dA,{text:g,commands:r,onSelectCommand:w,onVisibilityChange:y}),b.jsx(WA,{textInput:g,disabled:p,commandsVisible:S,hasCommands:!!r?.length,onTextInput:h,onTextInputSubmit:_,onAudioRecorded:d})]})},a8=({clientName:t,messages:l,quickReplies:i,isBotTyping:r,drawerContentUrl:o,onMessageFromUser:f,onQuickReplyClick:d,onButtonClick:g,onLinkClick:h,onAudioRecorded:p,onTranscriptExport:v,onTranscriptItemReaction:S})=>{const y=gl(),T=Lt(k=>k.connection.connectionState),{enableTranscriptExportEmail:A,commands:_}=Lt(k=>k.settings),{showTranscriptMailOverlay:w,conversationRating:x}=Lt(k=>k.chat),C=l.filter(k=>k.sender.type===Nu.GUEST).length;Z.useEffect(()=>{T===hi.CONNECTED&&y(kb(t))},[t,T,y]);const D=()=>{y(Mb())};return b.jsxs("div",{className:Md.container,children:[b.jsxs("div",{className:se([Md.chatcontent,(w||x?.opener)&&Md.accessabilityHidden]),children:[b.jsx(j6,{messages:l,isBotTyping:r,commands:_,onButtonClick:g,onLinkClick:h,onTranscriptItemReaction:S}),b.jsx(n8,{isBotTyping:r,quickReplies:r?[]:i,numberOfMessagesFromGuest:C,commands:_,onQuickReplyClick:d,onTextInput:f,onAudioRecorded:p}),b.jsx(Y6,{})]}),A&&b.jsx(tA,{visible:!!w,onEmailExport:v,onClose:D}),b.jsx(X6,{contentUrl:o})]})},l8=t=>{const{messages:l,quickReplies:i,isBotTyping:r,drawerContentUrl:o}=t.chat;return{messages:l,quickReplies:i,isBotTyping:r,drawerContentUrl:o}},i8=t=>({onRestartChat:()=>t(ks()),onMessageFromUser:l=>t(ab(l)),onAudioRecorded:l=>t(EE(l)),onActionFromUser:l=>t(l),onQuickReplyClick:l=>t(nb(l)),onNluEvent:l=>t(ob(l)),onButtonClick:l=>t(DE(l)),onLinkClick:l=>t(ub(l)),onTranscriptExport:l=>t(TE(l)),onTranscriptItemReaction:(l,i)=>{t(yE(l,i?.type||null,i?.category,i?.comment))}}),r8=WS(l8,i8)(a8),fy=()=>Z.useMemo(()=>{try{return window.self!==window.top}catch{return!0}},[]),s8=t=>l=>{const i=l.key;(i==="ArrowDown"||i==="ArrowRight"||i==="Enter"||i===" "||i==="Space")&&(l.stopPropagation(),t())},o8=({onClick:t})=>{const l=Mt();return fy()?b.jsx("button",{className:"tooltip--bottom-left","aria-label":l("header.close-chat"),"data-title":l("header.close-chat"),tabIndex:0,onClick:t,onKeyDown:s8(t),children:b.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",children:b.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},u8="_header_3gvbz_1",c8="_logoContainer_3gvbz_14",f8="_logo_3gvbz_14",d8="_actions_3gvbz_28",h8="_active_3gvbz_43",p8="_menuContainer_3gvbz_56",g8="_menu_3gvbz_56",m8="_divider_3gvbz_86",Xl={header:u8,logoContainer:c8,logo:f8,actions:d8,active:h8,menuContainer:p8,menu:g8,divider:m8},v8=({icon:t})=>{switch(t){case"arrow-counter-clockwise":return b.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",viewBox:"0 0 256 256",children:b.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 b.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",viewBox:"0 0 256 256",children:b.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 b.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",viewBox:"0 0 256 256",children:b.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 b.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",viewBox:"0 0 256 256",children:b.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 b.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",viewBox:"0 0 256 256",children:b.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 b.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",viewBox:"0 0 256 256",children:b.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 b.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",viewBox:"0 0 256 256",children:b.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 b.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",viewBox:"0 0 256 256",children:b.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 b.jsx("div",{})}},b8=Z.forwardRef(({selected:t,item:l,onClick:i},r)=>{const o=Mt(),f=d=>{d.preventDefault(),i()};return b.jsx("li",{"aria-selected":t,role:"option",className:l.withDivider?Xl.divider:void 0,children:b.jsxs("a",{ref:r,type:"button",role:"button",tabIndex:-1,onClick:f,children:[b.jsx(v8,{icon:l.icon}),b.jsx("span",{children:o(`header.menu.${l.id}`)})]})})}),y8=(t,l)=>{const i=fy(),{menuItems:r,enableStandaloneView:o,enableTranscriptExportPdf:f,enableTranscriptExportEmail:d}=Lt(p=>p.settings),g=Lt(p=>p.chat.conversationRating.enabled);return Z.useMemo(()=>{const p=[],v=r.filter(({visibility:S})=>t?S==="always"||S==="chat-only":S==="always"||S==="start-screen-only");if(t&&(p.push({id:"restart-chat",type:"restart-chat",icon:"arrow-counter-clockwise",visibility:"chat-only"}),i&&o&&p.push({id:"expand-chat-window",type:"expand-chat-window",icon:"expand",visibility:"always"}),l&&f&&p.push({id:"download-transcript",type:"download-transcript",icon:"download",visibility:"chat-only"}),l&&d&&p.push({id:"send-transcript",type:"send-transcript",icon:"mail",visibility:"chat-only"}),l&&g&&p.push({id:"rate-conversation",type:"rate-conversation",icon:"star",visibility:"chat-only"}),p.length>0&&v.length)){const S=p.pop();S&&r.length&&p.push({...S,withDivider:!0})}return p.push(...v),p},[t,l,f,d,o,g,i,r])},_8=({chatStarted:t,hasGuestMessages:l})=>{const i=gl(),r=Mt(),{enabled:o,opener:f}=Lt(C=>C.chat.conversationRating),[d,g]=Z.useState(!1),[h,p]=Z.useState(-1),v=Z.useRef(null),S=Z.useRef(null),y=Z.useRef([]),T=y8(t,l);Z.useEffect(()=>{y.current[h]?.focus()},[h]);const A=Z.useCallback(()=>{i(l&&o&&!f?Ru("RESTART_CHAT"):ks()),g(!1),p(0)},[l,o,f,i]),_=Z.useCallback(C=>{switch(C.type){case"restart-chat":A();break;case"expand-chat-window":window.open(window.location.href,"_blank");break;case"download-transcript":i(AE());break;case"send-transcript":i(Mb());break;case"rate-conversation":i(Ru("MENU"));break;case"link":i(ub(C.url));break;case"action":i(JSON.parse(JSON.stringify(C.action)));break}g(!1)},[i,A,g]);Z.useEffect(()=>{const C=D=>{if(d)switch(D.key){case"Enter":D.preventDefault(),_(T[h]);break;case"ArrowUp":p(k=>k>0?k-1:T.length-1);break;case"ArrowDown":p(k=>k<T.length-1?k+1:0);break;case"Escape":g(!1);break;case"Tab":h>-1&&g(!1);break}};return document.addEventListener("keydown",C),()=>{document.removeEventListener("keydown",C)}},[d,h,T,p,g,_]),Z.useEffect(()=>{d||p(-1)},[d,h]),wp(S,()=>g(!1));const w=()=>{g(C=>!C)},x=()=>{setTimeout(()=>{const C=document.activeElement;S.current&&!S.current.contains(C)&&g(!1)},0)};return T.length?b.jsxs("div",{className:se(Xl.menuContainer),ref:S,children:[b.jsx("button",{ref:v,className:se(d&&Xl.active,d?"tooltip-hidden":"tooltip--bottom-left"),"aria-label":r("header.menu.title"),"data-title":r("header.menu.title"),onClick:w,onBlur:x,children:b.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",children:b.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"})})}),d&&b.jsx("nav",{className:Xl.menu,"aria-label":r("header.menu.title"),children:b.jsx("ul",{tabIndex:0,children:T.map((C,D)=>b.jsx(b8,{ref:k=>{y.current[D]=k},selected:h===D,item:C,onClick:()=>_(C)},C.id))})})]}):null},_v=({className:t,chatStarted:l,...i})=>{const r=gl(),o=Lt(g=>g.chat.conversationRating),f=Lt(g=>g.chat.messages.some(h=>h.sender.type===hl.GUEST)),d=()=>{o.enabled&&!o.opener&&f?r(Ru("CLOSE_CHAT")):r(Nb())};return b.jsxs("div",{className:se(Xl.header,t),...i,children:[b.jsx("div",{className:Xl.logoContainer,children:b.jsx("div",{className:Xl.logo})}),b.jsxs("div",{className:Xl.actions,children:[b.jsx(_8,{chatStarted:l,hasGuestMessages:f}),b.jsx(o8,{onClick:d})]})]})},S8="_chatwindow_rkbir_1",E8="_chatwindowWithAside_rkbir_21",Sv={chatwindow:S8,chatwindowWithAside:E8},dy=()=>{const[t,l]=Z.useState(!1);return Z.useEffect(()=>{const i=window.matchMedia("(max-width: 1023px)"),r=()=>l(i.matches);return r(),i.addEventListener("change",r),()=>i.removeEventListener("change",r)},[]),t},w8="_sourceInfos_vei0l_1",T8="_waitForLoading_vei0l_24",A8="_loadingContent_vei0l_28",C8="_sourceHeader_vei0l_37",x8="_sourceHeaderIcon_vei0l_57",O8="_sourceContent_vei0l_61",D8="_openSourceButton_vei0l_69",R8="_sourceButtonLabel_vei0l_79",N8="_closeSourceInfosButton_vei0l_101",M8="_loadingSourceInfos_vei0l_125",k8="_loading_vei0l_28",L8="_loadingError_vei0l_139",z8="_highlightLoadingInfo_vei0l_155",j8="_highlightLoadingInfoInnerContainer_vei0l_169",B8="_highlightLoadingInfoContent_vei0l_178",U8="_highlightLoadingInfoCloseIcon_vei0l_198",H8="_highlightLoader_vei0l_203",I8="_highlightLoaderLoading_vei0l_210",yn={sourceInfos:w8,waitForLoading:T8,loadingContent:A8,sourceHeader:C8,sourceHeaderIcon:x8,sourceContent:O8,openSourceButton:D8,sourceButtonLabel:R8,closeSourceInfosButton:N8,loadingSourceInfos:M8,loading:k8,loadingError:L8,highlightLoadingInfo:z8,highlightLoadingInfoInnerContainer:j8,highlightLoadingInfoContent:B8,highlightLoadingInfoCloseIcon:U8,highlightLoader:H8,highlightLoaderLoading:I8},V8=({onClick:t})=>{const l=Mt();return b.jsx("button",{className:se(yn.closeSourceInfosButton,"tooltip--bottom-left"),"aria-label":l("source-infos.close"),"data-title":l("source-infos.close"),tabIndex:0,onClick:t,children:b.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",children:b.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"})})})},Q8=Z.forwardRef(({sourceInfos:t,onClose:l,...i},r)=>b.jsxs("div",{className:yn.sourceHeader,...i,ref:r,children:[b.jsx("div",{children:t?b.jsx("p",{id:"source-info-title",children:t.title}):b.jsx("p",{children:" "})}),b.jsx(V8,{onClick:l})]})),X8=({loading:t})=>b.jsx("div",{className:yn.highlightLoader,children:t&&b.jsx("div",{className:yn.highlightLoaderLoading})});const{entries:hy,setPrototypeOf:Ev,isFrozen:G8,getPrototypeOf:Z8,getOwnPropertyDescriptor:F8}=Object;let{freeze:Gn,seal:Ea,create:Eh}=Object,{apply:wh,construct:Th}=typeof Reflect<"u"&&Reflect;Gn||(Gn=function(l){return l});Ea||(Ea=function(l){return l});wh||(wh=function(l,i){for(var r=arguments.length,o=new Array(r>2?r-2:0),f=2;f<r;f++)o[f-2]=arguments[f];return l.apply(i,o)});Th||(Th=function(l){for(var i=arguments.length,r=new Array(i>1?i-1:0),o=1;o<i;o++)r[o-1]=arguments[o];return new l(...r)});const ru=Zn(Array.prototype.forEach),Y8=Zn(Array.prototype.lastIndexOf),wv=Zn(Array.prototype.pop),os=Zn(Array.prototype.push),K8=Zn(Array.prototype.splice),mu=Zn(String.prototype.toLowerCase),Vd=Zn(String.prototype.toString),Qd=Zn(String.prototype.match),us=Zn(String.prototype.replace),J8=Zn(String.prototype.indexOf),P8=Zn(String.prototype.trim),Oa=Zn(Object.prototype.hasOwnProperty),In=Zn(RegExp.prototype.test),cs=W8(TypeError);function Zn(t){return function(l){l instanceof RegExp&&(l.lastIndex=0);for(var i=arguments.length,r=new Array(i>1?i-1:0),o=1;o<i;o++)r[o-1]=arguments[o];return wh(t,l,r)}}function W8(t){return function(){for(var l=arguments.length,i=new Array(l),r=0;r<l;r++)i[r]=arguments[r];return Th(t,i)}}function Ue(t,l){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:mu;Ev&&Ev(t,null);let r=l.length;for(;r--;){let o=l[r];if(typeof o=="string"){const f=i(o);f!==o&&(G8(l)||(l[r]=f),o=f)}t[o]=!0}return t}function $8(t){for(let l=0;l<t.length;l++)Oa(t,l)||(t[l]=null);return t}function Ia(t){const l=Eh(null);for(const[i,r]of hy(t))Oa(t,i)&&(Array.isArray(r)?l[i]=$8(r):r&&typeof r=="object"&&r.constructor===Object?l[i]=Ia(r):l[i]=r);return l}function fs(t,l){for(;t!==null;){const r=F8(t,l);if(r){if(r.get)return Zn(r.get);if(typeof r.value=="function")return Zn(r.value)}t=Z8(t)}function i(){return null}return i}const Tv=Gn(["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"]),Xd=Gn(["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"]),Gd=Gn(["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"]),q8=Gn(["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"]),Zd=Gn(["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"]),eC=Gn(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Av=Gn(["#text"]),Cv=Gn(["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"]),Fd=Gn(["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"]),xv=Gn(["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"]),su=Gn(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),tC=Ea(/\{\{[\w\W]*|[\w\W]*\}\}/gm),nC=Ea(/<%[\w\W]*|[\w\W]*%>/gm),aC=Ea(/\$\{[\w\W]*/gm),lC=Ea(/^data-[\-\w.\u00B7-\uFFFF]+$/),iC=Ea(/^aria-[\-\w]+$/),py=Ea(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),rC=Ea(/^(?:\w+script|data):/i),sC=Ea(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),gy=Ea(/^html$/i),oC=Ea(/^[a-z][.\w]*(-[.\w]+)+$/i);var Ov=Object.freeze({__proto__:null,ARIA_ATTR:iC,ATTR_WHITESPACE:sC,CUSTOM_ELEMENT:oC,DATA_ATTR:lC,DOCTYPE_NAME:gy,ERB_EXPR:nC,IS_ALLOWED_URI:py,IS_SCRIPT_OR_DATA:rC,MUSTACHE_EXPR:tC,TMPLIT_EXPR:aC});const ds={element:1,text:3,progressingInstruction:7,comment:8,document:9},uC=function(){return typeof window>"u"?null:window},cC=function(l,i){if(typeof l!="object"||typeof l.createPolicy!="function")return null;let r=null;const o="data-tt-policy-suffix";i&&i.hasAttribute(o)&&(r=i.getAttribute(o));const f="dompurify"+(r?"#"+r:"");try{return l.createPolicy(f,{createHTML(d){return d},createScriptURL(d){return d}})}catch{return console.warn("TrustedTypes policy "+f+" could not be created."),null}},Dv=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function my(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:uC();const l=ue=>my(ue);if(l.version="3.3.1",l.removed=[],!t||!t.document||t.document.nodeType!==ds.document||!t.Element)return l.isSupported=!1,l;let{document:i}=t;const r=i,o=r.currentScript,{DocumentFragment:f,HTMLTemplateElement:d,Node:g,Element:h,NodeFilter:p,NamedNodeMap:v=t.NamedNodeMap||t.MozNamedAttrMap,HTMLFormElement:S,DOMParser:y,trustedTypes:T}=t,A=h.prototype,_=fs(A,"cloneNode"),w=fs(A,"remove"),x=fs(A,"nextSibling"),C=fs(A,"childNodes"),D=fs(A,"parentNode");if(typeof d=="function"){const ue=i.createElement("template");ue.content&&ue.content.ownerDocument&&(i=ue.content.ownerDocument)}let k,U="";const{implementation:H,createNodeIterator:L,createDocumentFragment:Y,getElementsByTagName:X}=i,{importNode:W}=r;let K=Dv();l.isSupported=typeof hy=="function"&&typeof D=="function"&&H&&H.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:P,ERB_EXPR:fe,TMPLIT_EXPR:he,DATA_ATTR:de,ARIA_ATTR:j,IS_SCRIPT_OR_DATA:le,ATTR_WHITESPACE:G,CUSTOM_ELEMENT:be}=Ov;let{IS_ALLOWED_URI:ge}=Ov,O=null;const J=Ue({},[...Tv,...Xd,...Gd,...Zd,...Av]);let ee=null;const oe=Ue({},[...Cv,...Fd,...xv,...su]);let ne=Object.seal(Eh(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}})),ce=null,me=null;const Se=Object.seal(Eh(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let we=!0,Be=!0,St=!1,Ae=!0,mt=!1,Tt=!0,Oe=!1,ct=!1,tn=!1,_n=!1,Xe=!1,Ft=!1,xt=!0,nn=!1;const Et="user-content-";let st=!0,Dn=!1,Qt={},Rt=null;const zt=Ue({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let cn=null;const fn=Ue({},["audio","video","img","source","image","track"]);let ua=null;const nt=Ue({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),dn="http://www.w3.org/1998/Math/MathML",vt="http://www.w3.org/2000/svg",ft="http://www.w3.org/1999/xhtml";let Je=ft,qe=!1,an=null;const hn=Ue({},[dn,vt,ft],Vd);let jt=Ue({},["mi","mo","mn","ms","mtext"]),at=Ue({},["annotation-xml"]);const Yt=Ue({},["title","style","font","a","script"]);let At=null;const Rn=["application/xhtml+xml","text/html"],Nn="text/html";let dt=null,ln=null;const ca=i.createElement("form"),jn=function(R){return R instanceof RegExp||R instanceof Function},fa=function(){let R=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(ln&&ln===R)){if((!R||typeof R!="object")&&(R={}),R=Ia(R),At=Rn.indexOf(R.PARSER_MEDIA_TYPE)===-1?Nn:R.PARSER_MEDIA_TYPE,dt=At==="application/xhtml+xml"?Vd:mu,O=Oa(R,"ALLOWED_TAGS")?Ue({},R.ALLOWED_TAGS,dt):J,ee=Oa(R,"ALLOWED_ATTR")?Ue({},R.ALLOWED_ATTR,dt):oe,an=Oa(R,"ALLOWED_NAMESPACES")?Ue({},R.ALLOWED_NAMESPACES,Vd):hn,ua=Oa(R,"ADD_URI_SAFE_ATTR")?Ue(Ia(nt),R.ADD_URI_SAFE_ATTR,dt):nt,cn=Oa(R,"ADD_DATA_URI_TAGS")?Ue(Ia(fn),R.ADD_DATA_URI_TAGS,dt):fn,Rt=Oa(R,"FORBID_CONTENTS")?Ue({},R.FORBID_CONTENTS,dt):zt,ce=Oa(R,"FORBID_TAGS")?Ue({},R.FORBID_TAGS,dt):Ia({}),me=Oa(R,"FORBID_ATTR")?Ue({},R.FORBID_ATTR,dt):Ia({}),Qt=Oa(R,"USE_PROFILES")?R.USE_PROFILES:!1,we=R.ALLOW_ARIA_ATTR!==!1,Be=R.ALLOW_DATA_ATTR!==!1,St=R.ALLOW_UNKNOWN_PROTOCOLS||!1,Ae=R.ALLOW_SELF_CLOSE_IN_ATTR!==!1,mt=R.SAFE_FOR_TEMPLATES||!1,Tt=R.SAFE_FOR_XML!==!1,Oe=R.WHOLE_DOCUMENT||!1,_n=R.RETURN_DOM||!1,Xe=R.RETURN_DOM_FRAGMENT||!1,Ft=R.RETURN_TRUSTED_TYPE||!1,tn=R.FORCE_BODY||!1,xt=R.SANITIZE_DOM!==!1,nn=R.SANITIZE_NAMED_PROPS||!1,st=R.KEEP_CONTENT!==!1,Dn=R.IN_PLACE||!1,ge=R.ALLOWED_URI_REGEXP||py,Je=R.NAMESPACE||ft,jt=R.MATHML_TEXT_INTEGRATION_POINTS||jt,at=R.HTML_INTEGRATION_POINTS||at,ne=R.CUSTOM_ELEMENT_HANDLING||{},R.CUSTOM_ELEMENT_HANDLING&&jn(R.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(ne.tagNameCheck=R.CUSTOM_ELEMENT_HANDLING.tagNameCheck),R.CUSTOM_ELEMENT_HANDLING&&jn(R.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(ne.attributeNameCheck=R.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),R.CUSTOM_ELEMENT_HANDLING&&typeof R.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(ne.allowCustomizedBuiltInElements=R.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),mt&&(Be=!1),Xe&&(_n=!0),Qt&&(O=Ue({},Av),ee=[],Qt.html===!0&&(Ue(O,Tv),Ue(ee,Cv)),Qt.svg===!0&&(Ue(O,Xd),Ue(ee,Fd),Ue(ee,su)),Qt.svgFilters===!0&&(Ue(O,Gd),Ue(ee,Fd),Ue(ee,su)),Qt.mathMl===!0&&(Ue(O,Zd),Ue(ee,xv),Ue(ee,su))),R.ADD_TAGS&&(typeof R.ADD_TAGS=="function"?Se.tagCheck=R.ADD_TAGS:(O===J&&(O=Ia(O)),Ue(O,R.ADD_TAGS,dt))),R.ADD_ATTR&&(typeof R.ADD_ATTR=="function"?Se.attributeCheck=R.ADD_ATTR:(ee===oe&&(ee=Ia(ee)),Ue(ee,R.ADD_ATTR,dt))),R.ADD_URI_SAFE_ATTR&&Ue(ua,R.ADD_URI_SAFE_ATTR,dt),R.FORBID_CONTENTS&&(Rt===zt&&(Rt=Ia(Rt)),Ue(Rt,R.FORBID_CONTENTS,dt)),R.ADD_FORBID_CONTENTS&&(Rt===zt&&(Rt=Ia(Rt)),Ue(Rt,R.ADD_FORBID_CONTENTS,dt)),st&&(O["#text"]=!0),Oe&&Ue(O,["html","head","body"]),O.table&&(Ue(O,["tbody"]),delete ce.tbody),R.TRUSTED_TYPES_POLICY){if(typeof R.TRUSTED_TYPES_POLICY.createHTML!="function")throw cs('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof R.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw cs('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');k=R.TRUSTED_TYPES_POLICY,U=k.createHTML("")}else k===void 0&&(k=cC(T,o)),k!==null&&typeof U=="string"&&(U=k.createHTML(""));Gn&&Gn(R),ln=R}},rn=Ue({},[...Xd,...Gd,...q8]),sn=Ue({},[...Zd,...eC]),Kt=function(R){let $=D(R);(!$||!$.tagName)&&($={namespaceURI:Je,tagName:"template"});const re=mu(R.tagName),Ee=mu($.tagName);return an[R.namespaceURI]?R.namespaceURI===vt?$.namespaceURI===ft?re==="svg":$.namespaceURI===dn?re==="svg"&&(Ee==="annotation-xml"||jt[Ee]):!!rn[re]:R.namespaceURI===dn?$.namespaceURI===ft?re==="math":$.namespaceURI===vt?re==="math"&&at[Ee]:!!sn[re]:R.namespaceURI===ft?$.namespaceURI===vt&&!at[Ee]||$.namespaceURI===dn&&!jt[Ee]?!1:!sn[re]&&(Yt[re]||!rn[re]):!!(At==="application/xhtml+xml"&&an[R.namespaceURI]):!1},Bt=function(R){os(l.removed,{element:R});try{D(R).removeChild(R)}catch{w(R)}},Pe=function(R,$){try{os(l.removed,{attribute:$.getAttributeNode(R),from:$})}catch{os(l.removed,{attribute:null,from:$})}if($.removeAttribute(R),R==="is")if(_n||Xe)try{Bt($)}catch{}else try{$.setAttribute(R,"")}catch{}},Bn=function(R){let $=null,re=null;if(tn)R="<remove></remove>"+R;else{const pe=Qd(R,/^[\r\n\t ]+/);re=pe&&pe[0]}At==="application/xhtml+xml"&&Je===ft&&(R='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+R+"</body></html>");const Ee=k?k.createHTML(R):R;if(Je===ft)try{$=new y().parseFromString(Ee,At)}catch{}if(!$||!$.documentElement){$=H.createDocument(Je,"template",null);try{$.documentElement.innerHTML=qe?U:Ee}catch{}}const Ge=$.body||$.documentElement;return R&&re&&Ge.insertBefore(i.createTextNode(re),Ge.childNodes[0]||null),Je===ft?X.call($,Oe?"html":"body")[0]:Oe?$.documentElement:Ge},Mn=function(R){return L.call(R.ownerDocument||R,R,p.SHOW_ELEMENT|p.SHOW_COMMENT|p.SHOW_TEXT|p.SHOW_PROCESSING_INSTRUCTION|p.SHOW_CDATA_SECTION,null)},Ut=function(R){return R instanceof S&&(typeof R.nodeName!="string"||typeof R.textContent!="string"||typeof R.removeChild!="function"||!(R.attributes instanceof v)||typeof R.removeAttribute!="function"||typeof R.setAttribute!="function"||typeof R.namespaceURI!="string"||typeof R.insertBefore!="function"||typeof R.hasChildNodes!="function")},De=function(R){return typeof g=="function"&&R instanceof g};function et(ue,R,$){ru(ue,re=>{re.call(l,R,$,ln)})}const pn=function(R){let $=null;if(et(K.beforeSanitizeElements,R,null),Ut(R))return Bt(R),!0;const re=dt(R.nodeName);if(et(K.uponSanitizeElement,R,{tagName:re,allowedTags:O}),Tt&&R.hasChildNodes()&&!De(R.firstElementChild)&&In(/<[/\w!]/g,R.innerHTML)&&In(/<[/\w!]/g,R.textContent)||R.nodeType===ds.progressingInstruction||Tt&&R.nodeType===ds.comment&&In(/<[/\w]/g,R.data))return Bt(R),!0;if(!(Se.tagCheck instanceof Function&&Se.tagCheck(re))&&(!O[re]||ce[re])){if(!ce[re]&&on(re)&&(ne.tagNameCheck instanceof RegExp&&In(ne.tagNameCheck,re)||ne.tagNameCheck instanceof Function&&ne.tagNameCheck(re)))return!1;if(st&&!Rt[re]){const Ee=D(R)||R.parentNode,Ge=C(R)||R.childNodes;if(Ge&&Ee){const pe=Ge.length;for(let ht=pe-1;ht>=0;--ht){const Re=_(Ge[ht],!0);Re.__removalCount=(R.__removalCount||0)+1,Ee.insertBefore(Re,x(R))}}}return Bt(R),!0}return R instanceof h&&!Kt(R)||(re==="noscript"||re==="noembed"||re==="noframes")&&In(/<\/no(script|embed|frames)/i,R.innerHTML)?(Bt(R),!0):(mt&&R.nodeType===ds.text&&($=R.textContent,ru([P,fe,he],Ee=>{$=us($,Ee," ")}),R.textContent!==$&&(os(l.removed,{element:R.cloneNode()}),R.textContent=$)),et(K.afterSanitizeElements,R,null),!1)},Fn=function(R,$,re){if(xt&&($==="id"||$==="name")&&(re in i||re in ca))return!1;if(!(Be&&!me[$]&&In(de,$))){if(!(we&&In(j,$))){if(!(Se.attributeCheck instanceof Function&&Se.attributeCheck($,R))){if(!ee[$]||me[$]){if(!(on(R)&&(ne.tagNameCheck instanceof RegExp&&In(ne.tagNameCheck,R)||ne.tagNameCheck instanceof Function&&ne.tagNameCheck(R))&&(ne.attributeNameCheck instanceof RegExp&&In(ne.attributeNameCheck,$)||ne.attributeNameCheck instanceof Function&&ne.attributeNameCheck($,R))||$==="is"&&ne.allowCustomizedBuiltInElements&&(ne.tagNameCheck instanceof RegExp&&In(ne.tagNameCheck,re)||ne.tagNameCheck instanceof Function&&ne.tagNameCheck(re))))return!1}else if(!ua[$]){if(!In(ge,us(re,G,""))){if(!(($==="src"||$==="xlink:href"||$==="href")&&R!=="script"&&J8(re,"data:")===0&&cn[R])){if(!(St&&!In(le,us(re,G,"")))){if(re)return!1}}}}}}}return!0},on=function(R){return R!=="annotation-xml"&&Qd(R,be)},wa=function(R){et(K.beforeSanitizeAttributes,R,null);const{attributes:$}=R;if(!$||Ut(R))return;const re={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:ee,forceKeepAttr:void 0};let Ee=$.length;for(;Ee--;){const Ge=$[Ee],{name:pe,namespaceURI:ht,value:Re}=Ge,lt=dt(pe),tt=Re;let Ne=pe==="value"?tt:P8(tt);if(re.attrName=lt,re.attrValue=Ne,re.keepAttr=!0,re.forceKeepAttr=void 0,et(K.uponSanitizeAttribute,R,re),Ne=re.attrValue,nn&&(lt==="id"||lt==="name")&&(Pe(pe,R),Ne=Et+Ne),Tt&&In(/((--!?|])>)|<\/(style|title|textarea)/i,Ne)){Pe(pe,R);continue}if(lt==="attributename"&&Qd(Ne,"href")){Pe(pe,R);continue}if(re.forceKeepAttr)continue;if(!re.keepAttr){Pe(pe,R);continue}if(!Ae&&In(/\/>/i,Ne)){Pe(pe,R);continue}mt&&ru([P,fe,he],Xt=>{Ne=us(Ne,Xt," ")});const kt=dt(R.nodeName);if(!Fn(kt,lt,Ne)){Pe(pe,R);continue}if(k&&typeof T=="object"&&typeof T.getAttributeType=="function"&&!ht)switch(T.getAttributeType(kt,lt)){case"TrustedHTML":{Ne=k.createHTML(Ne);break}case"TrustedScriptURL":{Ne=k.createScriptURL(Ne);break}}if(Ne!==tt)try{ht?R.setAttributeNS(ht,pe,Ne):R.setAttribute(pe,Ne),Ut(R)?Bt(R):wv(l.removed)}catch{Pe(pe,R)}}et(K.afterSanitizeAttributes,R,null)},ze=function ue(R){let $=null;const re=Mn(R);for(et(K.beforeSanitizeShadowDOM,R,null);$=re.nextNode();)et(K.uponSanitizeShadowNode,$,null),pn($),wa($),$.content instanceof f&&ue($.content);et(K.afterSanitizeShadowDOM,R,null)};return l.sanitize=function(ue){let R=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},$=null,re=null,Ee=null,Ge=null;if(qe=!ue,qe&&(ue="<!-->"),typeof ue!="string"&&!De(ue))if(typeof ue.toString=="function"){if(ue=ue.toString(),typeof ue!="string")throw cs("dirty is not a string, aborting")}else throw cs("toString is not a function");if(!l.isSupported)return ue;if(ct||fa(R),l.removed=[],typeof ue=="string"&&(Dn=!1),Dn){if(ue.nodeName){const Re=dt(ue.nodeName);if(!O[Re]||ce[Re])throw cs("root node is forbidden and cannot be sanitized in-place")}}else if(ue instanceof g)$=Bn("<!---->"),re=$.ownerDocument.importNode(ue,!0),re.nodeType===ds.element&&re.nodeName==="BODY"||re.nodeName==="HTML"?$=re:$.appendChild(re);else{if(!_n&&!mt&&!Oe&&ue.indexOf("<")===-1)return k&&Ft?k.createHTML(ue):ue;if($=Bn(ue),!$)return _n?null:Ft?U:""}$&&tn&&Bt($.firstChild);const pe=Mn(Dn?ue:$);for(;Ee=pe.nextNode();)pn(Ee),wa(Ee),Ee.content instanceof f&&ze(Ee.content);if(Dn)return ue;if(_n){if(Xe)for(Ge=Y.call($.ownerDocument);$.firstChild;)Ge.appendChild($.firstChild);else Ge=$;return(ee.shadowroot||ee.shadowrootmode)&&(Ge=W.call(r,Ge,!0)),Ge}let ht=Oe?$.outerHTML:$.innerHTML;return Oe&&O["!doctype"]&&$.ownerDocument&&$.ownerDocument.doctype&&$.ownerDocument.doctype.name&&In(gy,$.ownerDocument.doctype.name)&&(ht="<!DOCTYPE "+$.ownerDocument.doctype.name+`>
118
- `+ht),mt&&ru([P,fe,he],Re=>{ht=us(ht,Re," ")}),k&&Ft?k.createHTML(ht):ht},l.setConfig=function(){let ue=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};fa(ue),ct=!0},l.clearConfig=function(){ln=null,ct=!1},l.isValidAttribute=function(ue,R,$){ln||fa({});const re=dt(ue),Ee=dt(R);return Fn(re,Ee,$)},l.addHook=function(ue,R){typeof R=="function"&&os(K[ue],R)},l.removeHook=function(ue,R){if(R!==void 0){const $=Y8(K[ue],R);return $===-1?void 0:K8(K[ue],$,1)[0]}return wv(K[ue])},l.removeHooks=function(ue){K[ue]=[]},l.removeAllHooks=function(){K=Dv()},l}var fC=my();const dC=({onClose:t})=>{const l=Mt();return b.jsxs("div",{className:yn.highlightLoadingInfo,onClick:t,children:[b.jsx("div",{className:yn.highlightLoadingInfoCloseIcon,children:b.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",children:b.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"})})}),b.jsxs("div",{className:yn.highlightLoadingInfoInnerContainer,children:[b.jsxs("div",{className:yn.highlightLoadingInfoContent,children:[b.jsx("h3",{children:l("source-infos.highlight-loading.title")}),b.jsx("p",{children:l("source-infos.highlight-loading.description")})]}),b.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"#000000",viewBox:"0 0 256 256",children:b.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"})})]})]})},hC=({title:t,href:l,children:i})=>b.jsx("a",{href:l,title:t,target:"_blank",rel:"noopener noreferrer",children:i}),pC=({className:t,children:l,...i})=>b.jsx("a",{className:se(Rs.button,Rs.buttonDefault,t),type:"button",role:"button",...i,children:l}),gC=t=>b.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",...t,children:b.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"})}),mC=({type:t,...l})=>{switch(t){case"WEBSITE":return b.jsx(ry,{...l});case"PDF":return b.jsx(iy,{...l});case"DOCX":return b.jsx(ay,{...l});case"TEXT":return b.jsx(gC,{...l});default:return b.jsx(ly,{...l})}},vC=({url:t,knowledgeBaseType:l})=>{const i=Mt();return b.jsx(pC,{className:yn.openSourceButton,href:t,target:"_blank",children:b.jsxs("div",{className:yn.sourceButtonLabel,children:[b.jsx("div",{className:yn.sourceHeaderIcon,children:b.jsx(mC,{type:l})}),b.jsx("p",{children:i("source-infos.open-source")})]})})},bC=({sourceInfos:{content:t,url:l,knowledgeBaseType:i,highlighted:r}})=>{const[o,f]=Z.useState(!r);Z.useEffect(()=>{r&&f(!1)},[r]);const d=fC.sanitize(t,{USE_PROFILES:{html:!0}});return b.jsxs(b.Fragment,{children:[b.jsxs("div",{className:se(yn.sourceContent,oy.markdown),children:[b.jsx(cl,{options:{overrides:{a:hC}},children:d}),o&&b.jsx(dC,{onClose:()=>f(!1)})]}),b.jsx(vC,{url:l,knowledgeBaseType:i})]})},yC=""+new URL("undraw_fixing-bugs-D_eYxJc6.svg",import.meta.url).href,_C=()=>{const t=Mt();return b.jsxs("div",{className:yn.loadingError,children:[b.jsx("h1",{children:t("source-infos.error.title")}),b.jsx("img",{src:yC,title:t("source-infos.error.title")}),b.jsx("p",{children:t("source-infos.error.info")})]})},SC=()=>b.jsx("div",{className:yn.loadingSourceInfos,children:b.jsx("svg",{className:yn.loading,xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",children:b.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 EC({sourceInfos:t,onClose:l,threshold:i=100}){const r=Z.useRef(null),[o,f]=Z.useState(0),[d,g]=Z.useState(!1),h=Z.useRef(null),p=Z.useRef(null),v=Z.useCallback(A=>{h.current=A,g(!0)},[]),S=Z.useCallback(A=>{if(h.current!==null&&d){const _=A-h.current;_>0&&f(_)}},[d]),y=Z.useCallback(()=>{g(!1),o>i&&l(),f(0),h.current=null},[o,i,l]),T=Z.useCallback(A=>{const _=U=>v(U.touches[0].clientY),w=U=>S(U.touches[0].clientY),x=()=>y(),C=U=>{U.preventDefault(),v(U.clientY),window.addEventListener("mousemove",D),window.addEventListener("mouseup",k)},D=U=>S(U.clientY),k=()=>{y(),window.removeEventListener("mousemove",D),window.removeEventListener("mouseup",k)};A.addEventListener("touchstart",_),A.addEventListener("touchmove",w),A.addEventListener("touchend",x),A.addEventListener("mousedown",C),p.current=()=>{A.removeEventListener("touchstart",_),A.removeEventListener("touchmove",w),A.removeEventListener("touchend",x),A.removeEventListener("mousedown",C),window.removeEventListener("mousemove",D),window.removeEventListener("mouseup",k)}},[v,S,y]);return Z.useEffect(()=>{let A;return(()=>{r.current?(p.current?.(),T(r.current)):(A=new MutationObserver(()=>{r.current&&(p.current?.(),T(r.current),A?.disconnect())}),A.observe(document.body,{childList:!0,subtree:!0}))})(),()=>{A?.disconnect(),p.current?.()}},[T,t]),{ref:r,dragOffsetY:o,isDragging:d}}const wC=t=>{const[l,i]=Z.useState(!0);return Z.useEffect(()=>{let r=null;return t?.type==="loading"?(i(!0),r=setTimeout(()=>{i(!1)},300)):i(!t),()=>{r&&clearTimeout(r)}},[t]),l},TC=()=>{const t=gl(),l=Lt(h=>h.chat.sourceInfos),i=dy(),r=Z.useRef(null),o=wC(l);Z.useEffect(()=>{r.current&&l?.type==="loading"&&(i?r.current.showModal():(r.current.setAttribute("open","true"),r.current?.focus()))},[l,i]);const f=Z.useCallback(()=>{r.current&&(i?r.current.close():r.current.removeAttribute("open"),t(M3()))},[t,i]),{ref:d,dragOffsetY:g}=EC({onClose:f,sourceInfos:l});return l?b.jsx("dialog",{ref:r,className:se(yn.sourceInfos,o?yn.waitForLoading:l.type==="loading"?yn.loadingContent:""),style:i&&g?{transform:`translateY(${g}px)`}:{},onClose:f,autoFocus:!0,role:"dialog","aria-labelledby":"source-info-title",children:o?null:b.jsxs(b.Fragment,{children:[b.jsx(Q8,{ref:d,tabIndex:-1,sourceInfos:l.type==="loaded"?l:void 0,onClose:f}),l.type==="loading"?b.jsx(SC,{}):l.type==="loading-error"?b.jsx(_C,{}):b.jsxs(b.Fragment,{children:[b.jsx(X8,{loading:!l.highlighted}),b.jsx(bC,{sourceInfos:l})]})]})}):null},AC="_container_1aof3_1",CC="_body_1aof3_7",xC="_intro_1aof3_14",OC="_footer_1aof3_39",DC="_footnote_1aof3_43",RC="_containerWithFootnote_1aof3_58",NC="_startChatButton_1aof3_73",MC="_spinner_1aof3_88",kC="_formFields_1aof3_92",LC="_formField_1aof3_92",zC="_radio_1aof3_104",jC="_checkbox_1aof3_111",BC="_input_1aof3_119",UC="_inputLabel_1aof3_153",HC="_selectWrapper_1aof3_157",IC="_select_1aof3_157",VC="_selectLabel_1aof3_203",vn={container:AC,body:CC,intro:xC,footer:OC,footnote:DC,containerWithFootnote:RC,startChatButton:NC,spinner:MC,formFields:kC,formField:LC,radio:zC,checkbox:jC,input:BC,inputLabel:UC,selectWrapper:HC,select:IC,selectLabel:VC},QC=({name:t,label:l,defaultValue:i,required:r,onChange:o})=>{const f=d=>{o(d.currentTarget.checked?"true":"false")};return b.jsxs("label",{className:se(vn.checkbox,"chat__startScreen__checkbox"),htmlFor:t,children:[b.jsx("input",{type:"checkbox",id:t,name:t,defaultChecked:i==="true",required:r,onChange:f}),b.jsx("div",{children:l})]})},XC=({type:t,name:l,label:i,defaultValue:r,placeholder:o,required:f,multiple:d,min:g,max:h,pattern:p,onChange:v})=>{const S=y=>{v(y.target.value)};return b.jsxs("label",{className:se(vn.input,"chat__startScreen__input"),htmlFor:l,children:[b.jsx("div",{className:se(vn.inputLabel),children:i}),b.jsx("input",{type:t,id:l,name:l,defaultValue:r,placeholder:o,required:f,multiple:d,min:g,max:h,pattern:p,onChange:S})]})},GC=({name:t,value:l,label:i,defaultChecked:r,required:o,onChange:f})=>{const d=`${t}-${l}`,g=h=>{f(h.target.value)};return b.jsxs("label",{className:se(vn.radio,"chat__startScreen__radio"),htmlFor:d,children:[b.jsx("input",{id:d,type:"radio",name:t,value:l,defaultChecked:r,required:o,onChange:g}),b.jsx("span",{className:se(vn.label),children:i})]})},ZC=({name:t,label:l,defaultValue:i,required:r,multiple:o,options:f,onChange:d})=>{const g=h=>{d(h.target.value)};return b.jsxs("label",{className:se(vn.select,"chat__startScreen__select"),htmlFor:t,children:[b.jsx("div",{className:se(vn.selectLabel),children:l}),b.jsx("div",{className:se(vn.selectWrapper),children:b.jsx("select",{id:t,name:t,defaultValue:i,required:r,multiple:o,onChange:g,children:Object.entries(f||{}).map(([h,p])=>b.jsx("option",{value:h,selected:p===i,children:p}))})})]})},FC="start-screen.intro",YC="start-screen.start-chat",KC="start-screen.waiting-for-login",JC="start-screen.footnote",xa="start-screen.form",Rv=`${xa}.fields`,PC=()=>{const t=Mt(),l=gl(),i=Ap(),r=Lt(A=>A.startScreen.loginRequestToken),o=Lt(A=>A.settings.requiresUserAuthentication);Z.useEffect(()=>{let A;if(r){const x=window.screenX+(window.outerWidth-600)/2,C=window.screenY+(window.outerHeight-700)/2,D=window.open(`/${i}/auth/login?loginRequestToken=${r}`,"Login",`width=600,height=700,left=${x},top=${C},resizable=yes,scrollbars=yes`);A=setInterval(()=>{D?.closed&&(l(O3()),clearInterval(A))},500)}return()=>{A&&clearInterval(A)}},[i,r,l]);const[f,d]=Z.useState({}),g=()=>{const A=Object.entries(f).reduce((_,[w,x])=>({..._,[w]:x.value}),{});l(o?x3({loginRequestToken:wu(),formValues:A}):T3({formValues:A}))},h=t(FC),p=t(r?KC:YC),v=t(JC),S=Z.useMemo(()=>t(Rv)?.split(";").map(A=>A.trim())??[],[t(Rv)]);Z.useEffect(()=>{S.length&&Object.keys(f).length===0&&d(S.reduce((A,_)=>({...A,[_]:WC(_,t)}),{}))},[t,S,f]);const y=A=>{A.preventDefault(),g()},T=A=>_=>{d(w=>({...w,[A]:{...w[A],value:_}}))};return b.jsxs("form",{onSubmit:y,className:se(vn.container,v&&vn.containerWithFootnote,"chat__startScreen"),children:[b.jsxs("div",{className:se(vn.body,"chat__startScreen__body"),children:[h&&b.jsx("div",{className:se(vn.intro,"chat__startScreen__intro"),children:b.jsx(cl,{options:{overrides:{a:Nv}},children:h})}),b.jsx("div",{className:se(vn.formFields,"chat__startScreen__fields"),children:Object.values(f).map(({type:A,name:_,label:w,placeholder:x,defaultValue:C,options:D,required:k,multiple:U,min:H,max:L,pattern:Y})=>b.jsx("div",{className:se(vn.formField,"chat__startScreen__field"),children:(()=>{switch(A){case"radio":return b.jsxs(b.Fragment,{children:[b.jsx("div",{children:w}),Object.entries(D||{}).map(([X,W])=>b.jsx(GC,{name:_,value:X,label:W,defaultChecked:X===C,required:k,onChange:T(_)},X))]});case"checkbox":return b.jsx(QC,{name:_,label:w,defaultValue:C,required:k,onChange:T(_)});case"select":return b.jsx(ZC,{name:_,label:w,defaultValue:C,required:k,multiple:U,options:D,onChange:T(_)});default:return b.jsx(XC,{type:A,name:_,label:w,placeholder:x,defaultValue:C,required:k,multiple:U,min:H,max:L,pattern:Y,onChange:T(_)})}})()},_))})]}),b.jsxs("div",{className:se(vn.footer,"chat__startScreen__footer"),children:[b.jsxs(Fu,{type:"submit",className:vn.startChatButton,disabled:!!r,children:[!!r&&b.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",className:vn.spinner,children:b.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"})}),b.jsx("div",{children:p})]}),v&&b.jsx("div",{className:vn.footnote,children:b.jsx(cl,{options:{overrides:{a:Nv}},children:v})})]})]})},Nv=({title:t,href:l,children:i})=>b.jsx("a",{href:l,title:t,target:"_blank",rel:"noopener noreferrer",children:i}),WC=(t,l)=>{const i=l(`${xa}.${t}.type`)||"text",r=l(`${xa}.${t}.required`)==="true",o=l(`${xa}.${t}.multiple`)==="true",f=l(`${xa}.${t}.placeholder`),d=l(`${xa}.${t}.label`)||"",g=l(`${xa}.${t}.defaultValue`),h=l(`${xa}.${t}.min`),p=l(`${xa}.${t}.max`),v=l(`${xa}.${t}.pattern`),S=qC(l(`${xa}.${t}.options`));return{name:t,label:d,placeholder:f,value:$C(i,g,S)||"",defaultValue:g,options:S,type:i,required:r,multiple:o,min:h,max:p,pattern:v}},$C=(t,l,i)=>l||t==="select"&&Object.keys(i)[0]||"",qC=(t="")=>t.split(";").map(l=>l.trim()).reduce((l,i)=>{const[r,o]=i.split(":").map(f=>f.trim());return{...l,[r]:o}},{}),ex=()=>{const t=Lt(l=>l.intl.locale);Z.useEffect(()=>{window.document.documentElement.lang=t},[t])},qi={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"},tx=({clientName:t})=>{ex();const l=gl(),i=Lt(v=>v.intl.messages),r=Mt(),o=Lt(v=>v.settings.enableStartScreen),f=Lt(v=>v.startScreen.startScreenStatus),d=Lt(v=>v.connection.queryString),g=Z.useMemo(()=>new URLSearchParams(d||"?").get("cssClassName"),[d]);Z.useEffect(()=>{const v=new URLSearchParams(d||""),S=Object.fromEntries(v.entries()),y=T=>{switch(T.data.type){case qi.TRIGGER_ACTION:l(T.data.action);break;case qi.TRIGGER_STORY:l(ob(T.data.story));break;case qi.ON_CHAT_WINDOW_OPEN:l({type:"webclient.chatwindow.opened"});break;case qi.ON_CHAT_WINDOW_CLOSE:l({type:"webclient.chatwindow.closed"});break;case qi.CHAT_MESSAGE_FROM_GUEST:l(ab(T.data.text));break;case qi.RESTART_CHAT:l(ks());break}};return l(L3(t,S)),window.addEventListener("message",T=>y(T),!1),()=>window.removeEventListener("message",y)},[t,d,l]),Z.useEffect(()=>{const v=r("page.title");v&&document&&(document.title=v)},[i,r]);const h=o===void 0,p=o===!1||f==="HIDDEN";return b.jsx("div",{className:se(Sv.chatwindow,p&&Sv.chatwindowWithAside,"chat__chatwindow",g),children:h?null:p?b.jsxs(b.Fragment,{children:[b.jsx("header",{children:b.jsx(_v,{chatStarted:!0})}),b.jsx("main",{children:b.jsx(r8,{clientName:t})}),b.jsx("aside",{children:b.jsx(TC,{})})]}):b.jsxs(b.Fragment,{children:[b.jsx("header",{children:b.jsx(_v,{chatStarted:!1})}),b.jsx("main",{children:b.jsx(PC,{})})]})})},nx=()=>{const t=Ap(),l=dy();return b.jsx("div",{className:se([sE.app,l?"chat__small":"chat__large"]),children:b.jsx(tx,{clientName:t})})},vy={"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.reaction.good":"Gefällt mir","bot-bubble.reaction.bad":"Gefällt mir nicht","bot-bubble.reaction.remove":"Markierung entfernen","bot-bubble.reaction.say-more":"Erzähle mir bitte mehr","bot-bubble.reaction.category.WRONG_INFORMATION":"Falsch","bot-bubble.reaction.category.MISSING_INFORMATION":"Unvollständig","bot-bubble.reaction.category.OLD_INFORMATION":"Veraltet","bot-bubble.reaction.category.UNCLEAR":"Unklar","bot-bubble.reaction.category.OFF_TOPIC":"Nicht zur Frage passend","bot-bubble.reaction.comment":"Gedanken mit mir teilen...","bot-bubble.reaction.close":"Schliessen","bot-bubble.copy":"Kopieren","bot-bubble.sources":"Quellenliste","bot-bubble.source.open":"Quelle öffnen","agent-bubble.label":"Nachricht des Live-Agenten","export-transcript.email.title":"Chatverlauf per E-Mail versenden","export-transcript.email.description":"Bitte E-Mail-Adresse angeben, an die der Chatverlauf gesendet werden soll.","export-transcript.email.cancel":"Abbrechen","export-transcript.email.send":"Senden","export-transcript.email.placeholder":"E-Mail-Adresse","export-transcript.email.invalid":"Bitte gültige E-Mail-Adresse eingeben.","export-transcript.email.success":"Der Chatverlauf wurde an die hinterlegte E-Mail-Adresse übermittelt.","general-conditions.header":"**Nutzungsbedingungen**","general-conditions.body":`Bitte berücksichtigen Sie die folgenden Punkte:
116
+ `}let S=Ep(h?g:v,{inline:h,refs:d},p);return $w(S,{...p,forceInline:h})}let d={};return f(t)}var qw=({children:t,options:l,...i})=>ny(t??"",{...l,wrapperProps:{...l?.wrapperProps,...i}}),cl=qw;const eT="_generalConditionsContainer_55hjg_1",tT="_generalConditions_55hjg_1",nT="_generalConditionsHeader_55hjg_15",aT="_generalConditionsBody_55hjg_26",lT="_generalConditionsAccept_55hjg_35",is={generalConditionsContainer:eT,generalConditions:tT,generalConditionsHeader:nT,generalConditionsBody:aT,generalConditionsAccept:lT},iT=()=>b.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"currentColor",viewBox:"0 0 256 256",children:b.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"})}),rT=()=>b.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",fill:"currentColor",viewBox:"0 0 256 256",children:b.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"})}),sT="general-conditions.header",oT="general-conditions.body",fv="general-conditions.accept-conditions-note",uT=()=>{const t=Mt(),[l,i]=Z.useState(!1),r=()=>i(!l),o=g=>{g.key==="ArrowDown"||g.key==="ArrowRight"?i(!0):g.key==="ArrowUp"||g.key==="ArrowLeft"||g.key==="Escape"?i(!1):(g.key==="Enter"||g.key==="Space"||g.key===" ")&&r()},f=t(sT),d=t(fv);return b.jsxs("div",{className:se(is.generalConditionsContainer,"chat__generalConditions"),children:[!!f?.length&&b.jsxs("div",{className:is.generalConditions,children:[b.jsxs("div",{role:"button",onClick:r,onKeyDown:o,tabIndex:0,className:se(is.generalConditionsHeader,"chat__generalConditions__header"),"aria-controls":"general-conditions-body","aria-expanded":l?"true":"false","aria-pressed":l?"true":"false",children:[b.jsx(cl,{children:f}),l?b.jsx(rT,{}):b.jsx(iT,{})]}),b.jsx("div",{className:se(is.generalConditionsBody,"chat__generalConditions__body"),id:"general-conditions-body",role:"region",tabIndex:-1,children:l&&b.jsx(cl,{children:t(oT)||""})})]}),!!d?.length&&b.jsx("div",{className:se(is.generalConditionsAccept,"chat__generalConditions__accept"),tabIndex:0,children:b.jsx(cl,{children:t(fv)||""})})]})},cT="_messageContainer_1rxi5_1",fT="_message_1rxi5_1",dT="_messageBot_1rxi5_14",hT="_messageBotLast_1rxi5_45",pT="_avatar_1rxi5_45",gT="_messageBotFirst_1rxi5_54",mT="_messageBotAnimated_1rxi5_67",vT="_messageGuest_1rxi5_78",bT="_messageGuestFirst_1rxi5_84",yT="_messageGuestLast_1rxi5_90",_T="_botAvatar_1rxi5_104",ST="_agentAvatar_1rxi5_108",ET="_bubble_1rxi5_112",wT="_bubbleContent_1rxi5_118",TT="_bubbleLeft_1rxi5_132",AT="_leftText_1rxi5_143",CT="_bubbleRight_1rxi5_150",xT="_rightText_1rxi5_160",OT="_sourceInfoReference_1rxi5_192",DT="_sourceInfoReferenceActive_1rxi5_204",ke={messageContainer:cT,message:fT,messageBot:dT,messageBotLast:hT,avatar:pT,messageBotFirst:gT,messageBotAnimated:mT,messageGuest:vT,messageGuestFirst:bT,messageGuestLast:yT,botAvatar:_T,agentAvatar:ST,bubble:ET,bubbleContent:wT,bubbleLeft:TT,leftText:AT,bubbleRight:CT,rightText:xT,sourceInfoReference:OT,sourceInfoReferenceActive:DT},wp=(t,l)=>{Z.useEffect(()=>{const i=r=>{t.current&&!t.current.contains(r.target)&&l()};return document.addEventListener("mousedown",i),()=>document.removeEventListener("mousedown",i)},[t,l])};function RT(t,l){let i=null,r=null;const o=(...f)=>{r=f,i&&clearTimeout(i),i=setTimeout(()=>{t(...r),i=null,r=null},l)};return o.flush=()=>{i&&r&&(clearTimeout(i),t(...r),i=null,r=null)},o}function NT(t,l){let i=0,r=null;return((...o)=>{const f=Date.now(),d=f-i;d>=l?(i=f,t(...o)):(r&&clearTimeout(r),r=setTimeout(()=>{i=Date.now(),t(...o)},l-d))})}const MT="_container_131ib_1",kT="_categoryContainer_131ib_13",LT="_categoryButton_131ib_20",zT="_active_131ib_35",jT="_commentTextarea_131ib_44",rs={container:MT,categoryContainer:kT,categoryButton:LT,active:zT,commentTextarea:jT},BT=(t,l,i)=>{Z.useEffect(()=>{if(t){const r=()=>{const f=["button:not([disabled])","textarea:not([disabled])",'[tabindex]:not([tabindex="-1"])',"a[href]","input:not([disabled])","select:not([disabled])"].join(","),d=l.current?Array.from(l.current.querySelectorAll(f)):[],g=i.current?Array.from(i.current.querySelectorAll(f)):[];return[...d,...g]},o=f=>{if(f.key==="Tab"){const d=r();if(d.length>0){const g=d[0],h=d[d.length-1],p=document.activeElement;!f.shiftKey&&p===h?(f.preventDefault(),g.focus()):f.shiftKey&&p===g&&(f.preventDefault(),h.focus())}}};return document.addEventListener("keydown",o,!0),()=>{document.removeEventListener("keydown",o,!0)}}},[t,l,i])},UT=({open:t,actionsRef:l,reaction:i,onReaction:r})=>{const o=Mt(),f=Z.useRef(null),d=RT(p=>{r({...i,comment:p})},300);Z.useEffect(()=>()=>d.flush(),[d]),BT(t,l,f);const g=p=>{r({...i,category:i.category===p?void 0:p})},h=p=>d(p.target.value);return t?b.jsxs("div",{ref:f,className:rs.container,role:"dialog","aria-modal":"true","aria-labelledby":"bad-reaction-title",children:[b.jsx("h2",{id:"bad-reaction-title",children:o("bot-bubble.reaction.say-more")}),b.jsx("div",{className:rs.categoryContainer,role:"radiogroup",children:["WRONG_INFORMATION","MISSING_INFORMATION","OLD_INFORMATION","UNCLEAR","OFF_TOPIC"].map(p=>b.jsx("button",{className:se(rs.categoryButton,i?.category===p&&rs.active),onClick:()=>g(p),"aria-pressed":i?.category===p,"aria-label":o(`bot-bubble.reaction.category.${p}`),tabIndex:0,role:"radio",children:o(`bot-bubble.reaction.category.${p}`)},p))}),b.jsx("textarea",{id:"comment",name:"comment",placeholder:o("bot-bubble.reaction.comment"),defaultValue:i?.comment,onChange:h,className:rs.commentTextarea,rows:3,"aria-label":o("bot-bubble.reaction.comment")})]}):null},HT="_botMessageActionContainer_18fjb_1",IT="_alwaysVisible_18fjb_15",VT="_active_18fjb_19",QT="_botMessageActionInnerContainer_18fjb_27",XT="_header_18fjb_52",GT="_botMessageActions_18fjb_57",ZT="_reported_18fjb_68",FT="_action_18fjb_72",YT="_wave_18fjb_86",KT="_anyReport_18fjb_156",JT="_closeButton_18fjb_172",Vt={botMessageActionContainer:HT,alwaysVisible:IT,active:VT,botMessageActionInnerContainer:QT,header:XT,botMessageActions:GT,reported:ZT,action:FT,wave:YT,anyReport:KT,closeButton:JT},PT=({isSubmitting:t,onClick:l})=>{const i=Mt();return b.jsx("button",{className:se(Vt.action,Vt.closeButton,"tooltip--bottom-left"),"aria-label":i("bot-bubble.reaction.close"),"data-title":i("bot-bubble.reaction.close"),tabIndex:0,onClick:l,children:b.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",children:t?b.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"}):b.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"})})})},WT=({alwaysVisible:t,senderType:l,reaction:i,botMessageRef:r,message:o,animated:f,onReaction:d})=>{const g=Mt(),[h,p]=Z.useState(!1),[v,S]=Z.useState(!1),[y,T]=Z.useState(!1),A=Z.useRef(null),_=Z.useRef(null);wp(A,()=>{T(!1)});const w=H=>{H.key==="Escape"&&T(!1)};Z.useEffect(()=>(document.addEventListener("keydown",w),()=>{document.removeEventListener("keydown",w)}),[]),Z.useEffect(()=>{y&&A.current?.scrollIntoView({behavior:"smooth",block:"nearest",inline:"nearest"})},[y]);const x=H=>{_.current&&clearTimeout(_.current),S(!0),d(H),_.current=setTimeout(()=>{S(!1)},1e3)},C=Z.useCallback(async()=>{if(r.current)try{p(!0);const H=r.current.innerHTML,L=r.current.innerText;await navigator.clipboard.write([new ClipboardItem({"text/html":new Blob([H],{type:"text/html"}),"text/plain":new Blob([L],{type:"text/plain"})})]),await new Promise(Y=>setTimeout(Y,1500))}finally{p(!1)}},[r]),D=()=>{T(!1),d(i?.type==="GOOD"?null:{type:"GOOD"})},k=()=>{d({...o.reaction,type:"BAD"}),T(!y)},U=H=>L=>{(L.key==="Enter"||L.key===" ")&&H()};return b.jsx("div",{ref:A,className:se(Vt.botMessageActionContainer,t&&Vt.alwaysVisible,y&&Vt.active),children:b.jsxs("div",{className:se(Vt.botMessageActionInnerContainer,t&&Vt.alwaysVisible,y&&Vt.active,i&&Vt.reported),role:"group",children:[b.jsxs("div",{className:Vt.header,children:[b.jsxs("div",{className:se(Vt.botMessageActions,i&&Vt.reported),children:[l===Nu.BOT&&b.jsx("button",{className:se(Vt.action,f&&Vt.wave,i?.type&&Vt.anyReport,i?.type==="GOOD"&&Vt.reported,"tooltip--top-right"),tabIndex:0,"aria-label":g(i?.type==="GOOD"?"bot-bubble.reaction.remove":"bot-bubble.reaction.good"),"aria-pressed":i?.type==="GOOD","data-title":g(i?.type==="GOOD"?"bot-bubble.reaction.remove":"bot-bubble.reaction.good"),onPointerDown:D,onKeyDown:U(D),children:b.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",children:i?.type==="GOOD"?b.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"}):b.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"})})}),l===Nu.BOT&&b.jsx("button",{className:se(Vt.action,f&&Vt.wave,i?.type&&Vt.anyReport,i?.type==="BAD"&&Vt.reported,"tooltip--top-right"),tabIndex:0,"aria-label":g("bot-bubble.reaction.bad"),"aria-pressed":i?.type==="BAD","data-title":g("bot-bubble.reaction.bad"),onPointerDown:k,onKeyDown:U(k),children:b.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",children:i?.type==="BAD"?b.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"}):b.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"})})}),b.jsx("button",{className:se(Vt.action,f&&Vt.wave,"tooltip--top-right"),style:{visibility:y?"hidden":"visible"},tabIndex:0,"aria-label":g("bot-bubble.copy"),"data-title":g("bot-bubble.copy"),onClick:C,children:b.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",children:h?b.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"}):b.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"})})})]}),y&&b.jsx(PT,{isSubmitting:v,onClick:()=>T(!1)})]}),o.reaction&&b.jsx(UT,{open:y,actionsRef:A,reaction:o.reaction,onReaction:x})]})})},ay=Z.forwardRef(({message:t,isAnimated:l,isFirstMessage:i,isLastMessage:r,isFirstMessageBySender:o,isLastMessageBySender:f,children:d,onReaction:g},h)=>{const p=Mt(),v=Z.useRef(null),S=t.sender.type===hl.BOT;return b.jsxs("li",{ref:h,className:se(ke.message,ke.messageBot,r&&ke.lastMessage,o&&ke.messageBotFirst,f&&ke.messageBotLast,"chat__bubbleContainer",l&&ke.messageBotAnimated,l&&"chat__bubbleContainer--animated",S?"chat__botBubbleContainer":"chat__agentBubbleContainer",o&&"chat__bubbleContainer--first",f&&"chat__bubbleContainer--last"),children:[b.jsx("img",{className:se(ke.avatar,S?ke.botAvatar:ke.agentAvatar,"chat__avatar",S?"chat__botAvatar":"chat__agentAvatar"),src:`${t.sender.avatar}`,alt:S?"Bot":"Agent",referrerPolicy:"no-referrer"}),b.jsxs("div",{className:ke.messageContainer,children:[b.jsx("div",{ref:v,className:se(ke.bubble,ke.bubbleLeft,"chat__bubble",S?"chat__botBubble":"chat__agentBubble"),tabIndex:0,"aria-label":p(S?"bot-bubble.label":"agent-bubble.label"),children:b.jsx("div",{className:se(ke.leftText),children:d})}),g&&b.jsx(WT,{alwaysVisible:r&&f,senderType:t.sender.type,reaction:t.reaction,message:t,botMessageRef:v,animated:i,onReaction:g})]})]})}),$T="_sourceList_1sc0q_1",qT="_source_1sc0q_1",e6="_label_1sc0q_39",Hd={sourceList:$T,source:qT,label:e6},ly=t=>b.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",...t,children:b.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"})}),iy=t=>b.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",...t,children:b.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"})}),ry=t=>b.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",...t,children:b.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"})}),sy=t=>b.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",...t,children:b.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"})}),t6=({type:t,...l})=>{switch(t){case"WEBSITE":return b.jsx(sy,{...l});case"PDF":return b.jsx(ry,{...l});case"DOCX":return b.jsx(ly,{...l});default:return b.jsx(iy,{...l})}},Tp=({sources:t,onLinkClick:l})=>{const i=Mt(),r=f=>()=>{l(f.url)},o=f=>d=>{(d.key==="Enter"||d.key===" ")&&l(f.url)};return t.length?b.jsx("ul",{className:Hd.sourceList,"aria-label":i("bot-bubble.sources"),children:t.map(f=>b.jsx("li",{className:Hd.source,children:b.jsxs("a",{role:"button",tabIndex:0,"aria-label":`${i("bot-bubble.source.open")}: ${f.label}`,onClick:r(f),onKeyDown:o(f),children:[b.jsx(t6,{type:f.type,"aria-hidden":"true"}),b.jsx("div",{className:Hd.label,children:f.label})]})},f.url))}):null},n6="_button_3ui4g_1",a6="_buttonDefault_3ui4g_13",l6="_buttonPrimary_3ui4g_28",Rs={button:n6,buttonDefault:a6,buttonPrimary:l6},oc=({className:t,children:l,...i})=>b.jsx("button",{className:se(Rs.button,t),type:"button",role:"button",...i,children:l}),i6="_title_137pi_1",r6="_buttons_137pi_6",s6="_button_137pi_6",o6="_imageContainer_137pi_29",u6="_image_137pi_29",c6="_video_container_137pi_44",f6="_video_137pi_44",d6="_only_137pi_58",sa={title:i6,buttons:r6,button:s6,imageContainer:o6,image:u6,video_container:c6,video:f6,only:d6},h6=({buttons:t,onButtonClick:l})=>b.jsx("div",{className:se(sa.buttons,"chat__bubbleButtons"),children:t.map((i,r)=>b.jsx(oc,{className:se(sa.button,"chat__bubbleButton"),onClick:()=>l(i),children:i.title},r))}),dv="newtab#",oy=({markdown:t,markdownOptions:l={},onLinkClick:i})=>{const r=f=>d=>(d.preventDefault(),f&&i(f),!1),o=({title:f,href:d,children:g})=>d.indexOf(dv)===0?b.jsx("a",{href:d.slice(dv.length),title:f,target:"_blank",rel:"noopener noreferrer",children:g}):b.jsx("a",{onClick:r(d),title:f,href:d,children:g});return b.jsx(cl,{options:{...l,overrides:{a:o}},children:t})},p6=({text:t,onLinkClick:l})=>t?b.jsx("div",{children:b.jsx(oy,{markdown:t,onLinkClick:l})}):null,g6=({title:t})=>t?b.jsx("h1",{className:sa.title,children:t}):null,m6=({title:t,text:l,buttons:i,onButtonClick:r,onLinkClick:o})=>t?.length||l?.length||i?.length?b.jsxs("div",{className:se(ke.bubbleContent),children:[b.jsx(g6,{title:t}),b.jsx(p6,{text:l,onLinkClick:o}),b.jsx(h6,{buttons:i,onButtonClick:r})]}):null,v6=({alt:t,imageUrl:l,itemUrl:i,hasBody:r})=>l?i?i.indexOf("youtube.com")>-1?b.jsx("div",{className:sa.video_container,children:b.jsx("iframe",{className:se(sa.video,{[sa.only]:!r}),title:"Youtube",width:"100%",src:i+"?rel=0",frameBorder:"0",allowFullScreen:!0})}):b.jsx("a",{href:i,target:"_blank",rel:"noopener noreferrer",children:b.jsx("div",{className:sa.imageContainer,children:b.jsx("img",{className:se(sa.image,{[sa.only]:!r}),src:l,alt:t})})}):b.jsx("div",{className:sa.imageContainer,children:b.jsx("img",{className:se(sa.image,{[sa.only]:!r}),src:l,alt:t})}):null,b6=({title:t,text:l,imageUrl:i,itemUrl:r,buttons:o,sources:f,onButtonClick:d,onLinkClick:g})=>{const h=!!t?.length||!!l?.length||!!o?.length;return b.jsxs("div",{className:se(sa.detailMessage),children:[b.jsx(v6,{hasBody:h,imageUrl:i,itemUrl:r,alt:t||""}),h&&b.jsx(m6,{title:t,text:l,buttons:o,onLinkClick:g,onButtonClick:d}),b.jsx(Tp,{sources:f,onLinkClick:g})]})},y6=Z.forwardRef(({isFirstMessageBySender:t,isLastMessageBySender:l,children:i},r)=>{const o=Mt();return b.jsx("li",{ref:r,className:se(ke.message,ke.messageGuest,t&&ke.messageGuestFirst,l&&ke.messageGuestLast,"chat__bubbleContainer","chat__guestBubbleContainer",t&&"chat__bubbleContainer--first",l&&"chat__bubbleContainer--last"),children:b.jsx("div",{className:se(ke.bubble,ke.bubbleRight,"chat__bubble","chat__guestBubble"),tabIndex:0,"aria-label":o("guest-bubble.label"),children:b.jsx("div",{className:se(ke.rightText),children:i})})})}),Ap=()=>Z.useMemo(()=>Fh(),[]),_6="_markdown_nw7vg_1",uy={markdown:_6},au="source-info-reference",S6=({actionId:t,markdown:l,sources:i,onLinkClick:r})=>{const o=Ap(),f=gl(),d=E6(),g=Lt(v=>{const S=v.chat.sourceInfos;if(S?.type==="loaded"||S?.type==="loading")return S.chunkId}),h=v=>S=>{const y=S.key;(y==="ArrowDown"||y==="ArrowRight"||y==="Enter"||y===" "||y==="Space")&&(S.stopPropagation(),f(G1(o,t,v)))},p=v=>()=>{f(G1(o,t,v))};return Z.useLayoutEffect(()=>{document.querySelectorAll(`.${au}`).forEach(v=>{const S=v.previousSibling;S&&S.nodeType===Node.TEXT_NODE&&S.textContent?.endsWith(" ")&&S.textContent?.trim().length&&v.classList.add(`${au}--before-space`);const y=v.nextSibling;y&&y.nodeType===Node.TEXT_NODE&&y.textContent?.startsWith(" ")&&y.textContent?.trim().length&&v.classList.add(`${au}--after-space`)})},[l]),b.jsxs("div",{className:ke.bubbleContent,children:[b.jsx("div",{className:uy.markdown,children:b.jsx(oy,{markdown:l,onLinkClick:r,markdownOptions:{renderRule(v,S,y,T){if(S.type===V.footnoteReference){const A=S.text===g;return b.jsx("span",{className:se(ke.sourceInfoReference,A&&ke.sourceInfoReferenceActive,au),children:b.jsx("a",{type:"button",tabIndex:0,onClick:p(S.text),onKeyDown:h(S.text),children:d(S.text)})},T.key)}return v()}}})}),b.jsx(Tp,{sources:i,onLinkClick:r})]})},E6=()=>{const t=[];return i=>{const r=t.indexOf(i);return r>-1?r+1:(t.push(i),t.length)}},w6="_text_gp0s0_1",T6="_command_gp0s0_5",hv={text:w6,command:T6},A6=({text:t,commands:l=[]})=>{const i=l.find(o=>t.startsWith(`/${o}`)),r=i?t.slice(i.length+1):t;return b.jsxs("div",{children:[i&&b.jsxs("code",{className:hv.command,children:["/",i]}),r.split(`
117
+ `).map((o,f)=>b.jsxs("span",{className:hv.text,children:[o,b.jsx("br",{})]},f))]})},C6=({text:t,commands:l,sources:i,onLinkClick:r})=>b.jsxs("div",{className:ke.bubbleContent,children:[b.jsx(A6,{text:t,commands:l}),b.jsx(Tp,{sources:i,onLinkClick:r})]}),x6=Z.forwardRef(({message:t,commands:l,isFirstMessage:i,isLastMessage:r,isFirstMessageBySender:o,isLastMessageBySender:f,onReaction:d,onButtonClick:g,onLinkClick:h},p)=>{const v=O6(t._id,t,l,g,h),S=y=>{d(t._id,y)};switch(t.sender.type){case hl.GUEST:return b.jsx(y6,{ref:p,isFirstMessageBySender:o,isLastMessageBySender:f,children:v});default:return b.jsx(ay,{ref:p,message:t,isAnimated:!1,isFirstMessage:i,isLastMessage:r,isFirstMessageBySender:o,isLastMessageBySender:f,onReaction:S,children:v})}}),O6=(t,l,i,r,o)=>{switch(l.type){case ar.TEXT:{const f=l;return b.jsx(C6,{text:f.text,commands:i,sources:l.sources||[],onLinkClick:o})}case ar.DETAIL:{const f=l;return b.jsx(b6,{title:f.title,text:f.text,imageUrl:f.imageUrl,itemUrl:f.itemUrl,buttons:f.buttons,sources:l.sources||[],onButtonClick:r,onLinkClick:o})}case ar.MARKDOWN:{const f=l;return b.jsx(S6,{actionId:t,markdown:f.markdown,sources:f.sources||[],onLinkClick:o})}}},D6=(t,l)=>t.message._id===l.message._id&&t.message.reaction===l.message.reaction&&t.isFirstMessage===l.isFirstMessage&&t.isLastMessage===l.isLastMessage&&t.isFirstMessageBySender===l.isFirstMessageBySender&&t.isLastMessageBySender===l.isLastMessageBySender,R6=Vv.memo(x6,D6),N6="_ticontainer_xg0dn_1",M6="_tiblock_xg0dn_5",k6="_tidot_xg0dn_12",ss={ticontainer:N6,tiblock:M6,tidot:k6},L6=({isTyping:t=!1})=>b.jsx("div",{className:ss.ticontainer,children:b.jsx("div",{className:ss.tiblock,children:t?b.jsxs(b.Fragment,{children:[b.jsx("div",{className:se(ss.tidot,"chat__typingIndicator")}),b.jsx("div",{className:se(ss.tidot,"chat__typingIndicator")}),b.jsx("div",{className:se(ss.tidot,"chat__typingIndicator")})]}):null})}),z6=Object.assign({_id:"typing-indicator"},new Ju("",new mE)),j6=({messages:t,isBotTyping:l,commands:i,onTranscriptItemReaction:r,onButtonClick:o,onLinkClick:f})=>{const d=Z.useRef(0),g=Z.useRef(!0),h=Z.useRef(null),p=Z.useRef(null),v=Z.useRef(null),S=Lt(A=>A.settings.enableGeneralConditions);Z.useLayoutEffect(()=>{if(t.length&&h.current&&(d.current<t.length||l)){if(p.current){const A=p.current.offsetTop;h.current.scrollTop=A}else if(v.current){const A=v.current.offsetTop;h.current.scrollTop=A}g.current&&(g.current=!1),d.current=t.length}},[t,g,l]);let y;const T=t.length;return b.jsxs("div",{ref:h,className:se(F1.messageContainer,"chat__messageContainer"),style:{scrollBehavior:t.length&&g.current?"auto":"smooth"},id:"MessageContainer",role:"log","aria-live":"polite",children:[S&&b.jsx(uT,{}),b.jsxs("ul",{className:F1.messages,children:[t.map((A,_)=>{const w=B6(A,y),x=U6(A,_,t,l);y=A.sender.type;const C=_+1===T,D=_===0,k=A._id||`added-${_}`;return b.jsx(R6,{ref:C?v:null,message:A,commands:i,isFirstMessage:D,isLastMessage:C,isFirstMessageBySender:w,isLastMessageBySender:x,onButtonClick:o,onLinkClick:f,onReaction:r},C&&!l?"last":k)}),l&&b.jsx(ay,{ref:p,message:z6,isFirstMessage:!1,isLastMessage:!1,isAnimated:!0,isFirstMessageBySender:y!==hl.BOT,isLastMessageBySender:!0,children:b.jsx(L6,{isTyping:!0})},"last")]})]})},B6=(t,l)=>!l||l!==t.sender.type,U6=(t,l,i,r)=>{const o=t.sender.type,f=i.length;return l+1===f?!(o===hl.BOT&&r):o!==i.at(l+1)?.sender.type},H6="_bottomSheet_jp8dl_1",I6="_bottomSheetOpen_jp8dl_15",V6="_bottomSheetClose_jp8dl_20",fl={bottomSheet:H6,bottomSheetOpen:I6,bottomSheetClose:V6},Q6="_container_xc2nx_1",pv={container:Q6},X6=({contentUrl:t})=>{const l=Lt(f=>f.connection.sessionId),[i,r]=Z.useState(!1);Z.useEffect(()=>{r(f=>f||!!t)},[t]);const o=Z.useMemo(()=>{if(t&&l){const f=new URL(t,document.baseURI);return f.searchParams.set("sessionId",l),f.toString()}else return},[t,l]);return b.jsx("div",{className:se(pv.container,fl.bottomSheet,{[fl.bottomSheetOpen]:!!t,[fl.bottomSheetClose]:i&&!t}),children:o&&b.jsx("iframe",{title:"Drawer",id:"form-drawer",src:o,className:pv.iframe})})},G6="_container_vvbth_1",Z6={container:G6},F6=({title:t,href:l,children:i})=>b.jsx("a",{href:l,title:t,target:"_blank",rel:"noopener noreferrer",children:i}),Y6=()=>{const l=Mt()("powered-by");return l&&l.length?b.jsx("div",{className:se(Z6.container,"chat__poweredBy"),children:b.jsx(cl,{options:{overrides:{a:F6}},children:l})}):null},cy=({className:t,children:l,...i})=>b.jsx(oc,{className:se(Rs.buttonDefault,t),type:"button",...i,children:l}),Fu=({className:t,children:l,...i})=>b.jsx(oc,{className:se(Rs.buttonPrimary,t),...i,children:l}),K6="_container_h23mk_1",J6="_formContainer_h23mk_17",P6="_emailInput_h23mk_22",W6="_description_h23mk_52",$6="_actions_h23mk_57",q6="_validationError_h23mk_67",eA="_submitted_h23mk_74",oi={container:K6,formContainer:J6,emailInput:P6,description:W6,actions:$6,validationError:q6,submitted:eA},tA=({visible:t,onEmailExport:l,onClose:i})=>{const r=Mt(),[o,f]=Z.useState(void 0),[d,g]=Z.useState(!1),[h,p]=Z.useState(void 0),v=Z.useRef(null);Z.useEffect(()=>{t?(v.current?.focus(),g(!1),f(t)):o===!0&&f(!1)},[t,o]);const S=T=>{T.preventDefault(),h&&h.length>0&&(l(h),g(!0),setTimeout(i,3*1e3))},y=T=>{const A=T.target.value.trim(),_=/^\w+([.-]?\w+)*@\w+([.-]?\w+)*(\.\w{2,3})+$/.test(A);p(_?A:"")};return b.jsxs("div",{className:se(oi.container,fl.bottomSheet,{[fl.bottomSheetOpen]:o===!0,[fl.bottomSheetClose]:o===!1}),children:[b.jsx("h2",{children:r("export-transcript.email.title")}),b.jsx(cl,{className:oi.description,children:r("export-transcript.email.description")||""}),b.jsxs("form",{onSubmit:S,className:oi.formContainer,children:[b.jsxs("div",{children:[b.jsx("input",{disabled:d,ref:v,type:"email",placeholder:r("export-transcript.email.placeholder"),className:oi.emailInput,onChange:y}),h?.length===0?b.jsx("div",{className:oi.validationError,children:r("export-transcript.email.invalid")}):null]}),b.jsxs("div",{className:oi.actions,children:[b.jsx(cy,{onClick:i,children:r("export-transcript.email.cancel")}),b.jsx(Fu,{type:"submit",disabled:d||h===void 0||h.length===0,children:r("export-transcript.email.send")})]})]}),d&&b.jsx("div",{className:oi.submitted,children:r("export-transcript.email.success")})]})},nA="_inputContainer_fi5ao_1",aA={inputContainer:nA},lA="_blockUserInput_pot9c_1",iA={blockUserInput:lA},rA=({visible:t})=>{const l=Mt();return t?b.jsx("div",{className:se(iA.blockUserInput,"chat__blockUserInput"),children:l("block-user-input.title")}):null},sA="_commandsDropdown_fmklx_1",oA="_commands_fmklx_1",uA="_command_fmklx_1",cA="_commandActive_fmklx_49",lu={commandsDropdown:sA,commands:oA,command:uA,commandActive:cA},fA=(t,l,i,r,o)=>{Z.useEffect(()=>{const f=d=>{if(t.length)switch(d.key){case"Enter":i(t[l]);break;case"ArrowUp":r(g=>g>0?g-1:t.length-1);break;case"ArrowDown":r(g=>g<t.length-1?g+1:0);break;case"Escape":o([]);break}};return document.addEventListener("keydown",f),()=>{document.removeEventListener("keydown",f)}},[t,l,i,r,o])},dA=({text:t,commands:l,onSelectCommand:i,onVisibilityChange:r})=>{const o=Z.useRef(null),f=Mt(),[d,g]=Z.useState([]),[h,p]=Z.useState(gv(l)),[v,S]=Z.useState(0),y=T=>i(`/${T}`);return wp(o,()=>g([])),fA(d,v,y,S,g),Z.useEffect(()=>{p(gv(l))},[l]),Z.useEffect(()=>{const T=t.length||0;T===0||T>h||!t.startsWith("/")?g([]):g(l.filter(hA(t))),S(0)},[l,t,h]),Z.useEffect(()=>{r(!!d.length)},[d,r]),d.length?b.jsx("div",{ref:o,className:lu.commandsDropdown,children:b.jsx("ul",{id:"command-list",className:lu.commands,role:"listbox",children:d.map((T,A)=>b.jsxs("li",{className:se([lu.command,v===A&&lu.commandActive]),role:"option",onClick:()=>y(T),onMouseOver:()=>S(A),children:[b.jsxs("h1",{children:["/",T]}),b.jsx("p",{children:f(`commands.${T}`)})]},T))})}):null},gv=t=>Math.max(...t.map(l=>l.length+1)),hA=t=>l=>{const i=`/${l}`;return i.startsWith(t)&&i.length>=t.length},pA="_callToActionContainer_d8izj_1",gA="_callToActionTitle_d8izj_23",mA="_rateOverlay_d8izj_30",vA="_body_d8izj_52",bA="_footer_d8izj_60",yA="_actions_d8izj_75",_A="_bubbles_d8izj_89",SA="_stars_d8izj_191",EA="_starsSmall_d8izj_205",wA="_starsLarge_d8izj_211",TA="_star_d8izj_191",AA="_starReadonly_d8izj_225",CA="_starIcon_d8izj_235",xA="_starsDescriptionContainer_d8izj_253",OA="_starsDescription_d8izj_253",Vn={callToActionContainer:pA,callToActionTitle:gA,rateOverlay:mA,body:vA,footer:bA,actions:yA,bubbles:_A,stars:SA,starsSmall:EA,starsLarge:wA,star:TA,starReadonly:AA,starIcon:CA,starsDescriptionContainer:xA,starsDescription:OA},DA=({value:t,index:l,count:i,readonly:r,onHover:o,onClick:f})=>{const d=g=>{f&&g.key==="Enter"&&f()};return b.jsx("li",{className:se(Vn.star,{[Vn.starReadonly]:r},"chat__conversationRating__star"),children:b.jsx("div",{role:"radio","aria-checked":t>l?"true":"false","aria-posinset":l+1,"aria-setsize":i,tabIndex:0,onMouseOver:o,onKeyDown:d,onClick:f,children:b.jsx("span",{role:"img","aria-label":"Star",className:se(Vn.starIcon),children:b.jsx("svg",{viewBox:"64 64 896 896",focusable:"false","data-icon":"star",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",children:b.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"})})})})})},mv=5,fy=({value:t,size:l,readonly:i=!1,onChange:r})=>{const[o,f]=Z.useState(void 0),d=()=>{f(void 0)},g=p=>()=>{if(!i){const v=p+1;f(v)}},h=p=>()=>{r&&!i&&(r(p===0&&t===1?0:p+1),f(void 0))};return b.jsx("ul",{tabIndex:0,role:"radiogroup",className:se(Vn.stars,{[Vn.starsSmall]:l==="small",[Vn.starsLarge]:l==="large"},"chat__conversationRating__stars",{chat__conversationRating__stars__small:l==="small",chat__conversationRating__stars__large:l==="large"}),onMouseOut:d,children:Array(mv).fill(0).map((p,v)=>b.jsx(DA,{value:o===void 0?t:o,index:v,count:mv,readonly:i,onHover:g(v),onClick:h(v)},v))})},RA=({visible:t,onRate:l})=>{const i=Mt();return t?b.jsxs("div",{className:se(Vn.callToActionContainer,"chat__conversationRating__callToAction"),children:[b.jsx("div",{className:se(Vn.callToActionTitle,"chat__conversationRating__callToAction__title"),children:i("conversation-rating.call-to-action.title")}),b.jsx(fy,{value:0,size:"small",onChange:l})]}):null},Id=({isFirstMessageBySender:t,isLastMessageBySender:l,children:i})=>b.jsxs("div",{className:se(ke.message,ke.messageBot,t&&ke.messageBotFirst,l&&ke.messageBotLast,"chat__bubbleContainer","chat__botBubbleContainer",t&&"chat__bubbleContainer--first",l&&"chat__bubbleContainer--last"),children:[b.jsx("img",{className:se(ke.avatar,ke.botAvatar),src:"bot.svg",alt:"Bot"}),b.jsx("div",{className:se(ke.bubble,ke.bubbleLeft,"chat__bubble","chat__botBubble"),children:b.jsx("div",{className:se(ke.leftText,ke.bubbleContent),children:i})})]}),NA=({children:t})=>b.jsx("div",{className:se(ke.message,ke.messageGuest,ke.messageGuestFirst,ke.messageGuestLast,"chat__bubbleContainer","chat__guestBubbleContainer","chat__bubbleContainer--first","chat__bubbleContainer--last"),children:b.jsx("div",{className:se(ke.bubble,ke.bubbleRight,"chat__bubble","chat__guestBubble"),children:b.jsx("div",{className:se(ke.rightText,ke.bubbleContent),children:t})})}),MA=()=>{const t=Mt(),l=gl(),i=Lt(w=>w.chat.conversationRating),[r,o]=Z.useState(i.rating?.value||0),[f,d]=Z.useState(void 0),[g,h]=Z.useState(void 0),[p,v]=Z.useState({submitted:!1,feedback:""}),S=Z.useRef(null),[y,T]=Z.useState(!1);Z.useEffect(()=>{i.opener?(v({submitted:!1,feedback:""}),h(!0)):g===!0&&h(!1)},[i.opener,g]),Z.useEffect(()=>{o(i.rating?.value||0)},[i.rating?.value,i.opener]),Z.useEffect(()=>{S.current&&(S.current.value=i.rating?.feedback||"")},[i.rating?.feedback]),Z.useEffect(()=>{const w=r>0?t(`conversation-rating.overlay.bot-message.rate-feedback.value-${r}`):void 0;d(w?.length?w:void 0)},[r,t]),Z.useEffect(()=>{p.submitted?setTimeout(()=>T(!0),p.feedback.length?500:0):T(!1)},[p]);const A=w=>{w.preventDefault();const x=S.current?.value?.trim()||"";l(OE(r,x)),v({submitted:!0,feedback:x})},_=()=>{i.opener==="CLOSE_CHAT"?l(Nb()):i.opener==="RESTART_CHAT"?l(ks()):l(M3())};return b.jsx("div",{className:se(Vn.rateOverlay,fl.bottomSheet,"chat__conversationRating__overlay",{[fl.bottomSheetOpen]:g===!0,[fl.bottomSheetClose]:g===!1}),children:b.jsxs("form",{onSubmit:A,children:[b.jsxs("div",{className:se(Vn.body,"chat__conversationRating__overlay__body"),children:[b.jsx("div",{}),b.jsx("div",{className:se(Vn.bubbles),children:i.opener&&b.jsxs(b.Fragment,{children:[b.jsxs(Id,{isFirstMessageBySender:!0,isLastMessageBySender:!f,children:[b.jsx("h2",{children:t("conversation-rating.overlay.title")}),b.jsxs("div",{className:se(Vn.starsDescriptionContainer),children:[b.jsx(fy,{value:r,size:"large",readonly:p.submitted,onChange:o}),b.jsxs("div",{className:se(Vn.starsDescription),children:[b.jsx("div",{children:t("conversation-rating.overlay.star.very-bad")}),b.jsx("div",{children:t("conversation-rating.overlay.star.very-good")})]})]})]}),f&&b.jsx(Id,{isFirstMessageBySender:!1,isLastMessageBySender:!y||!!p.feedback.length,children:b.jsx("div",{children:f})}),!!p.feedback.length&&b.jsx(NA,{children:p.feedback}),y&&b.jsx(Id,{isFirstMessageBySender:!!p.feedback.length,isLastMessageBySender:!0,children:b.jsx("div",{children:t("conversation-rating.overlay.bot-message.submit-feedback")})})]})})]}),b.jsxs("div",{className:se(Vn.footer,"chat__conversationRating__overlay__footer"),children:[!p.submitted&&b.jsx("input",{ref:S,defaultValue:i.rating?.feedback||"",placeholder:t("conversation-rating.overlay.guest-feedback.input-placeholder")}),b.jsxs("div",{className:se(Vn.actions,"chat__conversationRating__overlay__footer__actions"),children:[p.submitted?b.jsx(Fu,{type:"button",disabled:!r,onClick:_,children:i.opener==="CLOSE_CHAT"?t("conversation-rating.overlay.action.close-chat"):i.opener==="RESTART_CHAT"?t("conversation-rating.overlay.action.restart-chat"):t("conversation-rating.overlay.action.back-to-chat")},"close-button"):b.jsx(Fu,{type:"submit",disabled:!r,children:t("conversation-rating.overlay.action.submit")},"submit-button"),i.opener!=="CHAT"&&!p.submitted&&b.jsx(cy,{onClick:_,children:i.opener==="CLOSE_CHAT"?t("conversation-rating.overlay.action.close-chat"):i.opener==="RESTART_CHAT"?t("conversation-rating.overlay.action.restart-chat"):t("conversation-rating.overlay.action.cancel")})]})]})]})})},kA=({numberOfMessagesFromGuest:t})=>{const l=gl(),i=Lt(f=>f.chat.conversationRating),r=f=>{l(Ru("CHAT",f))},o=!i.rating?.value&&t>=1;return i.enabled?b.jsxs(b.Fragment,{children:[b.jsx(RA,{visible:o,onRate:r}),b.jsx(MA,{})]}):null},LA=Z.memo(kA),zA="_inputWrapper_m3q4d_1",jA="_withOpenCommands_m3q4d_13",BA="_actions_m3q4d_18",UA="_messageInputWrapper_m3q4d_53",HA="_messageInput_m3q4d_53",IA="_buttons_m3q4d_78",VA="_button_m3q4d_78",ui={inputWrapper:zA,withOpenCommands:jA,actions:BA,messageInputWrapper:UA,messageInput:HA,buttons:IA,button:VA},QA="_audioRecorder_g845f_1",XA="_audioButton_g845f_6",GA="_recorderIcon_g845f_37",ZA="_spinning_g845f_60",ci={audioRecorder:QA,audioButton:XA,recorderIcon:GA,spinning:ZA},vv=2048,Yu=16e3;class FA extends Vv.Component{audioInput=null;volume=null;leftchannel=[];recorder=null;recordingLength=0;sampleRate=null;mediaStream=null;constructor(l){super(l),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(l){this.mediaStream=l,this.leftchannel.length=0,this.recordingLength=0,this.initRecording(l)}initRecording(l){const i=window.AudioContext||window.webkitAudioContext,r=new i;this.sampleRate=r.sampleRate,this.volume=r.createGain(),this.audioInput=r.createMediaStreamSource(l),this.audioInput.connect(this.volume),this.recorder=r.createScriptProcessor(vv,1,1),this.recorder.onaudioprocess=this.processRecordingInput,this.volume.connect(this.recorder),this.recorder.connect(r.destination)}processRecordingInput(l){if(this.state.recordingState==="connecting"&&this.setState({recordingState:"recording"}),this.state.recordingState!=="none"){const i=l.inputBuffer.getChannelData(0);this.leftchannel.push(new Float32Array(i)),this.recordingLength+=vv}}handleClickSubmitAudio(){const l=KA(this.leftchannel,this.recordingLength),i=JA(l,this.sampleRate||0),r=YA(i);this.props.onAudioRecorded(r),this.handleClickStopAudio()}handleClickStopAudio(){this.setState({recordingState:"none"}),this.audioInput?.disconnect(),this.volume?.disconnect(),this.recorder?.disconnect(),this.mediaStream&&this.mediaStream?.getAudioTracks().forEach(l=>{l.stop()})}render(){return b.jsxs("div",{className:ci.audioRecorder,children:[this.state.recordingState==="none"&&b.jsx("button",{className:se(ci.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:b.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",children:[b.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"}),b.jsx("path",{d:"M0 0h24v24H0z",fill:"none"})]})}),this.state.recordingState==="connecting"&&b.jsxs("svg",{className:ci.spinning,xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",children:[b.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"}),b.jsx("path",{d:"M0 0h24v24H0z",fill:"none"})]}),this.state.recordingState==="recording"&&b.jsxs("div",{className:ci.audioRecorder,children:[b.jsx("button",{className:se(ci.audioButton),onClick:this.handleClickStopAudio,"aria-label":this.props.translate("message-input.actions.stop-audio-recording.label"),tabIndex:0,children:b.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",children:[b.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"}),b.jsx("path",{d:"M0 0h24v24H0z",fill:"none"})]})}),b.jsx("div",{className:ci.recorderIcon}),b.jsx("button",{className:se(ci.audioButton),type:"submit",onClick:this.handleClickSubmitAudio,"aria-label":this.props.translate("message-input.actions.submit-audio-recording.label"),tabIndex:0,autoFocus:!0,children:b.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",children:[b.jsx("path",{d:"M0 0h24v24H0z",fill:"none"}),b.jsx("path",{d:"M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"})]})})]})]})}}const YA=t=>{const l=new ArrayBuffer(44+t.length*2),i=new DataView(l);iu(i,0,"RIFF"),i.setUint32(4,44+t.length*2,!0),iu(i,8,"WAVE"),iu(i,12,"fmt "),i.setUint32(16,16,!0),i.setUint16(20,1,!0),i.setUint16(22,1,!0),i.setUint32(24,Yu,!0),i.setUint32(28,Yu*4,!0),i.setUint16(32,4,!0),i.setUint16(34,16,!0),iu(i,36,"data"),i.setUint32(40,t.length*2,!0);const r=t.length;let o=44;const f=1;for(let d=0;d<r;d++)i.setInt16(o,t[d]*(32767*f),!0),o+=2;return new Blob([i],{type:"audio/wav"})},iu=(t,l,i)=>{for(let r=0;r<i.length;r++)t.setUint8(l+r,i.charCodeAt(r))},KA=(t,l)=>{const i=new Float32Array(l);let r=0;const o=t.length;for(let f=0;f<o;f++){const d=t[f];i.set(d,r),r+=d.length}return i},JA=(t,l)=>{if(Yu===l)return t;const i=l/Yu,r=Math.round(t.length/i),o=new Float32Array(r);let f=0,d=0;for(;f<o.length;){const g=Math.round((f+1)*i);let h=0,p=0;for(let v=d;v<g&&v<t.length;v++)h+=t[v],p++;o[f]=h/p,f++,d=g}return o},PA=({onClick:t})=>{const l=Mt();return b.jsxs("button",{onClick:t,type:"button","aria-label":l("message-input.actions.command.label"),children:[b.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",fill:"#000000",viewBox:"0 0 256 256",children:[b.jsx("rect",{x:"32",y:"32",width:"192",height:"192",rx:"16",ry:"16",fill:"none",stroke:"currentColor","stroke-width":"16"}),b.jsx("line",{x1:"80",y1:"176",x2:"176",y2:"80",stroke:"currentColor","stroke-width":"16","stroke-linecap":"round"})]}),b.jsx("span",{children:l("message-input.actions.command.label")})]})},WA=({disabled:t,textInput:l,commandsVisible:i,hasCommands:r,onTextInput:o,onTextInputSubmit:f,onAudioRecorded:d})=>{const g=Mt(),h=Z.useRef(null),{enableSpeechSupport:p}=Lt(_=>_.settings);Z.useEffect(()=>{h.current?.focus()},[l]);const v=()=>{const _=h.current;_&&l.trim().length>=1&&f(l.trim())&&(_.value="",_.style.height="",_.focus())},S=_=>{_.preventDefault(),v()},y=_=>{const w=_.target.value;o(w),_.target.style.height="";const{scrollHeight:x}=_.target;_.target.style.height=`${x>150?150:x}px`},T=_=>{_.code==="Enter"&&!_.shiftKey?(_.repeat||v(),_.preventDefault()):i&&(_.code==="ArrowUp"||_.code==="ArrowDown")&&_.preventDefault()},A=()=>{l.startsWith("/")?o(""):o("/")};return b.jsxs("form",{className:se(ui.inputWrapper,i&&ui.withOpenCommands,"chat__textInput"),onSubmit:S,children:[b.jsxs("div",{className:ui.messageInputWrapper,children:[b.jsx("textarea",{id:"user_input",ref:h,className:ui.messageInput,tabIndex:0,placeholder:g("message-input-placeholder"),value:l,onChange:y,onKeyDown:T,"aria-label":g("message-input-label"),"aria-controls":r?"command-list":void 0,"aria-haspopup":r?"listbox":void 0}),r&&b.jsx("div",{className:ui.actions,children:b.jsx(PA,{onClick:A})})]}),b.jsx("div",{className:se(ui.buttons,"chat__buttons"),children:l.length||!p||navigator.mediaDevices===void 0?b.jsx("button",{className:se(ui.button,"chat__button"),type:"submit","aria-label":g("message-input.actions.submit.label"),"data-title":g("message-input.actions.submit.label"),tabIndex:0,disabled:t,children:b.jsx("svg",{viewBox:"64 64 896 896",focusable:"false",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",children:b.jsx("path",{d:"M931.4 498.9L94.9 79.5c-3.4-1.7-7.3-2.1-11-1.2a15.99 15.99 0 00-11.7 19.3l86.2 352.2c1.3 5.3 5.2 9.6 10.4 11.3l147.7 50.7-147.6 50.7c-5.2 1.8-9.1 6-10.3 11.3L72.2 926.5c-.9 3.7-.5 7.6 1.2 10.9 3.9 7.9 13.5 11.1 21.5 7.2l836.5-417c3.1-1.5 5.6-4.1 7.2-7.1 3.9-8 .7-17.6-7.2-21.6zM170.8 826.3l50.3-205.6 295.2-101.3c2.3-.8 4.2-2.6 5-5 1.4-4.2-.8-8.7-5-10.2L221.1 403 171 198.2l628 314.9-628.2 313.2z"})})}):p&&navigator.mediaDevices!==void 0&&b.jsx(FA,{translate:g,onAudioRecorded:d})})]})},$A="_quickReplies_83npe_1",qA="_quickReply_83npe_9",bv={quickReplies:$A,quickReply:qA},e8=({quickReplies:t,onQuickReplyClick:l})=>t.length?b.jsx("div",{className:se(bv.quickReplies,"chat__quickReplies"),children:t.map(i=>b.jsx(oc,{tabIndex:0,className:se(bv.quickReply,"chat__button","chat__quickReply"),onClick:()=>l(i),children:i.label},i.label))}):null,yv=5e3,t8=1e3,n8=({isBotTyping:t,quickReplies:l,numberOfMessagesFromGuest:i,commands:r,onTextInput:o,onQuickReplyClick:f,onAudioRecorded:d})=>{const[g,h]=Z.useState(""),[p,v]=Z.useState(!1),[S,y]=Z.useState(!1),T=Z.useRef(0),A=Z.useRef(0);Z.useEffect(()=>{if(p&&!t){const x=T.current?Date.now()-T.current:0;x>yv?v(!1):setTimeout(()=>{v(!1)},yv-x)}},[p,t]),Z.useEffect(()=>{p&&(T.current=Date.now())},[p]);const _=x=>{const C=Date.now()-A.current<t8;return S?!1:t||C?(v(!0),!1):(o(x),h(""),A.current=Date.now(),!0)},w=x=>{h(x+" ")};return b.jsxs("div",{className:se(aA.inputContainer),children:[b.jsx(e8,{quickReplies:l,onQuickReplyClick:f}),b.jsx(rA,{visible:p}),!p&&b.jsx(LA,{numberOfMessagesFromGuest:i}),!!r?.length&&b.jsx(dA,{text:g,commands:r,onSelectCommand:w,onVisibilityChange:y}),b.jsx(WA,{textInput:g,disabled:p,commandsVisible:S,hasCommands:!!r?.length,onTextInput:h,onTextInputSubmit:_,onAudioRecorded:d})]})},a8=({clientName:t,messages:l,quickReplies:i,isBotTyping:r,drawerContentUrl:o,onMessageFromUser:f,onQuickReplyClick:d,onButtonClick:g,onLinkClick:h,onAudioRecorded:p,onTranscriptExport:v,onTranscriptItemReaction:S})=>{const y=gl(),T=Lt(k=>k.connection.connectionState),{enableTranscriptExportEmail:A,commands:_}=Lt(k=>k.settings),{showTranscriptMailOverlay:w,conversationRating:x}=Lt(k=>k.chat),C=l.filter(k=>k.sender.type===Nu.GUEST).length;Z.useEffect(()=>{T===hi.CONNECTED&&y(kb(t))},[t,T,y]);const D=()=>{y(Mb())};return b.jsxs("div",{className:Md.container,children:[b.jsxs("div",{className:se([Md.chatcontent,(w||x?.opener)&&Md.accessabilityHidden]),children:[b.jsx(j6,{messages:l,isBotTyping:r,commands:_,onButtonClick:g,onLinkClick:h,onTranscriptItemReaction:S}),b.jsx(n8,{isBotTyping:r,quickReplies:r?[]:i,numberOfMessagesFromGuest:C,commands:_,onQuickReplyClick:d,onTextInput:f,onAudioRecorded:p}),b.jsx(Y6,{})]}),A&&b.jsx(tA,{visible:!!w,onEmailExport:v,onClose:D}),b.jsx(X6,{contentUrl:o})]})},l8=t=>{const{messages:l,quickReplies:i,isBotTyping:r,drawerContentUrl:o}=t.chat;return{messages:l,quickReplies:i,isBotTyping:r,drawerContentUrl:o}},i8=t=>({onRestartChat:()=>t(ks()),onMessageFromUser:l=>t(ab(l)),onAudioRecorded:l=>t(wE(l)),onActionFromUser:l=>t(l),onQuickReplyClick:l=>t(nb(l)),onNluEvent:l=>t(ob(l)),onButtonClick:l=>t(RE(l)),onLinkClick:l=>t(ub(l)),onTranscriptExport:l=>t(AE(l)),onTranscriptItemReaction:(l,i)=>{t(_E(l,i?.type||null,i?.category,i?.comment))}}),r8=$S(l8,i8)(a8),dy=()=>Z.useMemo(()=>{try{return window.self!==window.top}catch{return!0}},[]),s8=t=>l=>{const i=l.key;(i==="ArrowDown"||i==="ArrowRight"||i==="Enter"||i===" "||i==="Space")&&(l.stopPropagation(),t())},o8=({onClick:t})=>{const l=Mt();return dy()?b.jsx("button",{className:"tooltip--bottom-left","aria-label":l("header.close-chat"),"data-title":l("header.close-chat"),tabIndex:0,onClick:t,onKeyDown:s8(t),children:b.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",children:b.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},u8="_header_3gvbz_1",c8="_logoContainer_3gvbz_14",f8="_logo_3gvbz_14",d8="_actions_3gvbz_28",h8="_active_3gvbz_43",p8="_menuContainer_3gvbz_56",g8="_menu_3gvbz_56",m8="_divider_3gvbz_86",Xl={header:u8,logoContainer:c8,logo:f8,actions:d8,active:h8,menuContainer:p8,menu:g8,divider:m8},v8=({icon:t})=>{switch(t){case"arrow-counter-clockwise":return b.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",viewBox:"0 0 256 256",children:b.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 b.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",viewBox:"0 0 256 256",children:b.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 b.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",viewBox:"0 0 256 256",children:b.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 b.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",viewBox:"0 0 256 256",children:b.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 b.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",viewBox:"0 0 256 256",children:b.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 b.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",viewBox:"0 0 256 256",children:b.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 b.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",viewBox:"0 0 256 256",children:b.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 b.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",viewBox:"0 0 256 256",children:b.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 b.jsx("div",{})}},b8=Z.forwardRef(({selected:t,item:l,onClick:i},r)=>{const o=Mt(),f=d=>{d.preventDefault(),i()};return b.jsx("li",{"aria-selected":t,role:"option",className:l.withDivider?Xl.divider:void 0,children:b.jsxs("a",{ref:r,type:"button",role:"button",tabIndex:-1,onClick:f,children:[b.jsx(v8,{icon:l.icon}),b.jsx("span",{children:o(`header.menu.${l.id}`)})]})})}),y8=(t,l)=>{const i=dy(),{menuItems:r,enableStandaloneView:o,enableTranscriptExportPdf:f,enableTranscriptExportEmail:d}=Lt(p=>p.settings),g=Lt(p=>p.chat.conversationRating.enabled);return Z.useMemo(()=>{const p=[],v=r.filter(({visibility:S})=>t?S==="always"||S==="chat-only":S==="always"||S==="start-screen-only");if(t&&(p.push({id:"restart-chat",type:"restart-chat",icon:"arrow-counter-clockwise",visibility:"chat-only"}),i&&o&&p.push({id:"expand-chat-window",type:"expand-chat-window",icon:"expand",visibility:"always"}),l&&f&&p.push({id:"download-transcript",type:"download-transcript",icon:"download",visibility:"chat-only"}),l&&d&&p.push({id:"send-transcript",type:"send-transcript",icon:"mail",visibility:"chat-only"}),l&&g&&p.push({id:"rate-conversation",type:"rate-conversation",icon:"star",visibility:"chat-only"}),p.length>0&&v.length)){const S=p.pop();S&&r.length&&p.push({...S,withDivider:!0})}return p.push(...v),p},[t,l,f,d,o,g,i,r])},_8=({chatStarted:t,hasGuestMessages:l})=>{const i=gl(),r=Mt(),{enabled:o,opener:f}=Lt(C=>C.chat.conversationRating),[d,g]=Z.useState(!1),[h,p]=Z.useState(-1),v=Z.useRef(null),S=Z.useRef(null),y=Z.useRef([]),T=y8(t,l);Z.useEffect(()=>{y.current[h]?.focus()},[h]);const A=Z.useCallback(()=>{i(l&&o&&!f?Ru("RESTART_CHAT"):ks()),g(!1),p(0)},[l,o,f,i]),_=Z.useCallback(C=>{switch(C.type){case"restart-chat":A();break;case"expand-chat-window":window.open(window.location.href,"_blank");break;case"download-transcript":i(CE());break;case"send-transcript":i(Mb());break;case"rate-conversation":i(Ru("MENU"));break;case"link":i(ub(C.url));break;case"action":i(JSON.parse(JSON.stringify(C.action)));break}g(!1)},[i,A,g]);Z.useEffect(()=>{const C=D=>{if(d)switch(D.key){case"Enter":D.preventDefault(),_(T[h]);break;case"ArrowUp":p(k=>k>0?k-1:T.length-1);break;case"ArrowDown":p(k=>k<T.length-1?k+1:0);break;case"Escape":g(!1);break;case"Tab":h>-1&&g(!1);break}};return document.addEventListener("keydown",C),()=>{document.removeEventListener("keydown",C)}},[d,h,T,p,g,_]),Z.useEffect(()=>{d||p(-1)},[d,h]),wp(S,()=>g(!1));const w=()=>{g(C=>!C)},x=()=>{setTimeout(()=>{const C=document.activeElement;S.current&&!S.current.contains(C)&&g(!1)},0)};return T.length?b.jsxs("div",{className:se(Xl.menuContainer),ref:S,children:[b.jsx("button",{ref:v,className:se(d&&Xl.active,d?"tooltip-hidden":"tooltip--bottom-left"),"aria-label":r("header.menu.title"),"data-title":r("header.menu.title"),onClick:w,onBlur:x,children:b.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",children:b.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"})})}),d&&b.jsx("nav",{className:Xl.menu,"aria-label":r("header.menu.title"),children:b.jsx("ul",{tabIndex:0,children:T.map((C,D)=>b.jsx(b8,{ref:k=>{y.current[D]=k},selected:h===D,item:C,onClick:()=>_(C)},C.id))})})]}):null},_v=({className:t,chatStarted:l,...i})=>{const r=gl(),o=Lt(g=>g.chat.conversationRating),f=Lt(g=>g.chat.messages.some(h=>h.sender.type===hl.GUEST)),d=()=>{o.enabled&&!o.opener&&f?r(Ru("CLOSE_CHAT")):r(Nb())};return b.jsxs("div",{className:se(Xl.header,t),...i,children:[b.jsx("div",{className:Xl.logoContainer,children:b.jsx("div",{className:Xl.logo})}),b.jsxs("div",{className:Xl.actions,children:[b.jsx(_8,{chatStarted:l,hasGuestMessages:f}),b.jsx(o8,{onClick:d})]})]})},S8="_chatwindow_rkbir_1",E8="_chatwindowWithAside_rkbir_21",Sv={chatwindow:S8,chatwindowWithAside:E8},hy=()=>{const[t,l]=Z.useState(!1);return Z.useEffect(()=>{const i=window.matchMedia("(max-width: 1023px)"),r=()=>l(i.matches);return r(),i.addEventListener("change",r),()=>i.removeEventListener("change",r)},[]),t},w8="_sourceInfos_vei0l_1",T8="_waitForLoading_vei0l_24",A8="_loadingContent_vei0l_28",C8="_sourceHeader_vei0l_37",x8="_sourceHeaderIcon_vei0l_57",O8="_sourceContent_vei0l_61",D8="_openSourceButton_vei0l_69",R8="_sourceButtonLabel_vei0l_79",N8="_closeSourceInfosButton_vei0l_101",M8="_loadingSourceInfos_vei0l_125",k8="_loading_vei0l_28",L8="_loadingError_vei0l_139",z8="_highlightLoadingInfo_vei0l_155",j8="_highlightLoadingInfoInnerContainer_vei0l_169",B8="_highlightLoadingInfoContent_vei0l_178",U8="_highlightLoadingInfoCloseIcon_vei0l_198",H8="_highlightLoader_vei0l_203",I8="_highlightLoaderLoading_vei0l_210",yn={sourceInfos:w8,waitForLoading:T8,loadingContent:A8,sourceHeader:C8,sourceHeaderIcon:x8,sourceContent:O8,openSourceButton:D8,sourceButtonLabel:R8,closeSourceInfosButton:N8,loadingSourceInfos:M8,loading:k8,loadingError:L8,highlightLoadingInfo:z8,highlightLoadingInfoInnerContainer:j8,highlightLoadingInfoContent:B8,highlightLoadingInfoCloseIcon:U8,highlightLoader:H8,highlightLoaderLoading:I8},V8=({onClick:t})=>{const l=Mt();return b.jsx("button",{className:se(yn.closeSourceInfosButton,"tooltip--bottom-left"),"aria-label":l("source-infos.close"),"data-title":l("source-infos.close"),tabIndex:0,onClick:t,children:b.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",children:b.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"})})})},Q8=Z.forwardRef(({sourceInfos:t,onClose:l,...i},r)=>b.jsxs("div",{className:yn.sourceHeader,...i,ref:r,children:[b.jsx("div",{children:t?b.jsx("p",{id:"source-info-title",children:t.title}):b.jsx("p",{children:" "})}),b.jsx(V8,{onClick:l})]})),X8=({loading:t})=>b.jsx("div",{className:yn.highlightLoader,children:t&&b.jsx("div",{className:yn.highlightLoaderLoading})});const{entries:py,setPrototypeOf:Ev,isFrozen:G8,getPrototypeOf:Z8,getOwnPropertyDescriptor:F8}=Object;let{freeze:Gn,seal:Ea,create:Eh}=Object,{apply:wh,construct:Th}=typeof Reflect<"u"&&Reflect;Gn||(Gn=function(l){return l});Ea||(Ea=function(l){return l});wh||(wh=function(l,i){for(var r=arguments.length,o=new Array(r>2?r-2:0),f=2;f<r;f++)o[f-2]=arguments[f];return l.apply(i,o)});Th||(Th=function(l){for(var i=arguments.length,r=new Array(i>1?i-1:0),o=1;o<i;o++)r[o-1]=arguments[o];return new l(...r)});const ru=Zn(Array.prototype.forEach),Y8=Zn(Array.prototype.lastIndexOf),wv=Zn(Array.prototype.pop),os=Zn(Array.prototype.push),K8=Zn(Array.prototype.splice),mu=Zn(String.prototype.toLowerCase),Vd=Zn(String.prototype.toString),Qd=Zn(String.prototype.match),us=Zn(String.prototype.replace),J8=Zn(String.prototype.indexOf),P8=Zn(String.prototype.trim),Oa=Zn(Object.prototype.hasOwnProperty),In=Zn(RegExp.prototype.test),cs=W8(TypeError);function Zn(t){return function(l){l instanceof RegExp&&(l.lastIndex=0);for(var i=arguments.length,r=new Array(i>1?i-1:0),o=1;o<i;o++)r[o-1]=arguments[o];return wh(t,l,r)}}function W8(t){return function(){for(var l=arguments.length,i=new Array(l),r=0;r<l;r++)i[r]=arguments[r];return Th(t,i)}}function Ue(t,l){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:mu;Ev&&Ev(t,null);let r=l.length;for(;r--;){let o=l[r];if(typeof o=="string"){const f=i(o);f!==o&&(G8(l)||(l[r]=f),o=f)}t[o]=!0}return t}function $8(t){for(let l=0;l<t.length;l++)Oa(t,l)||(t[l]=null);return t}function Ia(t){const l=Eh(null);for(const[i,r]of py(t))Oa(t,i)&&(Array.isArray(r)?l[i]=$8(r):r&&typeof r=="object"&&r.constructor===Object?l[i]=Ia(r):l[i]=r);return l}function fs(t,l){for(;t!==null;){const r=F8(t,l);if(r){if(r.get)return Zn(r.get);if(typeof r.value=="function")return Zn(r.value)}t=Z8(t)}function i(){return null}return i}const Tv=Gn(["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"]),Xd=Gn(["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"]),Gd=Gn(["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"]),q8=Gn(["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"]),Zd=Gn(["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"]),eC=Gn(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Av=Gn(["#text"]),Cv=Gn(["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"]),Fd=Gn(["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"]),xv=Gn(["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"]),su=Gn(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),tC=Ea(/\{\{[\w\W]*|[\w\W]*\}\}/gm),nC=Ea(/<%[\w\W]*|[\w\W]*%>/gm),aC=Ea(/\$\{[\w\W]*/gm),lC=Ea(/^data-[\-\w.\u00B7-\uFFFF]+$/),iC=Ea(/^aria-[\-\w]+$/),gy=Ea(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),rC=Ea(/^(?:\w+script|data):/i),sC=Ea(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),my=Ea(/^html$/i),oC=Ea(/^[a-z][.\w]*(-[.\w]+)+$/i);var Ov=Object.freeze({__proto__:null,ARIA_ATTR:iC,ATTR_WHITESPACE:sC,CUSTOM_ELEMENT:oC,DATA_ATTR:lC,DOCTYPE_NAME:my,ERB_EXPR:nC,IS_ALLOWED_URI:gy,IS_SCRIPT_OR_DATA:rC,MUSTACHE_EXPR:tC,TMPLIT_EXPR:aC});const ds={element:1,text:3,progressingInstruction:7,comment:8,document:9},uC=function(){return typeof window>"u"?null:window},cC=function(l,i){if(typeof l!="object"||typeof l.createPolicy!="function")return null;let r=null;const o="data-tt-policy-suffix";i&&i.hasAttribute(o)&&(r=i.getAttribute(o));const f="dompurify"+(r?"#"+r:"");try{return l.createPolicy(f,{createHTML(d){return d},createScriptURL(d){return d}})}catch{return console.warn("TrustedTypes policy "+f+" could not be created."),null}},Dv=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function vy(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:uC();const l=ue=>vy(ue);if(l.version="3.3.1",l.removed=[],!t||!t.document||t.document.nodeType!==ds.document||!t.Element)return l.isSupported=!1,l;let{document:i}=t;const r=i,o=r.currentScript,{DocumentFragment:f,HTMLTemplateElement:d,Node:g,Element:h,NodeFilter:p,NamedNodeMap:v=t.NamedNodeMap||t.MozNamedAttrMap,HTMLFormElement:S,DOMParser:y,trustedTypes:T}=t,A=h.prototype,_=fs(A,"cloneNode"),w=fs(A,"remove"),x=fs(A,"nextSibling"),C=fs(A,"childNodes"),D=fs(A,"parentNode");if(typeof d=="function"){const ue=i.createElement("template");ue.content&&ue.content.ownerDocument&&(i=ue.content.ownerDocument)}let k,U="";const{implementation:H,createNodeIterator:L,createDocumentFragment:Y,getElementsByTagName:X}=i,{importNode:W}=r;let K=Dv();l.isSupported=typeof py=="function"&&typeof D=="function"&&H&&H.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:P,ERB_EXPR:fe,TMPLIT_EXPR:he,DATA_ATTR:de,ARIA_ATTR:j,IS_SCRIPT_OR_DATA:le,ATTR_WHITESPACE:G,CUSTOM_ELEMENT:be}=Ov;let{IS_ALLOWED_URI:ge}=Ov,O=null;const J=Ue({},[...Tv,...Xd,...Gd,...Zd,...Av]);let ee=null;const oe=Ue({},[...Cv,...Fd,...xv,...su]);let ne=Object.seal(Eh(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}})),ce=null,me=null;const Se=Object.seal(Eh(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let we=!0,Be=!0,St=!1,Ae=!0,mt=!1,Tt=!0,Oe=!1,ct=!1,tn=!1,_n=!1,Xe=!1,Ft=!1,xt=!0,nn=!1;const Et="user-content-";let st=!0,Dn=!1,Qt={},Rt=null;const zt=Ue({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let cn=null;const fn=Ue({},["audio","video","img","source","image","track"]);let ua=null;const nt=Ue({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),dn="http://www.w3.org/1998/Math/MathML",vt="http://www.w3.org/2000/svg",ft="http://www.w3.org/1999/xhtml";let Je=ft,qe=!1,an=null;const hn=Ue({},[dn,vt,ft],Vd);let jt=Ue({},["mi","mo","mn","ms","mtext"]),at=Ue({},["annotation-xml"]);const Yt=Ue({},["title","style","font","a","script"]);let At=null;const Rn=["application/xhtml+xml","text/html"],Nn="text/html";let dt=null,ln=null;const ca=i.createElement("form"),jn=function(R){return R instanceof RegExp||R instanceof Function},fa=function(){let R=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(ln&&ln===R)){if((!R||typeof R!="object")&&(R={}),R=Ia(R),At=Rn.indexOf(R.PARSER_MEDIA_TYPE)===-1?Nn:R.PARSER_MEDIA_TYPE,dt=At==="application/xhtml+xml"?Vd:mu,O=Oa(R,"ALLOWED_TAGS")?Ue({},R.ALLOWED_TAGS,dt):J,ee=Oa(R,"ALLOWED_ATTR")?Ue({},R.ALLOWED_ATTR,dt):oe,an=Oa(R,"ALLOWED_NAMESPACES")?Ue({},R.ALLOWED_NAMESPACES,Vd):hn,ua=Oa(R,"ADD_URI_SAFE_ATTR")?Ue(Ia(nt),R.ADD_URI_SAFE_ATTR,dt):nt,cn=Oa(R,"ADD_DATA_URI_TAGS")?Ue(Ia(fn),R.ADD_DATA_URI_TAGS,dt):fn,Rt=Oa(R,"FORBID_CONTENTS")?Ue({},R.FORBID_CONTENTS,dt):zt,ce=Oa(R,"FORBID_TAGS")?Ue({},R.FORBID_TAGS,dt):Ia({}),me=Oa(R,"FORBID_ATTR")?Ue({},R.FORBID_ATTR,dt):Ia({}),Qt=Oa(R,"USE_PROFILES")?R.USE_PROFILES:!1,we=R.ALLOW_ARIA_ATTR!==!1,Be=R.ALLOW_DATA_ATTR!==!1,St=R.ALLOW_UNKNOWN_PROTOCOLS||!1,Ae=R.ALLOW_SELF_CLOSE_IN_ATTR!==!1,mt=R.SAFE_FOR_TEMPLATES||!1,Tt=R.SAFE_FOR_XML!==!1,Oe=R.WHOLE_DOCUMENT||!1,_n=R.RETURN_DOM||!1,Xe=R.RETURN_DOM_FRAGMENT||!1,Ft=R.RETURN_TRUSTED_TYPE||!1,tn=R.FORCE_BODY||!1,xt=R.SANITIZE_DOM!==!1,nn=R.SANITIZE_NAMED_PROPS||!1,st=R.KEEP_CONTENT!==!1,Dn=R.IN_PLACE||!1,ge=R.ALLOWED_URI_REGEXP||gy,Je=R.NAMESPACE||ft,jt=R.MATHML_TEXT_INTEGRATION_POINTS||jt,at=R.HTML_INTEGRATION_POINTS||at,ne=R.CUSTOM_ELEMENT_HANDLING||{},R.CUSTOM_ELEMENT_HANDLING&&jn(R.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(ne.tagNameCheck=R.CUSTOM_ELEMENT_HANDLING.tagNameCheck),R.CUSTOM_ELEMENT_HANDLING&&jn(R.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(ne.attributeNameCheck=R.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),R.CUSTOM_ELEMENT_HANDLING&&typeof R.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(ne.allowCustomizedBuiltInElements=R.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),mt&&(Be=!1),Xe&&(_n=!0),Qt&&(O=Ue({},Av),ee=[],Qt.html===!0&&(Ue(O,Tv),Ue(ee,Cv)),Qt.svg===!0&&(Ue(O,Xd),Ue(ee,Fd),Ue(ee,su)),Qt.svgFilters===!0&&(Ue(O,Gd),Ue(ee,Fd),Ue(ee,su)),Qt.mathMl===!0&&(Ue(O,Zd),Ue(ee,xv),Ue(ee,su))),R.ADD_TAGS&&(typeof R.ADD_TAGS=="function"?Se.tagCheck=R.ADD_TAGS:(O===J&&(O=Ia(O)),Ue(O,R.ADD_TAGS,dt))),R.ADD_ATTR&&(typeof R.ADD_ATTR=="function"?Se.attributeCheck=R.ADD_ATTR:(ee===oe&&(ee=Ia(ee)),Ue(ee,R.ADD_ATTR,dt))),R.ADD_URI_SAFE_ATTR&&Ue(ua,R.ADD_URI_SAFE_ATTR,dt),R.FORBID_CONTENTS&&(Rt===zt&&(Rt=Ia(Rt)),Ue(Rt,R.FORBID_CONTENTS,dt)),R.ADD_FORBID_CONTENTS&&(Rt===zt&&(Rt=Ia(Rt)),Ue(Rt,R.ADD_FORBID_CONTENTS,dt)),st&&(O["#text"]=!0),Oe&&Ue(O,["html","head","body"]),O.table&&(Ue(O,["tbody"]),delete ce.tbody),R.TRUSTED_TYPES_POLICY){if(typeof R.TRUSTED_TYPES_POLICY.createHTML!="function")throw cs('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof R.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw cs('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');k=R.TRUSTED_TYPES_POLICY,U=k.createHTML("")}else k===void 0&&(k=cC(T,o)),k!==null&&typeof U=="string"&&(U=k.createHTML(""));Gn&&Gn(R),ln=R}},rn=Ue({},[...Xd,...Gd,...q8]),sn=Ue({},[...Zd,...eC]),Kt=function(R){let $=D(R);(!$||!$.tagName)&&($={namespaceURI:Je,tagName:"template"});const re=mu(R.tagName),Ee=mu($.tagName);return an[R.namespaceURI]?R.namespaceURI===vt?$.namespaceURI===ft?re==="svg":$.namespaceURI===dn?re==="svg"&&(Ee==="annotation-xml"||jt[Ee]):!!rn[re]:R.namespaceURI===dn?$.namespaceURI===ft?re==="math":$.namespaceURI===vt?re==="math"&&at[Ee]:!!sn[re]:R.namespaceURI===ft?$.namespaceURI===vt&&!at[Ee]||$.namespaceURI===dn&&!jt[Ee]?!1:!sn[re]&&(Yt[re]||!rn[re]):!!(At==="application/xhtml+xml"&&an[R.namespaceURI]):!1},Bt=function(R){os(l.removed,{element:R});try{D(R).removeChild(R)}catch{w(R)}},Pe=function(R,$){try{os(l.removed,{attribute:$.getAttributeNode(R),from:$})}catch{os(l.removed,{attribute:null,from:$})}if($.removeAttribute(R),R==="is")if(_n||Xe)try{Bt($)}catch{}else try{$.setAttribute(R,"")}catch{}},Bn=function(R){let $=null,re=null;if(tn)R="<remove></remove>"+R;else{const pe=Qd(R,/^[\r\n\t ]+/);re=pe&&pe[0]}At==="application/xhtml+xml"&&Je===ft&&(R='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+R+"</body></html>");const Ee=k?k.createHTML(R):R;if(Je===ft)try{$=new y().parseFromString(Ee,At)}catch{}if(!$||!$.documentElement){$=H.createDocument(Je,"template",null);try{$.documentElement.innerHTML=qe?U:Ee}catch{}}const Ge=$.body||$.documentElement;return R&&re&&Ge.insertBefore(i.createTextNode(re),Ge.childNodes[0]||null),Je===ft?X.call($,Oe?"html":"body")[0]:Oe?$.documentElement:Ge},Mn=function(R){return L.call(R.ownerDocument||R,R,p.SHOW_ELEMENT|p.SHOW_COMMENT|p.SHOW_TEXT|p.SHOW_PROCESSING_INSTRUCTION|p.SHOW_CDATA_SECTION,null)},Ut=function(R){return R instanceof S&&(typeof R.nodeName!="string"||typeof R.textContent!="string"||typeof R.removeChild!="function"||!(R.attributes instanceof v)||typeof R.removeAttribute!="function"||typeof R.setAttribute!="function"||typeof R.namespaceURI!="string"||typeof R.insertBefore!="function"||typeof R.hasChildNodes!="function")},De=function(R){return typeof g=="function"&&R instanceof g};function et(ue,R,$){ru(ue,re=>{re.call(l,R,$,ln)})}const pn=function(R){let $=null;if(et(K.beforeSanitizeElements,R,null),Ut(R))return Bt(R),!0;const re=dt(R.nodeName);if(et(K.uponSanitizeElement,R,{tagName:re,allowedTags:O}),Tt&&R.hasChildNodes()&&!De(R.firstElementChild)&&In(/<[/\w!]/g,R.innerHTML)&&In(/<[/\w!]/g,R.textContent)||R.nodeType===ds.progressingInstruction||Tt&&R.nodeType===ds.comment&&In(/<[/\w]/g,R.data))return Bt(R),!0;if(!(Se.tagCheck instanceof Function&&Se.tagCheck(re))&&(!O[re]||ce[re])){if(!ce[re]&&on(re)&&(ne.tagNameCheck instanceof RegExp&&In(ne.tagNameCheck,re)||ne.tagNameCheck instanceof Function&&ne.tagNameCheck(re)))return!1;if(st&&!Rt[re]){const Ee=D(R)||R.parentNode,Ge=C(R)||R.childNodes;if(Ge&&Ee){const pe=Ge.length;for(let ht=pe-1;ht>=0;--ht){const Re=_(Ge[ht],!0);Re.__removalCount=(R.__removalCount||0)+1,Ee.insertBefore(Re,x(R))}}}return Bt(R),!0}return R instanceof h&&!Kt(R)||(re==="noscript"||re==="noembed"||re==="noframes")&&In(/<\/no(script|embed|frames)/i,R.innerHTML)?(Bt(R),!0):(mt&&R.nodeType===ds.text&&($=R.textContent,ru([P,fe,he],Ee=>{$=us($,Ee," ")}),R.textContent!==$&&(os(l.removed,{element:R.cloneNode()}),R.textContent=$)),et(K.afterSanitizeElements,R,null),!1)},Fn=function(R,$,re){if(xt&&($==="id"||$==="name")&&(re in i||re in ca))return!1;if(!(Be&&!me[$]&&In(de,$))){if(!(we&&In(j,$))){if(!(Se.attributeCheck instanceof Function&&Se.attributeCheck($,R))){if(!ee[$]||me[$]){if(!(on(R)&&(ne.tagNameCheck instanceof RegExp&&In(ne.tagNameCheck,R)||ne.tagNameCheck instanceof Function&&ne.tagNameCheck(R))&&(ne.attributeNameCheck instanceof RegExp&&In(ne.attributeNameCheck,$)||ne.attributeNameCheck instanceof Function&&ne.attributeNameCheck($,R))||$==="is"&&ne.allowCustomizedBuiltInElements&&(ne.tagNameCheck instanceof RegExp&&In(ne.tagNameCheck,re)||ne.tagNameCheck instanceof Function&&ne.tagNameCheck(re))))return!1}else if(!ua[$]){if(!In(ge,us(re,G,""))){if(!(($==="src"||$==="xlink:href"||$==="href")&&R!=="script"&&J8(re,"data:")===0&&cn[R])){if(!(St&&!In(le,us(re,G,"")))){if(re)return!1}}}}}}}return!0},on=function(R){return R!=="annotation-xml"&&Qd(R,be)},wa=function(R){et(K.beforeSanitizeAttributes,R,null);const{attributes:$}=R;if(!$||Ut(R))return;const re={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:ee,forceKeepAttr:void 0};let Ee=$.length;for(;Ee--;){const Ge=$[Ee],{name:pe,namespaceURI:ht,value:Re}=Ge,lt=dt(pe),tt=Re;let Ne=pe==="value"?tt:P8(tt);if(re.attrName=lt,re.attrValue=Ne,re.keepAttr=!0,re.forceKeepAttr=void 0,et(K.uponSanitizeAttribute,R,re),Ne=re.attrValue,nn&&(lt==="id"||lt==="name")&&(Pe(pe,R),Ne=Et+Ne),Tt&&In(/((--!?|])>)|<\/(style|title|textarea)/i,Ne)){Pe(pe,R);continue}if(lt==="attributename"&&Qd(Ne,"href")){Pe(pe,R);continue}if(re.forceKeepAttr)continue;if(!re.keepAttr){Pe(pe,R);continue}if(!Ae&&In(/\/>/i,Ne)){Pe(pe,R);continue}mt&&ru([P,fe,he],Xt=>{Ne=us(Ne,Xt," ")});const kt=dt(R.nodeName);if(!Fn(kt,lt,Ne)){Pe(pe,R);continue}if(k&&typeof T=="object"&&typeof T.getAttributeType=="function"&&!ht)switch(T.getAttributeType(kt,lt)){case"TrustedHTML":{Ne=k.createHTML(Ne);break}case"TrustedScriptURL":{Ne=k.createScriptURL(Ne);break}}if(Ne!==tt)try{ht?R.setAttributeNS(ht,pe,Ne):R.setAttribute(pe,Ne),Ut(R)?Bt(R):wv(l.removed)}catch{Pe(pe,R)}}et(K.afterSanitizeAttributes,R,null)},ze=function ue(R){let $=null;const re=Mn(R);for(et(K.beforeSanitizeShadowDOM,R,null);$=re.nextNode();)et(K.uponSanitizeShadowNode,$,null),pn($),wa($),$.content instanceof f&&ue($.content);et(K.afterSanitizeShadowDOM,R,null)};return l.sanitize=function(ue){let R=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},$=null,re=null,Ee=null,Ge=null;if(qe=!ue,qe&&(ue="<!-->"),typeof ue!="string"&&!De(ue))if(typeof ue.toString=="function"){if(ue=ue.toString(),typeof ue!="string")throw cs("dirty is not a string, aborting")}else throw cs("toString is not a function");if(!l.isSupported)return ue;if(ct||fa(R),l.removed=[],typeof ue=="string"&&(Dn=!1),Dn){if(ue.nodeName){const Re=dt(ue.nodeName);if(!O[Re]||ce[Re])throw cs("root node is forbidden and cannot be sanitized in-place")}}else if(ue instanceof g)$=Bn("<!---->"),re=$.ownerDocument.importNode(ue,!0),re.nodeType===ds.element&&re.nodeName==="BODY"||re.nodeName==="HTML"?$=re:$.appendChild(re);else{if(!_n&&!mt&&!Oe&&ue.indexOf("<")===-1)return k&&Ft?k.createHTML(ue):ue;if($=Bn(ue),!$)return _n?null:Ft?U:""}$&&tn&&Bt($.firstChild);const pe=Mn(Dn?ue:$);for(;Ee=pe.nextNode();)pn(Ee),wa(Ee),Ee.content instanceof f&&ze(Ee.content);if(Dn)return ue;if(_n){if(Xe)for(Ge=Y.call($.ownerDocument);$.firstChild;)Ge.appendChild($.firstChild);else Ge=$;return(ee.shadowroot||ee.shadowrootmode)&&(Ge=W.call(r,Ge,!0)),Ge}let ht=Oe?$.outerHTML:$.innerHTML;return Oe&&O["!doctype"]&&$.ownerDocument&&$.ownerDocument.doctype&&$.ownerDocument.doctype.name&&In(my,$.ownerDocument.doctype.name)&&(ht="<!DOCTYPE "+$.ownerDocument.doctype.name+`>
118
+ `+ht),mt&&ru([P,fe,he],Re=>{ht=us(ht,Re," ")}),k&&Ft?k.createHTML(ht):ht},l.setConfig=function(){let ue=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};fa(ue),ct=!0},l.clearConfig=function(){ln=null,ct=!1},l.isValidAttribute=function(ue,R,$){ln||fa({});const re=dt(ue),Ee=dt(R);return Fn(re,Ee,$)},l.addHook=function(ue,R){typeof R=="function"&&os(K[ue],R)},l.removeHook=function(ue,R){if(R!==void 0){const $=Y8(K[ue],R);return $===-1?void 0:K8(K[ue],$,1)[0]}return wv(K[ue])},l.removeHooks=function(ue){K[ue]=[]},l.removeAllHooks=function(){K=Dv()},l}var fC=vy();const dC=({onClose:t})=>{const l=Mt();return b.jsxs("div",{className:yn.highlightLoadingInfo,onClick:t,children:[b.jsx("div",{className:yn.highlightLoadingInfoCloseIcon,children:b.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",children:b.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"})})}),b.jsxs("div",{className:yn.highlightLoadingInfoInnerContainer,children:[b.jsxs("div",{className:yn.highlightLoadingInfoContent,children:[b.jsx("h3",{children:l("source-infos.highlight-loading.title")}),b.jsx("p",{children:l("source-infos.highlight-loading.description")})]}),b.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"#000000",viewBox:"0 0 256 256",children:b.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"})})]})]})},hC=({title:t,href:l,children:i})=>b.jsx("a",{href:l,title:t,target:"_blank",rel:"noopener noreferrer",children:i}),pC=({className:t,children:l,...i})=>b.jsx("a",{className:se(Rs.button,Rs.buttonDefault,t),type:"button",role:"button",...i,children:l}),gC=t=>b.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",...t,children:b.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"})}),mC=({type:t,...l})=>{switch(t){case"WEBSITE":return b.jsx(sy,{...l});case"PDF":return b.jsx(ry,{...l});case"DOCX":return b.jsx(ly,{...l});case"TEXT":return b.jsx(gC,{...l});default:return b.jsx(iy,{...l})}},vC=({url:t,knowledgeBaseType:l})=>{const i=Mt();return b.jsx(pC,{className:yn.openSourceButton,href:t,target:"_blank",children:b.jsxs("div",{className:yn.sourceButtonLabel,children:[b.jsx("div",{className:yn.sourceHeaderIcon,children:b.jsx(mC,{type:l})}),b.jsx("p",{children:i("source-infos.open-source")})]})})},bC=({sourceInfos:{content:t,url:l,knowledgeBaseType:i,highlighted:r}})=>{const[o,f]=Z.useState(!r);Z.useEffect(()=>{r&&f(!1)},[r]);const d=fC.sanitize(t,{USE_PROFILES:{html:!0}});return b.jsxs(b.Fragment,{children:[b.jsxs("div",{className:se(yn.sourceContent,uy.markdown),children:[b.jsx(cl,{options:{overrides:{a:hC}},children:d}),o&&b.jsx(dC,{onClose:()=>f(!1)})]}),b.jsx(vC,{url:l,knowledgeBaseType:i})]})},yC=""+new URL("undraw_fixing-bugs-D_eYxJc6.svg",import.meta.url).href,_C=()=>{const t=Mt();return b.jsxs("div",{className:yn.loadingError,children:[b.jsx("h1",{children:t("source-infos.error.title")}),b.jsx("img",{src:yC,title:t("source-infos.error.title")}),b.jsx("p",{children:t("source-infos.error.info")})]})},SC=()=>b.jsx("div",{className:yn.loadingSourceInfos,children:b.jsx("svg",{className:yn.loading,xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",children:b.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 EC({sourceInfos:t,onClose:l,threshold:i=100}){const r=Z.useRef(null),[o,f]=Z.useState(0),[d,g]=Z.useState(!1),h=Z.useRef(null),p=Z.useRef(null),v=Z.useCallback(A=>{h.current=A,g(!0)},[]),S=Z.useCallback(A=>{if(h.current!==null&&d){const _=A-h.current;_>0&&f(_)}},[d]),y=Z.useCallback(()=>{g(!1),o>i&&l(),f(0),h.current=null},[o,i,l]),T=Z.useCallback(A=>{const _=U=>v(U.touches[0].clientY),w=U=>S(U.touches[0].clientY),x=()=>y(),C=U=>{U.preventDefault(),v(U.clientY),window.addEventListener("mousemove",D),window.addEventListener("mouseup",k)},D=U=>S(U.clientY),k=()=>{y(),window.removeEventListener("mousemove",D),window.removeEventListener("mouseup",k)};A.addEventListener("touchstart",_),A.addEventListener("touchmove",w),A.addEventListener("touchend",x),A.addEventListener("mousedown",C),p.current=()=>{A.removeEventListener("touchstart",_),A.removeEventListener("touchmove",w),A.removeEventListener("touchend",x),A.removeEventListener("mousedown",C),window.removeEventListener("mousemove",D),window.removeEventListener("mouseup",k)}},[v,S,y]);return Z.useEffect(()=>{let A;return r.current?(p.current?.(),T(r.current)):(A=new MutationObserver(()=>{r.current&&(p.current?.(),T(r.current),A?.disconnect())}),A.observe(document.body,{childList:!0,subtree:!0})),()=>{A?.disconnect(),p.current?.()}},[T,t]),{ref:r,dragOffsetY:o,isDragging:d}}const wC=t=>{const[l,i]=Z.useState(!0);return Z.useEffect(()=>{let r=null;return t?.type==="loading"?(i(!0),r=setTimeout(()=>{i(!1)},300)):i(!t),()=>{r&&clearTimeout(r)}},[t]),l},TC=()=>{const t=gl(),l=Lt(h=>h.chat.sourceInfos),i=hy(),r=Z.useRef(null),o=wC(l);Z.useEffect(()=>{r.current&&l?.type==="loading"&&(i?r.current.showModal():(r.current.setAttribute("open","true"),r.current?.focus()))},[l,i]);const f=Z.useCallback(()=>{r.current&&(i?r.current.close():r.current.removeAttribute("open"),t(k3()))},[t,i]),{ref:d,dragOffsetY:g}=EC({onClose:f,sourceInfos:l});return l?b.jsx("dialog",{ref:r,className:se(yn.sourceInfos,o?yn.waitForLoading:l.type==="loading"?yn.loadingContent:""),style:i&&g?{transform:`translateY(${g}px)`}:{},onClose:f,autoFocus:!0,role:"dialog","aria-labelledby":"source-info-title",children:o?null:b.jsxs(b.Fragment,{children:[b.jsx(Q8,{ref:d,tabIndex:-1,sourceInfos:l.type==="loaded"?l:void 0,onClose:f}),l.type==="loading"?b.jsx(SC,{}):l.type==="loading-error"?b.jsx(_C,{}):b.jsxs(b.Fragment,{children:[b.jsx(X8,{loading:!l.highlighted}),b.jsx(bC,{sourceInfos:l})]})]})}):null},AC="_container_1aof3_1",CC="_body_1aof3_7",xC="_intro_1aof3_14",OC="_footer_1aof3_39",DC="_footnote_1aof3_43",RC="_containerWithFootnote_1aof3_58",NC="_startChatButton_1aof3_73",MC="_spinner_1aof3_88",kC="_formFields_1aof3_92",LC="_formField_1aof3_92",zC="_radio_1aof3_104",jC="_checkbox_1aof3_111",BC="_input_1aof3_119",UC="_inputLabel_1aof3_153",HC="_selectWrapper_1aof3_157",IC="_select_1aof3_157",VC="_selectLabel_1aof3_203",vn={container:AC,body:CC,intro:xC,footer:OC,footnote:DC,containerWithFootnote:RC,startChatButton:NC,spinner:MC,formFields:kC,formField:LC,radio:zC,checkbox:jC,input:BC,inputLabel:UC,selectWrapper:HC,select:IC,selectLabel:VC},QC=({name:t,label:l,defaultValue:i,required:r,onChange:o})=>{const f=d=>{o(d.currentTarget.checked?"true":"false")};return b.jsxs("label",{className:se(vn.checkbox,"chat__startScreen__checkbox"),htmlFor:t,children:[b.jsx("input",{type:"checkbox",id:t,name:t,defaultChecked:i==="true",required:r,onChange:f}),b.jsx("div",{children:l})]})},XC=({type:t,name:l,label:i,defaultValue:r,placeholder:o,required:f,multiple:d,min:g,max:h,pattern:p,onChange:v})=>{const S=y=>{v(y.target.value)};return b.jsxs("label",{className:se(vn.input,"chat__startScreen__input"),htmlFor:l,children:[b.jsx("div",{className:se(vn.inputLabel),children:i}),b.jsx("input",{type:t,id:l,name:l,defaultValue:r,placeholder:o,required:f,multiple:d,min:g,max:h,pattern:p,onChange:S})]})},GC=({name:t,value:l,label:i,defaultChecked:r,required:o,onChange:f})=>{const d=`${t}-${l}`,g=h=>{f(h.target.value)};return b.jsxs("label",{className:se(vn.radio,"chat__startScreen__radio"),htmlFor:d,children:[b.jsx("input",{id:d,type:"radio",name:t,value:l,defaultChecked:r,required:o,onChange:g}),b.jsx("span",{className:se(vn.label),children:i})]})},ZC=({name:t,label:l,defaultValue:i,required:r,multiple:o,options:f,onChange:d})=>{const g=h=>{d(h.target.value)};return b.jsxs("label",{className:se(vn.select,"chat__startScreen__select"),htmlFor:t,children:[b.jsx("div",{className:se(vn.selectLabel),children:l}),b.jsx("div",{className:se(vn.selectWrapper),children:b.jsx("select",{id:t,name:t,defaultValue:i,required:r,multiple:o,onChange:g,children:Object.entries(f||{}).map(([h,p])=>b.jsx("option",{value:h,selected:p===i,children:p}))})})]})},FC="start-screen.intro",YC="start-screen.start-chat",KC="start-screen.waiting-for-login",JC="start-screen.footnote",xa="start-screen.form",Rv=`${xa}.fields`,PC=()=>{const t=Mt(),l=gl(),i=Ap(),r=Lt(A=>A.startScreen.loginRequestToken),o=Lt(A=>A.settings.requiresUserAuthentication);Z.useEffect(()=>{let A;if(r){const x=window.screenX+(window.outerWidth-600)/2,C=window.screenY+(window.outerHeight-700)/2,D=window.open(`/${i}/auth/login?loginRequestToken=${r}`,"Login",`width=600,height=700,left=${x},top=${C},resizable=yes,scrollbars=yes`);A=setInterval(()=>{D?.closed&&(l(D3()),clearInterval(A))},500)}return()=>{A&&clearInterval(A)}},[i,r,l]);const[f,d]=Z.useState({}),g=()=>{const A=Object.entries(f).reduce((_,[w,x])=>({..._,[w]:x.value}),{});l(o?O3({loginRequestToken:wu(),formValues:A}):A3({formValues:A}))},h=t(FC),p=t(r?KC:YC),v=t(JC),S=Z.useMemo(()=>t(Rv)?.split(";").map(A=>A.trim())??[],[t(Rv)]);Z.useEffect(()=>{S.length&&Object.keys(f).length===0&&d(S.reduce((A,_)=>({...A,[_]:WC(_,t)}),{}))},[t,S,f]);const y=A=>{A.preventDefault(),g()},T=A=>_=>{d(w=>({...w,[A]:{...w[A],value:_}}))};return b.jsxs("form",{onSubmit:y,className:se(vn.container,v&&vn.containerWithFootnote,"chat__startScreen"),children:[b.jsxs("div",{className:se(vn.body,"chat__startScreen__body"),children:[h&&b.jsx("div",{className:se(vn.intro,"chat__startScreen__intro"),children:b.jsx(cl,{options:{overrides:{a:Nv}},children:h})}),b.jsx("div",{className:se(vn.formFields,"chat__startScreen__fields"),children:Object.values(f).map(({type:A,name:_,label:w,placeholder:x,defaultValue:C,options:D,required:k,multiple:U,min:H,max:L,pattern:Y})=>b.jsx("div",{className:se(vn.formField,"chat__startScreen__field"),children:(()=>{switch(A){case"radio":return b.jsxs(b.Fragment,{children:[b.jsx("div",{children:w}),Object.entries(D||{}).map(([X,W])=>b.jsx(GC,{name:_,value:X,label:W,defaultChecked:X===C,required:k,onChange:T(_)},X))]});case"checkbox":return b.jsx(QC,{name:_,label:w,defaultValue:C,required:k,onChange:T(_)});case"select":return b.jsx(ZC,{name:_,label:w,defaultValue:C,required:k,multiple:U,options:D,onChange:T(_)});default:return b.jsx(XC,{type:A,name:_,label:w,placeholder:x,defaultValue:C,required:k,multiple:U,min:H,max:L,pattern:Y,onChange:T(_)})}})()},_))})]}),b.jsxs("div",{className:se(vn.footer,"chat__startScreen__footer"),children:[b.jsxs(Fu,{type:"submit",className:vn.startChatButton,disabled:!!r,children:[!!r&&b.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 256 256",className:vn.spinner,children:b.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"})}),b.jsx("div",{children:p})]}),v&&b.jsx("div",{className:vn.footnote,children:b.jsx(cl,{options:{overrides:{a:Nv}},children:v})})]})]})},Nv=({title:t,href:l,children:i})=>b.jsx("a",{href:l,title:t,target:"_blank",rel:"noopener noreferrer",children:i}),WC=(t,l)=>{const i=l(`${xa}.${t}.type`)||"text",r=l(`${xa}.${t}.required`)==="true",o=l(`${xa}.${t}.multiple`)==="true",f=l(`${xa}.${t}.placeholder`),d=l(`${xa}.${t}.label`)||"",g=l(`${xa}.${t}.defaultValue`),h=l(`${xa}.${t}.min`),p=l(`${xa}.${t}.max`),v=l(`${xa}.${t}.pattern`),S=qC(l(`${xa}.${t}.options`));return{name:t,label:d,placeholder:f,value:$C(i,g,S)||"",defaultValue:g,options:S,type:i,required:r,multiple:o,min:h,max:p,pattern:v}},$C=(t,l,i)=>l||t==="select"&&Object.keys(i)[0]||"",qC=(t="")=>t.split(";").map(l=>l.trim()).reduce((l,i)=>{const[r,o]=i.split(":").map(f=>f.trim());return{...l,[r]:o}},{}),ex=()=>{const t=Lt(l=>l.intl.locale);Z.useEffect(()=>{window.document.documentElement.lang=t},[t])},qi={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"},tx=({clientName:t})=>{ex();const l=gl(),i=Lt(v=>v.intl.messages),r=Mt(),o=Lt(v=>v.settings.enableStartScreen),f=Lt(v=>v.startScreen.startScreenStatus),d=Lt(v=>v.connection.queryString),g=Z.useMemo(()=>new URLSearchParams(d||"?").get("cssClassName"),[d]);Z.useEffect(()=>{const v=new URLSearchParams(d||""),S=Object.fromEntries(v.entries()),y=T=>{switch(T.data.type){case qi.TRIGGER_ACTION:l(T.data.action);break;case qi.TRIGGER_STORY:l(ob(T.data.story));break;case qi.ON_CHAT_WINDOW_OPEN:l({type:"webclient.chatwindow.opened"});break;case qi.ON_CHAT_WINDOW_CLOSE:l({type:"webclient.chatwindow.closed"});break;case qi.CHAT_MESSAGE_FROM_GUEST:l(ab(T.data.text));break;case qi.RESTART_CHAT:l(ks());break}};return l(z3(t,S)),window.addEventListener("message",T=>y(T),!1),()=>window.removeEventListener("message",y)},[t,d,l]),Z.useEffect(()=>{const v=r("page.title");v&&document&&(document.title=v)},[i,r]);const h=o===void 0,p=o===!1||f==="HIDDEN";return b.jsx("div",{className:se(Sv.chatwindow,p&&Sv.chatwindowWithAside,"chat__chatwindow",g),children:h?null:p?b.jsxs(b.Fragment,{children:[b.jsx("header",{children:b.jsx(_v,{chatStarted:!0})}),b.jsx("main",{children:b.jsx(r8,{clientName:t})}),b.jsx("aside",{children:b.jsx(TC,{})})]}):b.jsxs(b.Fragment,{children:[b.jsx("header",{children:b.jsx(_v,{chatStarted:!1})}),b.jsx("main",{children:b.jsx(PC,{})})]})})},nx=()=>{const t=Ap(),l=hy();return b.jsx("div",{className:se([oE.app,l?"chat__small":"chat__large"]),children:b.jsx(tx,{clientName:t})})},by={"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.reaction.good":"Gefällt mir","bot-bubble.reaction.bad":"Gefällt mir nicht","bot-bubble.reaction.remove":"Markierung entfernen","bot-bubble.reaction.say-more":"Erzähle mir bitte mehr","bot-bubble.reaction.category.WRONG_INFORMATION":"Falsch","bot-bubble.reaction.category.MISSING_INFORMATION":"Unvollständig","bot-bubble.reaction.category.OLD_INFORMATION":"Veraltet","bot-bubble.reaction.category.UNCLEAR":"Unklar","bot-bubble.reaction.category.OFF_TOPIC":"Nicht zur Frage passend","bot-bubble.reaction.comment":"Gedanken mit mir teilen...","bot-bubble.reaction.close":"Schliessen","bot-bubble.copy":"Kopieren","bot-bubble.sources":"Quellenliste","bot-bubble.source.open":"Quelle öffnen","agent-bubble.label":"Nachricht des Live-Agenten","export-transcript.email.title":"Chatverlauf per E-Mail versenden","export-transcript.email.description":"Bitte E-Mail-Adresse angeben, an die der Chatverlauf gesendet werden soll.","export-transcript.email.cancel":"Abbrechen","export-transcript.email.send":"Senden","export-transcript.email.placeholder":"E-Mail-Adresse","export-transcript.email.invalid":"Bitte gültige E-Mail-Adresse eingeben.","export-transcript.email.success":"Der Chatverlauf wurde an die hinterlegte E-Mail-Adresse übermittelt.","general-conditions.header":"**Nutzungsbedingungen**","general-conditions.body":`Bitte berücksichtigen Sie die folgenden Punkte:
119
119
 
120
120
  - Der Chatverlauf wird im EU-Raum gespeichert und kann nur von autorisierten Personen eingesehen werden.
121
121
  - 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"},ax={"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.reaction.good":"I like","bot-bubble.reaction.bad":"I don't like it","bot-bubble.reaction.remove":"Remove marker","bot-bubble.reaction.say-more":"Please tell us more","bot-bubble.reaction.category.WRONG_INFORMATION":"Wrong","bot-bubble.reaction.category.MISSING_INFORMATION":"Incomplete","bot-bubble.reaction.category.OLD_INFORMATION":"Outdated","bot-bubble.reaction.category.UNCLEAR":"Unclear","bot-bubble.reaction.category.OFF_TOPIC":"Not relevant to the question","bot-bubble.reaction.comment":"Share your thoughts with us...","bot-bubble.reaction.close":"Close","bot-bubble.copy":"Copy","bot-bubble.sources":"Source list","bot-bubble.source.open":"Open source","agent-bubble.label":"Message from the live agent","export-transcript.email.title":"Receive chat history","export-transcript.email.description":"Please enter the e-mail address to which the chat history should be sent.","export-transcript.email.cancel":"Cancel","export-transcript.email.send":"Send","export-transcript.email.placeholder":"E-mail address","export-transcript.email.invalid":"Please enter a valid e-mail address.","export-transcript.email.success":"The chat history was sent to the e-mail address provided.","general-conditions.header":"**Terms of use**","general-conditions.body":`Please consider the following points:
122
122
 
123
123
  - The chat history is stored in the EU area and can only be viewed by authorized personnel.
124
- - 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 by(t,l="",i="."){const r={};for(const o in t)if(Object.prototype.hasOwnProperty.call(t,o)){const f=t[o],d=l?`${l}${i}${o}`:o;f!==null&&typeof f=="object"&&!Array.isArray(f)?Object.assign(r,by(f,d,i)):r[d]=String(f)}return r}const lx={"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.reaction.good":"J'aime bien","bot-bubble.reaction.bad":"Je n'aime pas","bot-bubble.reaction.remove":"Retirer le marqueur","bot-bubble.reaction.say-more":"Dis-nous en plus, s'il te plaît","bot-bubble.reaction.category.WRONG_INFORMATION":"Faux","bot-bubble.reaction.category.MISSING_INFORMATION":"Incomplet","bot-bubble.reaction.category.OLD_INFORMATION":"Obsolète","bot-bubble.reaction.category.UNCLEAR":"Peu clair","bot-bubble.reaction.category.OFF_TOPIC":"Hors sujet","bot-bubble.reaction.comment":"Partager ses pensées avec nous...","bot-bubble.reaction.close":"Fermer","bot-bubble.copy":"Copie","bot-bubble.sources":"Liste des sources","bot-bubble.source.open":"Ouvrir la source","agent-bubble.label":"Message de l'agent en direct","export-transcript.email.title":"Recevoir l'historique du chat","export-transcript.email.description":"Veuillez indiquer l'adresse e-mail à laquelle l'historique de chat doit être envoyé.","export-transcript.email.cancel":"Annuler","export-transcript.email.send":"Envoyer","export-transcript.email.placeholder":"E-mail","export-transcript.email.invalid":"Veuillez entrer une adresse électronique valide.","export-transcript.email.success":"L'historique du chat a été envoyé à l'adresse e-mail fournie.","general-conditions.header":"**Conditions d'utilisation**","general-conditions.body":`Veuillez considérer les points suivants:
124
+ - 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 yy(t,l="",i="."){const r={};for(const o in t)if(Object.prototype.hasOwnProperty.call(t,o)){const f=t[o],d=l?`${l}${i}${o}`:o;f!==null&&typeof f=="object"&&!Array.isArray(f)?Object.assign(r,yy(f,d,i)):r[d]=String(f)}return r}const lx={"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.reaction.good":"J'aime bien","bot-bubble.reaction.bad":"Je n'aime pas","bot-bubble.reaction.remove":"Retirer le marqueur","bot-bubble.reaction.say-more":"Dis-nous en plus, s'il te plaît","bot-bubble.reaction.category.WRONG_INFORMATION":"Faux","bot-bubble.reaction.category.MISSING_INFORMATION":"Incomplet","bot-bubble.reaction.category.OLD_INFORMATION":"Obsolète","bot-bubble.reaction.category.UNCLEAR":"Peu clair","bot-bubble.reaction.category.OFF_TOPIC":"Hors sujet","bot-bubble.reaction.comment":"Partager ses pensées avec nous...","bot-bubble.reaction.close":"Fermer","bot-bubble.copy":"Copie","bot-bubble.sources":"Liste des sources","bot-bubble.source.open":"Ouvrir la source","agent-bubble.label":"Message de l'agent en direct","export-transcript.email.title":"Recevoir l'historique du chat","export-transcript.email.description":"Veuillez indiquer l'adresse e-mail à laquelle l'historique de chat doit être envoyé.","export-transcript.email.cancel":"Annuler","export-transcript.email.send":"Envoyer","export-transcript.email.placeholder":"E-mail","export-transcript.email.invalid":"Veuillez entrer une adresse électronique valide.","export-transcript.email.success":"L'historique du chat a été envoyé à l'adresse e-mail fournie.","general-conditions.header":"**Conditions d'utilisation**","general-conditions.body":`Veuillez considérer les points suivants:
125
125
 
126
126
  - L'historique du chat est stocké dans l'espace UE et ne peut être consulté que par les personnes autorisées.
127
127
  - 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"},ix={"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.reaction.good":"Mi piace","bot-bubble.reaction.bad":"Non mi piace","bot-bubble.reaction.remove":"Rimuovere il marcatore","bot-bubble.reaction.say-more":"Disci più, per favore","bot-bubble.reaction.category.WRONG_INFORMATION":"Errate","bot-bubble.reaction.category.MISSING_INFORMATION":"Incompleto","bot-bubble.reaction.category.OLD_INFORMATION":"Obsoleta","bot-bubble.reaction.category.UNCLEAR":"Poco chiaro","bot-bubble.reaction.category.OFF_TOPIC":"Non pertinente alla domanda","bot-bubble.reaction.comment":"Condividete con noi i vostri pensieri...","bot-bubble.reaction.close":"Chiudere","bot-bubble.copy":"Copia","bot-bubble.sources":"Elenco delle fonti","bot-bubble.source.open":"Fonte aperta","agent-bubble.label":"Messaggio dell'agente dal vivo","export-transcript.email.title":"Ricevere la cronologia della chat","export-transcript.email.description":"Inserire l'indirizzo e-mail a cui inviare la cronologia della chat.","export-transcript.email.cancel":"Annulla","export-transcript.email.send":"Invia","export-transcript.email.placeholder":"E-mail","export-transcript.email.invalid":"Inserire un indirizzo e-mail valido.","export-transcript.email.success":"La cronologia della chat è stata inviata all'indirizzo e-mail fornito.","general-conditions.header":"**Condizioni di utilizzo**","general-conditions.body":`Si prega di considerare i seguenti punti:
128
128
 
129
129
  - La cronologia delle chat è memorizzata nell'area UE e può essere visualizzata solo da persone autorizzate.
130
- - 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"},rx=["de","en","fr","it"],yy={locale:"de",messages:vy},sx=(t,l)=>{if(rx.includes(t)){const i=ox(t),r=by(l);return{...i,...r}}return l},ox=t=>{switch(t.toString()){case"en":return ax;case"fr":return lx;case"it":return ix;default:return vy}},ux=(t=cx,l)=>{switch(l.type){case tp:return Object.assign({},t,{connectionState:hi.CONNECTING});case np:return Object.assign({},t,{connectionState:hi.CONNECTED});case ap:return Object.assign({},t,{connectionState:hi.DISCONNECTED});case lp:return Object.assign({},t,{connectionState:hi.RECONNECTED});case ip:return Object.assign({},t,{sessionId:l.sessionId});case nc:return Object.assign({},t,{sessionId:l.payload.sessionId,userId:l.payload.userId});case ac:return Object.assign({},t,{sessionId:void 0});default:return t}},cx={connectionState:hi.DISCONNECTED,sessionId:void 0,userId:void 0,queryString:window.location.search},fx=(t=kv,l)=>{switch(l.type){case xb:return kv;case nc:return fi({type:"webclient.chat.started"}),t;case ac:return fi({type:"webclient.chat.ended"}),t;case Jv:return Object.assign({},t,{isBotTyping:!0});case Pv:return Object.assign({},t,{isBotTyping:!1});case zh:case Wv:return Mv(t,l.message);case $v:{fi(l);const i=Object.assign({},l.message,{_id:l.meta.actionId}),r=t.messages.filter(o=>o._id===l.meta.actionId).length>0;return Object.assign({},t,{isBotTyping:!1,messages:r?t.messages:t.messages.concat([i]),quickReplies:i.quickReplies?i.quickReplies:[]})}case Hh:{const i=l.messages,r=i.length?i[i.length-1]:void 0;return Object.assign({},t,{isBotTyping:!1,messages:i,quickReplies:r?.quickReplies||[]})}case Uh:return fi(l.message),t;case qv:return fi(l.event),t;case fE:return Object.assign({},t,{drawerContentUrl:l.payload.parameters.contentUrl});case dE:return Object.assign({},t,{drawerContentUrl:void 0});case hE:return Object.assign({},t,{locale:l.payload.locale});case ib:return fi(l),t;case rb:return fi(l),{...t,conversationRating:{...t.conversationRating,opener:void 0}};case Vh:{const i=new Ju(l.transcription,new Bh),r=Object.assign({},i,{_id:wu()});return Mv(t,r)}case eb:{const i=t.messages.map(r=>r._id===l.payload.actionId?Object.assign({},r,l.payload.reaction?{reaction:{type:l.payload.reaction,category:l.payload.category,comment:l.payload.comment}}:{reaction:void 0}):r);return Object.assign({},t,{messages:i})}case Qh:{const i={enabled:!0,rating:l.payload.rating};return Object.assign({},t,{conversationRating:i})}case jh:{const i={...t.conversationRating,rating:l.payload};return Object.assign({},t,{conversationRating:i})}case Db:{const i={...t.conversationRating,opener:l.payload.opener,...l.payload.defaultRating?{rating:{value:l.payload.defaultRating,feedback:t.conversationRating.rating?.feedback||""}}:{}};return Object.assign({},t,{conversationRating:i})}case Rb:{const i={...t.conversationRating,opener:void 0};return Object.assign({},t,{conversationRating:i})}case Gh:return{...t,sourceInfos:{type:"loading",chunkId:l.payload.chunkId}};case Xh:{const{highlighted:i}=l.payload;return t.sourceInfos?.type==="loaded"&&i?{...t,sourceInfos:{...t.sourceInfos,highlighted:!0}}:{...t,sourceInfos:{type:"loading-error"}}}case lb:{const i=t.sourceInfos?.type,{chunkId:r,knowledgeBaseType:o,title:f,content:d,highlighted:g,url:h}=l.payload,p=t.sourceInfos?.type==="loading"||t.sourceInfos?.type==="loaded"?t.sourceInfos?.chunkId:void 0;return p&&p!==r?t:i==="loading"||i==="loaded"&&g?{...t,sourceInfos:{type:"loaded",chunkId:r,knowledgeBaseType:o,title:f,content:d,highlighted:g,url:h}}:t}case Zh:return{...t,sourceInfos:void 0};case Ob:return{...t,showTranscriptMailOverlay:!t.showTranscriptMailOverlay,conversationRating:{...t.conversationRating,opener:void 0}};default:return t}},Mv=(t,l)=>{const i=t.messages[t.messages.length-1],r=i?.text===l.text;return i&&i.sender.type===l.sender.type&&r?t:Object.assign({},t,{messages:t.messages.concat([l]),quickReplies:[]})},fi=t=>{dx()?window.top?.postMessage(t,"*"):t.type==="webclient.change.url"&&window.open(t.url)},dx=()=>typeof window<"u"&&window.self!==window.top,kv={messages:[],quickReplies:[],isBotTyping:!1,showTranscriptMailOverlay:!1,conversationRating:{enabled:!1}},_y=qh({name:"intl",initialState:yy,reducers:{updateIntl:(t,l)=>{t.locale=l.payload.language,t.messages=l.payload.messages}}}),{updateIntl:hx}=_y.actions,px=_y.reducer,gx={version:void 0,requiresUserAuthentication:!1,enableStartScreen:void 0,enableStandaloneView:!1,enableTranscriptExportEmail:!1,enableTranscriptExportPdf:!1,enableGeneralConditions:!1,enableSpeechSupport:!1,commands:[],menuItems:[]},Sy=qh({name:"settings",initialState:gx,reducers:{setSettings(t,l){t.version&&t.version!==l.payload.version?(console.log("version changed, reloading chat window"),window.location.reload()):(t.version=l.payload.version,t.requiresUserAuthentication=l.payload.requiresUserAuthentication,t.enableStartScreen=l.payload.enableStartScreen,t.enableStandaloneView=l.payload.enableStandaloneView,t.enableTranscriptExportEmail=l.payload.enableTranscriptExportEmail,t.enableTranscriptExportPdf=l.payload.enableTranscriptExportPdf,t.enableGeneralConditions=l.payload.enableGeneralConditions,t.enableSpeechSupport=l.payload.enableSpeechSupport,t.commands=l.payload.commands,t.menuItems=l.payload.menuItems||[])}}}),{setSettings:mx}=Sy.actions,vx=Sy.reducer,bx=db({settings:vx,chat:fx,startScreen:D3,connection:ux,intl:px}),yx="bubble-chat",Ey="state-last-saved-at",wy="state",_x=t=>{try{if(!wx())return;const l=Lv(t,Ey);if(Ex(l))return;{const i=Lv(t,wy);if(i===null)return;const r=JSON.parse(i),o=r.connection?.queryString;if(o!==void 0&&o!==window.location.search){console.log("Ignoring persisted state due to different query string");return}else return r}}catch(l){console.error(l);return}},Sx=(t,l)=>{try{const i=JSON.stringify(l);zv(t,wy,i);const r=new Date().toISOString();zv(t,Ey,r)}catch(i){console.error(i)}},Ex=t=>{if(t===null)return!1;const l=new Date(t);return l.setHours(l.getHours()+12),new Date>l},wx=()=>typeof localStorage<"u",Lv=(t,l)=>{const i=Ty(t,l);return localStorage.getItem(i)},zv=(t,l,i)=>{const r=Ty(t,l);return localStorage.setItem(r,i)},Ty=(t,l)=>`${yx}-${t}-${l}`,Xa=Object.create(null);Xa.open="0";Xa.close="1";Xa.ping="2";Xa.pong="3";Xa.message="4";Xa.upgrade="5";Xa.noop="6";const vu=Object.create(null);Object.keys(Xa).forEach(t=>{vu[Xa[t]]=t});const Ah={type:"error",data:"parser error"},Ay=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",Cy=typeof ArrayBuffer=="function",xy=t=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(t):t&&t.buffer instanceof ArrayBuffer,Cp=({type:t,data:l},i,r)=>Ay&&l instanceof Blob?i?r(l):jv(l,r):Cy&&(l instanceof ArrayBuffer||xy(l))?i?r(l):jv(new Blob([l]),r):r(Xa[t]+(l||"")),jv=(t,l)=>{const i=new FileReader;return i.onload=function(){const r=i.result.split(",")[1];l("b"+(r||""))},i.readAsDataURL(t)};function Bv(t){return t instanceof Uint8Array?t:t instanceof ArrayBuffer?new Uint8Array(t):new Uint8Array(t.buffer,t.byteOffset,t.byteLength)}let Yd;function Tx(t,l){if(Ay&&t.data instanceof Blob)return t.data.arrayBuffer().then(Bv).then(l);if(Cy&&(t.data instanceof ArrayBuffer||xy(t.data)))return l(Bv(t.data));Cp(t,!1,i=>{Yd||(Yd=new TextEncoder),l(Yd.encode(i))})}const Uv="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",ms=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let t=0;t<Uv.length;t++)ms[Uv.charCodeAt(t)]=t;const Ax=t=>{let l=t.length*.75,i=t.length,r,o=0,f,d,g,h;t[t.length-1]==="="&&(l--,t[t.length-2]==="="&&l--);const p=new ArrayBuffer(l),v=new Uint8Array(p);for(r=0;r<i;r+=4)f=ms[t.charCodeAt(r)],d=ms[t.charCodeAt(r+1)],g=ms[t.charCodeAt(r+2)],h=ms[t.charCodeAt(r+3)],v[o++]=f<<2|d>>4,v[o++]=(d&15)<<4|g>>2,v[o++]=(g&3)<<6|h&63;return p},Cx=typeof ArrayBuffer=="function",xp=(t,l)=>{if(typeof t!="string")return{type:"message",data:Oy(t,l)};const i=t.charAt(0);return i==="b"?{type:"message",data:xx(t.substring(1),l)}:vu[i]?t.length>1?{type:vu[i],data:t.substring(1)}:{type:vu[i]}:Ah},xx=(t,l)=>{if(Cx){const i=Ax(t);return Oy(i,l)}else return{base64:!0,data:t}},Oy=(t,l)=>{switch(l){case"blob":return t instanceof Blob?t:new Blob([t]);case"arraybuffer":default:return t instanceof ArrayBuffer?t:t.buffer}},Dy="",Ox=(t,l)=>{const i=t.length,r=new Array(i);let o=0;t.forEach((f,d)=>{Cp(f,!1,g=>{r[d]=g,++o===i&&l(r.join(Dy))})})},Dx=(t,l)=>{const i=t.split(Dy),r=[];for(let o=0;o<i.length;o++){const f=xp(i[o],l);if(r.push(f),f.type==="error")break}return r};function Rx(){return new TransformStream({transform(t,l){Tx(t,i=>{const r=i.length;let o;if(r<126)o=new Uint8Array(1),new DataView(o.buffer).setUint8(0,r);else if(r<65536){o=new Uint8Array(3);const f=new DataView(o.buffer);f.setUint8(0,126),f.setUint16(1,r)}else{o=new Uint8Array(9);const f=new DataView(o.buffer);f.setUint8(0,127),f.setBigUint64(1,BigInt(r))}t.data&&typeof t.data!="string"&&(o[0]|=128),l.enqueue(o),l.enqueue(i)})}})}let Kd;function ou(t){return t.reduce((l,i)=>l+i.length,0)}function uu(t,l){if(t[0].length===l)return t.shift();const i=new Uint8Array(l);let r=0;for(let o=0;o<l;o++)i[o]=t[0][r++],r===t[0].length&&(t.shift(),r=0);return t.length&&r<t[0].length&&(t[0]=t[0].slice(r)),i}function Nx(t,l){Kd||(Kd=new TextDecoder);const i=[];let r=0,o=-1,f=!1;return new TransformStream({transform(d,g){for(i.push(d);;){if(r===0){if(ou(i)<1)break;const h=uu(i,1);f=(h[0]&128)===128,o=h[0]&127,o<126?r=3:o===126?r=1:r=2}else if(r===1){if(ou(i)<2)break;const h=uu(i,2);o=new DataView(h.buffer,h.byteOffset,h.length).getUint16(0),r=3}else if(r===2){if(ou(i)<8)break;const h=uu(i,8),p=new DataView(h.buffer,h.byteOffset,h.length),v=p.getUint32(0);if(v>Math.pow(2,21)-1){g.enqueue(Ah);break}o=v*Math.pow(2,32)+p.getUint32(4),r=3}else{if(ou(i)<o)break;const h=uu(i,o);g.enqueue(xp(f?h:Kd.decode(h),l)),r=0}if(o===0||o>t){g.enqueue(Ah);break}}}})}const Ry=4;function en(t){if(t)return Mx(t)}function Mx(t){for(var l in en.prototype)t[l]=en.prototype[l];return t}en.prototype.on=en.prototype.addEventListener=function(t,l){return this._callbacks=this._callbacks||{},(this._callbacks["$"+t]=this._callbacks["$"+t]||[]).push(l),this};en.prototype.once=function(t,l){function i(){this.off(t,i),l.apply(this,arguments)}return i.fn=l,this.on(t,i),this};en.prototype.off=en.prototype.removeListener=en.prototype.removeAllListeners=en.prototype.removeEventListener=function(t,l){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var i=this._callbacks["$"+t];if(!i)return this;if(arguments.length==1)return delete this._callbacks["$"+t],this;for(var r,o=0;o<i.length;o++)if(r=i[o],r===l||r.fn===l){i.splice(o,1);break}return i.length===0&&delete this._callbacks["$"+t],this};en.prototype.emit=function(t){this._callbacks=this._callbacks||{};for(var l=new Array(arguments.length-1),i=this._callbacks["$"+t],r=1;r<arguments.length;r++)l[r-1]=arguments[r];if(i){i=i.slice(0);for(var r=0,o=i.length;r<o;++r)i[r].apply(this,l)}return this};en.prototype.emitReserved=en.prototype.emit;en.prototype.listeners=function(t){return this._callbacks=this._callbacks||{},this._callbacks["$"+t]||[]};en.prototype.hasListeners=function(t){return!!this.listeners(t).length};const uc=typeof Promise=="function"&&typeof Promise.resolve=="function"?l=>Promise.resolve().then(l):(l,i)=>i(l,0),Sa=typeof self<"u"?self:typeof window<"u"?window:Function("return this")(),kx="arraybuffer";function Ny(t,...l){return l.reduce((i,r)=>(t.hasOwnProperty(r)&&(i[r]=t[r]),i),{})}const Lx=Sa.setTimeout,zx=Sa.clearTimeout;function cc(t,l){l.useNativeTimers?(t.setTimeoutFn=Lx.bind(Sa),t.clearTimeoutFn=zx.bind(Sa)):(t.setTimeoutFn=Sa.setTimeout.bind(Sa),t.clearTimeoutFn=Sa.clearTimeout.bind(Sa))}const jx=1.33;function Bx(t){return typeof t=="string"?Ux(t):Math.ceil((t.byteLength||t.size)*jx)}function Ux(t){let l=0,i=0;for(let r=0,o=t.length;r<o;r++)l=t.charCodeAt(r),l<128?i+=1:l<2048?i+=2:l<55296||l>=57344?i+=3:(r++,i+=4);return i}function My(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)}function Hx(t){let l="";for(let i in t)t.hasOwnProperty(i)&&(l.length&&(l+="&"),l+=encodeURIComponent(i)+"="+encodeURIComponent(t[i]));return l}function Ix(t){let l={},i=t.split("&");for(let r=0,o=i.length;r<o;r++){let f=i[r].split("=");l[decodeURIComponent(f[0])]=decodeURIComponent(f[1])}return l}class Vx extends Error{constructor(l,i,r){super(l),this.description=i,this.context=r,this.type="TransportError"}}class Op extends en{constructor(l){super(),this.writable=!1,cc(this,l),this.opts=l,this.query=l.query,this.socket=l.socket,this.supportsBinary=!l.forceBase64}onError(l,i,r){return super.emitReserved("error",new Vx(l,i,r)),this}open(){return this.readyState="opening",this.doOpen(),this}close(){return(this.readyState==="opening"||this.readyState==="open")&&(this.doClose(),this.onClose()),this}send(l){this.readyState==="open"&&this.write(l)}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(l){const i=xp(l,this.socket.binaryType);this.onPacket(i)}onPacket(l){super.emitReserved("packet",l)}onClose(l){this.readyState="closed",super.emitReserved("close",l)}pause(l){}createUri(l,i={}){return l+"://"+this._hostname()+this._port()+this.opts.path+this._query(i)}_hostname(){const l=this.opts.hostname;return l.indexOf(":")===-1?l:"["+l+"]"}_port(){return this.opts.port&&(this.opts.secure&&+(this.opts.port!==443)||!this.opts.secure&&Number(this.opts.port)!==80)?":"+this.opts.port:""}_query(l){const i=Hx(l);return i.length?"?"+i:""}}class Qx extends Op{constructor(){super(...arguments),this._polling=!1}get name(){return"polling"}doOpen(){this._poll()}pause(l){this.readyState="pausing";const i=()=>{this.readyState="paused",l()};if(this._polling||!this.writable){let r=0;this._polling&&(r++,this.once("pollComplete",function(){--r||i()})),this.writable||(r++,this.once("drain",function(){--r||i()}))}else i()}_poll(){this._polling=!0,this.doPoll(),this.emitReserved("poll")}onData(l){const i=r=>{if(this.readyState==="opening"&&r.type==="open"&&this.onOpen(),r.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(r)};Dx(l,this.socket.binaryType).forEach(i),this.readyState!=="closed"&&(this._polling=!1,this.emitReserved("pollComplete"),this.readyState==="open"&&this._poll())}doClose(){const l=()=>{this.write([{type:"close"}])};this.readyState==="open"?l():this.once("open",l)}write(l){this.writable=!1,Ox(l,i=>{this.doWrite(i,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){const l=this.opts.secure?"https":"http",i=this.query||{};return this.opts.timestampRequests!==!1&&(i[this.opts.timestampParam]=My()),!this.supportsBinary&&!i.sid&&(i.b64=1),this.createUri(l,i)}}let ky=!1;try{ky=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{}const Xx=ky;function Gx(){}class Zx extends Qx{constructor(l){if(super(l),typeof location<"u"){const i=location.protocol==="https:";let r=location.port;r||(r=i?"443":"80"),this.xd=typeof location<"u"&&l.hostname!==location.hostname||r!==l.port}}doWrite(l,i){const r=this.request({method:"POST",data:l});r.on("success",i),r.on("error",(o,f)=>{this.onError("xhr post error",o,f)})}doPoll(){const l=this.request();l.on("data",this.onData.bind(this)),l.on("error",(i,r)=>{this.onError("xhr poll error",i,r)}),this.pollXhr=l}}class Va extends en{constructor(l,i,r){super(),this.createRequest=l,cc(this,r),this._opts=r,this._method=r.method||"GET",this._uri=i,this._data=r.data!==void 0?r.data:null,this._create()}_create(){var l;const i=Ny(this._opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");i.xdomain=!!this._opts.xd;const r=this._xhr=this.createRequest(i);try{r.open(this._method,this._uri,!0);try{if(this._opts.extraHeaders){r.setDisableHeaderCheck&&r.setDisableHeaderCheck(!0);for(let o in this._opts.extraHeaders)this._opts.extraHeaders.hasOwnProperty(o)&&r.setRequestHeader(o,this._opts.extraHeaders[o])}}catch{}if(this._method==="POST")try{r.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{r.setRequestHeader("Accept","*/*")}catch{}(l=this._opts.cookieJar)===null||l===void 0||l.addCookies(r),"withCredentials"in r&&(r.withCredentials=this._opts.withCredentials),this._opts.requestTimeout&&(r.timeout=this._opts.requestTimeout),r.onreadystatechange=()=>{var o;r.readyState===3&&((o=this._opts.cookieJar)===null||o===void 0||o.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(o){this.setTimeoutFn(()=>{this._onError(o)},0);return}typeof document<"u"&&(this._index=Va.requestsCount++,Va.requests[this._index]=this)}_onError(l){this.emitReserved("error",l,this._xhr),this._cleanup(!0)}_cleanup(l){if(!(typeof this._xhr>"u"||this._xhr===null)){if(this._xhr.onreadystatechange=Gx,l)try{this._xhr.abort()}catch{}typeof document<"u"&&delete Va.requests[this._index],this._xhr=null}}_onLoad(){const l=this._xhr.responseText;l!==null&&(this.emitReserved("data",l),this.emitReserved("success"),this._cleanup())}abort(){this._cleanup()}}Va.requestsCount=0;Va.requests={};if(typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",Hv);else if(typeof addEventListener=="function"){const t="onpagehide"in Sa?"pagehide":"unload";addEventListener(t,Hv,!1)}}function Hv(){for(let t in Va.requests)Va.requests.hasOwnProperty(t)&&Va.requests[t].abort()}const Fx=(function(){const t=Ly({xdomain:!1});return t&&t.responseType!==null})();class Yx extends Zx{constructor(l){super(l);const i=l&&l.forceBase64;this.supportsBinary=Fx&&!i}request(l={}){return Object.assign(l,{xd:this.xd},this.opts),new Va(Ly,this.uri(),l)}}function Ly(t){const l=t.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!l||Xx))return new XMLHttpRequest}catch{}if(!l)try{return new Sa[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}const zy=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative";class Kx extends Op{get name(){return"websocket"}doOpen(){const l=this.uri(),i=this.opts.protocols,r=zy?{}:Ny(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(r.headers=this.opts.extraHeaders);try{this.ws=this.createSocket(l,i,r)}catch(o){return this.emitReserved("error",o)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=l=>this.onClose({description:"websocket connection closed",context:l}),this.ws.onmessage=l=>this.onData(l.data),this.ws.onerror=l=>this.onError("websocket error",l)}write(l){this.writable=!1;for(let i=0;i<l.length;i++){const r=l[i],o=i===l.length-1;Cp(r,this.supportsBinary,f=>{try{this.doWrite(r,f)}catch{}o&&uc(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){typeof this.ws<"u"&&(this.ws.onerror=()=>{},this.ws.close(),this.ws=null)}uri(){const l=this.opts.secure?"wss":"ws",i=this.query||{};return this.opts.timestampRequests&&(i[this.opts.timestampParam]=My()),this.supportsBinary||(i.b64=1),this.createUri(l,i)}}const Jd=Sa.WebSocket||Sa.MozWebSocket;class Jx extends Kx{createSocket(l,i,r){return zy?new Jd(l,i,r):i?new Jd(l,i):new Jd(l)}doWrite(l,i){this.ws.send(i)}}class Px extends Op{get name(){return"webtransport"}doOpen(){try{this._transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name])}catch(l){return this.emitReserved("error",l)}this._transport.closed.then(()=>{this.onClose()}).catch(l=>{this.onError("webtransport error",l)}),this._transport.ready.then(()=>{this._transport.createBidirectionalStream().then(l=>{const i=Nx(Number.MAX_SAFE_INTEGER,this.socket.binaryType),r=l.readable.pipeThrough(i).getReader(),o=Rx();o.readable.pipeTo(l.writable),this._writer=o.writable.getWriter();const f=()=>{r.read().then(({done:g,value:h})=>{g||(this.onPacket(h),f())}).catch(g=>{})};f();const d={type:"open"};this.query.sid&&(d.data=`{"sid":"${this.query.sid}"}`),this._writer.write(d).then(()=>this.onOpen())})})}write(l){this.writable=!1;for(let i=0;i<l.length;i++){const r=l[i],o=i===l.length-1;this._writer.write(r).then(()=>{o&&uc(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var l;(l=this._transport)===null||l===void 0||l.close()}}const Wx={websocket:Jx,webtransport:Px,polling:Yx},$x=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,qx=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function Ch(t){if(t.length>8e3)throw"URI too long";const l=t,i=t.indexOf("["),r=t.indexOf("]");i!=-1&&r!=-1&&(t=t.substring(0,i)+t.substring(i,r).replace(/:/g,";")+t.substring(r,t.length));let o=$x.exec(t||""),f={},d=14;for(;d--;)f[qx[d]]=o[d]||"";return i!=-1&&r!=-1&&(f.source=l,f.host=f.host.substring(1,f.host.length-1).replace(/;/g,":"),f.authority=f.authority.replace("[","").replace("]","").replace(/;/g,":"),f.ipv6uri=!0),f.pathNames=e4(f,f.path),f.queryKey=t4(f,f.query),f}function e4(t,l){const i=/\/{2,9}/g,r=l.replace(i,"/").split("/");return(l.slice(0,1)=="/"||l.length===0)&&r.splice(0,1),l.slice(-1)=="/"&&r.splice(r.length-1,1),r}function t4(t,l){const i={};return l.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(r,o,f){o&&(i[o]=f)}),i}const xh=typeof addEventListener=="function"&&typeof removeEventListener=="function",bu=[];xh&&addEventListener("offline",()=>{bu.forEach(t=>t())},!1);class Zl extends en{constructor(l,i){if(super(),this.binaryType=kx,this.writeBuffer=[],this._prevBufferLen=0,this._pingInterval=-1,this._pingTimeout=-1,this._maxPayload=-1,this._pingTimeoutTime=1/0,l&&typeof l=="object"&&(i=l,l=null),l){const r=Ch(l);i.hostname=r.host,i.secure=r.protocol==="https"||r.protocol==="wss",i.port=r.port,r.query&&(i.query=r.query)}else i.host&&(i.hostname=Ch(i.host).host);cc(this,i),this.secure=i.secure!=null?i.secure:typeof location<"u"&&location.protocol==="https:",i.hostname&&!i.port&&(i.port=this.secure?"443":"80"),this.hostname=i.hostname||(typeof location<"u"?location.hostname:"localhost"),this.port=i.port||(typeof location<"u"&&location.port?location.port:this.secure?"443":"80"),this.transports=[],this._transportsByName={},i.transports.forEach(r=>{const o=r.prototype.name;this.transports.push(o),this._transportsByName[o]=r}),this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},i),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),typeof this.opts.query=="string"&&(this.opts.query=Ix(this.opts.query)),xh&&(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"})},bu.push(this._offlineEventListener))),this.opts.withCredentials&&(this._cookieJar=void 0),this._open()}createTransport(l){const i=Object.assign({},this.opts.query);i.EIO=Ry,i.transport=l,this.id&&(i.sid=this.id);const r=Object.assign({},this.opts,{query:i,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[l]);return new this._transportsByName[l](r)}_open(){if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}const l=this.opts.rememberUpgrade&&Zl.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1?"websocket":this.transports[0];this.readyState="opening";const i=this.createTransport(l);i.open(),this.setTransport(i)}setTransport(l){this.transport&&this.transport.removeAllListeners(),this.transport=l,l.on("drain",this._onDrain.bind(this)).on("packet",this._onPacket.bind(this)).on("error",this._onError.bind(this)).on("close",i=>this._onClose("transport close",i))}onOpen(){this.readyState="open",Zl.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush()}_onPacket(l){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")switch(this.emitReserved("packet",l),this.emitReserved("heartbeat"),l.type){case"open":this.onHandshake(JSON.parse(l.data));break;case"ping":this._sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong"),this._resetPingTimeout();break;case"error":const i=new Error("server error");i.code=l.data,this._onError(i);break;case"message":this.emitReserved("data",l.data),this.emitReserved("message",l.data);break}}onHandshake(l){this.emitReserved("handshake",l),this.id=l.sid,this.transport.query.sid=l.sid,this._pingInterval=l.pingInterval,this._pingTimeout=l.pingTimeout,this._maxPayload=l.maxPayload,this.onOpen(),this.readyState!=="closed"&&this._resetPingTimeout()}_resetPingTimeout(){this.clearTimeoutFn(this._pingTimeoutTimer);const l=this._pingInterval+this._pingTimeout;this._pingTimeoutTime=Date.now()+l,this._pingTimeoutTimer=this.setTimeoutFn(()=>{this._onClose("ping timeout")},l),this.opts.autoUnref&&this._pingTimeoutTimer.unref()}_onDrain(){this.writeBuffer.splice(0,this._prevBufferLen),this._prevBufferLen=0,this.writeBuffer.length===0?this.emitReserved("drain"):this.flush()}flush(){if(this.readyState!=="closed"&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){const l=this._getWritablePackets();this.transport.send(l),this._prevBufferLen=l.length,this.emitReserved("flush")}}_getWritablePackets(){if(!(this._maxPayload&&this.transport.name==="polling"&&this.writeBuffer.length>1))return this.writeBuffer;let i=1;for(let r=0;r<this.writeBuffer.length;r++){const o=this.writeBuffer[r].data;if(o&&(i+=Bx(o)),r>0&&i>this._maxPayload)return this.writeBuffer.slice(0,r);i+=2}return this.writeBuffer}_hasPingExpired(){if(!this._pingTimeoutTime)return!0;const l=Date.now()>this._pingTimeoutTime;return l&&(this._pingTimeoutTime=0,uc(()=>{this._onClose("ping timeout")},this.setTimeoutFn)),l}write(l,i,r){return this._sendPacket("message",l,i,r),this}send(l,i,r){return this._sendPacket("message",l,i,r),this}_sendPacket(l,i,r,o){if(typeof i=="function"&&(o=i,i=void 0),typeof r=="function"&&(o=r,r=null),this.readyState==="closing"||this.readyState==="closed")return;r=r||{},r.compress=r.compress!==!1;const f={type:l,data:i,options:r};this.emitReserved("packetCreate",f),this.writeBuffer.push(f),o&&this.once("flush",o),this.flush()}close(){const l=()=>{this._onClose("forced close"),this.transport.close()},i=()=>{this.off("upgrade",i),this.off("upgradeError",i),l()},r=()=>{this.once("upgrade",i),this.once("upgradeError",i)};return(this.readyState==="opening"||this.readyState==="open")&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?r():l()}):this.upgrading?r():l()),this}_onError(l){if(Zl.priorWebsocketSuccess=!1,this.opts.tryAllTransports&&this.transports.length>1&&this.readyState==="opening")return this.transports.shift(),this._open();this.emitReserved("error",l),this._onClose("transport error",l)}_onClose(l,i){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing"){if(this.clearTimeoutFn(this._pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),xh&&(this._beforeunloadEventListener&&removeEventListener("beforeunload",this._beforeunloadEventListener,!1),this._offlineEventListener)){const r=bu.indexOf(this._offlineEventListener);r!==-1&&bu.splice(r,1)}this.readyState="closed",this.id=null,this.emitReserved("close",l,i),this.writeBuffer=[],this._prevBufferLen=0}}}Zl.protocol=Ry;class n4 extends Zl{constructor(){super(...arguments),this._upgrades=[]}onOpen(){if(super.onOpen(),this.readyState==="open"&&this.opts.upgrade)for(let l=0;l<this._upgrades.length;l++)this._probe(this._upgrades[l])}_probe(l){let i=this.createTransport(l),r=!1;Zl.priorWebsocketSuccess=!1;const o=()=>{r||(i.send([{type:"ping",data:"probe"}]),i.once("packet",S=>{if(!r)if(S.type==="pong"&&S.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",i),!i)return;Zl.priorWebsocketSuccess=i.name==="websocket",this.transport.pause(()=>{r||this.readyState!=="closed"&&(v(),this.setTransport(i),i.send([{type:"upgrade"}]),this.emitReserved("upgrade",i),i=null,this.upgrading=!1,this.flush())})}else{const y=new Error("probe error");y.transport=i.name,this.emitReserved("upgradeError",y)}}))};function f(){r||(r=!0,v(),i.close(),i=null)}const d=S=>{const y=new Error("probe error: "+S);y.transport=i.name,f(),this.emitReserved("upgradeError",y)};function g(){d("transport closed")}function h(){d("socket closed")}function p(S){i&&S.name!==i.name&&f()}const v=()=>{i.removeListener("open",o),i.removeListener("error",d),i.removeListener("close",g),this.off("close",h),this.off("upgrading",p)};i.once("open",o),i.once("error",d),i.once("close",g),this.once("close",h),this.once("upgrading",p),this._upgrades.indexOf("webtransport")!==-1&&l!=="webtransport"?this.setTimeoutFn(()=>{r||i.open()},200):i.open()}onHandshake(l){this._upgrades=this._filterUpgrades(l.upgrades),super.onHandshake(l)}_filterUpgrades(l){const i=[];for(let r=0;r<l.length;r++)~this.transports.indexOf(l[r])&&i.push(l[r]);return i}}let a4=class extends n4{constructor(l,i={}){const r=typeof l=="object"?l:i;(!r.transports||r.transports&&typeof r.transports[0]=="string")&&(r.transports=(r.transports||["polling","websocket","webtransport"]).map(o=>Wx[o]).filter(o=>!!o)),super(l,r)}};function l4(t,l="",i){let r=t;i=i||typeof location<"u"&&location,t==null&&(t=i.protocol+"//"+i.host),typeof t=="string"&&(t.charAt(0)==="/"&&(t.charAt(1)==="/"?t=i.protocol+t:t=i.host+t),/^(https?|wss?):\/\//.test(t)||(typeof i<"u"?t=i.protocol+"//"+t:t="https://"+t),r=Ch(t)),r.port||(/^(http|ws)$/.test(r.protocol)?r.port="80":/^(http|ws)s$/.test(r.protocol)&&(r.port="443")),r.path=r.path||"/";const f=r.host.indexOf(":")!==-1?"["+r.host+"]":r.host;return r.id=r.protocol+"://"+f+":"+r.port+l,r.href=r.protocol+"://"+f+(i&&i.port===r.port?"":":"+r.port),r}const i4=typeof ArrayBuffer=="function",r4=t=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(t):t.buffer instanceof ArrayBuffer,jy=Object.prototype.toString,s4=typeof Blob=="function"||typeof Blob<"u"&&jy.call(Blob)==="[object BlobConstructor]",o4=typeof File=="function"||typeof File<"u"&&jy.call(File)==="[object FileConstructor]";function Dp(t){return i4&&(t instanceof ArrayBuffer||r4(t))||s4&&t instanceof Blob||o4&&t instanceof File}function yu(t,l){if(!t||typeof t!="object")return!1;if(Array.isArray(t)){for(let i=0,r=t.length;i<r;i++)if(yu(t[i]))return!0;return!1}if(Dp(t))return!0;if(t.toJSON&&typeof t.toJSON=="function"&&arguments.length===1)return yu(t.toJSON(),!0);for(const i in t)if(Object.prototype.hasOwnProperty.call(t,i)&&yu(t[i]))return!0;return!1}function u4(t){const l=[],i=t.data,r=t;return r.data=Oh(i,l),r.attachments=l.length,{packet:r,buffers:l}}function Oh(t,l){if(!t)return t;if(Dp(t)){const i={_placeholder:!0,num:l.length};return l.push(t),i}else if(Array.isArray(t)){const i=new Array(t.length);for(let r=0;r<t.length;r++)i[r]=Oh(t[r],l);return i}else if(typeof t=="object"&&!(t instanceof Date)){const i={};for(const r in t)Object.prototype.hasOwnProperty.call(t,r)&&(i[r]=Oh(t[r],l));return i}return t}function c4(t,l){return t.data=Dh(t.data,l),delete t.attachments,t}function Dh(t,l){if(!t)return t;if(t&&t._placeholder===!0){if(typeof t.num=="number"&&t.num>=0&&t.num<l.length)return l[t.num];throw new Error("illegal attachments")}else if(Array.isArray(t))for(let i=0;i<t.length;i++)t[i]=Dh(t[i],l);else if(typeof t=="object")for(const i in t)Object.prototype.hasOwnProperty.call(t,i)&&(t[i]=Dh(t[i],l));return t}const f4=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"],d4=5;var Ke;(function(t){t[t.CONNECT=0]="CONNECT",t[t.DISCONNECT=1]="DISCONNECT",t[t.EVENT=2]="EVENT",t[t.ACK=3]="ACK",t[t.CONNECT_ERROR=4]="CONNECT_ERROR",t[t.BINARY_EVENT=5]="BINARY_EVENT",t[t.BINARY_ACK=6]="BINARY_ACK"})(Ke||(Ke={}));class h4{constructor(l){this.replacer=l}encode(l){return(l.type===Ke.EVENT||l.type===Ke.ACK)&&yu(l)?this.encodeAsBinary({type:l.type===Ke.EVENT?Ke.BINARY_EVENT:Ke.BINARY_ACK,nsp:l.nsp,data:l.data,id:l.id}):[this.encodeAsString(l)]}encodeAsString(l){let i=""+l.type;return(l.type===Ke.BINARY_EVENT||l.type===Ke.BINARY_ACK)&&(i+=l.attachments+"-"),l.nsp&&l.nsp!=="/"&&(i+=l.nsp+","),l.id!=null&&(i+=l.id),l.data!=null&&(i+=JSON.stringify(l.data,this.replacer)),i}encodeAsBinary(l){const i=u4(l),r=this.encodeAsString(i.packet),o=i.buffers;return o.unshift(r),o}}function Iv(t){return Object.prototype.toString.call(t)==="[object Object]"}class Rp extends en{constructor(l){super(),this.reviver=l}add(l){let i;if(typeof l=="string"){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");i=this.decodeString(l);const r=i.type===Ke.BINARY_EVENT;r||i.type===Ke.BINARY_ACK?(i.type=r?Ke.EVENT:Ke.ACK,this.reconstructor=new p4(i),i.attachments===0&&super.emitReserved("decoded",i)):super.emitReserved("decoded",i)}else if(Dp(l)||l.base64)if(this.reconstructor)i=this.reconstructor.takeBinaryData(l),i&&(this.reconstructor=null,super.emitReserved("decoded",i));else throw new Error("got binary data when not reconstructing a packet");else throw new Error("Unknown type: "+l)}decodeString(l){let i=0;const r={type:Number(l.charAt(0))};if(Ke[r.type]===void 0)throw new Error("unknown packet type "+r.type);if(r.type===Ke.BINARY_EVENT||r.type===Ke.BINARY_ACK){const f=i+1;for(;l.charAt(++i)!=="-"&&i!=l.length;);const d=l.substring(f,i);if(d!=Number(d)||l.charAt(i)!=="-")throw new Error("Illegal attachments");r.attachments=Number(d)}if(l.charAt(i+1)==="/"){const f=i+1;for(;++i&&!(l.charAt(i)===","||i===l.length););r.nsp=l.substring(f,i)}else r.nsp="/";const o=l.charAt(i+1);if(o!==""&&Number(o)==o){const f=i+1;for(;++i;){const d=l.charAt(i);if(d==null||Number(d)!=d){--i;break}if(i===l.length)break}r.id=Number(l.substring(f,i+1))}if(l.charAt(++i)){const f=this.tryParse(l.substr(i));if(Rp.isPayloadValid(r.type,f))r.data=f;else throw new Error("invalid payload")}return r}tryParse(l){try{return JSON.parse(l,this.reviver)}catch{return!1}}static isPayloadValid(l,i){switch(l){case Ke.CONNECT:return Iv(i);case Ke.DISCONNECT:return i===void 0;case Ke.CONNECT_ERROR:return typeof i=="string"||Iv(i);case Ke.EVENT:case Ke.BINARY_EVENT:return Array.isArray(i)&&(typeof i[0]=="number"||typeof i[0]=="string"&&f4.indexOf(i[0])===-1);case Ke.ACK:case Ke.BINARY_ACK:return Array.isArray(i)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}}class p4{constructor(l){this.packet=l,this.buffers=[],this.reconPack=l}takeBinaryData(l){if(this.buffers.push(l),this.buffers.length===this.reconPack.attachments){const i=c4(this.reconPack,this.buffers);return this.finishedReconstruction(),i}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}const g4=Object.freeze(Object.defineProperty({__proto__:null,Decoder:Rp,Encoder:h4,get PacketType(){return Ke},protocol:d4},Symbol.toStringTag,{value:"Module"}));function Da(t,l,i){return t.on(l,i),function(){t.off(l,i)}}const m4=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class By extends en{constructor(l,i,r){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=l,this.nsp=i,r&&r.auth&&(this.auth=r.auth),this._opts=Object.assign({},r),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;const l=this.io;this.subs=[Da(l,"open",this.onopen.bind(this)),Da(l,"packet",this.onpacket.bind(this)),Da(l,"error",this.onerror.bind(this)),Da(l,"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(...l){return l.unshift("message"),this.emit.apply(this,l),this}emit(l,...i){var r,o,f;if(m4.hasOwnProperty(l))throw new Error('"'+l.toString()+'" is a reserved event name');if(i.unshift(l),this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this._addToQueue(i),this;const d={type:Ke.EVENT,data:i};if(d.options={},d.options.compress=this.flags.compress!==!1,typeof i[i.length-1]=="function"){const v=this.ids++,S=i.pop();this._registerAckCallback(v,S),d.id=v}const g=(o=(r=this.io.engine)===null||r===void 0?void 0:r.transport)===null||o===void 0?void 0:o.writable,h=this.connected&&!(!((f=this.io.engine)===null||f===void 0)&&f._hasPingExpired());return this.flags.volatile&&!g||(h?(this.notifyOutgoingListeners(d),this.packet(d)):this.sendBuffer.push(d)),this.flags={},this}_registerAckCallback(l,i){var r;const o=(r=this.flags.timeout)!==null&&r!==void 0?r:this._opts.ackTimeout;if(o===void 0){this.acks[l]=i;return}const f=this.io.setTimeoutFn(()=>{delete this.acks[l];for(let g=0;g<this.sendBuffer.length;g++)this.sendBuffer[g].id===l&&this.sendBuffer.splice(g,1);i.call(this,new Error("operation has timed out"))},o),d=(...g)=>{this.io.clearTimeoutFn(f),i.apply(this,g)};d.withError=!0,this.acks[l]=d}emitWithAck(l,...i){return new Promise((r,o)=>{const f=(d,g)=>d?o(d):r(g);f.withError=!0,i.push(f),this.emit(l,...i)})}_addToQueue(l){let i;typeof l[l.length-1]=="function"&&(i=l.pop());const r={id:this._queueSeq++,tryCount:0,pending:!1,args:l,flags:Object.assign({fromQueue:!0},this.flags)};l.push((o,...f)=>r!==this._queue[0]?void 0:(o!==null?r.tryCount>this._opts.retries&&(this._queue.shift(),i&&i(o)):(this._queue.shift(),i&&i(null,...f)),r.pending=!1,this._drainQueue())),this._queue.push(r),this._drainQueue()}_drainQueue(l=!1){if(!this.connected||this._queue.length===0)return;const i=this._queue[0];i.pending&&!l||(i.pending=!0,i.tryCount++,this.flags=i.flags,this.emit.apply(this,i.args))}packet(l){l.nsp=this.nsp,this.io._packet(l)}onopen(){typeof this.auth=="function"?this.auth(l=>{this._sendConnectPacket(l)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(l){this.packet({type:Ke.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},l):l})}onerror(l){this.connected||this.emitReserved("connect_error",l)}onclose(l,i){this.connected=!1,delete this.id,this.emitReserved("disconnect",l,i),this._clearAcks()}_clearAcks(){Object.keys(this.acks).forEach(l=>{if(!this.sendBuffer.some(r=>String(r.id)===l)){const r=this.acks[l];delete this.acks[l],r.withError&&r.call(this,new Error("socket has been disconnected"))}})}onpacket(l){if(l.nsp===this.nsp)switch(l.type){case Ke.CONNECT:l.data&&l.data.sid?this.onconnect(l.data.sid,l.data.pid):this.emitReserved("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case Ke.EVENT:case Ke.BINARY_EVENT:this.onevent(l);break;case Ke.ACK:case Ke.BINARY_ACK:this.onack(l);break;case Ke.DISCONNECT:this.ondisconnect();break;case Ke.CONNECT_ERROR:this.destroy();const r=new Error(l.data.message);r.data=l.data.data,this.emitReserved("connect_error",r);break}}onevent(l){const i=l.data||[];l.id!=null&&i.push(this.ack(l.id)),this.connected?this.emitEvent(i):this.receiveBuffer.push(Object.freeze(i))}emitEvent(l){if(this._anyListeners&&this._anyListeners.length){const i=this._anyListeners.slice();for(const r of i)r.apply(this,l)}super.emit.apply(this,l),this._pid&&l.length&&typeof l[l.length-1]=="string"&&(this._lastOffset=l[l.length-1])}ack(l){const i=this;let r=!1;return function(...o){r||(r=!0,i.packet({type:Ke.ACK,id:l,data:o}))}}onack(l){const i=this.acks[l.id];typeof i=="function"&&(delete this.acks[l.id],i.withError&&l.data.unshift(null),i.apply(this,l.data))}onconnect(l,i){this.id=l,this.recovered=i&&this._pid===i,this._pid=i,this.connected=!0,this.emitBuffered(),this.emitReserved("connect"),this._drainQueue(!0)}emitBuffered(){this.receiveBuffer.forEach(l=>this.emitEvent(l)),this.receiveBuffer=[],this.sendBuffer.forEach(l=>{this.notifyOutgoingListeners(l),this.packet(l)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(l=>l()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:Ke.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(l){return this.flags.compress=l,this}get volatile(){return this.flags.volatile=!0,this}timeout(l){return this.flags.timeout=l,this}onAny(l){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(l),this}prependAny(l){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(l),this}offAny(l){if(!this._anyListeners)return this;if(l){const i=this._anyListeners;for(let r=0;r<i.length;r++)if(l===i[r])return i.splice(r,1),this}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}onAnyOutgoing(l){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.push(l),this}prependAnyOutgoing(l){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.unshift(l),this}offAnyOutgoing(l){if(!this._anyOutgoingListeners)return this;if(l){const i=this._anyOutgoingListeners;for(let r=0;r<i.length;r++)if(l===i[r])return i.splice(r,1),this}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(l){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length){const i=this._anyOutgoingListeners.slice();for(const r of i)r.apply(this,l.data)}}}function pr(t){t=t||{},this.ms=t.min||100,this.max=t.max||1e4,this.factor=t.factor||2,this.jitter=t.jitter>0&&t.jitter<=1?t.jitter:0,this.attempts=0}pr.prototype.duration=function(){var t=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var l=Math.random(),i=Math.floor(l*this.jitter*t);t=(Math.floor(l*10)&1)==0?t-i:t+i}return Math.min(t,this.max)|0};pr.prototype.reset=function(){this.attempts=0};pr.prototype.setMin=function(t){this.ms=t};pr.prototype.setMax=function(t){this.max=t};pr.prototype.setJitter=function(t){this.jitter=t};class Rh extends en{constructor(l,i){var r;super(),this.nsps={},this.subs=[],l&&typeof l=="object"&&(i=l,l=void 0),i=i||{},i.path=i.path||"/socket.io",this.opts=i,cc(this,i),this.reconnection(i.reconnection!==!1),this.reconnectionAttempts(i.reconnectionAttempts||1/0),this.reconnectionDelay(i.reconnectionDelay||1e3),this.reconnectionDelayMax(i.reconnectionDelayMax||5e3),this.randomizationFactor((r=i.randomizationFactor)!==null&&r!==void 0?r:.5),this.backoff=new pr({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(i.timeout==null?2e4:i.timeout),this._readyState="closed",this.uri=l;const o=i.parser||g4;this.encoder=new o.Encoder,this.decoder=new o.Decoder,this._autoConnect=i.autoConnect!==!1,this._autoConnect&&this.open()}reconnection(l){return arguments.length?(this._reconnection=!!l,l||(this.skipReconnect=!0),this):this._reconnection}reconnectionAttempts(l){return l===void 0?this._reconnectionAttempts:(this._reconnectionAttempts=l,this)}reconnectionDelay(l){var i;return l===void 0?this._reconnectionDelay:(this._reconnectionDelay=l,(i=this.backoff)===null||i===void 0||i.setMin(l),this)}randomizationFactor(l){var i;return l===void 0?this._randomizationFactor:(this._randomizationFactor=l,(i=this.backoff)===null||i===void 0||i.setJitter(l),this)}reconnectionDelayMax(l){var i;return l===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=l,(i=this.backoff)===null||i===void 0||i.setMax(l),this)}timeout(l){return arguments.length?(this._timeout=l,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()}open(l){if(~this._readyState.indexOf("open"))return this;this.engine=new a4(this.uri,this.opts);const i=this.engine,r=this;this._readyState="opening",this.skipReconnect=!1;const o=Da(i,"open",function(){r.onopen(),l&&l()}),f=g=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",g),l?l(g):this.maybeReconnectOnOpen()},d=Da(i,"error",f);if(this._timeout!==!1){const g=this._timeout,h=this.setTimeoutFn(()=>{o(),f(new Error("timeout")),i.close()},g);this.opts.autoUnref&&h.unref(),this.subs.push(()=>{this.clearTimeoutFn(h)})}return this.subs.push(o),this.subs.push(d),this}connect(l){return this.open(l)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");const l=this.engine;this.subs.push(Da(l,"ping",this.onping.bind(this)),Da(l,"data",this.ondata.bind(this)),Da(l,"error",this.onerror.bind(this)),Da(l,"close",this.onclose.bind(this)),Da(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(l){try{this.decoder.add(l)}catch(i){this.onclose("parse error",i)}}ondecoded(l){uc(()=>{this.emitReserved("packet",l)},this.setTimeoutFn)}onerror(l){this.emitReserved("error",l)}socket(l,i){let r=this.nsps[l];return r?this._autoConnect&&!r.active&&r.connect():(r=new By(this,l,i),this.nsps[l]=r),r}_destroy(l){const i=Object.keys(this.nsps);for(const r of i)if(this.nsps[r].active)return;this._close()}_packet(l){const i=this.encoder.encode(l);for(let r=0;r<i.length;r++)this.engine.write(i[r],l.options)}cleanup(){this.subs.forEach(l=>l()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close")}disconnect(){return this._close()}onclose(l,i){var r;this.cleanup(),(r=this.engine)===null||r===void 0||r.close(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",l,i),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;const l=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{const i=this.backoff.duration();this._reconnecting=!0;const r=this.setTimeoutFn(()=>{l.skipReconnect||(this.emitReserved("reconnect_attempt",l.backoff.attempts),!l.skipReconnect&&l.open(o=>{o?(l._reconnecting=!1,l.reconnect(),this.emitReserved("reconnect_error",o)):l.onreconnect()}))},i);this.opts.autoUnref&&r.unref(),this.subs.push(()=>{this.clearTimeoutFn(r)})}}onreconnect(){const l=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",l)}}const hs={};function _u(t,l){typeof t=="object"&&(l=t,t=void 0),l=l||{};const i=l4(t,l.path||"/socket.io"),r=i.source,o=i.id,f=i.path,d=hs[o]&&f in hs[o].nsps,g=l.forceNew||l["force new connection"]||l.multiplex===!1||d;let h;return g?h=new Rh(r,l):(hs[o]||(hs[o]=new Rh(r,l)),h=hs[o]),i.query&&!l.query&&(l.query=i.queryKey),h.socket(i.path,l)}Object.assign(_u,{Manager:Rh,Socket:By,io:_u,connect:_u});const v4=[$v,qv,Jv,Pv,uE,...k3,...SE,"@@localize/SET_ACTIVE_LANGUAGE","@@localize/ADD_TRANSLATION_FOR_LANGUAGE"],b4=({dispatch:t,getState:l})=>i=>{let r=null;return o=>{const f=i(o);if(o.type===ep){r?.disconnect(),t(j3());const d=`/chat?${new URLSearchParams(o.querystrings).toString()}`;r=_u(`/${o.clientName}${d}`),r.on("action",t),r.on("connect",()=>t(B3())),r.on("disconnect",()=>t(U3())),r.on("reconnect",()=>t(H3())),r.on("set-translations",(g,h)=>{t(hx({language:g,messages:sx(g,h)}))}),r.on("set-settings",g=>{t(mx(g))}),r.on("enable-conversation-rating",g=>t(CE(g))),r.on("speech-transcription",g=>t(wE(g))),r.on("restore-client-state",g=>{t(z3(g.sessionId)),t(OE(g.messages))}),r.on("expand-window",({devices:g,initial:h=!1})=>{t({type:ib,devices:g,initial:h})}),r.on("restart-chat",()=>{t(ks())}),r.on("login-success",g=>{t(A3({loginToken:g.loginToken}))})}else if(o.type==="start-screen/requestLogin")r?.emit("login-requested",o.payload);else if(o.type===nc)r?.emit("start-chat",o.payload);else if(o.type===ac)r?.emit("terminate-session",o.payload);else if(o.type===_E)r?.emit("get-started",JSON.stringify(o));else if(o.type===Ih)r?.emit("audio-message",o.buffer);else if(o.type===jh)r?.emit("conversation-rating",o.payload);else if(o.type===sb){const{connection:{sessionId:d}}=l();window.location.href=`/transcript-pdf/${d}`}else v4.indexOf(o.type)===-1&&o.meta===void 0&&r&&r.emit("action",JSON.stringify(o));return f}},Uy=Fh(),y4={..._x(Uy),intl:yy},Nh=f3({middleware:t=>t().concat(b4),reducer:bx,preloadedState:y4});Nh.subscribe(NT(()=>{const t=Nh.getState();Sx(Uy,{connection:t.connection,startScreen:t.startScreen})},1e3));const _4=document.getElementById("root"),S4=eS.createRoot(_4);S4.render(b.jsx(qS,{store:Nh,children:b.jsx(nx,{})}));
131
- //# sourceMappingURL=index-DWF4Zt6l.js.map
130
+ - 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"},rx=["de","en","fr","it"],_y={locale:"de",messages:by},sx=(t,l)=>{if(rx.includes(t)){const i=ox(t),r=yy(l);return{...i,...r}}return l},ox=t=>{switch(t.toString()){case"en":return ax;case"fr":return lx;case"it":return ix;default:return by}},ux=(t=cx,l)=>{switch(l.type){case tp:return Object.assign({},t,{connectionState:hi.CONNECTING});case np:return Object.assign({},t,{connectionState:hi.CONNECTED});case ap:return Object.assign({},t,{connectionState:hi.DISCONNECTED});case lp:return Object.assign({},t,{connectionState:hi.RECONNECTED});case ip:return Object.assign({},t,{sessionId:l.sessionId});case nc:return Object.assign({},t,{sessionId:l.payload.sessionId,userId:l.payload.userId});case ac:return Object.assign({},t,{sessionId:void 0});default:return t}},cx={connectionState:hi.DISCONNECTED,sessionId:void 0,userId:void 0,queryString:window.location.search},fx=(t=kv,l)=>{switch(l.type){case xb:return kv;case nc:return fi({type:"webclient.chat.started"}),t;case ac:return fi({type:"webclient.chat.ended"}),t;case Jv:return Object.assign({},t,{isBotTyping:!0});case Pv:return Object.assign({},t,{isBotTyping:!1});case zh:case Wv:return Mv(t,l.message);case $v:{fi(l);const i=Object.assign({},l.message,{_id:l.meta.actionId}),r=t.messages.filter(o=>o._id===l.meta.actionId).length>0;return Object.assign({},t,{isBotTyping:!1,messages:r?t.messages:t.messages.concat([i]),quickReplies:i.quickReplies?i.quickReplies:[]})}case Hh:{const i=l.messages,r=i.length?i[i.length-1]:void 0;return Object.assign({},t,{isBotTyping:!1,messages:i,quickReplies:r?.quickReplies||[]})}case Uh:return fi(l.message),t;case qv:return fi(l.event),t;case dE:return Object.assign({},t,{drawerContentUrl:l.payload.parameters.contentUrl});case hE:return Object.assign({},t,{drawerContentUrl:void 0});case pE:return Object.assign({},t,{locale:l.payload.locale});case ib:return fi(l),t;case rb:return fi(l),{...t,conversationRating:{...t.conversationRating,opener:void 0}};case Vh:{const i=new Ju(l.transcription,new Bh),r=Object.assign({},i,{_id:wu()});return Mv(t,r)}case eb:{const i=t.messages.map(r=>r._id===l.payload.actionId?Object.assign({},r,l.payload.reaction?{reaction:{type:l.payload.reaction,category:l.payload.category,comment:l.payload.comment}}:{reaction:void 0}):r);return Object.assign({},t,{messages:i})}case Qh:{const i={enabled:!0,rating:l.payload.rating};return Object.assign({},t,{conversationRating:i})}case jh:{const i={...t.conversationRating,rating:l.payload};return Object.assign({},t,{conversationRating:i})}case Db:{const i={...t.conversationRating,opener:l.payload.opener,...l.payload.defaultRating?{rating:{value:l.payload.defaultRating,feedback:t.conversationRating.rating?.feedback||""}}:{}};return Object.assign({},t,{conversationRating:i})}case Rb:{const i={...t.conversationRating,opener:void 0};return Object.assign({},t,{conversationRating:i})}case Gh:return{...t,sourceInfos:{type:"loading",chunkId:l.payload.chunkId}};case Xh:{const{highlighted:i}=l.payload;return t.sourceInfos?.type==="loaded"&&i?{...t,sourceInfos:{...t.sourceInfos,highlighted:!0}}:{...t,sourceInfos:{type:"loading-error"}}}case lb:{const i=t.sourceInfos?.type,{chunkId:r,knowledgeBaseType:o,title:f,content:d,highlighted:g,url:h}=l.payload,p=t.sourceInfos?.type==="loading"||t.sourceInfos?.type==="loaded"?t.sourceInfos?.chunkId:void 0;return p&&p!==r?t:i==="loading"||i==="loaded"&&g?{...t,sourceInfos:{type:"loaded",chunkId:r,knowledgeBaseType:o,title:f,content:d,highlighted:g,url:h}}:t}case Zh:return{...t,sourceInfos:void 0};case Ob:return{...t,showTranscriptMailOverlay:!t.showTranscriptMailOverlay,conversationRating:{...t.conversationRating,opener:void 0}};default:return t}},Mv=(t,l)=>{const i=t.messages[t.messages.length-1],r=i?.text===l.text;return i&&i.sender.type===l.sender.type&&r?t:Object.assign({},t,{messages:t.messages.concat([l]),quickReplies:[]})},fi=t=>{dx()?window.top?.postMessage(t,"*"):t.type==="webclient.change.url"&&window.open(t.url)},dx=()=>typeof window<"u"&&window.self!==window.top,kv={messages:[],quickReplies:[],isBotTyping:!1,showTranscriptMailOverlay:!1,conversationRating:{enabled:!1}},Sy=qh({name:"intl",initialState:_y,reducers:{updateIntl:(t,l)=>{t.locale=l.payload.language,t.messages=l.payload.messages}}}),{updateIntl:hx}=Sy.actions,px=Sy.reducer,gx={version:void 0,requiresUserAuthentication:!1,enableStartScreen:void 0,enableStandaloneView:!1,enableTranscriptExportEmail:!1,enableTranscriptExportPdf:!1,enableGeneralConditions:!1,enableSpeechSupport:!1,commands:[],menuItems:[]},Ey=qh({name:"settings",initialState:gx,reducers:{setSettings(t,l){t.version&&t.version!==l.payload.version?(console.log("version changed, reloading chat window"),window.location.reload()):(t.version=l.payload.version,t.requiresUserAuthentication=l.payload.requiresUserAuthentication,t.enableStartScreen=l.payload.enableStartScreen,t.enableStandaloneView=l.payload.enableStandaloneView,t.enableTranscriptExportEmail=l.payload.enableTranscriptExportEmail,t.enableTranscriptExportPdf=l.payload.enableTranscriptExportPdf,t.enableGeneralConditions=l.payload.enableGeneralConditions,t.enableSpeechSupport=l.payload.enableSpeechSupport,t.commands=l.payload.commands,t.menuItems=l.payload.menuItems||[])}}}),{setSettings:mx}=Ey.actions,vx=Ey.reducer,bx=db({settings:vx,chat:fx,startScreen:R3,connection:ux,intl:px}),yx="bubble-chat",wy="state-last-saved-at",Ty="state",_x=t=>{try{if(!wx())return;const l=Lv(t,wy);if(Ex(l))return;{const i=Lv(t,Ty);if(i===null)return;const r=JSON.parse(i),o=r.connection?.queryString;if(o!==void 0&&o!==window.location.search){console.log("Ignoring persisted state due to different query string");return}else return r}}catch(l){console.error(l);return}},Sx=(t,l)=>{try{const i=JSON.stringify(l);zv(t,Ty,i);const r=new Date().toISOString();zv(t,wy,r)}catch(i){console.error(i)}},Ex=t=>{if(t===null)return!1;const l=new Date(t);return l.setHours(l.getHours()+12),new Date>l},wx=()=>typeof localStorage<"u",Lv=(t,l)=>{const i=Ay(t,l);return localStorage.getItem(i)},zv=(t,l,i)=>{const r=Ay(t,l);return localStorage.setItem(r,i)},Ay=(t,l)=>`${yx}-${t}-${l}`,Xa=Object.create(null);Xa.open="0";Xa.close="1";Xa.ping="2";Xa.pong="3";Xa.message="4";Xa.upgrade="5";Xa.noop="6";const vu=Object.create(null);Object.keys(Xa).forEach(t=>{vu[Xa[t]]=t});const Ah={type:"error",data:"parser error"},Cy=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",xy=typeof ArrayBuffer=="function",Oy=t=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(t):t&&t.buffer instanceof ArrayBuffer,Cp=({type:t,data:l},i,r)=>Cy&&l instanceof Blob?i?r(l):jv(l,r):xy&&(l instanceof ArrayBuffer||Oy(l))?i?r(l):jv(new Blob([l]),r):r(Xa[t]+(l||"")),jv=(t,l)=>{const i=new FileReader;return i.onload=function(){const r=i.result.split(",")[1];l("b"+(r||""))},i.readAsDataURL(t)};function Bv(t){return t instanceof Uint8Array?t:t instanceof ArrayBuffer?new Uint8Array(t):new Uint8Array(t.buffer,t.byteOffset,t.byteLength)}let Yd;function Tx(t,l){if(Cy&&t.data instanceof Blob)return t.data.arrayBuffer().then(Bv).then(l);if(xy&&(t.data instanceof ArrayBuffer||Oy(t.data)))return l(Bv(t.data));Cp(t,!1,i=>{Yd||(Yd=new TextEncoder),l(Yd.encode(i))})}const Uv="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",ms=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let t=0;t<Uv.length;t++)ms[Uv.charCodeAt(t)]=t;const Ax=t=>{let l=t.length*.75,i=t.length,r,o=0,f,d,g,h;t[t.length-1]==="="&&(l--,t[t.length-2]==="="&&l--);const p=new ArrayBuffer(l),v=new Uint8Array(p);for(r=0;r<i;r+=4)f=ms[t.charCodeAt(r)],d=ms[t.charCodeAt(r+1)],g=ms[t.charCodeAt(r+2)],h=ms[t.charCodeAt(r+3)],v[o++]=f<<2|d>>4,v[o++]=(d&15)<<4|g>>2,v[o++]=(g&3)<<6|h&63;return p},Cx=typeof ArrayBuffer=="function",xp=(t,l)=>{if(typeof t!="string")return{type:"message",data:Dy(t,l)};const i=t.charAt(0);return i==="b"?{type:"message",data:xx(t.substring(1),l)}:vu[i]?t.length>1?{type:vu[i],data:t.substring(1)}:{type:vu[i]}:Ah},xx=(t,l)=>{if(Cx){const i=Ax(t);return Dy(i,l)}else return{base64:!0,data:t}},Dy=(t,l)=>{switch(l){case"blob":return t instanceof Blob?t:new Blob([t]);case"arraybuffer":default:return t instanceof ArrayBuffer?t:t.buffer}},Ry="",Ox=(t,l)=>{const i=t.length,r=new Array(i);let o=0;t.forEach((f,d)=>{Cp(f,!1,g=>{r[d]=g,++o===i&&l(r.join(Ry))})})},Dx=(t,l)=>{const i=t.split(Ry),r=[];for(let o=0;o<i.length;o++){const f=xp(i[o],l);if(r.push(f),f.type==="error")break}return r};function Rx(){return new TransformStream({transform(t,l){Tx(t,i=>{const r=i.length;let o;if(r<126)o=new Uint8Array(1),new DataView(o.buffer).setUint8(0,r);else if(r<65536){o=new Uint8Array(3);const f=new DataView(o.buffer);f.setUint8(0,126),f.setUint16(1,r)}else{o=new Uint8Array(9);const f=new DataView(o.buffer);f.setUint8(0,127),f.setBigUint64(1,BigInt(r))}t.data&&typeof t.data!="string"&&(o[0]|=128),l.enqueue(o),l.enqueue(i)})}})}let Kd;function ou(t){return t.reduce((l,i)=>l+i.length,0)}function uu(t,l){if(t[0].length===l)return t.shift();const i=new Uint8Array(l);let r=0;for(let o=0;o<l;o++)i[o]=t[0][r++],r===t[0].length&&(t.shift(),r=0);return t.length&&r<t[0].length&&(t[0]=t[0].slice(r)),i}function Nx(t,l){Kd||(Kd=new TextDecoder);const i=[];let r=0,o=-1,f=!1;return new TransformStream({transform(d,g){for(i.push(d);;){if(r===0){if(ou(i)<1)break;const h=uu(i,1);f=(h[0]&128)===128,o=h[0]&127,o<126?r=3:o===126?r=1:r=2}else if(r===1){if(ou(i)<2)break;const h=uu(i,2);o=new DataView(h.buffer,h.byteOffset,h.length).getUint16(0),r=3}else if(r===2){if(ou(i)<8)break;const h=uu(i,8),p=new DataView(h.buffer,h.byteOffset,h.length),v=p.getUint32(0);if(v>Math.pow(2,21)-1){g.enqueue(Ah);break}o=v*Math.pow(2,32)+p.getUint32(4),r=3}else{if(ou(i)<o)break;const h=uu(i,o);g.enqueue(xp(f?h:Kd.decode(h),l)),r=0}if(o===0||o>t){g.enqueue(Ah);break}}}})}const Ny=4;function en(t){if(t)return Mx(t)}function Mx(t){for(var l in en.prototype)t[l]=en.prototype[l];return t}en.prototype.on=en.prototype.addEventListener=function(t,l){return this._callbacks=this._callbacks||{},(this._callbacks["$"+t]=this._callbacks["$"+t]||[]).push(l),this};en.prototype.once=function(t,l){function i(){this.off(t,i),l.apply(this,arguments)}return i.fn=l,this.on(t,i),this};en.prototype.off=en.prototype.removeListener=en.prototype.removeAllListeners=en.prototype.removeEventListener=function(t,l){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var i=this._callbacks["$"+t];if(!i)return this;if(arguments.length==1)return delete this._callbacks["$"+t],this;for(var r,o=0;o<i.length;o++)if(r=i[o],r===l||r.fn===l){i.splice(o,1);break}return i.length===0&&delete this._callbacks["$"+t],this};en.prototype.emit=function(t){this._callbacks=this._callbacks||{};for(var l=new Array(arguments.length-1),i=this._callbacks["$"+t],r=1;r<arguments.length;r++)l[r-1]=arguments[r];if(i){i=i.slice(0);for(var r=0,o=i.length;r<o;++r)i[r].apply(this,l)}return this};en.prototype.emitReserved=en.prototype.emit;en.prototype.listeners=function(t){return this._callbacks=this._callbacks||{},this._callbacks["$"+t]||[]};en.prototype.hasListeners=function(t){return!!this.listeners(t).length};const uc=typeof Promise=="function"&&typeof Promise.resolve=="function"?l=>Promise.resolve().then(l):(l,i)=>i(l,0),Sa=typeof self<"u"?self:typeof window<"u"?window:Function("return this")(),kx="arraybuffer";function My(t,...l){return l.reduce((i,r)=>(t.hasOwnProperty(r)&&(i[r]=t[r]),i),{})}const Lx=Sa.setTimeout,zx=Sa.clearTimeout;function cc(t,l){l.useNativeTimers?(t.setTimeoutFn=Lx.bind(Sa),t.clearTimeoutFn=zx.bind(Sa)):(t.setTimeoutFn=Sa.setTimeout.bind(Sa),t.clearTimeoutFn=Sa.clearTimeout.bind(Sa))}const jx=1.33;function Bx(t){return typeof t=="string"?Ux(t):Math.ceil((t.byteLength||t.size)*jx)}function Ux(t){let l=0,i=0;for(let r=0,o=t.length;r<o;r++)l=t.charCodeAt(r),l<128?i+=1:l<2048?i+=2:l<55296||l>=57344?i+=3:(r++,i+=4);return i}function ky(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)}function Hx(t){let l="";for(let i in t)t.hasOwnProperty(i)&&(l.length&&(l+="&"),l+=encodeURIComponent(i)+"="+encodeURIComponent(t[i]));return l}function Ix(t){let l={},i=t.split("&");for(let r=0,o=i.length;r<o;r++){let f=i[r].split("=");l[decodeURIComponent(f[0])]=decodeURIComponent(f[1])}return l}class Vx extends Error{constructor(l,i,r){super(l),this.description=i,this.context=r,this.type="TransportError"}}class Op extends en{constructor(l){super(),this.writable=!1,cc(this,l),this.opts=l,this.query=l.query,this.socket=l.socket,this.supportsBinary=!l.forceBase64}onError(l,i,r){return super.emitReserved("error",new Vx(l,i,r)),this}open(){return this.readyState="opening",this.doOpen(),this}close(){return(this.readyState==="opening"||this.readyState==="open")&&(this.doClose(),this.onClose()),this}send(l){this.readyState==="open"&&this.write(l)}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(l){const i=xp(l,this.socket.binaryType);this.onPacket(i)}onPacket(l){super.emitReserved("packet",l)}onClose(l){this.readyState="closed",super.emitReserved("close",l)}pause(l){}createUri(l,i={}){return l+"://"+this._hostname()+this._port()+this.opts.path+this._query(i)}_hostname(){const l=this.opts.hostname;return l.indexOf(":")===-1?l:"["+l+"]"}_port(){return this.opts.port&&(this.opts.secure&&+(this.opts.port!==443)||!this.opts.secure&&Number(this.opts.port)!==80)?":"+this.opts.port:""}_query(l){const i=Hx(l);return i.length?"?"+i:""}}class Qx extends Op{constructor(){super(...arguments),this._polling=!1}get name(){return"polling"}doOpen(){this._poll()}pause(l){this.readyState="pausing";const i=()=>{this.readyState="paused",l()};if(this._polling||!this.writable){let r=0;this._polling&&(r++,this.once("pollComplete",function(){--r||i()})),this.writable||(r++,this.once("drain",function(){--r||i()}))}else i()}_poll(){this._polling=!0,this.doPoll(),this.emitReserved("poll")}onData(l){const i=r=>{if(this.readyState==="opening"&&r.type==="open"&&this.onOpen(),r.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(r)};Dx(l,this.socket.binaryType).forEach(i),this.readyState!=="closed"&&(this._polling=!1,this.emitReserved("pollComplete"),this.readyState==="open"&&this._poll())}doClose(){const l=()=>{this.write([{type:"close"}])};this.readyState==="open"?l():this.once("open",l)}write(l){this.writable=!1,Ox(l,i=>{this.doWrite(i,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){const l=this.opts.secure?"https":"http",i=this.query||{};return this.opts.timestampRequests!==!1&&(i[this.opts.timestampParam]=ky()),!this.supportsBinary&&!i.sid&&(i.b64=1),this.createUri(l,i)}}let Ly=!1;try{Ly=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{}const Xx=Ly;function Gx(){}class Zx extends Qx{constructor(l){if(super(l),typeof location<"u"){const i=location.protocol==="https:";let r=location.port;r||(r=i?"443":"80"),this.xd=typeof location<"u"&&l.hostname!==location.hostname||r!==l.port}}doWrite(l,i){const r=this.request({method:"POST",data:l});r.on("success",i),r.on("error",(o,f)=>{this.onError("xhr post error",o,f)})}doPoll(){const l=this.request();l.on("data",this.onData.bind(this)),l.on("error",(i,r)=>{this.onError("xhr poll error",i,r)}),this.pollXhr=l}}class Va extends en{constructor(l,i,r){super(),this.createRequest=l,cc(this,r),this._opts=r,this._method=r.method||"GET",this._uri=i,this._data=r.data!==void 0?r.data:null,this._create()}_create(){var l;const i=My(this._opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");i.xdomain=!!this._opts.xd;const r=this._xhr=this.createRequest(i);try{r.open(this._method,this._uri,!0);try{if(this._opts.extraHeaders){r.setDisableHeaderCheck&&r.setDisableHeaderCheck(!0);for(let o in this._opts.extraHeaders)this._opts.extraHeaders.hasOwnProperty(o)&&r.setRequestHeader(o,this._opts.extraHeaders[o])}}catch{}if(this._method==="POST")try{r.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{r.setRequestHeader("Accept","*/*")}catch{}(l=this._opts.cookieJar)===null||l===void 0||l.addCookies(r),"withCredentials"in r&&(r.withCredentials=this._opts.withCredentials),this._opts.requestTimeout&&(r.timeout=this._opts.requestTimeout),r.onreadystatechange=()=>{var o;r.readyState===3&&((o=this._opts.cookieJar)===null||o===void 0||o.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(o){this.setTimeoutFn(()=>{this._onError(o)},0);return}typeof document<"u"&&(this._index=Va.requestsCount++,Va.requests[this._index]=this)}_onError(l){this.emitReserved("error",l,this._xhr),this._cleanup(!0)}_cleanup(l){if(!(typeof this._xhr>"u"||this._xhr===null)){if(this._xhr.onreadystatechange=Gx,l)try{this._xhr.abort()}catch{}typeof document<"u"&&delete Va.requests[this._index],this._xhr=null}}_onLoad(){const l=this._xhr.responseText;l!==null&&(this.emitReserved("data",l),this.emitReserved("success"),this._cleanup())}abort(){this._cleanup()}}Va.requestsCount=0;Va.requests={};if(typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",Hv);else if(typeof addEventListener=="function"){const t="onpagehide"in Sa?"pagehide":"unload";addEventListener(t,Hv,!1)}}function Hv(){for(let t in Va.requests)Va.requests.hasOwnProperty(t)&&Va.requests[t].abort()}const Fx=(function(){const t=zy({xdomain:!1});return t&&t.responseType!==null})();class Yx extends Zx{constructor(l){super(l);const i=l&&l.forceBase64;this.supportsBinary=Fx&&!i}request(l={}){return Object.assign(l,{xd:this.xd},this.opts),new Va(zy,this.uri(),l)}}function zy(t){const l=t.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!l||Xx))return new XMLHttpRequest}catch{}if(!l)try{return new Sa[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}const jy=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative";class Kx extends Op{get name(){return"websocket"}doOpen(){const l=this.uri(),i=this.opts.protocols,r=jy?{}:My(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(r.headers=this.opts.extraHeaders);try{this.ws=this.createSocket(l,i,r)}catch(o){return this.emitReserved("error",o)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=l=>this.onClose({description:"websocket connection closed",context:l}),this.ws.onmessage=l=>this.onData(l.data),this.ws.onerror=l=>this.onError("websocket error",l)}write(l){this.writable=!1;for(let i=0;i<l.length;i++){const r=l[i],o=i===l.length-1;Cp(r,this.supportsBinary,f=>{try{this.doWrite(r,f)}catch{}o&&uc(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){typeof this.ws<"u"&&(this.ws.onerror=()=>{},this.ws.close(),this.ws=null)}uri(){const l=this.opts.secure?"wss":"ws",i=this.query||{};return this.opts.timestampRequests&&(i[this.opts.timestampParam]=ky()),this.supportsBinary||(i.b64=1),this.createUri(l,i)}}const Jd=Sa.WebSocket||Sa.MozWebSocket;class Jx extends Kx{createSocket(l,i,r){return jy?new Jd(l,i,r):i?new Jd(l,i):new Jd(l)}doWrite(l,i){this.ws.send(i)}}class Px extends Op{get name(){return"webtransport"}doOpen(){try{this._transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name])}catch(l){return this.emitReserved("error",l)}this._transport.closed.then(()=>{this.onClose()}).catch(l=>{this.onError("webtransport error",l)}),this._transport.ready.then(()=>{this._transport.createBidirectionalStream().then(l=>{const i=Nx(Number.MAX_SAFE_INTEGER,this.socket.binaryType),r=l.readable.pipeThrough(i).getReader(),o=Rx();o.readable.pipeTo(l.writable),this._writer=o.writable.getWriter();const f=()=>{r.read().then(({done:g,value:h})=>{g||(this.onPacket(h),f())}).catch(g=>{})};f();const d={type:"open"};this.query.sid&&(d.data=`{"sid":"${this.query.sid}"}`),this._writer.write(d).then(()=>this.onOpen())})})}write(l){this.writable=!1;for(let i=0;i<l.length;i++){const r=l[i],o=i===l.length-1;this._writer.write(r).then(()=>{o&&uc(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var l;(l=this._transport)===null||l===void 0||l.close()}}const Wx={websocket:Jx,webtransport:Px,polling:Yx},$x=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,qx=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function Ch(t){if(t.length>8e3)throw"URI too long";const l=t,i=t.indexOf("["),r=t.indexOf("]");i!=-1&&r!=-1&&(t=t.substring(0,i)+t.substring(i,r).replace(/:/g,";")+t.substring(r,t.length));let o=$x.exec(t||""),f={},d=14;for(;d--;)f[qx[d]]=o[d]||"";return i!=-1&&r!=-1&&(f.source=l,f.host=f.host.substring(1,f.host.length-1).replace(/;/g,":"),f.authority=f.authority.replace("[","").replace("]","").replace(/;/g,":"),f.ipv6uri=!0),f.pathNames=e4(f,f.path),f.queryKey=t4(f,f.query),f}function e4(t,l){const i=/\/{2,9}/g,r=l.replace(i,"/").split("/");return(l.slice(0,1)=="/"||l.length===0)&&r.splice(0,1),l.slice(-1)=="/"&&r.splice(r.length-1,1),r}function t4(t,l){const i={};return l.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(r,o,f){o&&(i[o]=f)}),i}const xh=typeof addEventListener=="function"&&typeof removeEventListener=="function",bu=[];xh&&addEventListener("offline",()=>{bu.forEach(t=>t())},!1);class Zl extends en{constructor(l,i){if(super(),this.binaryType=kx,this.writeBuffer=[],this._prevBufferLen=0,this._pingInterval=-1,this._pingTimeout=-1,this._maxPayload=-1,this._pingTimeoutTime=1/0,l&&typeof l=="object"&&(i=l,l=null),l){const r=Ch(l);i.hostname=r.host,i.secure=r.protocol==="https"||r.protocol==="wss",i.port=r.port,r.query&&(i.query=r.query)}else i.host&&(i.hostname=Ch(i.host).host);cc(this,i),this.secure=i.secure!=null?i.secure:typeof location<"u"&&location.protocol==="https:",i.hostname&&!i.port&&(i.port=this.secure?"443":"80"),this.hostname=i.hostname||(typeof location<"u"?location.hostname:"localhost"),this.port=i.port||(typeof location<"u"&&location.port?location.port:this.secure?"443":"80"),this.transports=[],this._transportsByName={},i.transports.forEach(r=>{const o=r.prototype.name;this.transports.push(o),this._transportsByName[o]=r}),this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},i),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),typeof this.opts.query=="string"&&(this.opts.query=Ix(this.opts.query)),xh&&(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"})},bu.push(this._offlineEventListener))),this.opts.withCredentials&&(this._cookieJar=void 0),this._open()}createTransport(l){const i=Object.assign({},this.opts.query);i.EIO=Ny,i.transport=l,this.id&&(i.sid=this.id);const r=Object.assign({},this.opts,{query:i,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[l]);return new this._transportsByName[l](r)}_open(){if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}const l=this.opts.rememberUpgrade&&Zl.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1?"websocket":this.transports[0];this.readyState="opening";const i=this.createTransport(l);i.open(),this.setTransport(i)}setTransport(l){this.transport&&this.transport.removeAllListeners(),this.transport=l,l.on("drain",this._onDrain.bind(this)).on("packet",this._onPacket.bind(this)).on("error",this._onError.bind(this)).on("close",i=>this._onClose("transport close",i))}onOpen(){this.readyState="open",Zl.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush()}_onPacket(l){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")switch(this.emitReserved("packet",l),this.emitReserved("heartbeat"),l.type){case"open":this.onHandshake(JSON.parse(l.data));break;case"ping":this._sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong"),this._resetPingTimeout();break;case"error":const i=new Error("server error");i.code=l.data,this._onError(i);break;case"message":this.emitReserved("data",l.data),this.emitReserved("message",l.data);break}}onHandshake(l){this.emitReserved("handshake",l),this.id=l.sid,this.transport.query.sid=l.sid,this._pingInterval=l.pingInterval,this._pingTimeout=l.pingTimeout,this._maxPayload=l.maxPayload,this.onOpen(),this.readyState!=="closed"&&this._resetPingTimeout()}_resetPingTimeout(){this.clearTimeoutFn(this._pingTimeoutTimer);const l=this._pingInterval+this._pingTimeout;this._pingTimeoutTime=Date.now()+l,this._pingTimeoutTimer=this.setTimeoutFn(()=>{this._onClose("ping timeout")},l),this.opts.autoUnref&&this._pingTimeoutTimer.unref()}_onDrain(){this.writeBuffer.splice(0,this._prevBufferLen),this._prevBufferLen=0,this.writeBuffer.length===0?this.emitReserved("drain"):this.flush()}flush(){if(this.readyState!=="closed"&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){const l=this._getWritablePackets();this.transport.send(l),this._prevBufferLen=l.length,this.emitReserved("flush")}}_getWritablePackets(){if(!(this._maxPayload&&this.transport.name==="polling"&&this.writeBuffer.length>1))return this.writeBuffer;let i=1;for(let r=0;r<this.writeBuffer.length;r++){const o=this.writeBuffer[r].data;if(o&&(i+=Bx(o)),r>0&&i>this._maxPayload)return this.writeBuffer.slice(0,r);i+=2}return this.writeBuffer}_hasPingExpired(){if(!this._pingTimeoutTime)return!0;const l=Date.now()>this._pingTimeoutTime;return l&&(this._pingTimeoutTime=0,uc(()=>{this._onClose("ping timeout")},this.setTimeoutFn)),l}write(l,i,r){return this._sendPacket("message",l,i,r),this}send(l,i,r){return this._sendPacket("message",l,i,r),this}_sendPacket(l,i,r,o){if(typeof i=="function"&&(o=i,i=void 0),typeof r=="function"&&(o=r,r=null),this.readyState==="closing"||this.readyState==="closed")return;r=r||{},r.compress=r.compress!==!1;const f={type:l,data:i,options:r};this.emitReserved("packetCreate",f),this.writeBuffer.push(f),o&&this.once("flush",o),this.flush()}close(){const l=()=>{this._onClose("forced close"),this.transport.close()},i=()=>{this.off("upgrade",i),this.off("upgradeError",i),l()},r=()=>{this.once("upgrade",i),this.once("upgradeError",i)};return(this.readyState==="opening"||this.readyState==="open")&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?r():l()}):this.upgrading?r():l()),this}_onError(l){if(Zl.priorWebsocketSuccess=!1,this.opts.tryAllTransports&&this.transports.length>1&&this.readyState==="opening")return this.transports.shift(),this._open();this.emitReserved("error",l),this._onClose("transport error",l)}_onClose(l,i){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing"){if(this.clearTimeoutFn(this._pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),xh&&(this._beforeunloadEventListener&&removeEventListener("beforeunload",this._beforeunloadEventListener,!1),this._offlineEventListener)){const r=bu.indexOf(this._offlineEventListener);r!==-1&&bu.splice(r,1)}this.readyState="closed",this.id=null,this.emitReserved("close",l,i),this.writeBuffer=[],this._prevBufferLen=0}}}Zl.protocol=Ny;class n4 extends Zl{constructor(){super(...arguments),this._upgrades=[]}onOpen(){if(super.onOpen(),this.readyState==="open"&&this.opts.upgrade)for(let l=0;l<this._upgrades.length;l++)this._probe(this._upgrades[l])}_probe(l){let i=this.createTransport(l),r=!1;Zl.priorWebsocketSuccess=!1;const o=()=>{r||(i.send([{type:"ping",data:"probe"}]),i.once("packet",S=>{if(!r)if(S.type==="pong"&&S.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",i),!i)return;Zl.priorWebsocketSuccess=i.name==="websocket",this.transport.pause(()=>{r||this.readyState!=="closed"&&(v(),this.setTransport(i),i.send([{type:"upgrade"}]),this.emitReserved("upgrade",i),i=null,this.upgrading=!1,this.flush())})}else{const y=new Error("probe error");y.transport=i.name,this.emitReserved("upgradeError",y)}}))};function f(){r||(r=!0,v(),i.close(),i=null)}const d=S=>{const y=new Error("probe error: "+S);y.transport=i.name,f(),this.emitReserved("upgradeError",y)};function g(){d("transport closed")}function h(){d("socket closed")}function p(S){i&&S.name!==i.name&&f()}const v=()=>{i.removeListener("open",o),i.removeListener("error",d),i.removeListener("close",g),this.off("close",h),this.off("upgrading",p)};i.once("open",o),i.once("error",d),i.once("close",g),this.once("close",h),this.once("upgrading",p),this._upgrades.indexOf("webtransport")!==-1&&l!=="webtransport"?this.setTimeoutFn(()=>{r||i.open()},200):i.open()}onHandshake(l){this._upgrades=this._filterUpgrades(l.upgrades),super.onHandshake(l)}_filterUpgrades(l){const i=[];for(let r=0;r<l.length;r++)~this.transports.indexOf(l[r])&&i.push(l[r]);return i}}let a4=class extends n4{constructor(l,i={}){const r=typeof l=="object"?l:i;(!r.transports||r.transports&&typeof r.transports[0]=="string")&&(r.transports=(r.transports||["polling","websocket","webtransport"]).map(o=>Wx[o]).filter(o=>!!o)),super(l,r)}};function l4(t,l="",i){let r=t;i=i||typeof location<"u"&&location,t==null&&(t=i.protocol+"//"+i.host),typeof t=="string"&&(t.charAt(0)==="/"&&(t.charAt(1)==="/"?t=i.protocol+t:t=i.host+t),/^(https?|wss?):\/\//.test(t)||(typeof i<"u"?t=i.protocol+"//"+t:t="https://"+t),r=Ch(t)),r.port||(/^(http|ws)$/.test(r.protocol)?r.port="80":/^(http|ws)s$/.test(r.protocol)&&(r.port="443")),r.path=r.path||"/";const f=r.host.indexOf(":")!==-1?"["+r.host+"]":r.host;return r.id=r.protocol+"://"+f+":"+r.port+l,r.href=r.protocol+"://"+f+(i&&i.port===r.port?"":":"+r.port),r}const i4=typeof ArrayBuffer=="function",r4=t=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(t):t.buffer instanceof ArrayBuffer,By=Object.prototype.toString,s4=typeof Blob=="function"||typeof Blob<"u"&&By.call(Blob)==="[object BlobConstructor]",o4=typeof File=="function"||typeof File<"u"&&By.call(File)==="[object FileConstructor]";function Dp(t){return i4&&(t instanceof ArrayBuffer||r4(t))||s4&&t instanceof Blob||o4&&t instanceof File}function yu(t,l){if(!t||typeof t!="object")return!1;if(Array.isArray(t)){for(let i=0,r=t.length;i<r;i++)if(yu(t[i]))return!0;return!1}if(Dp(t))return!0;if(t.toJSON&&typeof t.toJSON=="function"&&arguments.length===1)return yu(t.toJSON(),!0);for(const i in t)if(Object.prototype.hasOwnProperty.call(t,i)&&yu(t[i]))return!0;return!1}function u4(t){const l=[],i=t.data,r=t;return r.data=Oh(i,l),r.attachments=l.length,{packet:r,buffers:l}}function Oh(t,l){if(!t)return t;if(Dp(t)){const i={_placeholder:!0,num:l.length};return l.push(t),i}else if(Array.isArray(t)){const i=new Array(t.length);for(let r=0;r<t.length;r++)i[r]=Oh(t[r],l);return i}else if(typeof t=="object"&&!(t instanceof Date)){const i={};for(const r in t)Object.prototype.hasOwnProperty.call(t,r)&&(i[r]=Oh(t[r],l));return i}return t}function c4(t,l){return t.data=Dh(t.data,l),delete t.attachments,t}function Dh(t,l){if(!t)return t;if(t&&t._placeholder===!0){if(typeof t.num=="number"&&t.num>=0&&t.num<l.length)return l[t.num];throw new Error("illegal attachments")}else if(Array.isArray(t))for(let i=0;i<t.length;i++)t[i]=Dh(t[i],l);else if(typeof t=="object")for(const i in t)Object.prototype.hasOwnProperty.call(t,i)&&(t[i]=Dh(t[i],l));return t}const f4=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"],d4=5;var Ke;(function(t){t[t.CONNECT=0]="CONNECT",t[t.DISCONNECT=1]="DISCONNECT",t[t.EVENT=2]="EVENT",t[t.ACK=3]="ACK",t[t.CONNECT_ERROR=4]="CONNECT_ERROR",t[t.BINARY_EVENT=5]="BINARY_EVENT",t[t.BINARY_ACK=6]="BINARY_ACK"})(Ke||(Ke={}));class h4{constructor(l){this.replacer=l}encode(l){return(l.type===Ke.EVENT||l.type===Ke.ACK)&&yu(l)?this.encodeAsBinary({type:l.type===Ke.EVENT?Ke.BINARY_EVENT:Ke.BINARY_ACK,nsp:l.nsp,data:l.data,id:l.id}):[this.encodeAsString(l)]}encodeAsString(l){let i=""+l.type;return(l.type===Ke.BINARY_EVENT||l.type===Ke.BINARY_ACK)&&(i+=l.attachments+"-"),l.nsp&&l.nsp!=="/"&&(i+=l.nsp+","),l.id!=null&&(i+=l.id),l.data!=null&&(i+=JSON.stringify(l.data,this.replacer)),i}encodeAsBinary(l){const i=u4(l),r=this.encodeAsString(i.packet),o=i.buffers;return o.unshift(r),o}}function Iv(t){return Object.prototype.toString.call(t)==="[object Object]"}class Rp extends en{constructor(l){super(),this.reviver=l}add(l){let i;if(typeof l=="string"){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");i=this.decodeString(l);const r=i.type===Ke.BINARY_EVENT;r||i.type===Ke.BINARY_ACK?(i.type=r?Ke.EVENT:Ke.ACK,this.reconstructor=new p4(i),i.attachments===0&&super.emitReserved("decoded",i)):super.emitReserved("decoded",i)}else if(Dp(l)||l.base64)if(this.reconstructor)i=this.reconstructor.takeBinaryData(l),i&&(this.reconstructor=null,super.emitReserved("decoded",i));else throw new Error("got binary data when not reconstructing a packet");else throw new Error("Unknown type: "+l)}decodeString(l){let i=0;const r={type:Number(l.charAt(0))};if(Ke[r.type]===void 0)throw new Error("unknown packet type "+r.type);if(r.type===Ke.BINARY_EVENT||r.type===Ke.BINARY_ACK){const f=i+1;for(;l.charAt(++i)!=="-"&&i!=l.length;);const d=l.substring(f,i);if(d!=Number(d)||l.charAt(i)!=="-")throw new Error("Illegal attachments");r.attachments=Number(d)}if(l.charAt(i+1)==="/"){const f=i+1;for(;++i&&!(l.charAt(i)===","||i===l.length););r.nsp=l.substring(f,i)}else r.nsp="/";const o=l.charAt(i+1);if(o!==""&&Number(o)==o){const f=i+1;for(;++i;){const d=l.charAt(i);if(d==null||Number(d)!=d){--i;break}if(i===l.length)break}r.id=Number(l.substring(f,i+1))}if(l.charAt(++i)){const f=this.tryParse(l.substr(i));if(Rp.isPayloadValid(r.type,f))r.data=f;else throw new Error("invalid payload")}return r}tryParse(l){try{return JSON.parse(l,this.reviver)}catch{return!1}}static isPayloadValid(l,i){switch(l){case Ke.CONNECT:return Iv(i);case Ke.DISCONNECT:return i===void 0;case Ke.CONNECT_ERROR:return typeof i=="string"||Iv(i);case Ke.EVENT:case Ke.BINARY_EVENT:return Array.isArray(i)&&(typeof i[0]=="number"||typeof i[0]=="string"&&f4.indexOf(i[0])===-1);case Ke.ACK:case Ke.BINARY_ACK:return Array.isArray(i)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}}class p4{constructor(l){this.packet=l,this.buffers=[],this.reconPack=l}takeBinaryData(l){if(this.buffers.push(l),this.buffers.length===this.reconPack.attachments){const i=c4(this.reconPack,this.buffers);return this.finishedReconstruction(),i}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}const g4=Object.freeze(Object.defineProperty({__proto__:null,Decoder:Rp,Encoder:h4,get PacketType(){return Ke},protocol:d4},Symbol.toStringTag,{value:"Module"}));function Da(t,l,i){return t.on(l,i),function(){t.off(l,i)}}const m4=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class Uy extends en{constructor(l,i,r){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=l,this.nsp=i,r&&r.auth&&(this.auth=r.auth),this._opts=Object.assign({},r),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;const l=this.io;this.subs=[Da(l,"open",this.onopen.bind(this)),Da(l,"packet",this.onpacket.bind(this)),Da(l,"error",this.onerror.bind(this)),Da(l,"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(...l){return l.unshift("message"),this.emit.apply(this,l),this}emit(l,...i){var r,o,f;if(m4.hasOwnProperty(l))throw new Error('"'+l.toString()+'" is a reserved event name');if(i.unshift(l),this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this._addToQueue(i),this;const d={type:Ke.EVENT,data:i};if(d.options={},d.options.compress=this.flags.compress!==!1,typeof i[i.length-1]=="function"){const v=this.ids++,S=i.pop();this._registerAckCallback(v,S),d.id=v}const g=(o=(r=this.io.engine)===null||r===void 0?void 0:r.transport)===null||o===void 0?void 0:o.writable,h=this.connected&&!(!((f=this.io.engine)===null||f===void 0)&&f._hasPingExpired());return this.flags.volatile&&!g||(h?(this.notifyOutgoingListeners(d),this.packet(d)):this.sendBuffer.push(d)),this.flags={},this}_registerAckCallback(l,i){var r;const o=(r=this.flags.timeout)!==null&&r!==void 0?r:this._opts.ackTimeout;if(o===void 0){this.acks[l]=i;return}const f=this.io.setTimeoutFn(()=>{delete this.acks[l];for(let g=0;g<this.sendBuffer.length;g++)this.sendBuffer[g].id===l&&this.sendBuffer.splice(g,1);i.call(this,new Error("operation has timed out"))},o),d=(...g)=>{this.io.clearTimeoutFn(f),i.apply(this,g)};d.withError=!0,this.acks[l]=d}emitWithAck(l,...i){return new Promise((r,o)=>{const f=(d,g)=>d?o(d):r(g);f.withError=!0,i.push(f),this.emit(l,...i)})}_addToQueue(l){let i;typeof l[l.length-1]=="function"&&(i=l.pop());const r={id:this._queueSeq++,tryCount:0,pending:!1,args:l,flags:Object.assign({fromQueue:!0},this.flags)};l.push((o,...f)=>r!==this._queue[0]?void 0:(o!==null?r.tryCount>this._opts.retries&&(this._queue.shift(),i&&i(o)):(this._queue.shift(),i&&i(null,...f)),r.pending=!1,this._drainQueue())),this._queue.push(r),this._drainQueue()}_drainQueue(l=!1){if(!this.connected||this._queue.length===0)return;const i=this._queue[0];i.pending&&!l||(i.pending=!0,i.tryCount++,this.flags=i.flags,this.emit.apply(this,i.args))}packet(l){l.nsp=this.nsp,this.io._packet(l)}onopen(){typeof this.auth=="function"?this.auth(l=>{this._sendConnectPacket(l)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(l){this.packet({type:Ke.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},l):l})}onerror(l){this.connected||this.emitReserved("connect_error",l)}onclose(l,i){this.connected=!1,delete this.id,this.emitReserved("disconnect",l,i),this._clearAcks()}_clearAcks(){Object.keys(this.acks).forEach(l=>{if(!this.sendBuffer.some(r=>String(r.id)===l)){const r=this.acks[l];delete this.acks[l],r.withError&&r.call(this,new Error("socket has been disconnected"))}})}onpacket(l){if(l.nsp===this.nsp)switch(l.type){case Ke.CONNECT:l.data&&l.data.sid?this.onconnect(l.data.sid,l.data.pid):this.emitReserved("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case Ke.EVENT:case Ke.BINARY_EVENT:this.onevent(l);break;case Ke.ACK:case Ke.BINARY_ACK:this.onack(l);break;case Ke.DISCONNECT:this.ondisconnect();break;case Ke.CONNECT_ERROR:this.destroy();const r=new Error(l.data.message);r.data=l.data.data,this.emitReserved("connect_error",r);break}}onevent(l){const i=l.data||[];l.id!=null&&i.push(this.ack(l.id)),this.connected?this.emitEvent(i):this.receiveBuffer.push(Object.freeze(i))}emitEvent(l){if(this._anyListeners&&this._anyListeners.length){const i=this._anyListeners.slice();for(const r of i)r.apply(this,l)}super.emit.apply(this,l),this._pid&&l.length&&typeof l[l.length-1]=="string"&&(this._lastOffset=l[l.length-1])}ack(l){const i=this;let r=!1;return function(...o){r||(r=!0,i.packet({type:Ke.ACK,id:l,data:o}))}}onack(l){const i=this.acks[l.id];typeof i=="function"&&(delete this.acks[l.id],i.withError&&l.data.unshift(null),i.apply(this,l.data))}onconnect(l,i){this.id=l,this.recovered=i&&this._pid===i,this._pid=i,this.connected=!0,this.emitBuffered(),this.emitReserved("connect"),this._drainQueue(!0)}emitBuffered(){this.receiveBuffer.forEach(l=>this.emitEvent(l)),this.receiveBuffer=[],this.sendBuffer.forEach(l=>{this.notifyOutgoingListeners(l),this.packet(l)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(l=>l()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:Ke.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(l){return this.flags.compress=l,this}get volatile(){return this.flags.volatile=!0,this}timeout(l){return this.flags.timeout=l,this}onAny(l){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(l),this}prependAny(l){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(l),this}offAny(l){if(!this._anyListeners)return this;if(l){const i=this._anyListeners;for(let r=0;r<i.length;r++)if(l===i[r])return i.splice(r,1),this}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}onAnyOutgoing(l){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.push(l),this}prependAnyOutgoing(l){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.unshift(l),this}offAnyOutgoing(l){if(!this._anyOutgoingListeners)return this;if(l){const i=this._anyOutgoingListeners;for(let r=0;r<i.length;r++)if(l===i[r])return i.splice(r,1),this}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(l){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length){const i=this._anyOutgoingListeners.slice();for(const r of i)r.apply(this,l.data)}}}function pr(t){t=t||{},this.ms=t.min||100,this.max=t.max||1e4,this.factor=t.factor||2,this.jitter=t.jitter>0&&t.jitter<=1?t.jitter:0,this.attempts=0}pr.prototype.duration=function(){var t=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var l=Math.random(),i=Math.floor(l*this.jitter*t);t=(Math.floor(l*10)&1)==0?t-i:t+i}return Math.min(t,this.max)|0};pr.prototype.reset=function(){this.attempts=0};pr.prototype.setMin=function(t){this.ms=t};pr.prototype.setMax=function(t){this.max=t};pr.prototype.setJitter=function(t){this.jitter=t};class Rh extends en{constructor(l,i){var r;super(),this.nsps={},this.subs=[],l&&typeof l=="object"&&(i=l,l=void 0),i=i||{},i.path=i.path||"/socket.io",this.opts=i,cc(this,i),this.reconnection(i.reconnection!==!1),this.reconnectionAttempts(i.reconnectionAttempts||1/0),this.reconnectionDelay(i.reconnectionDelay||1e3),this.reconnectionDelayMax(i.reconnectionDelayMax||5e3),this.randomizationFactor((r=i.randomizationFactor)!==null&&r!==void 0?r:.5),this.backoff=new pr({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(i.timeout==null?2e4:i.timeout),this._readyState="closed",this.uri=l;const o=i.parser||g4;this.encoder=new o.Encoder,this.decoder=new o.Decoder,this._autoConnect=i.autoConnect!==!1,this._autoConnect&&this.open()}reconnection(l){return arguments.length?(this._reconnection=!!l,l||(this.skipReconnect=!0),this):this._reconnection}reconnectionAttempts(l){return l===void 0?this._reconnectionAttempts:(this._reconnectionAttempts=l,this)}reconnectionDelay(l){var i;return l===void 0?this._reconnectionDelay:(this._reconnectionDelay=l,(i=this.backoff)===null||i===void 0||i.setMin(l),this)}randomizationFactor(l){var i;return l===void 0?this._randomizationFactor:(this._randomizationFactor=l,(i=this.backoff)===null||i===void 0||i.setJitter(l),this)}reconnectionDelayMax(l){var i;return l===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=l,(i=this.backoff)===null||i===void 0||i.setMax(l),this)}timeout(l){return arguments.length?(this._timeout=l,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()}open(l){if(~this._readyState.indexOf("open"))return this;this.engine=new a4(this.uri,this.opts);const i=this.engine,r=this;this._readyState="opening",this.skipReconnect=!1;const o=Da(i,"open",function(){r.onopen(),l&&l()}),f=g=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",g),l?l(g):this.maybeReconnectOnOpen()},d=Da(i,"error",f);if(this._timeout!==!1){const g=this._timeout,h=this.setTimeoutFn(()=>{o(),f(new Error("timeout")),i.close()},g);this.opts.autoUnref&&h.unref(),this.subs.push(()=>{this.clearTimeoutFn(h)})}return this.subs.push(o),this.subs.push(d),this}connect(l){return this.open(l)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");const l=this.engine;this.subs.push(Da(l,"ping",this.onping.bind(this)),Da(l,"data",this.ondata.bind(this)),Da(l,"error",this.onerror.bind(this)),Da(l,"close",this.onclose.bind(this)),Da(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(l){try{this.decoder.add(l)}catch(i){this.onclose("parse error",i)}}ondecoded(l){uc(()=>{this.emitReserved("packet",l)},this.setTimeoutFn)}onerror(l){this.emitReserved("error",l)}socket(l,i){let r=this.nsps[l];return r?this._autoConnect&&!r.active&&r.connect():(r=new Uy(this,l,i),this.nsps[l]=r),r}_destroy(l){const i=Object.keys(this.nsps);for(const r of i)if(this.nsps[r].active)return;this._close()}_packet(l){const i=this.encoder.encode(l);for(let r=0;r<i.length;r++)this.engine.write(i[r],l.options)}cleanup(){this.subs.forEach(l=>l()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close")}disconnect(){return this._close()}onclose(l,i){var r;this.cleanup(),(r=this.engine)===null||r===void 0||r.close(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",l,i),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;const l=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{const i=this.backoff.duration();this._reconnecting=!0;const r=this.setTimeoutFn(()=>{l.skipReconnect||(this.emitReserved("reconnect_attempt",l.backoff.attempts),!l.skipReconnect&&l.open(o=>{o?(l._reconnecting=!1,l.reconnect(),this.emitReserved("reconnect_error",o)):l.onreconnect()}))},i);this.opts.autoUnref&&r.unref(),this.subs.push(()=>{this.clearTimeoutFn(r)})}}onreconnect(){const l=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",l)}}const hs={};function _u(t,l){typeof t=="object"&&(l=t,t=void 0),l=l||{};const i=l4(t,l.path||"/socket.io"),r=i.source,o=i.id,f=i.path,d=hs[o]&&f in hs[o].nsps,g=l.forceNew||l["force new connection"]||l.multiplex===!1||d;let h;return g?h=new Rh(r,l):(hs[o]||(hs[o]=new Rh(r,l)),h=hs[o]),i.query&&!l.query&&(l.query=i.queryKey),h.socket(i.path,l)}Object.assign(_u,{Manager:Rh,Socket:Uy,io:_u,connect:_u});const v4=[$v,qv,Jv,Pv,cE,...L3,...EE,"@@localize/SET_ACTIVE_LANGUAGE","@@localize/ADD_TRANSLATION_FOR_LANGUAGE"],b4=({dispatch:t,getState:l})=>i=>{let r=null;return o=>{const f=i(o);if(o.type===ep){r?.disconnect(),t(B3());const d=`/chat?${new URLSearchParams(o.querystrings).toString()}`;r=_u(`/${o.clientName}${d}`),r.on("action",t),r.on("connect",()=>t(U3())),r.on("disconnect",()=>t(H3())),r.on("reconnect",()=>t(I3())),r.on("set-translations",(g,h)=>{t(hx({language:g,messages:sx(g,h)}))}),r.on("set-settings",g=>{t(mx(g))}),r.on("enable-conversation-rating",g=>t(xE(g))),r.on("speech-transcription",g=>t(TE(g))),r.on("restore-client-state",g=>{t(j3(g.sessionId)),t(DE(g.messages))}),r.on("expand-window",({devices:g,initial:h=!1})=>{t({type:ib,devices:g,initial:h})}),r.on("restart-chat",()=>{t(ks())}),r.on("login-success",g=>{t(C3({loginToken:g.loginToken}))})}else if(o.type==="start-screen/requestLogin")r?.emit("login-requested",o.payload);else if(o.type===nc)r?.emit("start-chat",o.payload);else if(o.type===ac)r?.emit("terminate-session",o.payload);else if(o.type===SE)r?.emit("get-started",JSON.stringify(o));else if(o.type===Ih)r?.emit("audio-message",o.buffer);else if(o.type===jh)r?.emit("conversation-rating",o.payload);else if(o.type===sb){const{connection:{sessionId:d}}=l();window.location.href=`/transcript-pdf/${d}`}else v4.indexOf(o.type)===-1&&o.meta===void 0&&r&&r.emit("action",JSON.stringify(o));return f}},Hy=Fh(),y4={..._x(Hy),intl:_y},Nh=d3({middleware:t=>t().concat(b4),reducer:bx,preloadedState:y4});Nh.subscribe(NT(()=>{const t=Nh.getState();Sx(Hy,{connection:t.connection,startScreen:t.startScreen})},1e3));const _4=document.getElementById("root"),S4=tS.createRoot(_4);S4.render(b.jsx(eE,{store:Nh,children:b.jsx(nx,{})}));
131
+ //# sourceMappingURL=index-CyhFFdBd.js.map